diff --git a/assets/About-C_au7WVD.js b/assets/About-BYeHamSp.js similarity index 99% rename from assets/About-C_au7WVD.js rename to assets/About-BYeHamSp.js index b3bb4fa..dd38b1a 100644 --- a/assets/About-C_au7WVD.js +++ b/assets/About-BYeHamSp.js @@ -1,4 +1,4 @@ -var m=Object.defineProperty;var g=(e,t,a)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var F=(e,t,a)=>g(e,typeof t!="symbol"?t+"":t,a);import{d as decorator,C as Component,V as Vue,_ as _export_sfc,o as openBlock,c as createElementBlock,F as Fragment,r as renderList,a as createBaseVNode,t as toDisplayString,$,b as resolveComponent,e as createVNode,f as createCommentVNode,p as pushScopeId,g as popScopeId,h as hosts,w as withCtx,i as createBlock}from"./index-DjertsXM.js";import{g as getDefaultExportFromCjs,m as marked,L as Loading}from"./Loading-TN5rVjOy.js";import{c as capitalize}from"./utils-DMoCDHuU.js";const emojiRegex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,re={command://g,hashes:/^#+/g};RegExp.prototype.find=function(e){const t=this.exec(e);return this.lastIndex=0,t};function parseExtensions(raw){let lines=raw.replace(`\r +var m=Object.defineProperty;var g=(e,t,a)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var F=(e,t,a)=>g(e,typeof t!="symbol"?t+"":t,a);import{d as decorator,C as Component,V as Vue,_ as _export_sfc,o as openBlock,c as createElementBlock,F as Fragment,r as renderList,a as createBaseVNode,t as toDisplayString,$,b as resolveComponent,e as createVNode,f as createCommentVNode,p as pushScopeId,g as popScopeId,h as hosts,w as withCtx,i as createBlock}from"./index-CY8g26_C.js";import{g as getDefaultExportFromCjs,m as marked,L as Loading}from"./Loading-4yKS49A6.js";import{c as capitalize}from"./utils-DltlUubN.js";const emojiRegex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,re={command://g,hashes:/^#+/g};RegExp.prototype.find=function(e){const t=this.exec(e);return this.lastIndex=0,t};function parseExtensions(raw){let lines=raw.replace(`\r `,` `).split(` `),i=0;function findSectionEnd(){const e=re.hashes.find(lines[i]);if(!e)return-1;const t=e[0].length;let a=i+1;for(;a`,lines.splice(e,0,` diff --git a/assets/Blog-dGUD7XKf.js b/assets/Blog-ClLY7XDi.js similarity index 99% rename from assets/Blog-dGUD7XKf.js rename to assets/Blog-ClLY7XDi.js index b933ebe..e7493c0 100644 --- a/assets/Blog-dGUD7XKf.js +++ b/assets/Blog-ClLY7XDi.js @@ -1,4 +1,4 @@ -import{z as Hs,B as Es,$ as Fs,D as ji,E as Lt,h as As,b as $i,o as x,c as R,f as ae,a as j,t as de,A as st,F as It,r as Ut,i as rt,w as Cs,l as Ls,T as Is,e as zi,n as Zi,G as Us,_ as Vs,u as Bi,H as qi,p as Ji,g as Qi}from"./index-DjertsXM.js";import{c as Xi,g as Ki,m as eo,L as to}from"./Loading-TN5rVjOy.js";function so(F){throw new Error('Could not dynamically require "'+F+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gs={exports:{}};(function(F,O){(function(P,l){F.exports=l()})(Xi,function(){var P;function l(){return P.apply(null,arguments)}function _e(e){P=e}function b(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function p(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(c(e,t))return!1;return!0}function k(e){return e===void 0}function E(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function he(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ne(e,t){var s=[],r,a=e.length;for(r=0;r>>0,r;for(r=0;r0)for(s=0;s>>0,r;for(r=0;r0)for(s=0;s=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var ht=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Le=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ft={},ye={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(ye[e]=a),t&&(ye[t[0]]=function(){return Z(a.apply(this,arguments),t[1],t[2])}),s&&(ye[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Bs(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function qs(e){var t=e.match(ht),s,r;for(s=0,r=t.length;s=0&&Le.test(e);)e=e.replace(Le,r),Le.lastIndex=0,s-=1;return e}var Js={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Qs(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(ht).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Xs="Invalid date";function Ks(){return this._invalidDate}var er="%d",tr=/\d{1,2}/;function sr(e){return this._ordinal.replace("%d",e)}var rr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ar(e,t,s,r){var a=this._relativeTime[s];return z(a)?a(e,t,s,r):a.replace(/%d/i,e)}function nr(e,t){var s=this._relativeTime[e>0?"future":"past"];return z(s)?s(t):s.replace(/%s/i,t)}var jt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function I(e){return typeof e=="string"?jt[e]||jt[e.toLowerCase()]:void 0}function ct(e){var t={},s,r;for(r in e)c(e,r)&&(s=I(r),s&&(t[s]=e[r]));return t}var ir={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function or(e){var t=[],s;for(s in e)c(e,s)&&t.push({unit:s,priority:ir[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var $t=/\d/,C=/\d\d/,zt=/\d{3}/,mt=/\d{4}/,Ue=/[+-]?\d{6}/,M=/\d\d?/,Zt=/\d\d\d\d?/,Bt=/\d\d\d\d\d\d?/,He=/\d{1,3}/,_t=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,ge=/\d+/,Ae=/[+-]?\d+/,lr=/Z|[+-]\d\d:?\d\d/gi,Ve=/Z|[+-]\d\d(?::?\d\d)?/gi,ur=/[+-]?\d+(\.\d{1,3})?/,Oe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,we=/^[1-9]\d?/,yt=/^([1-9]\d|\d)/,Ge;Ge={};function d(e,t,s){Ge[e]=z(t)?t:function(r,a){return r&&s?s:t}}function dr(e,t){return c(Ge,e)?Ge[e](t._strict,t._locale):new RegExp(hr(e))}function hr(e){return q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function _(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=U(t)),s}var gt={};function v(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),E(t)&&(r=function(n,i){i[t]=_(n)}),a=e.length,s=0;s68?1900:2e3)};var qt=ke("FullYear",!0);function _r(){return je(this.year())}function ke(e,t){return function(s){return s!=null?(Jt(this,e,s),l.updateOffset(this,t),this):xe(this,e)}}function xe(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Jt(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!je(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function yr(e){return e=I(e),z(this[e])?this[e]():this}function gr(e,t){if(typeof e=="object"){e=ct(e);var s=or(e),r,a=s.length;for(r=0;r=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function Ne(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $e(e,t,s){var r=7+t-s,a=(7+Ne(e,0,r).getUTCDay()-t)%7;return-a+r-1}function ss(e,t,s,r,a){var n=(7+s-r)%7,i=$e(e,r,a),u=1+7*(t-1)+n+i,f,y;return u<=0?(f=e-1,y=be(f)+u):u>be(e)?(f=e+1,y=u-be(e)):(f=e,y=u),{year:f,dayOfYear:y}}function Pe(e,t,s){var r=$e(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+X(i,t,s)):a>X(e.year(),t,s)?(n=a-X(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function X(e,t,s){var r=$e(e,t,s),a=$e(e+1,t,s);return(be(e)-r+a)/7}h("w",["ww",2],"wo","week"),h("W",["WW",2],"Wo","isoWeek"),d("w",M,we),d("ww",M,C),d("W",M,we),d("WW",M,C),Te(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=_(e)});function Nr(e){return Pe(e,this._week.dow,this._week.doy).week}var Pr={dow:0,doy:6};function Wr(){return this._week.dow}function Rr(){return this._week.doy}function Fr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Cr(e){var t=Pe(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day"),h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),h("e",0,0,"weekday"),h("E",0,0,"isoWeekday"),d("d",M),d("e",M),d("E",M),d("dd",function(e,t){return t.weekdaysMinRegex(e)}),d("ddd",function(e,t){return t.weekdaysShortRegex(e)}),d("dddd",function(e,t){return t.weekdaysRegex(e)}),Te(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:m(s).invalidWeekday=e}),Te(["d","e","E"],function(e,t,s,r){t[r]=_(e)});function Lr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ir(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function kt(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ur="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),rs="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Hr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Er=Oe,Ar=Oe,Vr=Oe;function Gr(e,t){var s=b(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?kt(s,this._week.dow):e?s[e.day()]:s}function jr(e){return e===!0?kt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function $r(e){return e===!0?kt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function zr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=$([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=Y.call(this._weekdaysParse,i),a!==-1||(a=Y.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=Y.call(this._shortWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=Y.call(this._minWeekdaysParse,i),a!==-1||(a=Y.call(this._weekdaysParse,i),a!==-1)?a:(a=Y.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function Zr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return zr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=$([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Br(e){if(!this.isValid())return e!=null?this:NaN;var t=xe(this,"Day");return e!=null?(e=Lr(e,this.localeData()),this.add(e-t,"d")):t}function qr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Jr(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ir(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Qr(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||pt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Er),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Xr(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||pt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ar),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kr(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||pt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function pt(){function e(W,re){return re.length-W.length}var t=[],s=[],r=[],a=[],n,i,u,f,y;for(n=0;n<7;n++)i=$([2e3,1]).day(n),u=q(this.weekdaysMin(i,"")),f=q(this.weekdaysShort(i,"")),y=q(this.weekdays(i,"")),t.push(u),s.push(f),r.push(y),a.push(u),a.push(f),a.push(y);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function vt(){return this.hours()%12||12}function ea(){return this.hours()||24}h("H",["HH",2],0,"hour"),h("h",["hh",2],0,vt),h("k",["kk",2],0,ea),h("hmm",0,0,function(){return""+vt.apply(this)+Z(this.minutes(),2)}),h("hmmss",0,0,function(){return""+vt.apply(this)+Z(this.minutes(),2)+Z(this.seconds(),2)}),h("Hmm",0,0,function(){return""+this.hours()+Z(this.minutes(),2)}),h("Hmmss",0,0,function(){return""+this.hours()+Z(this.minutes(),2)+Z(this.seconds(),2)});function as(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}as("a",!0),as("A",!1);function ns(e,t){return t._meridiemParse}d("a",ns),d("A",ns),d("H",M,yt),d("h",M,we),d("k",M,we),d("HH",M,C),d("hh",M,C),d("kk",M,C),d("hmm",Zt),d("hmmss",Bt),d("Hmm",Zt),d("Hmmss",Bt),v(["H","HH"],T),v(["k","kk"],function(e,t,s){var r=_(e);t[T]=r===24?0:r}),v(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e}),v(["h","hh"],function(e,t,s){t[T]=_(e),m(s).bigHour=!0}),v("hmm",function(e,t,s){var r=e.length-2;t[T]=_(e.substr(0,r)),t[V]=_(e.substr(r)),m(s).bigHour=!0}),v("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[T]=_(e.substr(0,r)),t[V]=_(e.substr(r,2)),t[Q]=_(e.substr(a)),m(s).bigHour=!0}),v("Hmm",function(e,t,s){var r=e.length-2;t[T]=_(e.substr(0,r)),t[V]=_(e.substr(r))}),v("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[T]=_(e.substr(0,r)),t[V]=_(e.substr(r,2)),t[Q]=_(e.substr(a))});function ta(e){return(e+"").toLowerCase().charAt(0)==="p"}var sa=/[ap]\.?m?\.?/i,ra=ke("Hours",!0);function aa(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var is={calendar:zs,longDateFormat:Js,invalidDate:Xs,ordinal:er,dayOfMonthOrdinalParse:tr,relativeTime:rr,months:kr,monthsShort:Qt,week:Pr,weekdays:Ur,weekdaysMin:Hr,weekdaysShort:rs,meridiemParse:sa},D={},We={},Re;function na(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s0;){if(a=ze(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&na(n,r)>=s-1)break;s--}t++}return Re}function oa(e){return!!(e&&e.match("^[^/\\\\]*$"))}function ze(e){var t=null,s;if(D[e]===void 0&&F&&F.exports&&oa(e))try{t=Re._abbr,s=so,s("./locale/"+e),oe(t)}catch{D[e]=null}return D[e]}function oe(e,t){var s;return e&&(k(t)?s=K(e):s=Mt(e,t),s?Re=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Re._abbr}function Mt(e,t){if(t!==null){var s,r=is;if(t.abbr=e,D[e]!=null)Vt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)r=D[t.parentLocale]._config;else if(s=ze(t.parentLocale),s!=null)r=s._config;else return We[t.parentLocale]||(We[t.parentLocale]=[]),We[t.parentLocale].push({name:e,config:t}),null;return D[e]=new ut(lt(r,t)),We[e]&&We[e].forEach(function(a){Mt(a.name,a.config)}),oe(e),D[e]}else return delete D[e],null}function la(e,t){if(t!=null){var s,r,a=is;D[e]!=null&&D[e].parentLocale!=null?D[e].set(lt(D[e]._config,t)):(r=ze(e),r!=null&&(a=r._config),t=lt(a,t),r==null&&(t.abbr=e),s=new ut(t),s.parentLocale=D[e],D[e]=s),oe(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===oe()&&oe(e)):D[e]!=null&&delete D[e]);return D[e]}function K(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Re;if(!b(e)){if(t=ze(e),t)return t;e=[e]}return ia(e)}function ua(){return dt(D)}function St(e){var t,s=e._a;return s&&m(e).overflow===-2&&(t=s[J]<0||s[J]>11?J:s[B]<1||s[B]>wt(s[N],s[J])?B:s[T]<0||s[T]>24||s[T]===24&&(s[V]!==0||s[Q]!==0||s[fe]!==0)?T:s[V]<0||s[V]>59?V:s[Q]<0||s[Q]>59?Q:s[fe]<0||s[fe]>999?fe:-1,m(e)._overflowDayOfYear&&(tB)&&(t=B),m(e)._overflowWeeks&&t===-1&&(t=cr),m(e)._overflowWeekday&&t===-1&&(t=mr),m(e).overflow=t),e}var da=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ha=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fa=/Z|[+-]\d\d(?::?\d\d)?/,Ze=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Dt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ca=/^\/?Date\((-?\d+)/i,ma=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_a={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ls(e){var t,s,r=e._i,a=da.exec(r)||ha.exec(r),n,i,u,f,y=Ze.length,W=Dt.length;if(a){for(m(e).iso=!0,t=0,s=y;tbe(i)||e._dayOfYear===0)&&(m(e)._overflowDayOfYear=!0),s=Ne(i,0,e._dayOfYear),e._a[J]=s.getUTCMonth(),e._a[B]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[T]===24&&e._a[V]===0&&e._a[Q]===0&&e._a[fe]===0&&(e._nextDay=!0,e._a[T]=0),e._d=(e._useUTC?Ne:xr).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[T]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(m(e).weekdayMismatch=!0)}}function Sa(e){var t,s,r,a,n,i,u,f,y;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=pe(t.GG,e._a[N],Pe(S(),1,4).year),r=pe(t.W,1),a=pe(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,y=Pe(S(),n,i),s=pe(t.gg,e._a[N],y.year),r=pe(t.w,y.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),r<1||r>X(s,n,i)?m(e)._overflowWeeks=!0:f!=null?m(e)._overflowWeekday=!0:(u=ss(s,r,a,n,i),e._a[N]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){},l.RFC_2822=function(){};function Ot(e){if(e._f===l.ISO_8601){ls(e);return}if(e._f===l.RFC_2822){us(e);return}e._a=[],m(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,f=0,y,W;for(a=Gt(e._f,e._locale).match(ht)||[],W=a.length,s=0;s0&&m(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),f+=r.length),ye[n]?(r?m(e).empty=!1:m(e).unusedTokens.push(n),fr(n,r,e)):e._strict&&!r&&m(e).unusedTokens.push(n);m(e).charsLeftOver=u-f,t.length>0&&m(e).unusedInput.push(t),e._a[T]<=12&&m(e).bigHour===!0&&e._a[T]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[T]=Da(e._locale,e._a[T],e._meridiem),y=m(e).era,y!==null&&(e._a[N]=e._locale.erasConvertYear(y,e._a[N])),Yt(e),St(e)}function Da(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Ya(e){var t,s,r,a,n,i,u=!1,f=e._f.length;if(f===0){m(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:Ce()});function fs(e,t){var s,r;if(t.length===1&&b(t[0])&&(t=t[0]),!t.length)return S();for(s=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function za(){if(!k(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ot(e,this),e=ds(e),e._a?(t=e._isUTC?$(e._a):S(e._a),this._isDSTShifted=this.isValid()&&Ia(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Za(){return this.isValid()?!this._isUTC:!1}function Ba(){return this.isValid()?this._isUTC:!1}function ms(){return this.isValid()?this._isUTC&&this._offset===0:!1}var qa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ja=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function G(e,t){var s=e,r=null,a,n,i;return qe(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:E(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=qa.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:_(r[B])*a,h:_(r[T])*a,m:_(r[V])*a,s:_(r[Q])*a,ms:_(Tt(r[fe]*1e3))*a}):(r=Ja.exec(e))?(a=r[1]==="-"?-1:1,s={y:ce(r[2],a),M:ce(r[3],a),w:ce(r[4],a),d:ce(r[5],a),h:ce(r[6],a),m:ce(r[7],a),s:ce(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=Qa(S(s.from),S(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Be(s),qe(e)&&c(e,"_locale")&&(n._locale=e._locale),qe(e)&&c(e,"_isValid")&&(n._isValid=e._isValid),n}G.fn=Be.prototype,G.invalid=La;function ce(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function _s(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Qa(e,t){var s;return e.isValid()&&t.isValid()?(t=xt(t,e),e.isBefore(t)?s=_s(e,t):(s=_s(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function ys(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Vt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=G(s,r),gs(this,a,e),this}}function gs(e,t,s,r){var a=t._milliseconds,n=Tt(t._days),i=Tt(t._months);e.isValid()&&(r=r??!0,i&&Kt(e,xe(e,"Month")+i*s),n&&Jt(e,"Date",xe(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Xa=ys(1,"add"),Ka=ys(-1,"subtract");function ws(e){return typeof e=="string"||e instanceof String}function en(e){return A(e)||he(e)||ws(e)||E(e)||sn(e)||tn(e)||e===null||e===void 0}function tn(e){var t=p(e)&&!H(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;as.valueOf():s.valueOf()9999?Ie(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ie(s,"Z")):Ie(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function wn(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Ie(this,e);return this.localeData().postformat(t)}function kn(e,t){return this.isValid()&&(A(e)&&e.isValid()||S(e).isValid())?G({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.from(S(),e)}function vn(e,t){return this.isValid()&&(A(e)&&e.isValid()||S(e).isValid())?G({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Mn(e){return this.to(S(),e)}function ks(e){var t;return e===void 0?this._locale._abbr:(t=K(e),t!=null&&(this._locale=t),this)}var ps=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function vs(){return this._locale}var Qe=1e3,ve=60*Qe,Xe=60*ve,Ms=(365*400+97)*24*Xe;function Me(e,t){return(e%t+t)%t}function Ss(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-Ms:new Date(e,t,s).valueOf()}function Ds(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-Ms:Date.UTC(e,t,s)}function Sn(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ds:Ss,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Me(t+(this._isUTC?0:this.utcOffset()*ve),Xe);break;case"minute":t=this._d.valueOf(),t-=Me(t,ve);break;case"second":t=this._d.valueOf(),t-=Me(t,Qe);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function Dn(e){var t,s;if(e=I(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?Ds:Ss,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Xe-Me(t+(this._isUTC?0:this.utcOffset()*ve),Xe)-1;break;case"minute":t=this._d.valueOf(),t+=ve-Me(t,ve)-1;break;case"second":t=this._d.valueOf(),t+=Qe-Me(t,Qe)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function Yn(){return this._d.valueOf()-(this._offset||0)*6e4}function On(){return Math.floor(this.valueOf()/1e3)}function Tn(){return new Date(this.valueOf())}function bn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Nn(){return this.isValid()?this.toISOString():null}function Pn(){return nt(this)}function Wn(){return ie({},m(this))}function Rn(){return m(this).overflow}function Fn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr"),h("NN",0,0,"eraAbbr"),h("NNN",0,0,"eraAbbr"),h("NNNN",0,0,"eraName"),h("NNNNN",0,0,"eraNarrow"),h("y",["y",1],"yo","eraYear"),h("y",["yy",2],0,"eraYear"),h("y",["yyy",3],0,"eraYear"),h("y",["yyyy",4],0,"eraYear"),d("N",Pt),d("NN",Pt),d("NNN",Pt),d("NNNN",$n),d("NNNNN",zn),v(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?m(s).era=a:m(s).invalidEra=e}),d("y",ge),d("yy",ge),d("yyy",ge),d("yyyy",ge),d("yo",Zn),v(["y","yy","yyy","yyyy"],N),v(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[N]=s._locale.eraYearOrdinalParse(e,a):t[N]=parseInt(e,10)});function Cn(e,t){var s,r,a,n=this._eras||K("en")._eras;for(s=0,r=n.length;s=0)return n[r]}function In(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function Un(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;en&&(t=n),ei.call(this,e,t,s,r,a))}function ei(e,t,s,r,a){var n=ss(e,t,s,r,a),i=Ne(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter"),d("Q",$t),v("Q",function(e,t){t[J]=(_(e)-1)*3});function ti(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date"),d("D",M,we),d("DD",M,C),d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),v(["D","DD"],B),v("Do",function(e,t){t[B]=_(e.match(M)[0])});var Os=ke("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear"),d("DDD",He),d("DDDD",zt),v(["DDD","DDDD"],function(e,t,s){s._dayOfYear=_(e)});function si(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute"),d("m",M,yt),d("mm",M,C),v(["m","mm"],V);var ri=ke("Minutes",!1);h("s",["ss",2],0,"second"),d("s",M,yt),d("ss",M,C),v(["s","ss"],Q);var ai=ke("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)}),h(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),h(0,["SSS",3],0,"millisecond"),h(0,["SSSS",4],0,function(){return this.millisecond()*10}),h(0,["SSSSS",5],0,function(){return this.millisecond()*100}),h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),d("S",He,$t),d("SS",He,C),d("SSS",He,zt);var le,Ts;for(le="SSSS";le.length<=9;le+="S")d(le,ge);function ni(e,t){t[fe]=_(("0."+e)*1e3)}for(le="S";le.length<=9;le+="S")v(le,ni);Ts=ke("Milliseconds",!1),h("z",0,0,"zoneAbbr"),h("zz",0,0,"zoneName");function ii(){return this._isUTC?"UTC":""}function oi(){return this._isUTC?"Coordinated Universal Time":""}var o=Ye.prototype;o.add=Xa,o.calendar=nn,o.clone=on,o.diff=mn,o.endOf=Dn,o.format=wn,o.from=kn,o.fromNow=pn,o.to=vn,o.toNow=Mn,o.get=yr,o.invalidAt=Rn,o.isAfter=ln,o.isBefore=un,o.isBetween=dn,o.isSame=hn,o.isSameOrAfter=fn,o.isSameOrBefore=cn,o.isValid=Pn,o.lang=ps,o.locale=ks,o.localeData=vs,o.max=Na,o.min=xa,o.parsingFlags=Wn,o.set=gr,o.startOf=Sn,o.subtract=Ka,o.toArray=bn,o.toObject=xn,o.toDate=Tn,o.toISOString=yn,o.inspect=gn,typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),o.toJSON=Nn,o.toString=_n,o.unix=On,o.valueOf=Yn,o.creationData=Fn,o.eraName=Un,o.eraNarrow=Hn,o.eraAbbr=En,o.eraYear=An,o.year=qt,o.isLeapYear=_r,o.weekYear=Bn,o.isoWeekYear=qn,o.quarter=o.quarters=ti,o.month=es,o.daysInMonth=Or,o.week=o.weeks=Fr,o.isoWeek=o.isoWeeks=Cr,o.weeksInYear=Xn,o.weeksInWeekYear=Kn,o.isoWeeksInYear=Jn,o.isoWeeksInISOWeekYear=Qn,o.date=Os,o.day=o.days=Br,o.weekday=qr,o.isoWeekday=Jr,o.dayOfYear=si,o.hour=o.hours=ra,o.minute=o.minutes=ri,o.second=o.seconds=ai,o.millisecond=o.milliseconds=Ts,o.utcOffset=Ha,o.utc=Aa,o.local=Va,o.parseZone=Ga,o.hasAlignedHourOffset=ja,o.isDST=$a,o.isLocal=Za,o.isUtcOffset=Ba,o.isUtc=ms,o.isUTC=ms,o.zoneAbbr=ii,o.zoneName=oi,o.dates=L("dates accessor is deprecated. Use date instead.",Os),o.months=L("months accessor is deprecated. Use month instead",es),o.years=L("years accessor is deprecated. Use year instead",qt),o.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ea),o.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",za);function li(e){return S(e*1e3)}function ui(){return S.apply(null,arguments).parseZone()}function bs(e){return e}var w=ut.prototype;w.calendar=Zs,w.longDateFormat=Qs,w.invalidDate=Ks,w.ordinal=sr,w.preparse=bs,w.postformat=bs,w.relativeTime=ar,w.pastFuture=nr,w.set=$s,w.eras=Cn,w.erasParse=Ln,w.erasConvertYear=In,w.erasAbbrRegex=Gn,w.erasNameRegex=Vn,w.erasNarrowRegex=jn,w.months=Mr,w.monthsShort=Sr,w.monthsParse=Yr,w.monthsRegex=br,w.monthsShortRegex=Tr,w.week=Nr,w.firstDayOfYear=Rr,w.firstDayOfWeek=Wr,w.weekdays=Gr,w.weekdaysMin=$r,w.weekdaysShort=jr,w.weekdaysParse=Zr,w.weekdaysRegex=Qr,w.weekdaysShortRegex=Xr,w.weekdaysMinRegex=Kr,w.isPM=ta,w.meridiem=aa;function et(e,t,s,r){var a=K(),n=$().set(r,t);return a[s](n,e)}function xs(e,t,s){if(E(e)&&(t=e,e=void 0),e=e||"",t!=null)return et(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=et(e,r,s,"month");return a}function Rt(e,t,s,r){typeof e=="boolean"?(E(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,E(t)&&(s=t,t=void 0),t=t||"");var a=K(),n=e?a._week.dow:0,i,u=[];if(s!=null)return et(t,(s+n)%7,r,"day");for(i=0;i<7;i++)u[i]=et(t,(i+n)%7,r,"day");return u}function di(e,t){return xs(e,t,"months")}function hi(e,t){return xs(e,t,"monthsShort")}function fi(e,t,s){return Rt(e,t,s,"weekdays")}function ci(e,t,s){return Rt(e,t,s,"weekdaysShort")}function mi(e,t,s){return Rt(e,t,s,"weekdaysMin")}oe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=_(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}}),l.lang=L("moment.lang is deprecated. Use moment.locale instead.",oe),l.langData=L("moment.langData is deprecated. Use moment.localeData instead.",K);var ee=Math.abs;function _i(){var e=this._data;return this._milliseconds=ee(this._milliseconds),this._days=ee(this._days),this._months=ee(this._months),e.milliseconds=ee(e.milliseconds),e.seconds=ee(e.seconds),e.minutes=ee(e.minutes),e.hours=ee(e.hours),e.months=ee(e.months),e.years=ee(e.years),this}function Ns(e,t,s,r){var a=G(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function yi(e,t){return Ns(this,e,t,1)}function gi(e,t){return Ns(this,e,t,-1)}function Ps(e){return e<0?Math.floor(e):Math.ceil(e)}function wi(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,u,f;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=Ps(Ft(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=U(e/1e3),r.seconds=a%60,n=U(a/60),r.minutes=n%60,i=U(n/60),r.hours=i%24,t+=U(i/24),f=U(Ws(t)),s+=f,t-=Ps(Ft(f)),u=U(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function Ws(e){return e*4800/146097}function Ft(e){return e*146097/4800}function ki(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=I(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Ws(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Ft(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function te(e){return function(){return this.as(e)}}var Rs=te("ms"),pi=te("s"),vi=te("m"),Mi=te("h"),Si=te("d"),Di=te("w"),Yi=te("M"),Oi=te("Q"),Ti=te("y"),bi=Rs;function xi(){return G(this)}function Ni(e){return e=I(e),this.isValid()?this[e+"s"]():NaN}function me(e){return function(){return this.isValid()?this._data[e]:NaN}}var Pi=me("milliseconds"),Wi=me("seconds"),Ri=me("minutes"),Fi=me("hours"),Ci=me("days"),Li=me("months"),Ii=me("years");function Ui(){return U(this.days()/7)}var se=Math.round,Se={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Hi(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function Ei(e,t,s,r){var a=G(e).abs(),n=se(a.as("s")),i=se(a.as("m")),u=se(a.as("h")),f=se(a.as("d")),y=se(a.as("M")),W=se(a.as("w")),re=se(a.as("y")),ue=n<=s.ss&&["s",n]||n0,ue[4]=r,Hi.apply(null,ue)}function Ai(e){return e===void 0?se:typeof e=="function"?(se=e,!0):!1}function Vi(e,t){return Se[e]===void 0?!1:t===void 0?Se[e]:(Se[e]=t,e==="s"&&(Se.ss=t-1),!0)}function Gi(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=Se,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},Se,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=Ei(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var Ct=Math.abs;function De(e){return(e>0)-(e<0)||+e}function tt(){if(!this.isValid())return this.localeData().invalidDate();var e=Ct(this._milliseconds)/1e3,t=Ct(this._days),s=Ct(this._months),r,a,n,i,u=this.asSeconds(),f,y,W,re;return u?(r=U(e/60),a=U(r/60),e%=60,r%=60,n=U(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",y=De(this._months)!==De(u)?"-":"",W=De(this._days)!==De(u)?"-":"",re=De(this._milliseconds)!==De(u)?"-":"",f+"P"+(n?y+n+"Y":"")+(s?y+s+"M":"")+(t?W+t+"D":"")+(a||r||e?"T":"")+(a?re+a+"H":"")+(r?re+r+"M":"")+(e?re+i+"S":"")):"P0D"}var g=Be.prototype;g.isValid=Ca,g.abs=_i,g.add=yi,g.subtract=gi,g.as=ki,g.asMilliseconds=Rs,g.asSeconds=pi,g.asMinutes=vi,g.asHours=Mi,g.asDays=Si,g.asWeeks=Di,g.asMonths=Yi,g.asQuarters=Oi,g.asYears=Ti,g.valueOf=bi,g._bubble=wi,g.clone=xi,g.get=Ni,g.milliseconds=Pi,g.seconds=Wi,g.minutes=Ri,g.hours=Fi,g.days=Ci,g.weeks=Ui,g.months=Li,g.years=Ii,g.humanize=Gi,g.toISOString=tt,g.toString=tt,g.toJSON=tt,g.locale=ks,g.localeData=vs,g.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",tt),g.lang=ps,h("X",0,0,"unix"),h("x",0,0,"valueOf"),d("x",Ae),d("X",ur),v("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)}),v("x",function(e,t,s){s._d=new Date(_(e))});//! moment.js diff --git a/assets/Friends-DnfLZaPx.js b/assets/Friends-DTGzMD4D.js similarity index 94% rename from assets/Friends-DnfLZaPx.js rename to assets/Friends-DTGzMD4D.js index 235f722..a157d79 100644 --- a/assets/Friends-DnfLZaPx.js +++ b/assets/Friends-DTGzMD4D.js @@ -1 +1 @@ -var m=Object.defineProperty;var F=(s,n,e)=>n in s?m(s,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[n]=e;var f=(s,n,e)=>F(s,typeof n!="symbol"?n+"":n,e);import{V as g,h as u,I as C,C as $,_ as B,c as o,F as _,r as b,f as E,o as c,a,m as S,t as y,n as k,p as w,g as j,l as p}from"./index-DjertsXM.js";import{s as I}from"./utils-DMoCDHuU.js";var O=Object.defineProperty,V=Object.getOwnPropertyDescriptor,D=(s,n,e,t)=>{for(var i=t>1?void 0:t?V(n,e):n,d=s.length-1,r;d>=0;d--)(r=s[d])&&(i=(t?r(n,e,i):r(i))||i);return t&&i&&O(n,e,i),i};const P=new Set(["name","avatar","banner","desc"]),v={blog:"fas fa-book"};let l=class extends g{constructor(){super(...arguments);f(this,"friends",[])}async created(){this.friends=await(await fetch(`${u.content}/content/generated/friends/friends.json`)).json(),this.friends.forEach(e=>{e.avatar.startsWith("http")||(e.avatar=`${u.content}/${e.avatar}`),e.banner&&!e.banner.startsWith("http")&&(e.banner=`${u.content}/${e.banner}`)}),this.friends=I(this.friends)}bgStyle(e){return e.banner?{"background-image":`url("${e.banner}")`}:{}}getFriendLinks(e){return Object.entries(e).filter(t=>!P.has(t[0].toString())).map(t=>({link:t[1],icon:C.includes(t[0])?`fab fa-${t[0]}`:t[0]in v?v[t[0]]:t[0]}))}};l=D([$],l);const L=s=>(w("data-v-3d22b004"),s=s(),j(),s),N={id:"Friends",class:"general-page"},x=L(()=>a("div",{class:"title"},[a("h2",null,"朋友们"),a("div",{class:"subtitle"},[p(" 是小桂桂的朋友们(欢迎补充"),a("br"),p(" 每次刷新都会打乱顺序! ")])],-1)),z={key:0,class:"friends"},A=["src"],W={class:"info"},T={class:"name unselectable"},q={class:"links"},G=["href"];function H(s,n,e,t,i,d){return c(),o("div",N,[x,s.friends?(c(),o("div",z,[(c(!0),o(_,null,b(s.friends,r=>(c(),o("div",{class:"friend card",key:r.name},[a("div",{class:"banner",style:S(s.bgStyle(r))},null,4),a("img",{class:"avatar",src:r.avatar,alt:""},null,8,A),a("div",W,[a("div",T,y(r.name),1),a("div",q,[(c(!0),o(_,null,b(s.getFriendLinks(r),h=>(c(),o("a",{href:h.link},[a("i",{class:k(h.icon)},null,2)],8,G))),256))])])]))),128))])):E("",!0)])}const R=B(l,[["render",H],["__scopeId","data-v-3d22b004"]]);export{R as default}; +var m=Object.defineProperty;var F=(s,n,e)=>n in s?m(s,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[n]=e;var f=(s,n,e)=>F(s,typeof n!="symbol"?n+"":n,e);import{V as g,h as u,I as C,C as $,_ as B,c as o,F as _,r as b,f as E,o as c,a,m as S,t as y,n as k,p as w,g as j,l as p}from"./index-CY8g26_C.js";import{s as I}from"./utils-DltlUubN.js";var O=Object.defineProperty,V=Object.getOwnPropertyDescriptor,D=(s,n,e,t)=>{for(var i=t>1?void 0:t?V(n,e):n,d=s.length-1,r;d>=0;d--)(r=s[d])&&(i=(t?r(n,e,i):r(i))||i);return t&&i&&O(n,e,i),i};const P=new Set(["name","avatar","banner","desc"]),v={blog:"fas fa-book"};let l=class extends g{constructor(){super(...arguments);f(this,"friends",[])}async created(){this.friends=await(await fetch(`${u.content}/content/generated/friends/friends.json`)).json(),this.friends.forEach(e=>{e.avatar.startsWith("http")||(e.avatar=`${u.content}/${e.avatar}`),e.banner&&!e.banner.startsWith("http")&&(e.banner=`${u.content}/${e.banner}`)}),this.friends=I(this.friends)}bgStyle(e){return e.banner?{"background-image":`url("${e.banner}")`}:{}}getFriendLinks(e){return Object.entries(e).filter(t=>!P.has(t[0].toString())).map(t=>({link:t[1],icon:C.includes(t[0])?`fab fa-${t[0]}`:t[0]in v?v[t[0]]:t[0]}))}};l=D([$],l);const L=s=>(w("data-v-3d22b004"),s=s(),j(),s),N={id:"Friends",class:"general-page"},x=L(()=>a("div",{class:"title"},[a("h2",null,"朋友们"),a("div",{class:"subtitle"},[p(" 是小桂桂的朋友们(欢迎补充"),a("br"),p(" 每次刷新都会打乱顺序! ")])],-1)),z={key:0,class:"friends"},A=["src"],W={class:"info"},T={class:"name unselectable"},q={class:"links"},G=["href"];function H(s,n,e,t,i,d){return c(),o("div",N,[x,s.friends?(c(),o("div",z,[(c(!0),o(_,null,b(s.friends,r=>(c(),o("div",{class:"friend card",key:r.name},[a("div",{class:"banner",style:S(s.bgStyle(r))},null,4),a("img",{class:"avatar",src:r.avatar,alt:""},null,8,A),a("div",W,[a("div",T,y(r.name),1),a("div",q,[(c(!0),o(_,null,b(s.getFriendLinks(r),h=>(c(),o("a",{href:h.link},[a("i",{class:k(h.icon)},null,2)],8,G))),256))])])]))),128))])):E("",!0)])}const R=B(l,[["render",H],["__scopeId","data-v-3d22b004"]]);export{R as default}; diff --git a/assets/Life-Cmxky2ql.js b/assets/Life-DXD9PuiT.js similarity index 99% rename from assets/Life-Cmxky2ql.js rename to assets/Life-DXD9PuiT.js index cece266..3cf7198 100644 --- a/assets/Life-Cmxky2ql.js +++ b/assets/Life-DXD9PuiT.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Location-20aeb1c0-gTwkNJeK.js","assets/index-DjertsXM.js","assets/index-DyYbJW4m.css","assets/Poll-ee42f803-DCZkljGB.js","assets/VideoPlayer-328c0f9f-BW-JfgPD.js"])))=>i.map(i=>d[i]); -import{j as Xn,k as ei,b as _t,o as L,c as H,a as N,i as Ae,f as ee,t as ge,n as je,e as mt,F as ar,l as rn,m as fi,r as pi,q as tc,s as Ps,v as nc,u as rc,x as Ls,p as bn,g as wn,y as Rs,z as ic,A as sc,w as oc,_ as ac}from"./index-DjertsXM.js";var lc=Object.defineProperty,cc=(e,t,n)=>t in e?lc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t,n)=>(cc(e,typeof t!="symbol"?t+"":t,n),n),js;const Cr=typeof window<"u";Cr&&(js=window==null?void 0:window.navigator)!=null&&js.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const qs=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},uc=(e,t)=>Math.abs(qs(e)-qs(t)),hc=e=>typeof e=="function",dc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fc=/-(\w)/g,pc=dc(e=>e.replace(fc,(t,n)=>n?n.toUpperCase():""));var mc=typeof global=="object"&&global&&global.Object===Object&&global;const gc=mc;var yc=typeof self=="object"&&self&&self.Object===Object&&self,bc=gc||yc||Function("return this")();const jo=bc;var wc=jo.Symbol;const lr=wc;var qo=Object.prototype,vc=qo.hasOwnProperty,xc=qo.toString,Jt=lr?lr.toStringTag:void 0;function kc(e){var t=vc.call(e,Jt),n=e[Jt];try{e[Jt]=void 0;var r=!0}catch{}var i=xc.call(e);return r&&(t?e[Jt]=n:delete e[Jt]),i}var _c=Object.prototype,Sc=_c.toString;function Tc(e){return Sc.call(e)}var Oc="[object Null]",Ec="[object Undefined]",Us=lr?lr.toStringTag:void 0;function Cc(e){return e==null?e===void 0?Ec:Oc:Us&&Us in Object(e)?kc(e):Tc(e)}function Ac(e){return e!=null&&typeof e=="object"}var Dc="[object Symbol]";function Mc(e){return typeof e=="symbol"||Ac(e)&&Cc(e)==Dc}var Nc=/\s/;function Ic(e){for(var t=e.length;t--&&Nc.test(e.charAt(t)););return t}var Pc=/^\s+/;function Lc(e){return e&&e.slice(0,Ic(e)+1).replace(Pc,"")}function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bs=NaN,Rc=/^[-+]0x[0-9a-f]+$/i,jc=/^0b[01]+$/i,qc=/^0o[0-7]+$/i,Uc=parseInt;function Ys(e){if(typeof e=="number")return e;if(Mc(e))return Bs;if(cr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lc(e);var n=jc.test(e);return n||qc.test(e)?Uc(e.slice(2),n?2:8):Rc.test(e)?Bs:+e}var Bc=function(){return jo.Date.now()};const ti=Bc;var Yc="Expected a function",Hc=Math.max,zc=Math.min;function Vc(e,t,n){var r,i,s,o,a,l,u=0,d=!1,f=!1,c=!0;if(typeof e!="function")throw new TypeError(Yc);t=Ys(t)||0,cr(n)&&(d=!!n.leading,f="maxWait"in n,s=f?Hc(Ys(n.maxWait)||0,t):s,c="trailing"in n?!!n.trailing:c);function h(P){var $=r,G=i;return r=i=void 0,u=P,o=e.apply(G,$),o}function b(P){return u=P,a=setTimeout(S,t),d?h(P):o}function g(P){var $=P-l,G=P-u,de=t-$;return f?zc(de,s-G):de}function y(P){var $=P-l,G=P-u;return l===void 0||$>=t||$<0||f&&G>=s}function S(){var P=ti();if(y(P))return C(P);a=setTimeout(S,g(P))}function C(P){return a=void 0,c&&r?h(P):(r=i=void 0,o)}function k(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function T(){return a===void 0?o:C(ti())}function M(){var P=ti(),$=y(P);if(r=arguments,i=this,l=P,$){if(a===void 0)return b(l);if(f)return clearTimeout(a),a=setTimeout(S,t),h(l)}return a===void 0&&(a=setTimeout(S,t)),o}return M.cancel=k,M.flush=T,M}var Fc="Expected a function";function Hs(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Fc);return cr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vc(e,t,{leading:r,maxWait:t,trailing:i})}class $c extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Wc(e,t){throw new $c(`[${e}] ${t}`)}const Gc=(e,t)=>{var n;if(!Cr||!e||!t)return"";let r=pc(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[r]:""}catch{return e.style[r]}},Zc=(e,t)=>{if(!Cr)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Gc(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},Qc=(e,t)=>{if(!Cr)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Zc(n,t))return n;n=n.parentNode}return n};var Y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}const qe="ElInfiniteScroll",Kc=50,eu=200,tu=0,nu={delay:{type:Number,default:eu},distance:{type:Number,default:tu},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Fi=(e,t)=>Object.entries(nu).reduce((n,[r,i])=>{var s,o;const{type:a,default:l}=i,u=e.getAttribute(`infinite-scroll-${r}`);let d=(o=(s=t[u])!=null?s:u)!=null?o:l;return d=d==="false"?!1:d,d=a(d),n[r]=Number.isNaN(d)?l:d,n},{}),Uo=e=>{const{observer:t}=e[qe];t&&(t.disconnect(),delete e[qe].observer)},ru=(e,t)=>{const{container:n,containerEl:r,instance:i,observer:s,lastScrollTop:o}=e[qe],{disabled:a,distance:l}=Fi(e,i),{clientHeight:u,scrollHeight:d,scrollTop:f}=r,c=f-o;if(e[qe].lastScrollTop=f,s||a||c<0)return;let h=!1;if(n===e)h=d-(u+f)<=l;else{const{clientTop:b,scrollHeight:g}=e,y=uc(e,r);h=f+u>=y+b+g-l}h&&t.call(i)};function ni(e,t){const{containerEl:n,instance:r}=e[qe],{disabled:i}=Fi(e,r);i||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):Uo(e))}const iu={async mounted(e,t){const{instance:n,value:r}=t;hc(r)||Wc(qe,"'v-infinite-scroll' binding value must be a function"),await Rs();const{delay:i,immediate:s}=Fi(e,n),o=Qc(e,!0),a=o===window?document.documentElement:o,l=Hs(ru.bind(null,e,r),i);if(o){if(e[qe]={instance:n,container:o,containerEl:a,delay:i,cb:r,onScroll:l,lastScrollTop:a.scrollTop},s){const u=new MutationObserver(Hs(ni.bind(null,e,r),Kc));e[qe].observer=u,u.observe(e,{childList:!0,subtree:!0}),ni(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[qe];t==null||t.removeEventListener("scroll",n),Uo(e)},async updated(e){if(!e[qe])await Rs();else{const{containerEl:t,cb:n,observer:r}=e[qe];t.clientHeight&&r&&ni(e,n)}}},mi=iu;mi.install=e=>{e.directive("InfiniteScroll",mi)};const su=mi,ou={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},au=N("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0c.41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5S14 7.01 14 9.5S11.99 14 9.5 14z"},null,-1),lu=[au];function cu(e,t){return L(),H("svg",ou,lu)}const uu={name:"ic-round-search",render:cu};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Location-20aeb1c0-C8VwBkgr.js","assets/index-CY8g26_C.js","assets/index-DyYbJW4m.css","assets/Poll-ee42f803-CjE9lbzE.js","assets/VideoPlayer-328c0f9f-C8ZAoKiP.js"])))=>i.map(i=>d[i]); +import{j as Xn,k as ei,b as _t,o as L,c as H,a as N,i as Ae,f as ee,t as ge,n as je,e as mt,F as ar,l as rn,m as fi,r as pi,q as tc,s as Ps,v as nc,u as rc,x as Ls,p as bn,g as wn,y as Rs,z as ic,A as sc,w as oc,_ as ac}from"./index-CY8g26_C.js";var lc=Object.defineProperty,cc=(e,t,n)=>t in e?lc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J=(e,t,n)=>(cc(e,typeof t!="symbol"?t+"":t,n),n),js;const Cr=typeof window<"u";Cr&&(js=window==null?void 0:window.navigator)!=null&&js.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const qs=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},uc=(e,t)=>Math.abs(qs(e)-qs(t)),hc=e=>typeof e=="function",dc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fc=/-(\w)/g,pc=dc(e=>e.replace(fc,(t,n)=>n?n.toUpperCase():""));var mc=typeof global=="object"&&global&&global.Object===Object&&global;const gc=mc;var yc=typeof self=="object"&&self&&self.Object===Object&&self,bc=gc||yc||Function("return this")();const jo=bc;var wc=jo.Symbol;const lr=wc;var qo=Object.prototype,vc=qo.hasOwnProperty,xc=qo.toString,Jt=lr?lr.toStringTag:void 0;function kc(e){var t=vc.call(e,Jt),n=e[Jt];try{e[Jt]=void 0;var r=!0}catch{}var i=xc.call(e);return r&&(t?e[Jt]=n:delete e[Jt]),i}var _c=Object.prototype,Sc=_c.toString;function Tc(e){return Sc.call(e)}var Oc="[object Null]",Ec="[object Undefined]",Us=lr?lr.toStringTag:void 0;function Cc(e){return e==null?e===void 0?Ec:Oc:Us&&Us in Object(e)?kc(e):Tc(e)}function Ac(e){return e!=null&&typeof e=="object"}var Dc="[object Symbol]";function Mc(e){return typeof e=="symbol"||Ac(e)&&Cc(e)==Dc}var Nc=/\s/;function Ic(e){for(var t=e.length;t--&&Nc.test(e.charAt(t)););return t}var Pc=/^\s+/;function Lc(e){return e&&e.slice(0,Ic(e)+1).replace(Pc,"")}function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Bs=NaN,Rc=/^[-+]0x[0-9a-f]+$/i,jc=/^0b[01]+$/i,qc=/^0o[0-7]+$/i,Uc=parseInt;function Ys(e){if(typeof e=="number")return e;if(Mc(e))return Bs;if(cr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Lc(e);var n=jc.test(e);return n||qc.test(e)?Uc(e.slice(2),n?2:8):Rc.test(e)?Bs:+e}var Bc=function(){return jo.Date.now()};const ti=Bc;var Yc="Expected a function",Hc=Math.max,zc=Math.min;function Vc(e,t,n){var r,i,s,o,a,l,u=0,d=!1,f=!1,c=!0;if(typeof e!="function")throw new TypeError(Yc);t=Ys(t)||0,cr(n)&&(d=!!n.leading,f="maxWait"in n,s=f?Hc(Ys(n.maxWait)||0,t):s,c="trailing"in n?!!n.trailing:c);function h(P){var $=r,G=i;return r=i=void 0,u=P,o=e.apply(G,$),o}function b(P){return u=P,a=setTimeout(S,t),d?h(P):o}function g(P){var $=P-l,G=P-u,de=t-$;return f?zc(de,s-G):de}function y(P){var $=P-l,G=P-u;return l===void 0||$>=t||$<0||f&&G>=s}function S(){var P=ti();if(y(P))return C(P);a=setTimeout(S,g(P))}function C(P){return a=void 0,c&&r?h(P):(r=i=void 0,o)}function k(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function T(){return a===void 0?o:C(ti())}function M(){var P=ti(),$=y(P);if(r=arguments,i=this,l=P,$){if(a===void 0)return b(l);if(f)return clearTimeout(a),a=setTimeout(S,t),h(l)}return a===void 0&&(a=setTimeout(S,t)),o}return M.cancel=k,M.flush=T,M}var Fc="Expected a function";function Hs(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Fc);return cr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Vc(e,t,{leading:r,maxWait:t,trailing:i})}class $c extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Wc(e,t){throw new $c(`[${e}] ${t}`)}const Gc=(e,t)=>{var n;if(!Cr||!e||!t)return"";let r=pc(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const s=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return s?s[r]:""}catch{return e.style[r]}},Zc=(e,t)=>{if(!Cr)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Gc(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},Qc=(e,t)=>{if(!Cr)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Zc(n,t))return n;n=n.parentNode}return n};var Y=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var s=Function.bind.apply(t,i);return new s}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}const qe="ElInfiniteScroll",Kc=50,eu=200,tu=0,nu={delay:{type:Number,default:eu},distance:{type:Number,default:tu},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Fi=(e,t)=>Object.entries(nu).reduce((n,[r,i])=>{var s,o;const{type:a,default:l}=i,u=e.getAttribute(`infinite-scroll-${r}`);let d=(o=(s=t[u])!=null?s:u)!=null?o:l;return d=d==="false"?!1:d,d=a(d),n[r]=Number.isNaN(d)?l:d,n},{}),Uo=e=>{const{observer:t}=e[qe];t&&(t.disconnect(),delete e[qe].observer)},ru=(e,t)=>{const{container:n,containerEl:r,instance:i,observer:s,lastScrollTop:o}=e[qe],{disabled:a,distance:l}=Fi(e,i),{clientHeight:u,scrollHeight:d,scrollTop:f}=r,c=f-o;if(e[qe].lastScrollTop=f,s||a||c<0)return;let h=!1;if(n===e)h=d-(u+f)<=l;else{const{clientTop:b,scrollHeight:g}=e,y=uc(e,r);h=f+u>=y+b+g-l}h&&t.call(i)};function ni(e,t){const{containerEl:n,instance:r}=e[qe],{disabled:i}=Fi(e,r);i||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):Uo(e))}const iu={async mounted(e,t){const{instance:n,value:r}=t;hc(r)||Wc(qe,"'v-infinite-scroll' binding value must be a function"),await Rs();const{delay:i,immediate:s}=Fi(e,n),o=Qc(e,!0),a=o===window?document.documentElement:o,l=Hs(ru.bind(null,e,r),i);if(o){if(e[qe]={instance:n,container:o,containerEl:a,delay:i,cb:r,onScroll:l,lastScrollTop:a.scrollTop},s){const u=new MutationObserver(Hs(ni.bind(null,e,r),Kc));e[qe].observer=u,u.observe(e,{childList:!0,subtree:!0}),ni(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[qe];t==null||t.removeEventListener("scroll",n),Uo(e)},async updated(e){if(!e[qe])await Rs();else{const{containerEl:t,cb:n,observer:r}=e[qe];t.clientHeight&&r&&ni(e,n)}}},mi=iu;mi.install=e=>{e.directive("InfiniteScroll",mi)};const su=mi,ou={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},au=N("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0c.41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5S14 7.01 14 9.5S11.99 14 9.5 14z"},null,-1),lu=[au];function cu(e,t){return L(),H("svg",ou,lu)}const uu={name:"ic-round-search",render:cu};/** * vue-class-component v8.0.0-rc.1 * (c) 2015-present Evan You * @license MIT @@ -13,7 +13,7 @@ var Yo;function O(){return Yo.apply(null,arguments)}function Ou(e){Yo=e}function [`+s+"] ";for(o in arguments[0])Z(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[s];r.push(i)}zo(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var $s={};function Vo(e,t){O.deprecationHandler!=null&&O.deprecationHandler(e,t),$s[e]||(zo(t),$s[e]=!0)}O.suppressDeprecationWarnings=!1;O.deprecationHandler=null;function Ze(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Cu(e){var t,n;for(n in e)Z(e,n)&&(t=e[n],Ze(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function wi(e,t){var n=ht({},e),r;for(r in t)Z(t,r)&&(St(e[r])&&St(t[r])?(n[r]={},ht(n[r],e[r]),ht(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)Z(e,r)&&!Z(t,r)&&St(e[r])&&(n[r]=ht({},n[r]));return n}function Zi(e){e!=null&&this.set(e)}var vi;Object.keys?vi=Object.keys:vi=function(e){var t,n=[];for(t in e)Z(e,t)&&n.push(t);return n};var Au={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Du(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Ze(r)?r.call(t,n):r}function We(e,t,n){var r=""+Math.abs(e),i=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Qi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,qn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,si={},Ut={};function R(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Ut[e]=i),t&&(Ut[t[0]]=function(){return We(i.apply(this,arguments),t[1],t[2])}),n&&(Ut[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Mu(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Nu(e){var t=e.match(Qi),n,r;for(n=0,r=t.length;n=0&&qn.test(e);)e=e.replace(qn,r),qn.lastIndex=0,n-=1;return e}var Iu={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Pu(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Qi).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Lu="Invalid date";function Ru(){return this._invalidDate}var ju="%d",qu=/\d{1,2}/;function Uu(e){return this._ordinal.replace("%d",e)}var Bu={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Yu(e,t,n,r){var i=this._relativeTime[n];return Ze(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Hu(e,t){var n=this._relativeTime[e>0?"future":"past"];return Ze(n)?n(t):n.replace(/%s/i,t)}var sn={};function ve(e,t){var n=e.toLowerCase();sn[n]=sn[n+"s"]=sn[t]=e}function Le(e){return typeof e=="string"?sn[e]||sn[e.toLowerCase()]:void 0}function Ji(e){var t={},n,r;for(r in e)Z(e,r)&&(n=Le(r),n&&(t[n]=e[r]));return t}var $o={};function xe(e,t){$o[e]=t}function zu(e){var t=[],n;for(n in e)Z(e,n)&&t.push({unit:n,priority:$o[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}function Mr(e){return e%4===0&&e%100!==0||e%400===0}function Ie(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ie(t)),n}function Gt(e,t){return function(n){return n!=null?(Wo(this,e,n),O.updateOffset(this,t),this):hr(this,e)}}function hr(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Wo(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&Mr(e.year())&&e.month()===1&&e.date()===29?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),jr(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Vu(e){return e=Le(e),Ze(this[e])?this[e]():this}function Fu(e,t){if(typeof e=="object"){e=Ji(e);var n=zu(e),r,i=n.length;for(r=0;r68?1900:2e3)};var ra=Gt("FullYear",!0);function uh(){return Mr(this.year())}function hh(e,t,n,r,i,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),a}function ln(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function fr(e,t,n){var r=7+t-n,i=(7+ln(e,0,r).getUTCDay()-t)%7;return-i+r-1}function ia(e,t,n,r,i){var s=(7+n-r)%7,o=fr(e,r,i),a=1+7*(t-1)+s+o,l,u;return a<=0?(l=e-1,u=on(l)+a):a>on(e)?(l=e+1,u=a-on(e)):(l=e,u=a),{year:l,dayOfYear:u}}function cn(e,t,n){var r=fr(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,s,o;return i<1?(o=e.year()-1,s=i+it(o,t,n)):i>it(e.year(),t,n)?(s=i-it(e.year(),t,n),o=e.year()+1):(o=e.year(),s=i),{week:s,year:o}}function it(e,t,n){var r=fr(e,t,n),i=fr(e+1,t,n);return(on(e)-r+i)/7}R("w",["ww",2],"wo","week");R("W",["WW",2],"Wo","isoWeek");ve("week","w");ve("isoWeek","W");xe("week",5);xe("isoWeek",5);A("w",ce);A("ww",ce,Ne);A("W",ce);A("WW",ce,Ne);Sn(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=V(e)});function dh(e){return cn(e,this._week.dow,this._week.doy).week}var fh={dow:0,doy:6};function ph(){return this._week.dow}function mh(){return this._week.doy}function gh(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function yh(e){var t=cn(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}R("d",0,"do","day");R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});R("e",0,0,"weekday");R("E",0,0,"isoWeekday");ve("day","d");ve("weekday","e");ve("isoWeekday","E");xe("day",11);xe("weekday",11);xe("isoWeekday",11);A("d",ce);A("e",ce);A("E",ce);A("dd",function(e,t){return t.weekdaysMinRegex(e)});A("ddd",function(e,t){return t.weekdaysShortRegex(e)});A("dddd",function(e,t){return t.weekdaysRegex(e)});Sn(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:z(n).invalidWeekday=e});Sn(["d","e","E"],function(e,t,n,r){t[r]=V(e)});function bh(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function wh(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function es(e,t){return e.slice(t,7).concat(e.slice(0,t))}var vh="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),sa="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xh="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kh=_n,_h=_n,Sh=_n;function Th(e,t){var n=Be(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?es(n,this._week.dow):e?n[e.day()]:n}function Oh(e){return e===!0?es(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Eh(e){return e===!0?es(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ch(e,t,n){var r,i,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=Ge([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(i=he.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=he.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=he.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=he.call(this._weekdaysParse,o),i!==-1||(i=he.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=he.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=he.call(this._shortWeekdaysParse,o),i!==-1||(i=he.call(this._weekdaysParse,o),i!==-1)?i:(i=he.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=he.call(this._minWeekdaysParse,o),i!==-1||(i=he.call(this._weekdaysParse,o),i!==-1)?i:(i=he.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function Ah(e,t,n){var r,i,s;if(this._weekdaysParseExact)return Ch.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if(i=Ge([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e)||n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e)||n&&t==="dd"&&this._minWeekdaysParse[r].test(e)||!n&&this._weekdaysParse[r].test(e))return r}function Dh(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=bh(e,this.localeData()),this.add(e-t,"d")):t}function Mh(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Nh(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=wh(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ih(e){return this._weekdaysParseExact?(Z(this,"_weekdaysRegex")||ts.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Z(this,"_weekdaysRegex")||(this._weekdaysRegex=kh),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ph(e){return this._weekdaysParseExact?(Z(this,"_weekdaysRegex")||ts.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Z(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_h),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Lh(e){return this._weekdaysParseExact?(Z(this,"_weekdaysRegex")||ts.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Z(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Sh),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ts(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],s,o,a,l,u;for(s=0;s<7;s++)o=Ge([2e3,1]).day(s),a=Ce(this.weekdaysMin(o,"")),l=Ce(this.weekdaysShort(o,"")),u=Ce(this.weekdays(o,"")),t.push(a),n.push(l),r.push(u),i.push(a),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ns(){return this.hours()%12||12}function Rh(){return this.hours()||24}R("H",["HH",2],0,"hour");R("h",["hh",2],0,ns);R("k",["kk",2],0,Rh);R("hmm",0,0,function(){return""+ns.apply(this)+We(this.minutes(),2)});R("hmmss",0,0,function(){return""+ns.apply(this)+We(this.minutes(),2)+We(this.seconds(),2)});R("Hmm",0,0,function(){return""+this.hours()+We(this.minutes(),2)});R("Hmmss",0,0,function(){return""+this.hours()+We(this.minutes(),2)+We(this.seconds(),2)});function oa(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}oa("a",!0);oa("A",!1);ve("hour","h");xe("hour",13);function aa(e,t){return t._meridiemParse}A("a",aa);A("A",aa);A("H",ce);A("h",ce);A("k",ce);A("HH",ce,Ne);A("hh",ce,Ne);A("kk",ce,Ne);A("hmm",Qo);A("hmmss",Jo);A("Hmm",Qo);A("Hmmss",Jo);te(["H","HH"],pe);te(["k","kk"],function(e,t,n){var r=V(e);t[pe]=r===24?0:r});te(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});te(["h","hh"],function(e,t,n){t[pe]=V(e),z(n).bigHour=!0});te("hmm",function(e,t,n){var r=e.length-2;t[pe]=V(e.substr(0,r)),t[Ue]=V(e.substr(r)),z(n).bigHour=!0});te("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[pe]=V(e.substr(0,r)),t[Ue]=V(e.substr(r,2)),t[rt]=V(e.substr(i)),z(n).bigHour=!0});te("Hmm",function(e,t,n){var r=e.length-2;t[pe]=V(e.substr(0,r)),t[Ue]=V(e.substr(r))});te("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[pe]=V(e.substr(0,r)),t[Ue]=V(e.substr(r,2)),t[rt]=V(e.substr(i))});function jh(e){return(e+"").toLowerCase().charAt(0)==="p"}var qh=/[ap]\.?m?\.?/i,Uh=Gt("Hours",!0);function Bh(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var la={calendar:Au,longDateFormat:Iu,invalidDate:Lu,ordinal:ju,dayOfMonthOrdinalParse:qu,relativeTime:Bu,months:eh,monthsShort:Xo,week:fh,weekdays:vh,weekdaysMin:xh,weekdaysShort:sa,meridiemParse:qh},ue={},Xt={},un;function Yh(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=qr(s.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&Yh(s,r)>=n-1)break;n--}t++}return un}function zh(e){return e.match("^[^/\\\\]*$")!=null}function qr(e){var t=null,n;if(ue[e]===void 0&&typeof module<"u"&&module&&module.exports&&zh(e))try{t=un._abbr,n=require,n("./locale/"+e),pt(t)}catch{ue[e]=null}return ue[e]}function pt(e,t){var n;return e&&(_e(t)?n=ct(e):n=rs(e,t),n?un=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),un._abbr}function rs(e,t){if(t!==null){var n,r=la;if(t.abbr=e,ue[e]!=null)Vo("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ue[e]._config;else if(t.parentLocale!=null)if(ue[t.parentLocale]!=null)r=ue[t.parentLocale]._config;else if(n=qr(t.parentLocale),n!=null)r=n._config;else return Xt[t.parentLocale]||(Xt[t.parentLocale]=[]),Xt[t.parentLocale].push({name:e,config:t}),null;return ue[e]=new Zi(wi(r,t)),Xt[e]&&Xt[e].forEach(function(i){rs(i.name,i.config)}),pt(e),ue[e]}else return delete ue[e],null}function Vh(e,t){if(t!=null){var n,r,i=la;ue[e]!=null&&ue[e].parentLocale!=null?ue[e].set(wi(ue[e]._config,t)):(r=qr(e),r!=null&&(i=r._config),t=wi(i,t),r==null&&(t.abbr=e),n=new Zi(t),n.parentLocale=ue[e],ue[e]=n),pt(e)}else ue[e]!=null&&(ue[e].parentLocale!=null?(ue[e]=ue[e].parentLocale,e===pt()&&pt(e)):ue[e]!=null&&delete ue[e]);return ue[e]}function ct(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return un;if(!Be(e)){if(t=qr(e),t)return t;e=[e]}return Hh(e)}function Fh(){return vi(ue)}function is(e){var t,n=e._a;return n&&z(e).overflow===-2&&(t=n[nt]<0||n[nt]>11?nt:n[Fe]<1||n[Fe]>jr(n[we],n[nt])?Fe:n[pe]<0||n[pe]>24||n[pe]===24&&(n[Ue]!==0||n[rt]!==0||n[kt]!==0)?pe:n[Ue]<0||n[Ue]>59?Ue:n[rt]<0||n[rt]>59?rt:n[kt]<0||n[kt]>999?kt:-1,z(e)._overflowDayOfYear&&(tFe)&&(t=Fe),z(e)._overflowWeeks&&t===-1&&(t=Ju),z(e)._overflowWeekday&&t===-1&&(t=Xu),z(e).overflow=t),e}var $h=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wh=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gh=/Z|[+-]\d\d(?::?\d\d)?/,Un=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],oi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zh=/^\/?Date\((-?\d+)/i,Qh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Jh={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ca(e){var t,n,r=e._i,i=$h.exec(r)||Wh.exec(r),s,o,a,l,u=Un.length,d=oi.length;if(i){for(z(e).iso=!0,t=0,n=u;ton(o)||e._dayOfYear===0)&&(z(e)._overflowDayOfYear=!0),n=ln(o,0,e._dayOfYear),e._a[nt]=n.getUTCMonth(),e._a[Fe]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pe]===24&&e._a[Ue]===0&&e._a[rt]===0&&e._a[kt]===0&&(e._nextDay=!0,e._a[pe]=0),e._d=(e._useUTC?ln:hh).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pe]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(z(e).weekdayMismatch=!0)}}function sd(e){var t,n,r,i,s,o,a,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,n=Rt(t.GG,e._a[we],cn(le(),1,4).year),r=Rt(t.W,1),i=Rt(t.E,1),(i<1||i>7)&&(l=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,u=cn(le(),s,o),n=Rt(t.gg,e._a[we],u.year),r=Rt(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+s,(t.e<0||t.e>6)&&(l=!0)):i=s),r<1||r>it(n,s,o)?z(e)._overflowWeeks=!0:l!=null?z(e)._overflowWeekday=!0:(a=ia(n,r,i,s,o),e._a[we]=a.year,e._dayOfYear=a.dayOfYear)}O.ISO_8601=function(){};O.RFC_2822=function(){};function os(e){if(e._f===O.ISO_8601){ca(e);return}if(e._f===O.RFC_2822){ua(e);return}e._a=[],z(e).empty=!0;var t=""+e._i,n,r,i,s,o,a=t.length,l=0,u,d;for(i=Fo(e._f,e._locale).match(Qi)||[],d=i.length,n=0;n0&&z(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),l+=r.length),Ut[s]?(r?z(e).empty=!1:z(e).unusedTokens.push(s),Qu(s,r,e)):e._strict&&!r&&z(e).unusedTokens.push(s);z(e).charsLeftOver=a-l,t.length>0&&z(e).unusedInput.push(t),e._a[pe]<=12&&z(e).bigHour===!0&&e._a[pe]>0&&(z(e).bigHour=void 0),z(e).parsedDateParts=e._a.slice(0),z(e).meridiem=e._meridiem,e._a[pe]=od(e._locale,e._a[pe],e._meridiem),u=z(e).era,u!==null&&(e._a[we]=e._locale.erasConvertYear(u,e._a[we])),ss(e),is(e)}function od(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ad(e){var t,n,r,i,s,o,a=!1,l=e._f.length;if(l===0){z(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:Dr()});function fa(e,t){var n,r;if(t.length===1&&Be(t[0])&&(t=t[0]),!t.length)return le();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cd(){if(!_e(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Gi(e,this),e=ha(e),e._a?(t=e._isUTC?Ge(e._a):le(e._a),this._isDSTShifted=this.isValid()&&wd(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ad(){return this.isValid()?!this._isUTC:!1}function Dd(){return this.isValid()?this._isUTC:!1}function ma(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Md=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nd=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function He(e,t){var n=e,r=null,i,s,o;return er(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:st(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Md.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:V(r[Fe])*i,h:V(r[pe])*i,m:V(r[Ue])*i,s:V(r[rt])*i,ms:V(ki(r[kt]*1e3))*i}):(r=Nd.exec(e))?(i=r[1]==="-"?-1:1,n={y:vt(r[2],i),M:vt(r[3],i),w:vt(r[4],i),d:vt(r[5],i),h:vt(r[6],i),m:vt(r[7],i),s:vt(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Id(le(n.from),le(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),s=new Ur(n),er(e)&&Z(e,"_locale")&&(s._locale=e._locale),er(e)&&Z(e,"_isValid")&&(s._isValid=e._isValid),s}He.fn=Ur.prototype;He.invalid=bd;function vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Gs(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Id(e,t){var n;return e.isValid()&&t.isValid()?(t=ls(t,e),e.isBefore(t)?n=Gs(e,t):(n=Gs(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ga(e,t){return function(n,r){var i,s;return r!==null&&!isNaN(+r)&&(Vo(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),i=He(n,r),ya(this,i,e),this}}function ya(e,t,n,r){var i=t._milliseconds,s=ki(t._days),o=ki(t._months);e.isValid()&&(r=r??!0,o&&ea(e,hr(e,"Month")+o*n),s&&Wo(e,"Date",hr(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&O.updateOffset(e,s||o))}var Pd=ga(1,"add"),Ld=ga(-1,"subtract");function ba(e){return typeof e=="string"||e instanceof String}function Rd(e){return Ye(e)||xn(e)||ba(e)||st(e)||qd(e)||jd(e)||e===null||e===void 0}function jd(e){var t=St(e)&&!$i(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,s,o=r.length;for(i=0;in.valueOf():n.valueOf()9999?Kn(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ze(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Kn(n,"Z")):Kn(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Xd(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+r+i+s)}function Kd(e){e||(e=this.isUtc()?O.defaultFormatUtc:O.defaultFormat);var t=Kn(this,e);return this.localeData().postformat(t)}function ef(e,t){return this.isValid()&&(Ye(e)&&e.isValid()||le(e).isValid())?He({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function tf(e){return this.from(le(),e)}function nf(e,t){return this.isValid()&&(Ye(e)&&e.isValid()||le(e).isValid())?He({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rf(e){return this.to(le(),e)}function wa(e){var t;return e===void 0?this._locale._abbr:(t=ct(e),t!=null&&(this._locale=t),this)}var va=Pe("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function xa(){return this._locale}var pr=1e3,Bt=60*pr,mr=60*Bt,ka=(365*400+97)*24*mr;function Yt(e,t){return(e%t+t)%t}function _a(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ka:new Date(e,t,n).valueOf()}function Sa(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ka:Date.UTC(e,t,n)}function sf(e){var t,n;if(e=Le(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Sa:_a,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Yt(t+(this._isUTC?0:this.utcOffset()*Bt),mr);break;case"minute":t=this._d.valueOf(),t-=Yt(t,Bt);break;case"second":t=this._d.valueOf(),t-=Yt(t,pr);break}return this._d.setTime(t),O.updateOffset(this,!0),this}function of(e){var t,n;if(e=Le(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Sa:_a,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=mr-Yt(t+(this._isUTC?0:this.utcOffset()*Bt),mr)-1;break;case"minute":t=this._d.valueOf(),t+=Bt-Yt(t,Bt)-1;break;case"second":t=this._d.valueOf(),t+=pr-Yt(t,pr)-1;break}return this._d.setTime(t),O.updateOffset(this,!0),this}function af(){return this._d.valueOf()-(this._offset||0)*6e4}function lf(){return Math.floor(this.valueOf()/1e3)}function cf(){return new Date(this.valueOf())}function uf(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function hf(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function df(){return this.isValid()?this.toISOString():null}function ff(){return Wi(this)}function pf(){return ht({},z(this))}function mf(){return z(this).overflow}function gf(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}R("N",0,0,"eraAbbr");R("NN",0,0,"eraAbbr");R("NNN",0,0,"eraAbbr");R("NNNN",0,0,"eraName");R("NNNNN",0,0,"eraNarrow");R("y",["y",1],"yo","eraYear");R("y",["yy",2],0,"eraYear");R("y",["yyy",3],0,"eraYear");R("y",["yyyy",4],0,"eraYear");A("N",cs);A("NN",cs);A("NNN",cs);A("NNNN",Ef);A("NNNNN",Cf);te(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?z(n).era=i:z(n).invalidEra=e});A("y",Zt);A("yy",Zt);A("yyy",Zt);A("yyyy",Zt);A("yo",Af);te(["y","yy","yyy","yyyy"],we);te(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[we]=n._locale.eraYearOrdinalParse(e,i):t[we]=parseInt(e,10)});function yf(e,t){var n,r,i,s=this._eras||ct("en")._eras;for(n=0,r=s.length;n=0)return s[r]}function wf(e,t){var n=e.since<=e.until?1:-1;return t===void 0?O(e.since).year():O(e.since).year()+(t-e.offset)*n}function vf(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;es&&(t=s),Rf.call(this,e,t,n,r,i))}function Rf(e,t,n,r,i){var s=ia(e,t,n,r,i),o=ln(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}R("Q",0,"Qo","quarter");ve("quarter","Q");xe("quarter",7);A("Q",Go);te("Q",function(e,t){t[nt]=(V(e)-1)*3});function jf(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}R("D",["DD",2],"Do","date");ve("date","D");xe("date",9);A("D",ce);A("DD",ce,Ne);A("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});te(["D","DD"],Fe);te("Do",function(e,t){t[Fe]=V(e.match(ce)[0])});var Oa=Gt("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear");ve("dayOfYear","DDD");xe("dayOfYear",4);A("DDD",Ir);A("DDDD",Zo);te(["DDD","DDDD"],function(e,t,n){n._dayOfYear=V(e)});function qf(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}R("m",["mm",2],0,"minute");ve("minute","m");xe("minute",14);A("m",ce);A("mm",ce,Ne);te(["m","mm"],Ue);var Uf=Gt("Minutes",!1);R("s",["ss",2],0,"second");ve("second","s");xe("second",15);A("s",ce);A("ss",ce,Ne);te(["s","ss"],rt);var Bf=Gt("Seconds",!1);R("S",0,0,function(){return~~(this.millisecond()/100)});R(0,["SS",2],0,function(){return~~(this.millisecond()/10)});R(0,["SSS",3],0,"millisecond");R(0,["SSSS",4],0,function(){return this.millisecond()*10});R(0,["SSSSS",5],0,function(){return this.millisecond()*100});R(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});R(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});R(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});R(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ve("millisecond","ms");xe("millisecond",16);A("S",Ir,Go);A("SS",Ir,Ne);A("SSS",Ir,Zo);var dt,Ea;for(dt="SSSS";dt.length<=9;dt+="S")A(dt,Zt);function Yf(e,t){t[kt]=V(("0."+e)*1e3)}for(dt="S";dt.length<=9;dt+="S")te(dt,Yf);Ea=Gt("Milliseconds",!1);R("z",0,0,"zoneAbbr");R("zz",0,0,"zoneName");function Hf(){return this._isUTC?"UTC":""}function zf(){return this._isUTC?"Coordinated Universal Time":""}var w=kn.prototype;w.add=Pd;w.calendar=Yd;w.clone=Hd;w.diff=Zd;w.endOf=of;w.format=Kd;w.from=ef;w.fromNow=tf;w.to=nf;w.toNow=rf;w.get=Vu;w.invalidAt=mf;w.isAfter=zd;w.isBefore=Vd;w.isBetween=Fd;w.isSame=$d;w.isSameOrAfter=Wd;w.isSameOrBefore=Gd;w.isValid=ff;w.lang=va;w.locale=wa;w.localeData=xa;w.max=dd;w.min=hd;w.parsingFlags=pf;w.set=Fu;w.startOf=sf;w.subtract=Ld;w.toArray=uf;w.toObject=hf;w.toDate=cf;w.toISOString=Jd;w.inspect=Xd;typeof Symbol<"u"&&Symbol.for!=null&&(w[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});w.toJSON=df;w.toString=Qd;w.unix=lf;w.valueOf=af;w.creationData=gf;w.eraName=vf;w.eraNarrow=xf;w.eraAbbr=kf;w.eraYear=_f;w.year=ra;w.isLeapYear=uh;w.weekYear=Df;w.isoWeekYear=Mf;w.quarter=w.quarters=jf;w.month=ta;w.daysInMonth=ah;w.week=w.weeks=gh;w.isoWeek=w.isoWeeks=yh;w.weeksInYear=Pf;w.weeksInWeekYear=Lf;w.isoWeeksInYear=Nf;w.isoWeeksInISOWeekYear=If;w.date=Oa;w.day=w.days=Dh;w.weekday=Mh;w.isoWeekday=Nh;w.dayOfYear=qf;w.hour=w.hours=Uh;w.minute=w.minutes=Uf;w.second=w.seconds=Bf;w.millisecond=w.milliseconds=Ea;w.utcOffset=xd;w.utc=_d;w.local=Sd;w.parseZone=Td;w.hasAlignedHourOffset=Od;w.isDST=Ed;w.isLocal=Ad;w.isUtcOffset=Dd;w.isUtc=ma;w.isUTC=ma;w.zoneAbbr=Hf;w.zoneName=zf;w.dates=Pe("dates accessor is deprecated. Use date instead.",Oa);w.months=Pe("months accessor is deprecated. Use month instead",ta);w.years=Pe("years accessor is deprecated. Use year instead",ra);w.zone=Pe("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",kd);w.isDSTShifted=Pe("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cd);function Vf(e){return le(e*1e3)}function Ff(){return le.apply(null,arguments).parseZone()}function Ca(e){return e}var Q=Zi.prototype;Q.calendar=Du;Q.longDateFormat=Pu;Q.invalidDate=Ru;Q.ordinal=Uu;Q.preparse=Ca;Q.postformat=Ca;Q.relativeTime=Yu;Q.pastFuture=Hu;Q.set=Cu;Q.eras=yf;Q.erasParse=bf;Q.erasConvertYear=wf;Q.erasAbbrRegex=Tf;Q.erasNameRegex=Sf;Q.erasNarrowRegex=Of;Q.months=rh;Q.monthsShort=ih;Q.monthsParse=oh;Q.monthsRegex=ch;Q.monthsShortRegex=lh;Q.week=dh;Q.firstDayOfYear=mh;Q.firstDayOfWeek=ph;Q.weekdays=Th;Q.weekdaysMin=Eh;Q.weekdaysShort=Oh;Q.weekdaysParse=Ah;Q.weekdaysRegex=Ih;Q.weekdaysShortRegex=Ph;Q.weekdaysMinRegex=Lh;Q.isPM=jh;Q.meridiem=Bh;function gr(e,t,n,r){var i=ct(),s=Ge().set(r,t);return i[n](s,e)}function Aa(e,t,n){if(st(e)&&(t=e,e=void 0),e=e||"",t!=null)return gr(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=gr(e,r,n,"month");return i}function hs(e,t,n,r){typeof e=="boolean"?(st(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,st(t)&&(n=t,t=void 0),t=t||"");var i=ct(),s=e?i._week.dow:0,o,a=[];if(n!=null)return gr(t,(n+s)%7,r,"day");for(o=0;o<7;o++)a[o]=gr(t,(o+s)%7,r,"day");return a}function $f(e,t){return Aa(e,t,"months")}function Wf(e,t){return Aa(e,t,"monthsShort")}function Gf(e,t,n){return hs(e,t,n,"weekdays")}function Zf(e,t,n){return hs(e,t,n,"weekdaysShort")}function Qf(e,t,n){return hs(e,t,n,"weekdaysMin")}pt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=V(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});O.lang=Pe("moment.lang is deprecated. Use moment.locale instead.",pt);O.langData=Pe("moment.langData is deprecated. Use moment.localeData instead.",ct);var Xe=Math.abs;function Jf(){var e=this._data;return this._milliseconds=Xe(this._milliseconds),this._days=Xe(this._days),this._months=Xe(this._months),e.milliseconds=Xe(e.milliseconds),e.seconds=Xe(e.seconds),e.minutes=Xe(e.minutes),e.hours=Xe(e.hours),e.months=Xe(e.months),e.years=Xe(e.years),this}function Da(e,t,n,r){var i=He(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Xf(e,t){return Da(this,e,t,1)}function Kf(e,t){return Da(this,e,t,-1)}function Zs(e){return e<0?Math.floor(e):Math.ceil(e)}function ep(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,s,o,a,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=Zs(Si(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Ie(e/1e3),r.seconds=i%60,s=Ie(i/60),r.minutes=s%60,o=Ie(s/60),r.hours=o%24,t+=Ie(o/24),l=Ie(Ma(t)),n+=l,t-=Zs(Si(l)),a=Ie(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function Ma(e){return e*4800/146097}function Si(e){return e*146097/4800}function tp(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Le(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Ma(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Si(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function np(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+V(this._months/12)*31536e6:NaN}function ut(e){return function(){return this.as(e)}}var rp=ut("ms"),ip=ut("s"),sp=ut("m"),op=ut("h"),ap=ut("d"),lp=ut("w"),cp=ut("M"),up=ut("Q"),hp=ut("y");function dp(){return He(this)}function fp(e){return e=Le(e),this.isValid()?this[e+"s"]():NaN}function Dt(e){return function(){return this.isValid()?this._data[e]:NaN}}var pp=Dt("milliseconds"),mp=Dt("seconds"),gp=Dt("minutes"),yp=Dt("hours"),bp=Dt("days"),wp=Dt("months"),vp=Dt("years");function xp(){return Ie(this.days()/7)}var tt=Math.round,jt={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kp(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function _p(e,t,n,r){var i=He(e).abs(),s=tt(i.as("s")),o=tt(i.as("m")),a=tt(i.as("h")),l=tt(i.as("d")),u=tt(i.as("M")),d=tt(i.as("w")),f=tt(i.as("y")),c=s<=n.ss&&["s",s]||s0,c[4]=r,kp.apply(null,c)}function Sp(e){return e===void 0?tt:typeof e=="function"?(tt=e,!0):!1}function Tp(e,t){return jt[e]===void 0?!1:t===void 0?jt[e]:(jt[e]=t,e==="s"&&(jt.ss=t-1),!0)}function Op(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=jt,i,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},jt,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),s=_p(this,!n,r,i),n&&(s=i.pastFuture(+this,s)),i.postformat(s)}var ai=Math.abs;function Pt(e){return(e>0)-(e<0)||+e}function Yr(){if(!this.isValid())return this.localeData().invalidDate();var e=ai(this._milliseconds)/1e3,t=ai(this._days),n=ai(this._months),r,i,s,o,a=this.asSeconds(),l,u,d,f;return a?(r=Ie(e/60),i=Ie(r/60),e%=60,r%=60,s=Ie(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=a<0?"-":"",u=Pt(this._months)!==Pt(a)?"-":"",d=Pt(this._days)!==Pt(a)?"-":"",f=Pt(this._milliseconds)!==Pt(a)?"-":"",l+"P"+(s?u+s+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var W=Ur.prototype;W.isValid=yd;W.abs=Jf;W.add=Xf;W.subtract=Kf;W.as=tp;W.asMilliseconds=rp;W.asSeconds=ip;W.asMinutes=sp;W.asHours=op;W.asDays=ap;W.asWeeks=lp;W.asMonths=cp;W.asQuarters=up;W.asYears=hp;W.valueOf=np;W._bubble=ep;W.clone=dp;W.get=fp;W.milliseconds=pp;W.seconds=mp;W.minutes=gp;W.hours=yp;W.days=bp;W.weeks=xp;W.months=wp;W.years=vp;W.humanize=Op;W.toISOString=Yr;W.toString=Yr;W.toJSON=Yr;W.locale=wa;W.localeData=xa;W.toIsoString=Pe("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yr);W.lang=va;R("X",0,0,"unix");R("x",0,0,"valueOf");A("x",Lr);A("X",Wu);te("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});te("x",function(e,t,n){n._d=new Date(V(e))});//! moment.js -O.version="2.29.4";Ou(le);O.fn=w;O.min=fd;O.max=pd;O.now=md;O.utc=Ge;O.unix=Vf;O.months=$f;O.isDate=xn;O.locale=pt;O.invalid=Dr;O.duration=He;O.isMoment=Ye;O.weekdays=Gf;O.parseZone=Ff;O.localeData=ct;O.isDuration=er;O.monthsShort=Wf;O.weekdaysMin=Qf;O.defineLocale=rs;O.updateLocale=Vh;O.locales=Fh;O.weekdaysShort=Zf;O.normalizeUnits=Le;O.relativeTimeRounding=Sp;O.relativeTimeThreshold=Tp;O.calendarFormat=Bd;O.prototype=w;O.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ep=/\B([A-Z])/g,Cp=e=>e.replace(Ep,"-$1").toLowerCase();function yt(e){return Ar((t,n)=>{const r=e||Cp(n);t.emits||(t.emits=[]),t.emits.push(r);const i=t.methods[n];t.methods[n]=function(...s){const o=l=>{l===void 0?s.length===0?this.$emit(r):s.length===1?this.$emit(r,s[0]):this.$emit(r,...s):(s.unshift(l),this.$emit(r,...s))},a=i.apply(this,s);return Ap(a)?a.then(o):o(a),a}})}function Ap(e){return e instanceof Promise||e&&typeof e.then=="function"}function Qe(e){return Ar((t,n)=>{t.props||(t.props=Object.create(null)),t.props[n]=e})}function ds(e){return Ar((t,n)=>{t.computed||(t.computed=Object.create(null)),t.computed[n]={cache:!1,get(){return this.$refs[e||n]}}})}function Dp(e,t){return Ar((n,r)=>{n.watch||(n.watch=Object.create(null));const i=n.watch;typeof i[e]=="object"&&!Array.isArray(i[e])?i[e]=[i[e]]:typeof i[e]>"u"&&(i[e]=[]),i[e].push(Object.assign({handler:r},t))})}const Mp={viewBox:"0 0 576 512",width:"1.2em",height:"1.2em"},Np=N("path",{fill:"currentColor",d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0a144 144 0 1 1-288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"},null,-1),Ip=[Np];function Pp(e,t){return L(),H("svg",Mp,Ip)}const Lp={name:"fa6-solid-eye",render:Pp},Rp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},jp=N("path",{fill:"currentColor",d:"M96 0C60.7 0 32 28.7 32 64v384c0 35.3 28.7 64 64 64h288c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H96zm112 288h64c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16H144c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0a64 64 0 1 1-128 0zM512 80c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V80zm-16 112c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm16 144c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64z"},null,-1),qp=[jp];function Up(e,t){return L(),H("svg",Rp,qp)}const Bp={name:"fa6-solid-address-book",render:Up},Yp={viewBox:"0 0 384 512",width:"1.2em",height:"1.2em"},Hp=N("path",{fill:"currentColor",d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"},null,-1),zp=[Hp];function Vp(e,t){return L(),H("svg",Yp,zp)}const Na={name:"fa6-solid-play",render:Vp},Fp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},$p=N("path",{fill:"currentColor",d:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32v242.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64v-32c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48a24 24 0 1 1 0-48z"},null,-1),Wp=[$p];function Gp(e,t){return L(),H("svg",Fp,Wp)}const Zp={name:"fa6-solid-download",render:Gp};function Ti(e){return O.utc(O.duration(e,"seconds").asMilliseconds()).format("mm:ss")}function Qp(e){for(const t of["B","KiB","MiB","GiB","TiB","PiB"]){if(Math.abs(e)<1024)return`${e.toFixed(1)} ${t}`;e/=1024}return"> 1024 PiB"}var Jp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Tn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Xp(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Jp(t,n,i),i};function Kp(e,t){let n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}let Tt=class extends Wt{constructor(){super(...arguments),J(this,"f"),J(this,"hasHead"),J(this,"gif")}get pollFile(){return this.f}get locationFile(){return this.f}get spoilerClasses(){return{media_spoiler:this.f.spoiler,clickable:this.f.spoiler}}fileThumbClick(){if(!this.f.media_type)return console.log(`Downloading file: ${this.f.url}`),Kp(this.f.url,this.f.url.split("/").slice(-1)[0]);this.play()}play(){return this.f}get shouldDisplayDetail(){return!this.f.media_type||this.isAudioOrVoice||this.f.media_type=="contact"}get isAudioOrVoice(){return this.f.media_type=="audio_file"||this.f.media_type=="voice_message"}get fileTitle(){const e=this.f;if(!e.media_type)return e.original_name??e.url.split("/").slice(-1)[0];if(e.media_type=="voice_message")return"Voice Message";if(e.media_type=="audio_file"){let t="";return e.performer&&(t+=e.performer+" - "),e.title&&(t+=e.title),t}if(e.media_type=="contact"){let t=e.first_name??"";return e.last_name&&(t+=" "+e.last_name),t}}get duration(){return Ti(this.f.duration)}get size(){return Qp(this.f.size)}};Tn([Qe({required:!0})],Tt.prototype,"f",2);Tn([Qe({required:!0})],Tt.prototype,"hasHead",2);Tn([ds()],Tt.prototype,"gif",2);Tn([yt("play-file")],Tt.prototype,"play",1);Tt=Tn([vn({components:{Location:Xn(()=>ei(()=>import("./Location-20aeb1c0-gTwkNJeK.js"),__vite__mapDeps([0,1,2]))),Poll:Xn(()=>ei(()=>import("./Poll-ee42f803-DCZkljGB.js"),__vite__mapDeps([3,1,2]))),VideoPlayer:Xn(()=>ei(()=>import("./VideoPlayer-328c0f9f-BW-JfgPD.js"),__vite__mapDeps([4,1,2])))}})],Tt);const On=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},e0={key:0,class:"file"},t0=["src"],n0={class:"icon fbox-center"},r0={class:"detail fbox-vcenter"},i0={key:0,class:"title"},s0={class:"file-detail"},o0={key:0,class:"duration"},a0={key:1,class:"size"},l0={key:2,class:"phone"},c0={key:1,class:"sticker"},u0=["src"],h0=["src"],d0=["src"],f0=["src"],p0=["src"];function m0(e,t,n,r,i,s){const o=Zp,a=Na,l=Bp,u=_t("VideoPlayer"),d=_t("Poll"),f=_t("Location");return L(),H(ar,null,[e.shouldDisplayDetail?(L(),H("div",e0,[N("div",{class:"thumb clickable",onClick:t[0]||(t[0]=(...c)=>e.fileThumbClick&&e.fileThumbClick(...c))},[N("img",{src:e.f.thumb??"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",alt:""},null,8,t0),N("div",n0,[e.f.media_type?e.isAudioOrVoice?(L(),Ae(a,{key:1})):e.f.media_type==="contact"?(L(),Ae(l,{key:2})):ee("",!0):(L(),Ae(o,{key:0}))])]),N("div",r0,[e.fileTitle?(L(),H("div",i0,ge(e.fileTitle),1)):ee("",!0),N("div",s0,[e.f.duration?(L(),H("span",o0,ge(e.duration),1)):ee("",!0),e.f.size?(L(),H("span",a0,ge(e.size),1)):ee("",!0),e.f.phone_number?(L(),H("span",l0,ge(e.f.phone_number),1)):ee("",!0)])])])):ee("",!0),e.f.media_type==="sticker"?(L(),H("div",c0,[e.f.url.toLowerCase().endsWith("webm")?(L(),H("video",{key:0,src:e.f.url,preload:"auto",muted:"",autoplay:"",loop:"",playsinline:"",disablepictureinpicture:""},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,h0)):ee("",!0)],8,u0)):(L(),H("img",{key:1,src:e.f.url,alt:""},null,8,d0))])):ee("",!0),e.f.media_type==="video_file"?(L(),H("div",{key:2,class:je(["video no-head",{"has-head":e.hasHead}])},[N("div",{onClick:t[1]||(t[1]=c=>e.f.spoiler=!1),class:je({clickable:e.f.spoiler})},[mt(u,{f:e.f,class:je(e.spoilerClasses)},null,8,["f","class"])],2)],2)):ee("",!0),e.f.media_type==="animation"?(L(),H("div",{key:3,class:je(["video no-head",{"has-head":e.hasHead}])},[N("video",{src:e.f.url,preload:"auto",muted:"",loop:"",playsinline:"",disablepictureinpicture:"",ref:"gif",class:je(e.spoilerClasses),onClick:t[2]||(t[2]=c=>{e.f.spoiler=!1,e.gif.play()})},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,p0)):ee("",!0)],10,f0)],2)):ee("",!0),e.f.media_type==="poll"?(L(),Ae(d,{key:4,f:e.pollFile},null,8,["f"])):ee("",!0),e.f.media_type==="location"?(L(),Ae(f,{key:5,class:je(["location no-head",{"has-head":e.hasHead}]),f:e.locationFile},null,8,["class","f"])):ee("",!0)],64)}const g0=On(Tt,[["render",m0],["__scopeId","data-v-9944bade"]]);parseInt(getComputedStyle(document.documentElement).fontSize,10);const Qs=(e,t,n)=>Math.min(n,Math.max(t,e)),I={None:0,Top:1,Right:2,Bottom:4,Left:8};function y0(e){return e.map(t=>t>1.2?"w":t<.8?"n":"q").join("")}function b0(e){return e.reduce((t,n)=>n+t,1)/e.length}function Js(e,t){return e.reduce((n,r)=>n+r,t)}function w0(e,t){return e.map(n=>t>1.1?Qs(n,1,2.75):Qs(n,.6667,1))}function v0(e){const t={width:0,height:0};return e.forEach(({dimensions:n,sides:r})=>{r&I.Right&&(t.width=n.width+n.x),r&I.Bottom&&(t.height=n.height+n.y)}),t}function x0(e,t,n){const r=e.map(d=>d.width/d.height),i=y0(r),s=b0(r),o=r.length,a=r.some(d=>d>2);let l;const u={ratios:r,proportions:i,averageRatio:s,maxWidth:t,minWidth:100,maxHeight:n,spacing:2};if(o===1){const d=r[0];l=[{dimensions:{x:0,y:0,width:t,height:d>1?n/d:n},sides:4}]}else o>=5||a?l=k0(u):o===2?l=_0(u):o===3?l=E0(u):l=D0(u);return{layout:l,containerStyle:v0(l)}}function k0({ratios:e,averageRatio:t,maxWidth:n,minWidth:r,spacing:i,maxHeight:s=4*n/3}){const o=w0(e,t),a=e.length,l=new Array(a),u=[],d=(k,T)=>{const M=o.slice(k,k+T),P=Js(M,0);return(n-(T-1)*i)/P},f=k=>{const T=[];let M=0;k.forEach(P=>{T.push(d(M,P)),M+=P}),u.push({lineCounts:k,heights:T})};for(let k=1;k!==a;++k){const T=a-k;k<=3&&T<=3&&f([k,T])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T){const M=a-k-T;k<=3&&T<=(t<.85?4:3)&&M<=3&&f([k,T,M])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T)for(let M=1;M!==a-k-T;++M){const P=a-k-T-M;k<=3&&T<=3&&M<=3&&P<=4&&f([k,T,M,P])}let c,h=0;for(let k=0;k{for(let m=1;m!==P;++m)if(M[m-1]>M[m])return 1.5;return 1})(),ye=Math.abs($-s)*G*de;(!c||ye1.4&&t[1]-t[0]<.2?S0(e):n==="ww"||n==="qq"?T0(e):O0(e)}function S0(e){const{ratios:t,maxWidth:n,spacing:r,maxHeight:i}=e,s=Math.round(Math.min(n/t[0],Math.min(n/t[1],(i-r)/2)));return[{dimensions:{x:0,y:0,width:n,height:s},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:s+r,width:n,height:s},sides:I.Left|I.Bottom|I.Right}]}function T0(e){const{ratios:t,maxWidth:n,spacing:r,maxHeight:i}=e,s=(n-r)/2,o=Math.round(Math.min(s/t[0],Math.min(s/t[1],i)));return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:s+r,y:0,width:s,height:o},sides:I.Top|I.Right|I.Bottom}]}function O0(e){const{ratios:t,minWidth:n,maxWidth:r,spacing:i,maxHeight:s}=e,o=Math.round(1.5*n),a=Math.min(Math.round(Math.max(.4*(r-i),(r-i)/t[0]/(1/t[0]+1/t[1]))),r-i-o),l=r-a-i,u=Math.min(s,Math.round(Math.min(l/t[0],a/t[1])));return[{dimensions:{x:0,y:0,width:l,height:u},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:l+i,y:0,width:a,height:u},sides:I.Top|I.Right|I.Bottom}]}function E0(e){const{proportions:t}=e;return t[0]==="n"?C0(e):A0(e)}function C0(e){const{maxHeight:t,spacing:n,ratios:r,maxWidth:i,minWidth:s}=e,o=t,a=Math.round(Math.min((t-n)/2,r[1]*(i-n)/(r[2]+r[1]))),l=o-a-n,u=Math.max(s,Math.round(Math.min((i-n)/2,Math.min(a*r[2],l*r[1])))),d=Math.min(Math.round(o*r[0]),i-n-u);return[{dimensions:{x:0,y:0,width:d,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:d+n,y:0,width:u,height:l},sides:I.Top|I.Right},{dimensions:{x:d+n,y:l+n,width:u,height:a},sides:I.Bottom|I.Right}]}function A0(e){const{maxWidth:t,ratios:n,maxHeight:r,spacing:i}=e,s=t,o=Math.round(Math.min(s/n[0],.66*(r-i))),a=(t-i)/2,l=Math.min(r-o-i,Math.round(Math.min(a/n[1],a/n[2]))),u=s-a-i;return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+i,width:a,height:l},sides:I.Bottom|I.Left},{dimensions:{x:a+i,y:o+i,width:u,height:l},sides:I.Bottom|I.Right}]}function D0(e){const{proportions:t}=e;return t[0]==="w"?M0(e):N0(e)}function M0({maxWidth:e,ratios:t,spacing:n,maxHeight:r,minWidth:i}){const s=e,o=Math.round(Math.min(s/t[0],.66*(r-n))),a=Math.round((e-2*n)/(t[1]+t[2]+t[3])),l=Math.max(i,Math.round(Math.min(.4*(e-2*n),a*t[1]))),u=Math.round(Math.max(Math.max(i,.33*(e-2*n)),a*t[3])),d=s-l-u-2*n,f=Math.min(r-o-n,a);return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+n,width:l,height:f},sides:I.Bottom|I.Left},{dimensions:{x:l+n,y:o+n,width:d,height:f},sides:I.Bottom},{dimensions:{x:l+n+d+n,y:o+n,width:u,height:f},sides:I.Right|I.Bottom}]}function N0({maxHeight:e,ratios:t,maxWidth:n,spacing:r,minWidth:i}){const s=e,o=Math.round(Math.min(s*t[0],.6*(n-r))),a=Math.round((e-2*r)/(1/t[1]+1/t[2]+1/t[3])),l=Math.round(a/t[1]),u=Math.round(a/t[2]),d=s-l-u-2*r,f=Math.max(i,Math.min(n-o-r,a));return[{dimensions:{x:0,y:0,width:o,height:s},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:o+r,y:0,width:f,height:l},sides:I.Top|I.Right},{dimensions:{x:o+r,y:l+r,width:f,height:u},sides:I.Right},{dimensions:{x:o+r,y:l+u+2*r,width:f,height:d},sides:I.Bottom|I.Right}]}var I0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,En=(e,t,n,r)=>{for(var i=r>1?void 0:r?P0(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&I0(t,n,i),i};let Ot=class extends Wt{constructor(){super(...arguments),J(this,"p"),J(this,"postsUrl"),J(this,"el"),J(this,"sizeScale",1)}get text(){if(this.p.text)return this.p.text}get fwdUrl(){return typeof this.p.forwarded_from=="string"?void 0:this.p.forwarded_from.url}get fwdName(){return typeof this.p.forwarded_from=="string"?this.p.forwarded_from:this.p.forwarded_from.name}get dims(){return console.log(`Calculating dimensions for ${this.p.id}...`),x0(this.p.images,450,450)}get containerStyle(){const e=this.sizeScale,t=this.dims.containerStyle;return{width:t.width*e+"px",height:t.height*e+"px"}}getImageStyle(e){const t=this.sizeScale,n=this.dims.layout[e].dimensions;return{left:n.x*t+"px",top:n.y*t+"px",width:n.width*t+"px",height:n.height*t+"px"}}clickReply(){return this.p.reply.id}refreshSize(){this.sizeScale=this.el.clientWidth/450}mounted(){this.initEmoji(),this.refreshSize(),window.addEventListener("resize",this.refreshSize)}unmounted(){window.removeEventListener("resize",this.refreshSize)}replaceUrl(e){return new URL(e,this.postsUrl).toString()}initEmoji(){document.querySelectorAll("i.custom-emoji:not(.init)").forEach(e=>{const t=this.replaceUrl(e.getAttribute("emoji-src"));e.classList.add("init"),t.endsWith("webm")?e.innerHTML=``:e.innerHTML=``})}clickImg(e,t){if(e.spoiler){e.spoiler=!1;return}this.$emit("click-img",t)}};En([Qe({required:!0})],Ot.prototype,"p",2);En([Qe({required:!0})],Ot.prototype,"postsUrl",2);En([ds("post")],Ot.prototype,"el",2);En([yt("click-reply")],Ot.prototype,"clickReply",1);Ot=En([vn({components:{FileView:g0}})],Ot);const Ia=e=>(bn("data-v-95a034ba"),e=e(),wn(),e),L0=["id"],R0={class:"head unselectable"},j0={key:0,class:"forward"},q0=["href"],U0={key:0,class:"thumb-wrap"},B0=["src"],Y0={class:"mtext"},H0=Ia(()=>N("div",{class:"reply-to"},"Reply to:",-1)),z0=["innerHTML"],V0=["src","onClick"],F0={key:2,class:"files"},$0=["innerHTML"],W0={class:"info font-code unselectable"},G0={class:"id"},Z0=Ia(()=>N("div",{class:"f-grow1"},null,-1)),Q0={key:0,class:"author"},J0={class:"date"},X0={key:1,class:"views"};function K0(e,t,n,r,i,s){const o=_t("FileView"),a=Lp;return L(),H("div",{class:je(["post tgb-card",{service:e.p.type==="service"}]),id:`message-${e.p.id}`,ref:"post"},[N("div",R0,[e.p.forwarded_from?(L(),H("div",j0,[rn(" Forwarded from: "),N("a",{href:e.fwdUrl},ge(e.fwdName),9,q0)])):ee("",!0)]),e.p.reply?(L(),H("div",{key:0,class:"reply undraggable clickable",onClick:t[0]||(t[0]=(...l)=>e.clickReply&&e.clickReply(...l))},[e.p.reply.thumb?(L(),H("div",U0,[N("img",{class:"thumb",src:e.p.reply.thumb,alt:"",loading:"lazy"},null,8,B0)])):ee("",!0),N("div",Y0,[H0,N("div",{class:"reply-text",innerHTML:e.p.reply.text},null,8,z0)])])):ee("",!0),e.p.images?(L(),H("div",{key:1,class:je(["images",{"has-head":e.p.reply||e.p.forwarded_from}]),style:fi(e.containerStyle)},[(L(!0),H(ar,null,pi(e.p.images,(l,u)=>(L(),H("div",{class:"image_container",key:u,style:fi(e.getImageStyle(u))},[N("img",{src:l.url,alt:"image",loading:"lazy",class:je(["clickable",{media_spoiler:l.spoiler}]),onClick:d=>e.clickImg(l,u),style:{inset:"0"}},null,10,V0)],4))),128))],6)):ee("",!0),e.p.files?(L(),H("div",F0,[(L(!0),H(ar,null,pi(e.p.files,l=>(L(),Ae(o,{f:l,"has-head":!!(e.p.reply||e.p.forwarded_from||e.p.images),onPlayFile:t[1]||(t[1]=u=>e.$emit("play-file",u))},null,8,["f","has-head"]))),256))])):ee("",!0),N("div",{class:"text",innerHTML:e.text},null,8,$0),N("div",W0,[N("div",G0,"#"+ge(e.p.id),1),Z0,e.p.author?(L(),H("div",Q0,ge(e.p.author),1)):ee("",!0),N("div",J0,ge(e.p.date),1),e.p.views?(L(),H("div",X0,[rn(ge(e.p.views)+" ",1),mt(a)])):ee("",!0)])],10,L0)}const em=On(Ot,[["render",K0],["__scopeId","data-v-95a034ba"]]);function tm(e,t){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}function nm(e,t){for(;(t=t.parentElement)&&t.tagName.toLowerCase()!=e;);return t}function Xs(){const e=document.querySelectorAll(".spoiler");console.log("Spoilers initialized."),e.forEach(t=>{if(t.classList.contains("spoiler-init"))return;t.classList.add("spoiler-init");const n=tm("post",t),r=n==null?void 0:n.querySelectorAll(".spoiler");function i(){t.classList.toggle("spoiler-visible"),console.log(`Spoiler clicked: ${t}`),n&&(r==null||r.forEach(o=>{o!=t&&o.classList.toggle("spoiler-visible")}))}const s=nm("a",t);if(s){s.addEventListener("click",o=>{t.classList.contains("spoiler-visible")||(i(),o.preventDefault())});return}t.addEventListener("click",i)})}const rm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},im=N("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512L340.864 831.872a30.592 30.592 0 0 0 0 42.752a29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),sm=[im];function om(e,t){return L(),H("svg",rm,sm)}const am={name:"ep-arrow-right",render:om},lm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},cm=N("path",{fill:"currentColor",d:"M609.408 149.376L277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0a30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688a29.12 29.12 0 0 0-41.728 0z"},null,-1),um=[cm];function hm(e,t){return L(),H("svg",lm,um)}const dm={name:"ep-arrow-left",render:hm},fm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pm=N("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696l236.288-236.352l45.248 45.248L508.8 704L192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),mm=[pm];function gm(e,t){return L(),H("svg",fm,mm)}const ym={name:"ep-download",render:gm},bm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},wm=N("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),vm=[wm];function xm(e,t){return L(),H("svg",bm,vm)}const km={name:"ep-close",render:xm};var Ks="Control",eo="Meta",_m="Escape",Sm="ArrowLeft",Tm="ArrowRight",Om=function(e,t,n,r){var i=typeof r<"u"?[r,e]:[e],s=new Blob(i,{type:n||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",t),typeof a.download>"u"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout(function(){document.body.removeChild(a),window.URL.revokeObjectURL(o)},200)}};const Em=Jc(Om);var Cm=Object.defineProperty,Am=Object.getOwnPropertyDescriptor,Cn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Am(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Cm(t,n,i),i};let Et=class extends Wt{constructor(){super(...arguments),J(this,"imgs"),J(this,"index"),J(this,"ctrlDown",!1),J(this,"zoom",1)}get img(){if(this.imgs)return this.imgs[this.index]}get isOpen(){return!!this.img}get hasPrev(){return this.index>0}get hasNext(){return this.index+1=this.imgs.length||(this.zoom=1,this._rawUpdateIndex(t))}_rawUpdateIndex(e){return e}keydown(e){if(this.isOpen){if(e.code===_m)return this.close();if(e.code===Sm)return this.updateIndex(-1);if(e.code===Tm)return this.updateIndex(1);if(e.key==Ks||e.key===eo)return this.ctrlDown=!0}}keyup(e){if(e.key==Ks||e.key===eo)return this.ctrlDown=!1}wheel(e){if(!this.isOpen)return;e.preventDefault();const t=Math.sign(e.deltaY);this.ctrlDown?this.zoom=Math.min(Math.max(this.zoom*=1+t*-.1,.1),5):this.updateIndex(t)}get imgStyle(){return{transform:`scale(${this.zoom.toFixed(2)})`}}mounted(){document.addEventListener("keydown",this.keydown),document.addEventListener("keyup",this.keyup),document.addEventListener("wheel",this.wheel,{passive:!1})}unmounted(){document.removeEventListener("keydown",this.keydown),document.removeEventListener("keyup",this.keyup),document.removeEventListener("wheel",this.wheel)}};Cn([Qe({required:!0})],Et.prototype,"imgs",2);Cn([Qe({required:!0})],Et.prototype,"index",2);Cn([yt("close")],Et.prototype,"close",1);Cn([yt("update:index")],Et.prototype,"_rawUpdateIndex",1);Et=Cn([vn({components:{}})],Et);const Dm=e=>(bn("data-v-8d7ec9da"),e=e(),wn(),e),Mm={key:0,id:"ImageViewer"},Nm={class:"img-container"},Im=["src"],Pm={class:"top"},Lm=Dm(()=>N("span",{class:"f-grow1"},null,-1)),Rm={class:"bottom"},jm={class:"left unselectable"},qm={class:"index"},Um={class:"detail"},Bm={key:0,class:"date"},Ym={class:"right"},Hm={class:"description unselectable"},zm={key:0,class:"text"},Vm=["innerHTML"],Fm={class:"arrows"};function $m(e,t,n,r,i,s){const o=km,a=ym,l=dm,u=am;return e.img?(L(),H("div",Mm,[N("div",Nm,[N("img",{src:e.img.url,alt:"Photo",class:"undraggable",style:fi(e.imgStyle)},null,12,Im)]),N("div",Pm,[Lm,mt(o,{class:"icn close clickable",onClick:e.close},null,8,["onClick"])]),N("div",Rm,[N("div",jm,[N("div",qm,"Photo "+ge(e.index+1)+" of "+ge(e.imgs.length),1),N("div",Um,[e.img.date?(L(),H("span",Bm,ge(e.img.date),1)):ee("",!0)])]),N("div",Ym,[mt(a,{class:"icn download clickable",onClick:e.download},null,8,["onClick"])]),N("div",Hm,[e.img.text?(L(),H("div",zm,[N("div",{innerHTML:e.textHtml},null,8,Vm)])):ee("",!0)])]),N("div",Fm,[e.hasPrev?(L(),Ae(l,{key:0,class:"icn left clickable",onClick:t[0]||(t[0]=d=>e.updateIndex(-1))})):ee("",!0),e.hasNext?(L(),Ae(u,{key:1,class:"icn right clickable",onClick:t[1]||(t[1]=d=>e.updateIndex(1))})):ee("",!0)])])):ee("",!0)}const Wm=On(Et,[["render",$m],["__scopeId","data-v-8d7ec9da"]]);var Gm=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,An=(e,t,n,r)=>{for(var i=r>1?void 0:r?Zm(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Gm(t,n,i),i};let Ct=class extends Wt{constructor(){super(...arguments),J(this,"postsUrl"),J(this,"postsData"),J(this,"margins"),J(this,"searchEl"),J(this,"search",""),J(this,"posts",[]),J(this,"imgList",null),J(this,"postImgIndex"),J(this,"count",20),J(this,"audio",null),J(this,"img",-1),J(this,"replyShake",[]),J(this,"replyLoading",!1),J(this,"fail",null)}get purl(){return new URL(this.postsUrl,document.location.href).href}get audios(){return this.posts.filter(e=>{var t,n;return((n=(t=e.files)==null?void 0:t.at(0))==null?void 0:n.media_type)=="audio_file"}).flatMap(e=>e.files)}audioNext(e){this.audio=this.audios.at(this.audios.indexOf(this.audio)+e)}get searchedPosts(){let e=this.search.toLowerCase();if(!e)return this.posts;let t=this.posts;function n(r){let i;return[i,e]=e.split(" ",2),i.substring(r)}for(;e;){if(e.startsWith("id:")){let r=n(3);console.log(r),t=t.filter(i=>i.id+""==r);continue}if(e.startsWith("author:")){let r=n(7);t=t.filter(i=>i.author.toLowerCase().startsWith(r));continue}if(e.startsWith("date:")){let r=n(5);t=t.filter(i=>i.date.includes(r));continue}break}return e?t.filter(r=>r.text&&r.text.toLowerCase().includes(e)):t}get searchedCount(){return Math.min(this.count,this.searchedPosts.length)}onKey(e){(e.ctrlKey||e.metaKey)&&e.code=="KeyF"&&(this.searchEl.focus(),this.searchEl.scrollIntoView({block:"center"}),e.stopPropagation(),e.preventDefault())}onHashChange(e){const t=window.location.hash;console.log("Hash change",e.newURL,t),t&&(this.search=decodeURIComponent(t),window.location.hash="",this.searchEl.scrollIntoView({block:"center"}),e.preventDefault(),e.stopPropagation())}mounted(){document.addEventListener("keydown",this.onKey),window.addEventListener("hashchange",this.onHashChange)}unmounted(){document.removeEventListener("keydown",this.onKey),window.removeEventListener("hashchange",this.onHashChange)}replaceUrl(e){return new URL(e,this.purl).toString()}infiniteScroll(){console.log("Infinite Scroll - Load more"),this.count=Math.min(this.count+10,this.posts.length)}get postIdIndex(){return Object.fromEntries(this.posts.map((e,t)=>[e.id,t]))}clickReply(e){if(this.replyLoading)return;const t=this.postIdIndex[e];t>this.count&&(this.replyLoading=!0,this.count=Math.min(t+10,this.posts.length)),this.jumpToReply(e,t)}jumpToReply(e,t){const n=document.getElementById(`message-${e}`);if(!n)return setTimeout(()=>this.jumpToReply(e,t),50);n.scrollIntoView({behavior:"smooth",block:"center"}),this.replyLoading=!1;const r=()=>{this.replyShake=[...this.replyShake,t],setTimeout(()=>this.replyShake=this.replyShake.filter(a=>a!=t),1500)};let i;const s=setTimeout(()=>{r(),window.removeEventListener("scroll",i)},1e3);let o;i=a=>{clearTimeout(o),o=setTimeout(()=>{clearTimeout(s),r(),window.removeEventListener("scroll",i)},100)},window.addEventListener("scroll",i)}async created(){try{this.postsData?this.posts=this.postsData:this.posts=await(await fetch(this.purl)).json(),this.posts.forEach(e=>e.date=O(e.date).format("YYYY-MM-DD h:mm")),this.posts.reverse(),this.posts=this.posts.filter(e=>e.type!=="service"),this.count=Math.min(this.count,this.posts.length),this.posts.forEach(e=>{var t,n,r;(t=e.images)==null||t.forEach(i=>i.url=this.replaceUrl(i.url)),(n=e.reply)!=null&&n.thumb&&(e.reply.thumb=this.replaceUrl(e.reply.thumb)),(r=e.files)==null||r.forEach(i=>{i.url=this.replaceUrl(i.url),i.thumb&&(i.thumb=this.replaceUrl(i.thumb))})}),this.imgList=this.posts.flatMap((e,t)=>(e.images??[]).map(n=>{var r;return{url:n.url,text:e.text,author:e.author??(typeof e.forwarded_from=="string"?e.forwarded_from:(r=e.forwarded_from)==null?void 0:r.name),date:e.date,postIndex:t}})),this.postImgIndex=new Array(this.posts.length).fill(null),this.imgList.forEach((e,t)=>{this.postImgIndex[e.postIndex]===null&&(this.postImgIndex[e.postIndex]=t)}),console.log(this.imgList),console.log(this.postImgIndex),setTimeout(()=>Xs(),100)}catch(e){console.log(e),this.fail=e}}updated(){Xs()}};An([Qe({required:!0})],Ct.prototype,"postsUrl",2);An([Qe()],Ct.prototype,"postsData",2);An([Qe({default:!0})],Ct.prototype,"margins",2);An([ds("searchEl")],Ct.prototype,"searchEl",2);Ct=An([vn({components:{PostView:em,ImageViewer:Wm,AudioPlayer:Xn(()=>Promise.resolve().then(()=>Cg))}})],Ct);const Qm=e=>(bn("data-v-4850356f"),e=e(),wn(),e),Jm={class:"search"},Xm={key:0,class:"error tgb-card"},Km=Qm(()=>N("br",null,null,-1)),eg={key:1,"infinite-scroll-distance":50};function tg(e,t,n,r,i,s){const o=uu,a=_t("PostView"),l=_t("AudioPlayer"),u=_t("ImageViewer"),d=su;return L(),H("div",{class:je(["tg-blog",{margins:e.margins}])},[tc(e.$slots,"default",{},void 0,!0),N("div",Jm,[Ps(N("input",{"onUpdate:modelValue":t[0]||(t[0]=f=>e.search=f),ref:"searchEl",placeholder:"Search..."},null,512),[[nc,e.search]]),mt(o)]),e.fail?(L(),H("div",Xm,[N("h2",null,[rn("Failed loading posts from: "),Km,rn(ge(e.purl),1)]),rn(" "+ge(e.fail),1)])):ee("",!0),e.posts.length!==0?Ps((L(),H("div",eg,[(L(!0),H(ar,null,pi(e.searchedCount,(f,c)=>(L(),Ae(a,{p:e.searchedPosts[c],postsUrl:e.purl,key:e.searchedPosts[c].id,onPlayFile:t[1]||(t[1]=h=>e.audio=h),onClickImg:h=>e.img=e.postImgIndex[c]+h,onClickReply:e.clickReply,class:je({shake:e.replyShake.includes(c)})},null,8,["p","postsUrl","onClickImg","onClickReply","class"]))),128))])),[[d,e.infiniteScroll]]):ee("",!0),e.audio?(L(),Ae(l,{key:2,audio:e.audio,onPrev:t[2]||(t[2]=f=>e.audioNext(-1)),onNext:t[3]||(t[3]=f=>e.audioNext(1))},null,8,["audio"])):ee("",!0),mt(u,{imgs:e.imgList,index:e.img,"onUpdate:index":t[4]||(t[4]=f=>e.img=f)},null,8,["imgs","index"])],2)}const ng=On(Ct,[["render",tg],["__scopeId","data-v-4850356f"]]),rg={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},ig=N("path",{fill:"currentColor",d:"M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4L224 214.3v83.4L52.5 440.6zM256 352V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4S256 428.4 256 416v-64z"},null,-1),sg=[ig];function og(e,t){return L(),H("svg",rg,sg)}const ag={name:"fa6-solid-forward",render:og},lg={viewBox:"0 0 320 512",width:"1.2em",height:"1.2em"},cg=N("path",{fill:"currentColor",d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48h-32z"},null,-1),ug=[cg];function hg(e,t){return L(),H("svg",lg,ug)}const dg={name:"fa6-solid-pause",render:hg},fg={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},pg=N("path",{fill:"currentColor",d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4l171.5 142.9zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29v-64z"},null,-1),mg=[pg];function gg(e,t){return L(),H("svg",fg,mg)}const yg={name:"fa6-solid-backward",render:gg};var bg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Mt=(e,t,n,r)=>{for(var i=r>1?void 0:r?wg(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&bg(t,n,i),i};let ot=class extends Wt{constructor(){super(...arguments),J(this,"audio"),J(this,"playing",null),J(this,"duration","00:00"),J(this,"time","00:00")}mounted(){this.init()}pause(){this.playing.pause(),this.$forceUpdate()}play(){this.playing.play(),this.$forceUpdate()}next(){}prev(){}unmounted(){this.playing&&this.playing.pause()}init(){this.playing&&!this.playing.paused&&this.playing.pause(),this.playing=new Audio,this.playing.src=this.audio.url,this.playing.onloadedmetadata=()=>{this.duration=Ti(this.playing.duration)},this.playing.ontimeupdate=()=>{this.time=Ti(this.playing.currentTime)},this.playing.onended=()=>{this.$forceUpdate(),this.next()},this.playing.play()}};Mt([Qe({required:!0})],ot.prototype,"audio",2);Mt([yt("pause")],ot.prototype,"pause",1);Mt([yt("play")],ot.prototype,"play",1);Mt([yt("next")],ot.prototype,"next",1);Mt([yt("prev")],ot.prototype,"prev",1);Mt([Dp("audio")],ot.prototype,"init",1);ot=Mt([vn({components:{}})],ot);const Pa=e=>(bn("data-v-dcaa915d"),e=e(),wn(),e),vg={id:"AudioPlayer"},xg={class:"wrap"},kg={class:"unselectable"},_g={class:"control"},Sg=Pa(()=>N("span",{class:"f-grow1"},null,-1)),Tg=Pa(()=>N("span",{class:"f-grow1"},null,-1));function Og(e,t,n,r,i,s){var o;const a=yg,l=Na,u=dg,d=ag;return L(),H("div",vg,[N("div",xg,[N("div",kg,ge(e.audio.performer)+" - "+ge(e.audio.title),1),N("div",_g,[N("span",null,ge(this.time),1),Sg,mt(a,{class:"clickable",onClick:e.prev},null,8,["onClick"]),(o=e.playing)!=null&&o.paused?(L(),Ae(l,{key:0,onClick:e.play},null,8,["onClick"])):(L(),Ae(u,{key:1,onClick:e.pause},null,8,["onClick"])),mt(d,{class:"clickable",onClick:e.next},null,8,["onClick"]),Tg,N("span",null,ge(this.duration),1)])])])}const Eg=On(ot,[["render",Og],["__scopeId","data-v-dcaa915d"]]),Cg=Object.freeze(Object.defineProperty({__proto__:null,default:Eg},Symbol.toStringTag,{value:"Module"}));function La(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Nt=La();function Ag(e){Nt=e}const Ra=/[&<>"']/,Dg=new RegExp(Ra.source,"g"),ja=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Mg=new RegExp(ja.source,"g"),Ng={"&":"&","<":"<",">":">",'"':""","'":"'"},to=e=>Ng[e];function be(e,t){if(t){if(Ra.test(e))return e.replace(Dg,to)}else if(ja.test(e))return e.replace(Mg,to);return e}const Ig=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function qa(e){return e.replace(Ig,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Pg=/(^|[^\[])\^/g;function ie(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,i)=>(i=i.source||i,i=i.replace(Pg,"$1"),e=e.replace(r,i),n),getRegex:()=>new RegExp(e,t)};return n}const Lg=/[^\w:]/g,Rg=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function no(e,t,n){if(e){let r;try{r=decodeURIComponent(qa(n)).replace(Lg,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}t&&!Rg.test(n)&&(n=Bg(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const Bn={},jg=/^[^:]+:\/*[^/]*$/,qg=/^([^:]+:)[\s\S]*$/,Ug=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Bg(e,t){Bn[" "+e]||(jg.test(e)?Bn[" "+e]=e+"/":Bn[" "+e]=nr(e,"/",!0)),e=Bn[" "+e];const n=e.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:e.replace(qg,"$1")+t:t.charAt(0)==="/"?n?t:e.replace(Ug,"$1")+t:e+t}const yr={exec:function(){}};function ro(e,t){const n=e.replace(/\|/g,(s,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function so(e,t,n,r){const i=t.href,s=t.title?be(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:s,text:be(o)}}function zg(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(` +O.version="2.29.4";Ou(le);O.fn=w;O.min=fd;O.max=pd;O.now=md;O.utc=Ge;O.unix=Vf;O.months=$f;O.isDate=xn;O.locale=pt;O.invalid=Dr;O.duration=He;O.isMoment=Ye;O.weekdays=Gf;O.parseZone=Ff;O.localeData=ct;O.isDuration=er;O.monthsShort=Wf;O.weekdaysMin=Qf;O.defineLocale=rs;O.updateLocale=Vh;O.locales=Fh;O.weekdaysShort=Zf;O.normalizeUnits=Le;O.relativeTimeRounding=Sp;O.relativeTimeThreshold=Tp;O.calendarFormat=Bd;O.prototype=w;O.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Ep=/\B([A-Z])/g,Cp=e=>e.replace(Ep,"-$1").toLowerCase();function yt(e){return Ar((t,n)=>{const r=e||Cp(n);t.emits||(t.emits=[]),t.emits.push(r);const i=t.methods[n];t.methods[n]=function(...s){const o=l=>{l===void 0?s.length===0?this.$emit(r):s.length===1?this.$emit(r,s[0]):this.$emit(r,...s):(s.unshift(l),this.$emit(r,...s))},a=i.apply(this,s);return Ap(a)?a.then(o):o(a),a}})}function Ap(e){return e instanceof Promise||e&&typeof e.then=="function"}function Qe(e){return Ar((t,n)=>{t.props||(t.props=Object.create(null)),t.props[n]=e})}function ds(e){return Ar((t,n)=>{t.computed||(t.computed=Object.create(null)),t.computed[n]={cache:!1,get(){return this.$refs[e||n]}}})}function Dp(e,t){return Ar((n,r)=>{n.watch||(n.watch=Object.create(null));const i=n.watch;typeof i[e]=="object"&&!Array.isArray(i[e])?i[e]=[i[e]]:typeof i[e]>"u"&&(i[e]=[]),i[e].push(Object.assign({handler:r},t))})}const Mp={viewBox:"0 0 576 512",width:"1.2em",height:"1.2em"},Np=N("path",{fill:"currentColor",d:"M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0a144 144 0 1 1-288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"},null,-1),Ip=[Np];function Pp(e,t){return L(),H("svg",Mp,Ip)}const Lp={name:"fa6-solid-eye",render:Pp},Rp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},jp=N("path",{fill:"currentColor",d:"M96 0C60.7 0 32 28.7 32 64v384c0 35.3 28.7 64 64 64h288c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H96zm112 288h64c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16H144c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0a64 64 0 1 1-128 0zM512 80c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V80zm-16 112c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm16 144c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16v-64z"},null,-1),qp=[jp];function Up(e,t){return L(),H("svg",Rp,qp)}const Bp={name:"fa6-solid-address-book",render:Up},Yp={viewBox:"0 0 384 512",width:"1.2em",height:"1.2em"},Hp=N("path",{fill:"currentColor",d:"M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80v352c0 17.4 9.4 33.4 24.5 41.9S58.2 482 73 473l288-176c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"},null,-1),zp=[Hp];function Vp(e,t){return L(),H("svg",Yp,zp)}const Na={name:"fa6-solid-play",render:Vp},Fp={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},$p=N("path",{fill:"currentColor",d:"M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32v242.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64v-32c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48a24 24 0 1 1 0-48z"},null,-1),Wp=[$p];function Gp(e,t){return L(),H("svg",Fp,Wp)}const Zp={name:"fa6-solid-download",render:Gp};function Ti(e){return O.utc(O.duration(e,"seconds").asMilliseconds()).format("mm:ss")}function Qp(e){for(const t of["B","KiB","MiB","GiB","TiB","PiB"]){if(Math.abs(e)<1024)return`${e.toFixed(1)} ${t}`;e/=1024}return"> 1024 PiB"}var Jp=Object.defineProperty,Xp=Object.getOwnPropertyDescriptor,Tn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Xp(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Jp(t,n,i),i};function Kp(e,t){let n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}let Tt=class extends Wt{constructor(){super(...arguments),J(this,"f"),J(this,"hasHead"),J(this,"gif")}get pollFile(){return this.f}get locationFile(){return this.f}get spoilerClasses(){return{media_spoiler:this.f.spoiler,clickable:this.f.spoiler}}fileThumbClick(){if(!this.f.media_type)return console.log(`Downloading file: ${this.f.url}`),Kp(this.f.url,this.f.url.split("/").slice(-1)[0]);this.play()}play(){return this.f}get shouldDisplayDetail(){return!this.f.media_type||this.isAudioOrVoice||this.f.media_type=="contact"}get isAudioOrVoice(){return this.f.media_type=="audio_file"||this.f.media_type=="voice_message"}get fileTitle(){const e=this.f;if(!e.media_type)return e.original_name??e.url.split("/").slice(-1)[0];if(e.media_type=="voice_message")return"Voice Message";if(e.media_type=="audio_file"){let t="";return e.performer&&(t+=e.performer+" - "),e.title&&(t+=e.title),t}if(e.media_type=="contact"){let t=e.first_name??"";return e.last_name&&(t+=" "+e.last_name),t}}get duration(){return Ti(this.f.duration)}get size(){return Qp(this.f.size)}};Tn([Qe({required:!0})],Tt.prototype,"f",2);Tn([Qe({required:!0})],Tt.prototype,"hasHead",2);Tn([ds()],Tt.prototype,"gif",2);Tn([yt("play-file")],Tt.prototype,"play",1);Tt=Tn([vn({components:{Location:Xn(()=>ei(()=>import("./Location-20aeb1c0-C8VwBkgr.js"),__vite__mapDeps([0,1,2]))),Poll:Xn(()=>ei(()=>import("./Poll-ee42f803-CjE9lbzE.js"),__vite__mapDeps([3,1,2]))),VideoPlayer:Xn(()=>ei(()=>import("./VideoPlayer-328c0f9f-C8ZAoKiP.js"),__vite__mapDeps([4,1,2])))}})],Tt);const On=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},e0={key:0,class:"file"},t0=["src"],n0={class:"icon fbox-center"},r0={class:"detail fbox-vcenter"},i0={key:0,class:"title"},s0={class:"file-detail"},o0={key:0,class:"duration"},a0={key:1,class:"size"},l0={key:2,class:"phone"},c0={key:1,class:"sticker"},u0=["src"],h0=["src"],d0=["src"],f0=["src"],p0=["src"];function m0(e,t,n,r,i,s){const o=Zp,a=Na,l=Bp,u=_t("VideoPlayer"),d=_t("Poll"),f=_t("Location");return L(),H(ar,null,[e.shouldDisplayDetail?(L(),H("div",e0,[N("div",{class:"thumb clickable",onClick:t[0]||(t[0]=(...c)=>e.fileThumbClick&&e.fileThumbClick(...c))},[N("img",{src:e.f.thumb??"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",alt:""},null,8,t0),N("div",n0,[e.f.media_type?e.isAudioOrVoice?(L(),Ae(a,{key:1})):e.f.media_type==="contact"?(L(),Ae(l,{key:2})):ee("",!0):(L(),Ae(o,{key:0}))])]),N("div",r0,[e.fileTitle?(L(),H("div",i0,ge(e.fileTitle),1)):ee("",!0),N("div",s0,[e.f.duration?(L(),H("span",o0,ge(e.duration),1)):ee("",!0),e.f.size?(L(),H("span",a0,ge(e.size),1)):ee("",!0),e.f.phone_number?(L(),H("span",l0,ge(e.f.phone_number),1)):ee("",!0)])])])):ee("",!0),e.f.media_type==="sticker"?(L(),H("div",c0,[e.f.url.toLowerCase().endsWith("webm")?(L(),H("video",{key:0,src:e.f.url,preload:"auto",muted:"",autoplay:"",loop:"",playsinline:"",disablepictureinpicture:""},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,h0)):ee("",!0)],8,u0)):(L(),H("img",{key:1,src:e.f.url,alt:""},null,8,d0))])):ee("",!0),e.f.media_type==="video_file"?(L(),H("div",{key:2,class:je(["video no-head",{"has-head":e.hasHead}])},[N("div",{onClick:t[1]||(t[1]=c=>e.f.spoiler=!1),class:je({clickable:e.f.spoiler})},[mt(u,{f:e.f,class:je(e.spoilerClasses)},null,8,["f","class"])],2)],2)):ee("",!0),e.f.media_type==="animation"?(L(),H("div",{key:3,class:je(["video no-head",{"has-head":e.hasHead}])},[N("video",{src:e.f.url,preload:"auto",muted:"",loop:"",playsinline:"",disablepictureinpicture:"",ref:"gif",class:je(e.spoilerClasses),onClick:t[2]||(t[2]=c=>{e.f.spoiler=!1,e.gif.play()})},[e.f.thumb?(L(),H("img",{key:0,src:e.f.thumb,alt:""},null,8,p0)):ee("",!0)],10,f0)],2)):ee("",!0),e.f.media_type==="poll"?(L(),Ae(d,{key:4,f:e.pollFile},null,8,["f"])):ee("",!0),e.f.media_type==="location"?(L(),Ae(f,{key:5,class:je(["location no-head",{"has-head":e.hasHead}]),f:e.locationFile},null,8,["class","f"])):ee("",!0)],64)}const g0=On(Tt,[["render",m0],["__scopeId","data-v-9944bade"]]);parseInt(getComputedStyle(document.documentElement).fontSize,10);const Qs=(e,t,n)=>Math.min(n,Math.max(t,e)),I={None:0,Top:1,Right:2,Bottom:4,Left:8};function y0(e){return e.map(t=>t>1.2?"w":t<.8?"n":"q").join("")}function b0(e){return e.reduce((t,n)=>n+t,1)/e.length}function Js(e,t){return e.reduce((n,r)=>n+r,t)}function w0(e,t){return e.map(n=>t>1.1?Qs(n,1,2.75):Qs(n,.6667,1))}function v0(e){const t={width:0,height:0};return e.forEach(({dimensions:n,sides:r})=>{r&I.Right&&(t.width=n.width+n.x),r&I.Bottom&&(t.height=n.height+n.y)}),t}function x0(e,t,n){const r=e.map(d=>d.width/d.height),i=y0(r),s=b0(r),o=r.length,a=r.some(d=>d>2);let l;const u={ratios:r,proportions:i,averageRatio:s,maxWidth:t,minWidth:100,maxHeight:n,spacing:2};if(o===1){const d=r[0];l=[{dimensions:{x:0,y:0,width:t,height:d>1?n/d:n},sides:4}]}else o>=5||a?l=k0(u):o===2?l=_0(u):o===3?l=E0(u):l=D0(u);return{layout:l,containerStyle:v0(l)}}function k0({ratios:e,averageRatio:t,maxWidth:n,minWidth:r,spacing:i,maxHeight:s=4*n/3}){const o=w0(e,t),a=e.length,l=new Array(a),u=[],d=(k,T)=>{const M=o.slice(k,k+T),P=Js(M,0);return(n-(T-1)*i)/P},f=k=>{const T=[];let M=0;k.forEach(P=>{T.push(d(M,P)),M+=P}),u.push({lineCounts:k,heights:T})};for(let k=1;k!==a;++k){const T=a-k;k<=3&&T<=3&&f([k,T])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T){const M=a-k-T;k<=3&&T<=(t<.85?4:3)&&M<=3&&f([k,T,M])}for(let k=1;k!==a-1;++k)for(let T=1;T!==a-k;++T)for(let M=1;M!==a-k-T;++M){const P=a-k-T-M;k<=3&&T<=3&&M<=3&&P<=4&&f([k,T,M,P])}let c,h=0;for(let k=0;k{for(let m=1;m!==P;++m)if(M[m-1]>M[m])return 1.5;return 1})(),ye=Math.abs($-s)*G*de;(!c||ye1.4&&t[1]-t[0]<.2?S0(e):n==="ww"||n==="qq"?T0(e):O0(e)}function S0(e){const{ratios:t,maxWidth:n,spacing:r,maxHeight:i}=e,s=Math.round(Math.min(n/t[0],Math.min(n/t[1],(i-r)/2)));return[{dimensions:{x:0,y:0,width:n,height:s},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:s+r,width:n,height:s},sides:I.Left|I.Bottom|I.Right}]}function T0(e){const{ratios:t,maxWidth:n,spacing:r,maxHeight:i}=e,s=(n-r)/2,o=Math.round(Math.min(s/t[0],Math.min(s/t[1],i)));return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:s+r,y:0,width:s,height:o},sides:I.Top|I.Right|I.Bottom}]}function O0(e){const{ratios:t,minWidth:n,maxWidth:r,spacing:i,maxHeight:s}=e,o=Math.round(1.5*n),a=Math.min(Math.round(Math.max(.4*(r-i),(r-i)/t[0]/(1/t[0]+1/t[1]))),r-i-o),l=r-a-i,u=Math.min(s,Math.round(Math.min(l/t[0],a/t[1])));return[{dimensions:{x:0,y:0,width:l,height:u},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:l+i,y:0,width:a,height:u},sides:I.Top|I.Right|I.Bottom}]}function E0(e){const{proportions:t}=e;return t[0]==="n"?C0(e):A0(e)}function C0(e){const{maxHeight:t,spacing:n,ratios:r,maxWidth:i,minWidth:s}=e,o=t,a=Math.round(Math.min((t-n)/2,r[1]*(i-n)/(r[2]+r[1]))),l=o-a-n,u=Math.max(s,Math.round(Math.min((i-n)/2,Math.min(a*r[2],l*r[1])))),d=Math.min(Math.round(o*r[0]),i-n-u);return[{dimensions:{x:0,y:0,width:d,height:o},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:d+n,y:0,width:u,height:l},sides:I.Top|I.Right},{dimensions:{x:d+n,y:l+n,width:u,height:a},sides:I.Bottom|I.Right}]}function A0(e){const{maxWidth:t,ratios:n,maxHeight:r,spacing:i}=e,s=t,o=Math.round(Math.min(s/n[0],.66*(r-i))),a=(t-i)/2,l=Math.min(r-o-i,Math.round(Math.min(a/n[1],a/n[2]))),u=s-a-i;return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+i,width:a,height:l},sides:I.Bottom|I.Left},{dimensions:{x:a+i,y:o+i,width:u,height:l},sides:I.Bottom|I.Right}]}function D0(e){const{proportions:t}=e;return t[0]==="w"?M0(e):N0(e)}function M0({maxWidth:e,ratios:t,spacing:n,maxHeight:r,minWidth:i}){const s=e,o=Math.round(Math.min(s/t[0],.66*(r-n))),a=Math.round((e-2*n)/(t[1]+t[2]+t[3])),l=Math.max(i,Math.round(Math.min(.4*(e-2*n),a*t[1]))),u=Math.round(Math.max(Math.max(i,.33*(e-2*n)),a*t[3])),d=s-l-u-2*n,f=Math.min(r-o-n,a);return[{dimensions:{x:0,y:0,width:s,height:o},sides:I.Left|I.Top|I.Right},{dimensions:{x:0,y:o+n,width:l,height:f},sides:I.Bottom|I.Left},{dimensions:{x:l+n,y:o+n,width:d,height:f},sides:I.Bottom},{dimensions:{x:l+n+d+n,y:o+n,width:u,height:f},sides:I.Right|I.Bottom}]}function N0({maxHeight:e,ratios:t,maxWidth:n,spacing:r,minWidth:i}){const s=e,o=Math.round(Math.min(s*t[0],.6*(n-r))),a=Math.round((e-2*r)/(1/t[1]+1/t[2]+1/t[3])),l=Math.round(a/t[1]),u=Math.round(a/t[2]),d=s-l-u-2*r,f=Math.max(i,Math.min(n-o-r,a));return[{dimensions:{x:0,y:0,width:o,height:s},sides:I.Top|I.Left|I.Bottom},{dimensions:{x:o+r,y:0,width:f,height:l},sides:I.Top|I.Right},{dimensions:{x:o+r,y:l+r,width:f,height:u},sides:I.Right},{dimensions:{x:o+r,y:l+u+2*r,width:f,height:d},sides:I.Bottom|I.Right}]}var I0=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,En=(e,t,n,r)=>{for(var i=r>1?void 0:r?P0(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&I0(t,n,i),i};let Ot=class extends Wt{constructor(){super(...arguments),J(this,"p"),J(this,"postsUrl"),J(this,"el"),J(this,"sizeScale",1)}get text(){if(this.p.text)return this.p.text}get fwdUrl(){return typeof this.p.forwarded_from=="string"?void 0:this.p.forwarded_from.url}get fwdName(){return typeof this.p.forwarded_from=="string"?this.p.forwarded_from:this.p.forwarded_from.name}get dims(){return console.log(`Calculating dimensions for ${this.p.id}...`),x0(this.p.images,450,450)}get containerStyle(){const e=this.sizeScale,t=this.dims.containerStyle;return{width:t.width*e+"px",height:t.height*e+"px"}}getImageStyle(e){const t=this.sizeScale,n=this.dims.layout[e].dimensions;return{left:n.x*t+"px",top:n.y*t+"px",width:n.width*t+"px",height:n.height*t+"px"}}clickReply(){return this.p.reply.id}refreshSize(){this.sizeScale=this.el.clientWidth/450}mounted(){this.initEmoji(),this.refreshSize(),window.addEventListener("resize",this.refreshSize)}unmounted(){window.removeEventListener("resize",this.refreshSize)}replaceUrl(e){return new URL(e,this.postsUrl).toString()}initEmoji(){document.querySelectorAll("i.custom-emoji:not(.init)").forEach(e=>{const t=this.replaceUrl(e.getAttribute("emoji-src"));e.classList.add("init"),t.endsWith("webm")?e.innerHTML=``:e.innerHTML=``})}clickImg(e,t){if(e.spoiler){e.spoiler=!1;return}this.$emit("click-img",t)}};En([Qe({required:!0})],Ot.prototype,"p",2);En([Qe({required:!0})],Ot.prototype,"postsUrl",2);En([ds("post")],Ot.prototype,"el",2);En([yt("click-reply")],Ot.prototype,"clickReply",1);Ot=En([vn({components:{FileView:g0}})],Ot);const Ia=e=>(bn("data-v-95a034ba"),e=e(),wn(),e),L0=["id"],R0={class:"head unselectable"},j0={key:0,class:"forward"},q0=["href"],U0={key:0,class:"thumb-wrap"},B0=["src"],Y0={class:"mtext"},H0=Ia(()=>N("div",{class:"reply-to"},"Reply to:",-1)),z0=["innerHTML"],V0=["src","onClick"],F0={key:2,class:"files"},$0=["innerHTML"],W0={class:"info font-code unselectable"},G0={class:"id"},Z0=Ia(()=>N("div",{class:"f-grow1"},null,-1)),Q0={key:0,class:"author"},J0={class:"date"},X0={key:1,class:"views"};function K0(e,t,n,r,i,s){const o=_t("FileView"),a=Lp;return L(),H("div",{class:je(["post tgb-card",{service:e.p.type==="service"}]),id:`message-${e.p.id}`,ref:"post"},[N("div",R0,[e.p.forwarded_from?(L(),H("div",j0,[rn(" Forwarded from: "),N("a",{href:e.fwdUrl},ge(e.fwdName),9,q0)])):ee("",!0)]),e.p.reply?(L(),H("div",{key:0,class:"reply undraggable clickable",onClick:t[0]||(t[0]=(...l)=>e.clickReply&&e.clickReply(...l))},[e.p.reply.thumb?(L(),H("div",U0,[N("img",{class:"thumb",src:e.p.reply.thumb,alt:"",loading:"lazy"},null,8,B0)])):ee("",!0),N("div",Y0,[H0,N("div",{class:"reply-text",innerHTML:e.p.reply.text},null,8,z0)])])):ee("",!0),e.p.images?(L(),H("div",{key:1,class:je(["images",{"has-head":e.p.reply||e.p.forwarded_from}]),style:fi(e.containerStyle)},[(L(!0),H(ar,null,pi(e.p.images,(l,u)=>(L(),H("div",{class:"image_container",key:u,style:fi(e.getImageStyle(u))},[N("img",{src:l.url,alt:"image",loading:"lazy",class:je(["clickable",{media_spoiler:l.spoiler}]),onClick:d=>e.clickImg(l,u),style:{inset:"0"}},null,10,V0)],4))),128))],6)):ee("",!0),e.p.files?(L(),H("div",F0,[(L(!0),H(ar,null,pi(e.p.files,l=>(L(),Ae(o,{f:l,"has-head":!!(e.p.reply||e.p.forwarded_from||e.p.images),onPlayFile:t[1]||(t[1]=u=>e.$emit("play-file",u))},null,8,["f","has-head"]))),256))])):ee("",!0),N("div",{class:"text",innerHTML:e.text},null,8,$0),N("div",W0,[N("div",G0,"#"+ge(e.p.id),1),Z0,e.p.author?(L(),H("div",Q0,ge(e.p.author),1)):ee("",!0),N("div",J0,ge(e.p.date),1),e.p.views?(L(),H("div",X0,[rn(ge(e.p.views)+" ",1),mt(a)])):ee("",!0)])],10,L0)}const em=On(Ot,[["render",K0],["__scopeId","data-v-95a034ba"]]);function tm(e,t){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}function nm(e,t){for(;(t=t.parentElement)&&t.tagName.toLowerCase()!=e;);return t}function Xs(){const e=document.querySelectorAll(".spoiler");console.log("Spoilers initialized."),e.forEach(t=>{if(t.classList.contains("spoiler-init"))return;t.classList.add("spoiler-init");const n=tm("post",t),r=n==null?void 0:n.querySelectorAll(".spoiler");function i(){t.classList.toggle("spoiler-visible"),console.log(`Spoiler clicked: ${t}`),n&&(r==null||r.forEach(o=>{o!=t&&o.classList.toggle("spoiler-visible")}))}const s=nm("a",t);if(s){s.addEventListener("click",o=>{t.classList.contains("spoiler-visible")||(i(),o.preventDefault())});return}t.addEventListener("click",i)})}const rm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},im=N("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512L340.864 831.872a30.592 30.592 0 0 0 0 42.752a29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),sm=[im];function om(e,t){return L(),H("svg",rm,sm)}const am={name:"ep-arrow-right",render:om},lm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},cm=N("path",{fill:"currentColor",d:"M609.408 149.376L277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0a30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688a29.12 29.12 0 0 0-41.728 0z"},null,-1),um=[cm];function hm(e,t){return L(),H("svg",lm,um)}const dm={name:"ep-arrow-left",render:hm},fm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},pm=N("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696l236.288-236.352l45.248 45.248L508.8 704L192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),mm=[pm];function gm(e,t){return L(),H("svg",fm,mm)}const ym={name:"ep-download",render:gm},bm={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"},wm=N("path",{fill:"currentColor",d:"M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),vm=[wm];function xm(e,t){return L(),H("svg",bm,vm)}const km={name:"ep-close",render:xm};var Ks="Control",eo="Meta",_m="Escape",Sm="ArrowLeft",Tm="ArrowRight",Om=function(e,t,n,r){var i=typeof r<"u"?[r,e]:[e],s=new Blob(i,{type:n||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",t),typeof a.download>"u"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout(function(){document.body.removeChild(a),window.URL.revokeObjectURL(o)},200)}};const Em=Jc(Om);var Cm=Object.defineProperty,Am=Object.getOwnPropertyDescriptor,Cn=(e,t,n,r)=>{for(var i=r>1?void 0:r?Am(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Cm(t,n,i),i};let Et=class extends Wt{constructor(){super(...arguments),J(this,"imgs"),J(this,"index"),J(this,"ctrlDown",!1),J(this,"zoom",1)}get img(){if(this.imgs)return this.imgs[this.index]}get isOpen(){return!!this.img}get hasPrev(){return this.index>0}get hasNext(){return this.index+1=this.imgs.length||(this.zoom=1,this._rawUpdateIndex(t))}_rawUpdateIndex(e){return e}keydown(e){if(this.isOpen){if(e.code===_m)return this.close();if(e.code===Sm)return this.updateIndex(-1);if(e.code===Tm)return this.updateIndex(1);if(e.key==Ks||e.key===eo)return this.ctrlDown=!0}}keyup(e){if(e.key==Ks||e.key===eo)return this.ctrlDown=!1}wheel(e){if(!this.isOpen)return;e.preventDefault();const t=Math.sign(e.deltaY);this.ctrlDown?this.zoom=Math.min(Math.max(this.zoom*=1+t*-.1,.1),5):this.updateIndex(t)}get imgStyle(){return{transform:`scale(${this.zoom.toFixed(2)})`}}mounted(){document.addEventListener("keydown",this.keydown),document.addEventListener("keyup",this.keyup),document.addEventListener("wheel",this.wheel,{passive:!1})}unmounted(){document.removeEventListener("keydown",this.keydown),document.removeEventListener("keyup",this.keyup),document.removeEventListener("wheel",this.wheel)}};Cn([Qe({required:!0})],Et.prototype,"imgs",2);Cn([Qe({required:!0})],Et.prototype,"index",2);Cn([yt("close")],Et.prototype,"close",1);Cn([yt("update:index")],Et.prototype,"_rawUpdateIndex",1);Et=Cn([vn({components:{}})],Et);const Dm=e=>(bn("data-v-8d7ec9da"),e=e(),wn(),e),Mm={key:0,id:"ImageViewer"},Nm={class:"img-container"},Im=["src"],Pm={class:"top"},Lm=Dm(()=>N("span",{class:"f-grow1"},null,-1)),Rm={class:"bottom"},jm={class:"left unselectable"},qm={class:"index"},Um={class:"detail"},Bm={key:0,class:"date"},Ym={class:"right"},Hm={class:"description unselectable"},zm={key:0,class:"text"},Vm=["innerHTML"],Fm={class:"arrows"};function $m(e,t,n,r,i,s){const o=km,a=ym,l=dm,u=am;return e.img?(L(),H("div",Mm,[N("div",Nm,[N("img",{src:e.img.url,alt:"Photo",class:"undraggable",style:fi(e.imgStyle)},null,12,Im)]),N("div",Pm,[Lm,mt(o,{class:"icn close clickable",onClick:e.close},null,8,["onClick"])]),N("div",Rm,[N("div",jm,[N("div",qm,"Photo "+ge(e.index+1)+" of "+ge(e.imgs.length),1),N("div",Um,[e.img.date?(L(),H("span",Bm,ge(e.img.date),1)):ee("",!0)])]),N("div",Ym,[mt(a,{class:"icn download clickable",onClick:e.download},null,8,["onClick"])]),N("div",Hm,[e.img.text?(L(),H("div",zm,[N("div",{innerHTML:e.textHtml},null,8,Vm)])):ee("",!0)])]),N("div",Fm,[e.hasPrev?(L(),Ae(l,{key:0,class:"icn left clickable",onClick:t[0]||(t[0]=d=>e.updateIndex(-1))})):ee("",!0),e.hasNext?(L(),Ae(u,{key:1,class:"icn right clickable",onClick:t[1]||(t[1]=d=>e.updateIndex(1))})):ee("",!0)])])):ee("",!0)}const Wm=On(Et,[["render",$m],["__scopeId","data-v-8d7ec9da"]]);var Gm=Object.defineProperty,Zm=Object.getOwnPropertyDescriptor,An=(e,t,n,r)=>{for(var i=r>1?void 0:r?Zm(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Gm(t,n,i),i};let Ct=class extends Wt{constructor(){super(...arguments),J(this,"postsUrl"),J(this,"postsData"),J(this,"margins"),J(this,"searchEl"),J(this,"search",""),J(this,"posts",[]),J(this,"imgList",null),J(this,"postImgIndex"),J(this,"count",20),J(this,"audio",null),J(this,"img",-1),J(this,"replyShake",[]),J(this,"replyLoading",!1),J(this,"fail",null)}get purl(){return new URL(this.postsUrl,document.location.href).href}get audios(){return this.posts.filter(e=>{var t,n;return((n=(t=e.files)==null?void 0:t.at(0))==null?void 0:n.media_type)=="audio_file"}).flatMap(e=>e.files)}audioNext(e){this.audio=this.audios.at(this.audios.indexOf(this.audio)+e)}get searchedPosts(){let e=this.search.toLowerCase();if(!e)return this.posts;let t=this.posts;function n(r){let i;return[i,e]=e.split(" ",2),i.substring(r)}for(;e;){if(e.startsWith("id:")){let r=n(3);console.log(r),t=t.filter(i=>i.id+""==r);continue}if(e.startsWith("author:")){let r=n(7);t=t.filter(i=>i.author.toLowerCase().startsWith(r));continue}if(e.startsWith("date:")){let r=n(5);t=t.filter(i=>i.date.includes(r));continue}break}return e?t.filter(r=>r.text&&r.text.toLowerCase().includes(e)):t}get searchedCount(){return Math.min(this.count,this.searchedPosts.length)}onKey(e){(e.ctrlKey||e.metaKey)&&e.code=="KeyF"&&(this.searchEl.focus(),this.searchEl.scrollIntoView({block:"center"}),e.stopPropagation(),e.preventDefault())}onHashChange(e){const t=window.location.hash;console.log("Hash change",e.newURL,t),t&&(this.search=decodeURIComponent(t),window.location.hash="",this.searchEl.scrollIntoView({block:"center"}),e.preventDefault(),e.stopPropagation())}mounted(){document.addEventListener("keydown",this.onKey),window.addEventListener("hashchange",this.onHashChange)}unmounted(){document.removeEventListener("keydown",this.onKey),window.removeEventListener("hashchange",this.onHashChange)}replaceUrl(e){return new URL(e,this.purl).toString()}infiniteScroll(){console.log("Infinite Scroll - Load more"),this.count=Math.min(this.count+10,this.posts.length)}get postIdIndex(){return Object.fromEntries(this.posts.map((e,t)=>[e.id,t]))}clickReply(e){if(this.replyLoading)return;const t=this.postIdIndex[e];t>this.count&&(this.replyLoading=!0,this.count=Math.min(t+10,this.posts.length)),this.jumpToReply(e,t)}jumpToReply(e,t){const n=document.getElementById(`message-${e}`);if(!n)return setTimeout(()=>this.jumpToReply(e,t),50);n.scrollIntoView({behavior:"smooth",block:"center"}),this.replyLoading=!1;const r=()=>{this.replyShake=[...this.replyShake,t],setTimeout(()=>this.replyShake=this.replyShake.filter(a=>a!=t),1500)};let i;const s=setTimeout(()=>{r(),window.removeEventListener("scroll",i)},1e3);let o;i=a=>{clearTimeout(o),o=setTimeout(()=>{clearTimeout(s),r(),window.removeEventListener("scroll",i)},100)},window.addEventListener("scroll",i)}async created(){try{this.postsData?this.posts=this.postsData:this.posts=await(await fetch(this.purl)).json(),this.posts.forEach(e=>e.date=O(e.date).format("YYYY-MM-DD h:mm")),this.posts.reverse(),this.posts=this.posts.filter(e=>e.type!=="service"),this.count=Math.min(this.count,this.posts.length),this.posts.forEach(e=>{var t,n,r;(t=e.images)==null||t.forEach(i=>i.url=this.replaceUrl(i.url)),(n=e.reply)!=null&&n.thumb&&(e.reply.thumb=this.replaceUrl(e.reply.thumb)),(r=e.files)==null||r.forEach(i=>{i.url=this.replaceUrl(i.url),i.thumb&&(i.thumb=this.replaceUrl(i.thumb))})}),this.imgList=this.posts.flatMap((e,t)=>(e.images??[]).map(n=>{var r;return{url:n.url,text:e.text,author:e.author??(typeof e.forwarded_from=="string"?e.forwarded_from:(r=e.forwarded_from)==null?void 0:r.name),date:e.date,postIndex:t}})),this.postImgIndex=new Array(this.posts.length).fill(null),this.imgList.forEach((e,t)=>{this.postImgIndex[e.postIndex]===null&&(this.postImgIndex[e.postIndex]=t)}),console.log(this.imgList),console.log(this.postImgIndex),setTimeout(()=>Xs(),100)}catch(e){console.log(e),this.fail=e}}updated(){Xs()}};An([Qe({required:!0})],Ct.prototype,"postsUrl",2);An([Qe()],Ct.prototype,"postsData",2);An([Qe({default:!0})],Ct.prototype,"margins",2);An([ds("searchEl")],Ct.prototype,"searchEl",2);Ct=An([vn({components:{PostView:em,ImageViewer:Wm,AudioPlayer:Xn(()=>Promise.resolve().then(()=>Cg))}})],Ct);const Qm=e=>(bn("data-v-4850356f"),e=e(),wn(),e),Jm={class:"search"},Xm={key:0,class:"error tgb-card"},Km=Qm(()=>N("br",null,null,-1)),eg={key:1,"infinite-scroll-distance":50};function tg(e,t,n,r,i,s){const o=uu,a=_t("PostView"),l=_t("AudioPlayer"),u=_t("ImageViewer"),d=su;return L(),H("div",{class:je(["tg-blog",{margins:e.margins}])},[tc(e.$slots,"default",{},void 0,!0),N("div",Jm,[Ps(N("input",{"onUpdate:modelValue":t[0]||(t[0]=f=>e.search=f),ref:"searchEl",placeholder:"Search..."},null,512),[[nc,e.search]]),mt(o)]),e.fail?(L(),H("div",Xm,[N("h2",null,[rn("Failed loading posts from: "),Km,rn(ge(e.purl),1)]),rn(" "+ge(e.fail),1)])):ee("",!0),e.posts.length!==0?Ps((L(),H("div",eg,[(L(!0),H(ar,null,pi(e.searchedCount,(f,c)=>(L(),Ae(a,{p:e.searchedPosts[c],postsUrl:e.purl,key:e.searchedPosts[c].id,onPlayFile:t[1]||(t[1]=h=>e.audio=h),onClickImg:h=>e.img=e.postImgIndex[c]+h,onClickReply:e.clickReply,class:je({shake:e.replyShake.includes(c)})},null,8,["p","postsUrl","onClickImg","onClickReply","class"]))),128))])),[[d,e.infiniteScroll]]):ee("",!0),e.audio?(L(),Ae(l,{key:2,audio:e.audio,onPrev:t[2]||(t[2]=f=>e.audioNext(-1)),onNext:t[3]||(t[3]=f=>e.audioNext(1))},null,8,["audio"])):ee("",!0),mt(u,{imgs:e.imgList,index:e.img,"onUpdate:index":t[4]||(t[4]=f=>e.img=f)},null,8,["imgs","index"])],2)}const ng=On(Ct,[["render",tg],["__scopeId","data-v-4850356f"]]),rg={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},ig=N("path",{fill:"currentColor",d:"M52.5 440.6c-9.5 7.9-22.8 9.7-34.1 4.4S0 428.4 0 416V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4L224 214.3v83.4L52.5 440.6zM256 352V96c0-12.4 7.2-23.7 18.4-29s24.5-3.6 34.1 4.4l192 160c7.3 6.1 11.5 15.1 11.5 24.6s-4.2 18.5-11.5 24.6l-192 160c-9.5 7.9-22.8 9.7-34.1 4.4S256 428.4 256 416v-64z"},null,-1),sg=[ig];function og(e,t){return L(),H("svg",rg,sg)}const ag={name:"fa6-solid-forward",render:og},lg={viewBox:"0 0 320 512",width:"1.2em",height:"1.2em"},cg=N("path",{fill:"currentColor",d:"M48 64C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zm192 0c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48h-32z"},null,-1),ug=[cg];function hg(e,t){return L(),H("svg",lg,ug)}const dg={name:"fa6-solid-pause",render:hg},fg={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"},pg=N("path",{fill:"currentColor",d:"M459.5 440.6c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4L288 214.3v83.4l171.5 142.9zM256 352V96c0-12.4-7.2-23.7-18.4-29s-24.5-3.6-34.1 4.4l-192 160C4.2 237.5 0 246.5 0 256s4.2 18.5 11.5 24.6l192 160c9.5 7.9 22.8 9.7 34.1 4.4s18.4-16.6 18.4-29v-64z"},null,-1),mg=[pg];function gg(e,t){return L(),H("svg",fg,mg)}const yg={name:"fa6-solid-backward",render:gg};var bg=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,Mt=(e,t,n,r)=>{for(var i=r>1?void 0:r?wg(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&bg(t,n,i),i};let ot=class extends Wt{constructor(){super(...arguments),J(this,"audio"),J(this,"playing",null),J(this,"duration","00:00"),J(this,"time","00:00")}mounted(){this.init()}pause(){this.playing.pause(),this.$forceUpdate()}play(){this.playing.play(),this.$forceUpdate()}next(){}prev(){}unmounted(){this.playing&&this.playing.pause()}init(){this.playing&&!this.playing.paused&&this.playing.pause(),this.playing=new Audio,this.playing.src=this.audio.url,this.playing.onloadedmetadata=()=>{this.duration=Ti(this.playing.duration)},this.playing.ontimeupdate=()=>{this.time=Ti(this.playing.currentTime)},this.playing.onended=()=>{this.$forceUpdate(),this.next()},this.playing.play()}};Mt([Qe({required:!0})],ot.prototype,"audio",2);Mt([yt("pause")],ot.prototype,"pause",1);Mt([yt("play")],ot.prototype,"play",1);Mt([yt("next")],ot.prototype,"next",1);Mt([yt("prev")],ot.prototype,"prev",1);Mt([Dp("audio")],ot.prototype,"init",1);ot=Mt([vn({components:{}})],ot);const Pa=e=>(bn("data-v-dcaa915d"),e=e(),wn(),e),vg={id:"AudioPlayer"},xg={class:"wrap"},kg={class:"unselectable"},_g={class:"control"},Sg=Pa(()=>N("span",{class:"f-grow1"},null,-1)),Tg=Pa(()=>N("span",{class:"f-grow1"},null,-1));function Og(e,t,n,r,i,s){var o;const a=yg,l=Na,u=dg,d=ag;return L(),H("div",vg,[N("div",xg,[N("div",kg,ge(e.audio.performer)+" - "+ge(e.audio.title),1),N("div",_g,[N("span",null,ge(this.time),1),Sg,mt(a,{class:"clickable",onClick:e.prev},null,8,["onClick"]),(o=e.playing)!=null&&o.paused?(L(),Ae(l,{key:0,onClick:e.play},null,8,["onClick"])):(L(),Ae(u,{key:1,onClick:e.pause},null,8,["onClick"])),mt(d,{class:"clickable",onClick:e.next},null,8,["onClick"]),Tg,N("span",null,ge(this.duration),1)])])])}const Eg=On(ot,[["render",Og],["__scopeId","data-v-dcaa915d"]]),Cg=Object.freeze(Object.defineProperty({__proto__:null,default:Eg},Symbol.toStringTag,{value:"Module"}));function La(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let Nt=La();function Ag(e){Nt=e}const Ra=/[&<>"']/,Dg=new RegExp(Ra.source,"g"),ja=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Mg=new RegExp(ja.source,"g"),Ng={"&":"&","<":"<",">":">",'"':""","'":"'"},to=e=>Ng[e];function be(e,t){if(t){if(Ra.test(e))return e.replace(Dg,to)}else if(ja.test(e))return e.replace(Mg,to);return e}const Ig=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function qa(e){return e.replace(Ig,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Pg=/(^|[^\[])\^/g;function ie(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,i)=>(i=i.source||i,i=i.replace(Pg,"$1"),e=e.replace(r,i),n),getRegex:()=>new RegExp(e,t)};return n}const Lg=/[^\w:]/g,Rg=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function no(e,t,n){if(e){let r;try{r=decodeURIComponent(qa(n)).replace(Lg,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}t&&!Rg.test(n)&&(n=Bg(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const Bn={},jg=/^[^:]+:\/*[^/]*$/,qg=/^([^:]+:)[\s\S]*$/,Ug=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Bg(e,t){Bn[" "+e]||(jg.test(e)?Bn[" "+e]=e+"/":Bn[" "+e]=nr(e,"/",!0)),e=Bn[" "+e];const n=e.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:e.replace(qg,"$1")+t:t.charAt(0)==="/"?n?t:e.replace(Ug,"$1")+t:e+t}const yr={exec:function(){}};function ro(e,t){const n=e.replace(/\|/g,(s,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else for(;r.length1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function so(e,t,n,r){const i=t.href,s=t.title?be(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:s,text:be(o)}}function zg(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(` `).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[o]=s;return o.length>=r.length?i.slice(r.length):i}).join(` `)}let fs=class{constructor(e){this.options=e||Nt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:nr(n,` `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],r=zg(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const r=nr(n,"#");(this.options.pedantic||!r||/ $/.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,s,o,a,l,u,d,f,c,h,b=t[1].trim();const g=b.length>1,y={type:"list",raw:"",ordered:g,start:g?+b.slice(0,-1):"",loose:!1,items:[]};b=g?`\\d{1,9}\\${b.slice(-1)}`:`\\${b}`,this.options.pedantic&&(b=g?b:"[*+-]");const S=new RegExp(`^( {0,3}${b})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,!(!(t=S.exec(e))||this.rules.block.hr.test(e)));){if(n=t[0],e=e.substring(n.length),u=t[2].split(` diff --git a/assets/Loading-TN5rVjOy.js b/assets/Loading-4yKS49A6.js similarity index 99% rename from assets/Loading-TN5rVjOy.js rename to assets/Loading-4yKS49A6.js index 01a3a70..3e7f729 100644 --- a/assets/Loading-TN5rVjOy.js +++ b/assets/Loading-4yKS49A6.js @@ -1,4 +1,4 @@ -var te=Object.defineProperty;var ne=(r,t,n)=>t in r?te(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var U=(r,t,n)=>ne(r,typeof t!="symbol"?t+"":t,n);import{_ as ie,o as se,c as re,p as le,g as oe,a as H}from"./index-DjertsXM.js";function X(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let A=X();function ae(r){A=r}const G=/[&<>"']/,ce=new RegExp(G.source,"g"),V=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,he=new RegExp(V.source,"g"),pe={"&":"&","<":"<",">":">",'"':""","'":"'"},M=r=>pe[r];function w(r,t){if(t){if(G.test(r))return r.replace(ce,M)}else if(V.test(r))return r.replace(he,M);return r}const ue=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function W(r){return r.replace(ue,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const fe=/(^|[^\[])\^/g;function m(r,t){r=typeof r=="string"?r:r.source,t=t||"";const n={replace:(e,i)=>(i=i.source||i,i=i.replace(fe,"$1"),r=r.replace(e,i),n),getRegex:()=>new RegExp(r,t)};return n}const ge=/[^\w:]/g,de=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(r,t,n){if(r){let e;try{e=decodeURIComponent(W(n)).replace(ge,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!de.test(n)&&(n=be(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const L={},ke=/^[^:]+:\/*[^/]*$/,me=/^([^:]+:)[\s\S]*$/,xe=/^([^:]+:\/*[^/]*)[\s\S]*$/;function be(r,t){L[" "+r]||(ke.test(r)?L[" "+r]=r+"/":L[" "+r]=v(r,"/",!0)),r=L[" "+r];const n=r.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:r.replace(me,"$1")+t:t.charAt(0)==="/"?n?t:r.replace(xe,"$1")+t:r+t}const B={exec:function(){}};function j(r,t){const n=r.replace(/\|/g,(s,l,o)=>{let c=!1,d=l;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/);let i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length1;)t&1&&(n+=r),t>>=1,r+=r;return n+r}function N(r,t,n,e){const i=t.href,s=t.title?w(t.title):null,l=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){e.state.inLink=!0;const o={type:"link",raw:n,href:i,title:s,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,o}return{type:"image",raw:n,href:i,title:s,text:w(l)}}function ye(r,t){const n=r.match(/^(\s+)(?:```)/);if(n===null)return t;const e=n[1];return t.split(` +var te=Object.defineProperty;var ne=(r,t,n)=>t in r?te(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var U=(r,t,n)=>ne(r,typeof t!="symbol"?t+"":t,n);import{_ as ie,o as se,c as re,p as le,g as oe,a as H}from"./index-CY8g26_C.js";function X(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let A=X();function ae(r){A=r}const G=/[&<>"']/,ce=new RegExp(G.source,"g"),V=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,he=new RegExp(V.source,"g"),pe={"&":"&","<":"<",">":">",'"':""","'":"'"},M=r=>pe[r];function w(r,t){if(t){if(G.test(r))return r.replace(ce,M)}else if(V.test(r))return r.replace(he,M);return r}const ue=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function W(r){return r.replace(ue,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const fe=/(^|[^\[])\^/g;function m(r,t){r=typeof r=="string"?r:r.source,t=t||"";const n={replace:(e,i)=>(i=i.source||i,i=i.replace(fe,"$1"),r=r.replace(e,i),n),getRegex:()=>new RegExp(r,t)};return n}const ge=/[^\w:]/g,de=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(r,t,n){if(r){let e;try{e=decodeURIComponent(W(n)).replace(ge,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!de.test(n)&&(n=be(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const L={},ke=/^[^:]+:\/*[^/]*$/,me=/^([^:]+:)[\s\S]*$/,xe=/^([^:]+:\/*[^/]*)[\s\S]*$/;function be(r,t){L[" "+r]||(ke.test(r)?L[" "+r]=r+"/":L[" "+r]=v(r,"/",!0)),r=L[" "+r];const n=r.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:r.replace(me,"$1")+t:t.charAt(0)==="/"?n?t:r.replace(xe,"$1")+t:r+t}const B={exec:function(){}};function j(r,t){const n=r.replace(/\|/g,(s,l,o)=>{let c=!1,d=l;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/);let i=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length1;)t&1&&(n+=r),t>>=1,r+=r;return n+r}function N(r,t,n,e){const i=t.href,s=t.title?w(t.title):null,l=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){e.state.inLink=!0;const o={type:"link",raw:n,href:i,title:s,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,o}return{type:"image",raw:n,href:i,title:s,text:w(l)}}function ye(r,t){const n=r.match(/^(\s+)(?:```)/);if(n===null)return t;const e=n[1];return t.split(` `).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[l]=s;return l.length>=e.length?i.slice(e.length):i}).join(` `)}class D{constructor(t){this.options=t||A}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const e=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:v(e,` `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const e=n[0],i=ye(e,n[3]||"");return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(/#$/.test(e)){const i=v(e,"#");(this.options.pedantic||!i||/ $/.test(i))&&(e=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const e=n[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(e);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:s,text:e}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e,i,s,l,o,c,d,f,g,k,h,z,_=n[1].trim();const T=_.length>1,x={type:"list",raw:"",ordered:T,start:T?+_.slice(0,-1):"",loose:!1,items:[]};_=T?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=T?_:"[*+-]");const b=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(z=!1,!(!(n=b.exec(t))||this.rules.block.hr.test(t)));){if(e=n[0],t=t.substring(e.length),f=n[2].split(` diff --git a/assets/Location-20aeb1c0-gTwkNJeK.js b/assets/Location-20aeb1c0-C8VwBkgr.js similarity index 99% rename from assets/Location-20aeb1c0-gTwkNJeK.js rename to assets/Location-20aeb1c0-C8VwBkgr.js index 1ca89e4..d4fb3ec 100644 --- a/assets/Location-20aeb1c0-gTwkNJeK.js +++ b/assets/Location-20aeb1c0-C8VwBkgr.js @@ -1,4 +1,4 @@ -import{b as fi,o as Se,c as Ze,a as Ss,e as gi,w as Zs,t as Wn,f as vi,u as re,J as Es,K as xt,B as bi,k as jt,L as wi,y as Li,M as Gn,E as Fn,N as qn,O as Ht,D as Vn,P as ks}from"./index-DjertsXM.js";import{B as Os,k as As,W as Bs,Q as Is,y as Rs,U as Ns}from"./Life-Cmxky2ql.js";var Ds=Object.defineProperty,js=(c,d,h)=>d in c?Ds(c,d,{enumerable:!0,configurable:!0,writable:!0,value:h}):c[d]=h,yi=(c,d,h)=>(js(c,typeof d!="symbol"?d+"":d,h),h);function Hs(c,d){for(var h=0;h_[m]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var xi={exports:{}};/* @preserve +import{b as fi,o as Se,c as Ze,a as Ss,e as gi,w as Zs,t as Wn,f as vi,u as re,J as Es,K as xt,B as bi,k as jt,L as wi,y as Li,M as Gn,E as Fn,N as qn,O as Ht,D as Vn,P as ks}from"./index-CY8g26_C.js";import{B as Os,k as As,W as Bs,Q as Is,y as Rs,U as Ns}from"./Life-DXD9PuiT.js";var Ds=Object.defineProperty,js=(c,d,h)=>d in c?Ds(c,d,{enumerable:!0,configurable:!0,writable:!0,value:h}):c[d]=h,yi=(c,d,h)=>(js(c,typeof d!="symbol"?d+"":d,h),h);function Hs(c,d){for(var h=0;h_[m]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var xi={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade */(function(c,d){(function(h,_){_(d)})(Os,function(h){var _="1.9.4";function m(t){var e,i,n,o;for(i=1,n=arguments.length;i"u"||!L||!L.Mixin)){t=tt(t)?t:[t];for(var e=0;e0?Math.floor(t):Math.ceil(t)};w.prototype={clone:function(){return new w(this.x,this.y)},add:function(t){return this.clone()._add(x(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(x(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new w(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new w(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Zi(this.x),this.y=Zi(this.y),this},distanceTo:function(t){t=x(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=x(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=x(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+Y(this.x)+", "+Y(this.y)+")"}};function x(t,e,i){return t instanceof w?t:tt(t)?new w(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new w(t.x,t.y):new w(t,e,i)}function R(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=X(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=X(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=H(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=H(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,vo=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",C,e),window.removeEventListener("testPassiveEventSupport",C,e)}catch{}return t}(),yo=function(){return!!document.createElement("canvas").getContext}(),Fe=!!(document.createElementNS&&ki("svg").createSVGRect),xo=!!Fe&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),bo=!Fe&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),wo=navigator.platform.indexOf("Mac")===0,Lo=navigator.platform.indexOf("Linux")===0;function ht(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var f={ie:ue,ielt9:so,edge:Ai,webkit:je,android:Bi,android23:Ii,androidStock:ao,opera:He,chrome:Ri,gecko:Ni,safari:ho,phantom:Di,opera12:ji,win:lo,ie3d:Hi,webkit3d:We,gecko3d:Wi,any3d:uo,mobile:Gt,mobileWebkit:co,mobileWebkit3d:_o,msPointer:Fi,pointer:Vi,touch:po,touchNative:Ui,mobileOpera:mo,mobileGecko:fo,retina:go,passiveEvents:vo,canvas:yo,svg:Fe,vml:bo,inlineSvg:xo,mac:wo,linux:Lo},Gi=f.msPointer?"MSPointerDown":"pointerdown",qi=f.msPointer?"MSPointerMove":"pointermove",Ki=f.msPointer?"MSPointerUp":"pointerup",Yi=f.msPointer?"MSPointerCancel":"pointercancel",Ve={touchstart:Gi,touchmove:qi,touchend:Ki,touchcancel:Yi},Ji={touchstart:So,touchmove:ce,touchend:ce,touchcancel:ce},Et={},Xi=!1;function Po(t,e,i){return e==="touchstart"&&Co(),Ji[e]?(i=Ji[e].bind(this,i),t.addEventListener(Ve[e],i,!1),i):(console.warn("wrong event specified:",e),C)}function To(t,e,i){if(!Ve[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ve[e],i,!1)}function Mo(t){Et[t.pointerId]=t}function zo(t){Et[t.pointerId]&&(Et[t.pointerId]=t)}function $i(t){delete Et[t.pointerId]}function Co(){Xi||(document.addEventListener(Gi,Mo,!0),document.addEventListener(qi,zo,!0),document.addEventListener(Ki,$i,!0),document.addEventListener(Yi,$i,!0),Xi=!0)}function ce(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in Et)e.touches.push(Et[i]);e.changedTouches=[e],t(e)}}function So(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&G(e),ce(t,e)}function Zo(t){var e={},i,n;for(n in t)i=t[n],e[n]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Eo=200;function ko(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(s){if(s.detail!==1){n=s.detail;return}if(!(s.pointerType==="mouse"||s.sourceCapabilities&&!s.sourceCapabilities.firesTouchEvents)){var r=on(s);if(!(r.some(function(l){return l instanceof HTMLLabelElement&&l.attributes.for})&&!r.some(function(l){return l instanceof HTMLInputElement||l instanceof HTMLSelectElement}))){var a=Date.now();a-i<=Eo?(n++,n===2&&e(Zo(s))):n=1,i=a}}}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function Oo(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Ue=pe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qt=pe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Qi=qt==="webkitTransition"||qt==="OTransition"?qt+"End":"transitionend";function tn(t){return typeof t=="string"?document.getElementById(t):t}function Kt(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function E(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function N(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function kt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Ot(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Ge(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=_e(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function M(t,e){if(t.classList!==void 0)for(var i=q(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function rn(t){return f.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Io:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function oi(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var Ro={__proto__:null,on:P,off:A,stopPropagation:Mt,disableScrollPropagation:ni,disableClickPropagation:$t,preventDefault:G,stop:zt,getPropagationPath:on,getMousePosition:sn,getWheelDelta:rn,isExternalTarget:oi,addListener:P,removeListener:A},an=Vt.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Tt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=J(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,H(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=x(e.paddingTopLeft||e.padding||[0,0]),n=x(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),a=X([r.min.add(i),r.max.subtract(n)]),l=a.getSize();if(!a.contains(s)){this._enforcingBounds=!0;var u=s.subtract(a.getCenter()),p=a.extend(s).getSize().subtract(l);o.x+=u.x<0?-p.x:p.x,o.y+=u.y<0?-p.y:p.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=m({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return!s.x&&!s.y?this:(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(g(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=m({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=g(this._handleGeolocationResponse,this),i=g(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=new O(e,i),o=n.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var r=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(r,s.maxZoom):r)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var l in t.coords)typeof t.coords[l]=="number"&&(a[l]=t.coords[l]);this.fire("locationfound",a)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),N(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(it(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)N(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=E("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new $(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=H(t),i=x(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(i),u=X(this.project(a,n),this.project(r,n)).getSize(),p=f.any3d?this.options.zoomSnap:1,y=l.x/u.x,z=l.y/u.y,K=e?Math.max(y,z):Math.min(y,z);return n=this.getScaleZoom(K,n),p&&(n=Math.round(n/(p/100))*(p/100),n=e?Math.ceil(n/p)*p:Math.floor(n/p)*p),Math.max(o,Math.min(s,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new w(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new R(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(S(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(x(t),e)},layerPointToLatLng:function(t){var e=x(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(S(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(S(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(H(t))},distance:function(t,e){return this.options.crs.distance(S(t),S(e))},containerPointToLayerPoint:function(t){return x(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return x(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(x(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(S(t)))},mouseEventToContainerPoint:function(t){return sn(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=tn(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");P(e,"scroll",this._onScroll,this),this._containerId=v(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&f.any3d,M(t,"leaflet-container"+(f.touch?" leaflet-touch":"")+(f.retina?" leaflet-retina":"")+(f.ielt9?" leaflet-oldie":"")+(f.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=Kt(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),W(this._mapPane,new w(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(M(t.markerPane,"leaflet-zoom-hide"),M(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){W(this._mapPane,new w(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){e===void 0&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return it(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){W(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[v(this._container)]=this;var e=t?A:P;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),f.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){it(this._resizeRequest),this._resizeRequest=J(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i=[],n,o=e==="mouseout"||e==="mouseover",s=t.target||t.srcElement,r=!1;s;){if(n=this._targets[v(s)],n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(e,!0)&&(o&&!oi(s,t)||(i.push(n),o))||s===this._container)break;s=s.parentNode}return!i.length&&!r&&!o&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&$e(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=m({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var o=this._findEventTargets(t,e);if(i){for(var s=[],r=0;r0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=f.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){D(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=E("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Ue,n=this._proxy.style[i];Pt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){N(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Pt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return i.animate!==!0&&!this.getSize().contains(o)?!1:(J(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,M(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(g(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&D(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function No(t,e){return new Z(t,e)}var rt=pt.extend({options:{position:"topright"},initialize:function(t){k(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return M(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(N(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Qt=function(t){return new rt(t)};Z.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=E("div",e+"control-container",this._container);function n(o,s){var r=e+o+" "+e+s;t[o+s]=E("div",r,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)N(this._controlCorners[t]);N(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var hn=rt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(v(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;t.overlay?(n=document.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+v(this),i),this._layerControlInputs.push(n),n.layerId=v(t.layer),P(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");e.appendChild(s),s.appendChild(n),s.appendChild(o);var r=t.overlay?this._overlaysList:this._baseLayersList;return r.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,n=[],o=[];this._handlingClick=!0;for(var s=t.length-1;s>=0;s--)e=t[s],i=this._getLayer(e.layerId).layer,e.checked?n.push(i):e.checked||o.push(i);for(s=0;s=0;o--)e=t[o],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,P(t,"click",G),this.expand();var e=this;setTimeout(function(){A(t,"click",G),e._preventClick=!1})}}),Do=function(t,e,i){return new hn(t,e,i)},si=rt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=E("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=E("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),$t(s),P(s,"click",zt),P(s,"click",o,this),P(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";D(this._zoomInButton,e),D(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(M(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(M(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Z.mergeOptions({zoomControl:!0}),Z.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new si,this.addControl(this.zoomControl))});var jo=function(t){return new si(t)},ln=rt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=E("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=E("div",e,i)),t.imperial&&(this._iScale=E("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;e>5280?(i=e/5280,n=this._getRoundNum(i),this._updateScale(this._iScale,n+" mi",n/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,o+" ft",o/e))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),Ho=function(t){return new ln(t)},Wo='',ri=rt.extend({options:{position:"bottomright",prefix:''+(f.inlineSvg?Wo+" ":"")+"Leaflet"},initialize:function(t){k(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=E("div","leaflet-control-attribution"),$t(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});Z.mergeOptions({attributionControl:!0}),Z.addInitHook(function(){this.options.attributionControl&&new ri().addTo(this)});var Fo=function(t){return new ri(t)};rt.Layers=hn,rt.Zoom=si,rt.Scale=ln,rt.Attribution=ri,Qt.layers=Do,Qt.zoom=jo,Qt.scale=Ho,Qt.attribution=Fo;var ut=pt.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});ut.addTo=function(t,e){return t.addHandler(e,this),this};var Vo={Events:et},un=f.touch?"touchstart mousedown":"mousedown",wt=Vt.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){k(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(P(this._dragStartTarget,un,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wt._dragging===this&&this.finishDrag(!0),A(this._dragStartTarget,un,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ge(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){wt._dragging===this&&this.finishDrag();return}if(!(wt._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(wt._dragging=this,this._preventOutline&&$e(this._element),Ye(),Yt(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=en(this._element);this._startPoint=new w(e.clientX,e.clientY),this._startPos=Tt(this._element),this._parentScale=Qe(i);var n=t.type==="mousedown";P(document,n?"mousemove":"touchmove",this._onMove,this),P(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new w(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)s&&(r=a,s=l);s>i&&(e[r]=1,hi(t,e,i,n,r),hi(t,e,i,r,o))}function Ko(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Yo(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function te(t,e,i,n){var o=e.x,s=e.y,r=i.x-o,a=i.y-s,l=r*r+a*a,u;return l>0&&(u=((t.x-o)*r+(t.y-s)*a)/l,u>1?(o=i.x,s=i.y):u>0&&(o+=r*u,s+=a*u)),r=t.x-o,a=t.y-s,n?r*r+a*a:new w(o,s)}function ot(t){return!tt(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function gn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ot(t)}function vn(t,e){var i,n,o,s,r,a,l,u;if(!t||t.length===0)throw new Error("latlngs not passed");ot(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var p=S([0,0]),y=H(t),z=y.getNorthWest().distanceTo(y.getSouthWest())*y.getNorthEast().distanceTo(y.getNorthWest());z<1700&&(p=ai(t));var K=t.length,U=[];for(i=0;in){l=(s-n)/o,u=[a.x-l*(a.x-r.x),a.y-l*(a.y-r.y)];break}var Q=e.unproject(x(u));return S([Q.lat+p.lat,Q.lng+p.lng])}var Jo={__proto__:null,simplify:_n,pointToSegmentDistance:pn,closestPointOnSegment:Go,clipSegment:fn,_getEdgeIntersection:ge,_getBitCode:Ct,_sqClosestPointOnSegment:te,isFlat:ot,_flat:gn,polylineCenter:vn},li={project:function(t){return new w(t.lng,t.lat)},unproject:function(t){return new O(t.y,t.x)},bounds:new R([-180,-90],[180,90])},ui={R:6378137,R_MINOR:6356752314245179e-9,bounds:new R([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(a,1e-10)),new w(t.lng*e*i,n)},unproject:function(t){for(var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),s=Math.exp(-t.y/i),r=Math.PI/2-2*Math.atan(s),a=0,l=.1,u;a<15&&Math.abs(l)>1e-7;a++)u=o*Math.sin(r),u=Math.pow((1-u)/(1+u),o/2),l=Math.PI/2-2*Math.atan(s*u)-r,r+=l;return new O(r*e,t.x*e/i)}},Xo={__proto__:null,LonLat:li,Mercator:ui,SphericalMercator:Ie},$o=m({},bt,{code:"EPSG:3395",projection:ui,transformation:function(){var t=.5/(Math.PI*ui.R);return Ut(t,.5,-t,.5)}()}),yn=m({},bt,{code:"EPSG:4326",projection:li,transformation:Ut(1/180,1,-1/180,.5)}),Qo=m({},mt,{projection:li,transformation:Ut(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});mt.Earth=bt,mt.EPSG3395=$o,mt.EPSG3857=Ne,mt.EPSG900913=oo,mt.EPSG4326=yn,mt.Simple=Qo;var at=Vt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[v(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[v(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Z.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=v(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=v(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return v(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){t=t?tt(t)?t:[t]:[];for(var e=0,i=t.length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof O&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){gt.prototype._setLatLngs.call(this,t),ot(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return ot(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new w(e,e);if(t=new R(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,s;nt.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||gt.prototype._containsPoint.call(this,t,!0)}});function as(t,e){return new It(t,e)}var vt=ft.extend({initialize:function(t,e){k(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=tt(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i0&&o.push(o[0].slice()),o}function Rt(t,e){return t.feature?m({},t.feature,{geometry:e}):Le(e)}function Le(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var pi={toGeoJSON:function(t){return Rt(this,{type:"Point",coordinates:_i(this.getLatLng(),t)})}};ve.include(pi),ci.include(pi),ye.include(pi),gt.include({toGeoJSON:function(t){var e=!ot(this._latlngs),i=we(this._latlngs,e?1:0,!1,t);return Rt(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),It.include({toGeoJSON:function(t){var e=!ot(this._latlngs),i=e&&!ot(this._latlngs[0]),n=we(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Rt(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),At.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Rt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",n=[];return this.eachLayer(function(o){if(o.toGeoJSON){var s=o.toGeoJSON(t);if(i)n.push(s.geometry);else{var r=Le(s);r.type==="FeatureCollection"?n.push.apply(n,r.features):n.push(r)}}}),i?Rt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});function wn(t,e){return new vt(t,e)}var hs=wn,Pe=at.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=H(e),k(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(M(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){N(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&kt(this._image),this},bringToBack:function(){return this._map&&Ot(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=H(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:E("img");if(M(e,"leaflet-image-layer"),this._zoomAnimated&&M(e,"leaflet-zoom-animated"),this.options.className&&M(e,this.options.className),e.onselectstart=C,e.onmousemove=C,e.onload=g(this.fire,this,"load"),e.onerror=g(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Pt(this._image,i,e)},_reset:function(){var t=this._image,e=new R(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();W(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){nt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),ls=function(t,e,i){return new Pe(t,e,i)},Ln=Pe.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:E("video");if(M(e,"leaflet-image-layer"),this._zoomAnimated&&M(e,"leaflet-zoom-animated"),this.options.className&&M(e,this.options.className),e.onselectstart=C,e.onmousemove=C,e.onloadeddata=g(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o0?n:[e.src];return}tt(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;so?(e.height=o+"px",M(t,s)):D(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();W(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(Kt(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new w(this._containerLeft,-i-this._containerBottom);o._add(Tt(this._container));var s=t.layerPointToContainerPoint(o),r=x(this.options.autoPanPadding),a=x(this.options.autoPanPaddingTopLeft||r),l=x(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),p=0,y=0;s.x+n+l.x>u.x&&(p=s.x+n-u.x+l.x),s.x-p-a.x<0&&(p=s.x-a.x),s.y+i+l.y>u.y&&(y=s.y+i-u.y+l.y),s.y-y-a.y<0&&(y=s.y-a.y),(p||y)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([p,y]))}},_getAnchor:function(){return x(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),ds=function(t,e){return new Te(t,e)};Z.mergeOptions({closePopupOnClick:!0}),Z.include({openPopup:function(t,e,i){return this._initOverlay(Te,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),at.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Te,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof ft||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){zt(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Lt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Me=ct.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ct.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ct.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ct.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=E("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+v(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,u=o.offsetHeight,p=x(this.options.offset),y=this._getAnchor();a==="top"?(e=l/2,i=u):a==="bottom"?(e=l/2,i=0):a==="center"?(e=l/2,i=u/2):a==="right"?(e=0,i=u/2):a==="left"?(e=l,i=u/2):r.xthis.options.maxZoom||in?this._retainParent(o,s,r,n):!1)},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new w(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),l=this._tiles[a];if(l&&l.active){l.retain=!0;continue}else l&&l.loaded&&(l.retain=!0);i+1this.options.maxZoom||this.options.minZoom!==void 0&&o1){this._setView(t,i);return}for(var y=o.min.y;y<=o.max.y;y++)for(var z=o.min.x;z<=o.max.x;z++){var K=new w(z,y);if(K.z=this._tileZoom,!!this._isValidTile(K)){var U=this._tiles[this._tileCoordsToKey(K)];U?U.current=!0:r.push(K)}}if(r.sort(function(Q,Dt){return Q.distanceTo(s)-Dt.distanceTo(s)}),r.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var st=document.createDocumentFragment();for(z=0;zi.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return H(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),s=e.unproject(n,t.z),r=e.unproject(o,t.z);return[s,r]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new $(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new w(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(N(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){M(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=C,t.onmousemove=C,f.ielt9&&this.options.opacity<1&&nt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),g(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&J(g(this._tileReady,this,t,null,o)),W(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);i=this._tiles[n],i&&(i.loaded=+new Date,this._map._fadeAnimated?(nt(i.el,0),it(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(M(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),f.ielt9||!this._map._fadeAnimated?J(this._pruneTiles,this):setTimeout(g(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new w(this._wrapX?j(t.x,this._wrapX):t.x,this._wrapY?j(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new R(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function ms(t){return new ie(t)}var Nt=ie.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=k(this,e),e.detectRetina&&f.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return P(i,"load",g(this._tileOnLoad,this,e,i)),P(i,"error",g(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:f.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return le(this._url,m(e,this.options))},_tileOnLoad:function(t,e){f.ielt9?setTimeout(g(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;return i&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=C,e.onerror=C,!e.complete)){e.src=Zt;var i=this._tiles[t].coords;N(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",Zt),ie.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===Zt))return ie.prototype._tileReady.call(this,t,e,i)}});function Mn(t,e){return new Nt(t,e)}var zn=Nt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=m({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);e=k(this,e);var o=e.detectRetina&&f.retina?2:1,s=this.getTileSize();i.width=s.x*o,i.height=s.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Nt.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=X(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===yn?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=Nt.prototype.getTileUrl.call(this,t);return a+he(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return m(this.wmsParams,t),e||this.redraw(),this}});function fs(t,e){return new zn(t,e)}Nt.WMS=zn,Mn.wms=fs;var yt=at.extend({options:{padding:.1},initialize:function(t){k(this,t),v(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),M(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));f.any3d?Pt(this._container,s,i):W(this._container,s)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new R(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Cn=yt.extend({options:{tolerance:0},getEvents:function(){var t=yt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){yt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");P(t,"mousemove",this._onMouseMove,this),P(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),P(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){it(this._redrawRequest),delete this._ctx,N(this._container),A(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){yt.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=f.retina?2:1;W(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",f.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){yt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[v(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[v(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),gs={_initContainer:function(){this._container=E("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(yt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ne("shape");M(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ne("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[v(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;N(e),t.removeInteractiveTarget(e),delete this._layers[v(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=ne("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=tt(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=ne("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){kt(t._container)},_bringToBack:function(t){Ot(t._container)}},ze=f.vml?ne:ki,oe=yt.extend({_initContainer:function(){this._container=ze("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ze("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){N(this._container),A(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){yt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),W(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=ze("path");t.options.className&&M(e,t.options.className),t.options.interactive&&M(e,"leaflet-interactive"),this._updateStyle(t),this._layers[v(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){N(t._path),t.removeInteractiveTarget(t._path),delete this._layers[v(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,Oi(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){kt(t._path)},_bringToBack:function(t){Ot(t._path)}});f.vml&&oe.include(gs);function Zn(t){return f.svg||f.vml?new oe(t):null}Z.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Sn(t)||Zn(t)}});var En=It.extend({initialize:function(t,e){It.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=H(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function vs(t,e){return new En(t,e)}oe.create=ze,oe.pointsToPath=Oi,vt.geometryToLayer=xe,vt.coordsToLatLng=di,vt.coordsToLatLngs=be,vt.latLngToCoords=_i,vt.latLngsToCoords=we,vt.getFeature=Rt,vt.asFeature=Le,Z.mergeOptions({boxZoom:!0});var kn=ut.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){P(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){A(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){N(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Yt(),Ye(),this._startPoint=this._map.mouseEventToContainerPoint(t),P(document,{contextmenu:zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=E("div","leaflet-zoom-box",this._container),M(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new R(this._point,this._startPoint),i=e.getSize();W(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(N(this._box),D(this._container,"leaflet-crosshair")),Jt(),Je(),A(document,{contextmenu:zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(g(this._resetState,this),0);var e=new $(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Z.addInitHook("addHandler","boxZoom",kn),Z.mergeOptions({doubleClickZoom:!0});var On=ut.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});Z.addInitHook("addHandler","doubleClickZoom",On),Z.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var An=ut.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wt(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}M(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){D(this._map._container,"leaflet-grab"),D(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=H(this._map.options.maxBounds);this._offsetLimit=X(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,r&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});Z.addInitHook("addHandler","scrollWheelZoom",In);var ys=600;Z.mergeOptions({tapHold:f.touchNative&&f.safari&&f.mobile,tapTolerance:15});var Rn=ut.extend({addHooks:function(){P(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){A(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new w(e.clientX,e.clientY),this._holdTimeout=setTimeout(g(function(){this._cancel(),this._isTapValid()&&(P(document,"touchend",G),P(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),ys),P(document,"touchend touchcancel contextmenu",this._cancel,this),P(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){A(document,"touchend",G),A(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),A(document,"touchend touchcancel contextmenu",this._cancel,this),A(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new w(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});Z.addInitHook("addHandler","tapHold",Rn),Z.mergeOptions({touchZoom:f.touch,bounceAtZoomLimits:!0});var Nn=ut.extend({addHooks:function(){M(this._map._container,"leaflet-touch-zoom"),P(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){D(this._map._container,"leaflet-touch-zoom"),A(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),P(document,"touchmove",this._onTouchMove,this),P(document,"touchend touchcancel",this._onTouchEnd,this),G(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,o===1)return}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&s.x===0&&s.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),it(this._animRequest);var r=g(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=J(r,this,!0),G(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,it(this._animRequest),A(document,"touchmove",this._onTouchMove,this),A(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Z.addInitHook("addHandler","touchZoom",Nn),Z.BoxZoom=kn,Z.DoubleClickZoom=On,Z.Drag=An,Z.Keyboard=Bn,Z.ScrollWheelZoom=In,Z.TapHold=Rn,Z.TouchZoom=Nn,h.Bounds=R,h.Browser=f,h.CRS=mt,h.Canvas=Cn,h.Circle=ci,h.CircleMarker=ye,h.Class=pt,h.Control=rt,h.DivIcon=Tn,h.DivOverlay=ct,h.DomEvent=Ro,h.DomUtil=Bo,h.Draggable=wt,h.Evented=Vt,h.FeatureGroup=ft,h.GeoJSON=vt,h.GridLayer=ie,h.Handler=ut,h.Icon=Bt,h.ImageOverlay=Pe,h.LatLng=O,h.LatLngBounds=$,h.Layer=at,h.LayerGroup=At,h.LineUtil=Jo,h.Map=Z,h.Marker=ve,h.Mixin=Vo,h.Path=Lt,h.Point=w,h.PolyUtil=Uo,h.Polygon=It,h.Polyline=gt,h.Popup=Te,h.PosAnimation=an,h.Projection=Xo,h.Rectangle=En,h.Renderer=yt,h.SVG=oe,h.SVGOverlay=Pn,h.TileLayer=Nt,h.Tooltip=Me,h.Transformation=Re,h.Util=io,h.VideoOverlay=Ln,h.bind=g,h.bounds=X,h.canvas=Sn,h.circle=ss,h.circleMarker=os,h.control=Qt,h.divIcon=ps,h.extend=m,h.featureGroup=es,h.geoJSON=wn,h.geoJson=hs,h.gridLayer=ms,h.icon=is,h.imageOverlay=ls,h.latLng=S,h.latLngBounds=H,h.layerGroup=ts,h.map=No,h.marker=ns,h.point=x,h.polygon=as,h.polyline=rs,h.popup=ds,h.rectangle=vs,h.setOptions=k,h.stamp=v,h.svg=Zn,h.svgOverlay=cs,h.tileLayer=Mn,h.tooltip=_s,h.transformation=Ut,h.version=_,h.videoOverlay=us;var xs=window.L;h.noConflict=function(){return window.L=xs,this},window.L=h})})(xi,xi.exports);var Kn=xi.exports;const Ws=Ns(Kn),Fs=Hs({__proto__:null,default:Ws},[Kn]),Yn=(c,d=100)=>{let h;const _=function(...m){const T=this;h&&clearTimeout(h),h=setTimeout(()=>{c.apply(T,m),h=null},d)};return _.cancel=function(){h&&clearTimeout(h)},_},Jn=function(c){for(const d of Object.values(c))d&&St(d.cancel)&&d.cancel()},Vs=c=>!c||typeof c.charAt!="function"?c:c.charAt(0).toUpperCase()+c.slice(1),St=c=>typeof c=="function",Pi=(c,d,h)=>{for(const _ in h){const m="set"+Vs(_);c[m]?Vn(()=>h[_],(T,g)=>{c[m](T,g)}):d[m]&&Vn(()=>h[_],T=>{d[m](T)})}},ae=(c,d,h={})=>{const _={...h};for(const m in c){const T=d[m],g=c[m];T&&(T&&T.custom===!0||g!==void 0&&(_[m]=g))}return _},Ti=c=>{const d={};for(const h in c)if(h.startsWith("on")&&!h.startsWith("onUpdate")&&h!=="onReady"){const _=h.slice(2).toLocaleLowerCase();d[_]=c[h]}return d},Us=async c=>{const d=await Promise.all([jt(()=>import("./marker-icon-2x-b9d2094a-D4k_ikNW.js"),[]),jt(()=>import("./marker-icon-b2ca459f-C2eJqgqv.js"),[]),jt(()=>import("./marker-shadow-eea80fe0-DU6CIJ0p.js"),[])]);delete c.Default.prototype._getIconUrl,c.Default.mergeOptions({iconRetinaUrl:d[0].default,iconUrl:d[1].default,shadowUrl:d[2].default})},Ee=c=>{const d=re(()=>console.warn(`Method ${c} has been invoked without being replaced`)),h=(..._)=>d.value(..._);return h.wrapped=d,xt(c,h),h},ke=(c,d)=>c.wrapped.value=d,se=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||void 0,Mi="useGlobalLeaflet",Xn={options:{type:Object,default:()=>({}),custom:!0}},$n=c=>({options:c.options,methods:{}}),Wt={...Xn,pane:{type:String},attribution:{type:String},name:{type:String,custom:!0},layerType:{type:String,custom:!0},visible:{type:Boolean,custom:!0,default:!0}},Qn=(c,d,h)=>{const _=Ht("addLayer"),m=Ht("removeLayer"),{options:T,methods:g}=$n(c),I=ae(c,Wt,T),v=()=>_({leafletObject:d.value}),V=()=>m({leafletObject:d.value}),j={...g,setAttribution(C){V(),d.value.options.attribution=C,c.visible&&v()},setName(){V(),c.visible&&v()},setLayerType(){V(),c.visible&&v()},setVisible(C){d.value&&(C?v():V())},bindPopup({leafletObject:C}){if(!d.value||!St(d.value.bindPopup)){console.warn("Attempt to bind popup before bindPopup method available on layer.");return}d.value.bindPopup(C)},bindTooltip({leafletObject:C}){if(!d.value||!St(d.value.bindTooltip)){console.warn("Attempt to bind tooltip before bindTooltip method available on layer.");return}d.value.bindTooltip(C)},unbindTooltip(){d.value&&(St(d.value.closeTooltip)&&d.value.closeTooltip(),St(d.value.unbindTooltip)&&d.value.unbindTooltip())},unbindPopup(){d.value&&(St(d.value.closePopup)&&d.value.closePopup(),St(d.value.unbindPopup)&&d.value.unbindPopup())},updateVisibleProp(C){h.emit("update:visible",C)}};return xt("bindPopup",j.bindPopup),xt("bindTooltip",j.bindTooltip),xt("unbindTooltip",j.unbindTooltip),xt("unbindPopup",j.unbindPopup),ks(()=>{j.unbindPopup(),j.unbindTooltip(),V()}),{options:I,methods:j}},Gs=(c,d)=>{if(c&&d.default)return qn("div",{style:{display:"none"}},d.default())},qs={...Wt,interactive:{type:Boolean,default:void 0},bubblingMouseEvents:{type:Boolean,default:void 0}},Ks={...qs,stroke:{type:Boolean,default:void 0},color:{type:String},weight:{type:Number},opacity:{type:Number},lineCap:{type:String},lineJoin:{type:String},dashArray:{type:String},dashOffset:{type:String},fill:{type:Boolean,default:void 0},fillColor:{type:String},fillOpacity:{type:Number},fillRule:{type:String},className:{type:String}};({...Wt});const zi={...Wt,opacity:{type:Number},zIndex:{type:Number},tileSize:{type:Number},noWrap:{type:Boolean,default:void 0},minZoom:{type:Number},maxZoom:{type:Number}},Ys=(c,d,h)=>{const{options:_,methods:m}=Qn(c,d,h);return{options:ae(c,zi,_),methods:{...m}}};({...zi});({...Wt});const Un={...Xn,center:{type:[Object,Array]},bounds:{type:[Array,Object]},maxBounds:{type:[Array,Object]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},paddingBottomRight:{type:Array},paddingTopLeft:{type:Array},padding:{type:Array},worldCopyJump:{type:Boolean,default:void 0},crs:{type:[String,Object]},maxBoundsViscosity:{type:Number},inertia:{type:Boolean,default:void 0},inertiaDeceleration:{type:Number},inertiaMaxSpeed:{type:Number},easeLinearity:{type:Number},zoomAnimation:{type:Boolean,default:void 0},zoomAnimationThreshold:{type:Number},fadeAnimation:{type:Boolean,default:void 0},markerZoomAnimation:{type:Boolean,default:void 0},noBlockingAnimations:{type:Boolean,default:void 0},useGlobalLeaflet:{type:Boolean,default:!0,custom:!0}},Js={emits:["ready","update:zoom","update:center","update:bounds"],props:Un,setup(c,d){const h=re(null),_=Es({ready:!1,leafletRef:{},layersToAdd:[],layersInControl:[]}),{options:m}=$n(c),T=ae(c,Un,m),g=Ee("addLayer"),I=Ee("removeLayer"),v=Ee("registerControl"),V=Ee("registerLayerControl");xt(Mi,c.useGlobalLeaflet);const j={moveEndHandler:Yn(()=>{d.emit("update:zoom",_.leafletRef.getZoom()),d.emit("update:center",_.leafletRef.getCenter()),d.emit("update:bounds",_.leafletRef.getBounds())}),overlayAddHandler(dt){const q=_.layersInControl.find(k=>k.name===dt.name);q&&q.updateVisibleProp(!0)},overlayRemoveHandler(dt){const q=_.layersInControl.find(k=>k.name===dt.name);q&&q.updateVisibleProp(!1)}};bi(async()=>{c.useGlobalLeaflet&&(se.L=se.L||await Promise.resolve().then(()=>Fs));const{map:dt,CRS:q,Icon:k,latLngBounds:he,latLng:Ae,DomEvent:le}=c.useGlobalLeaflet?se.L:await jt(()=>import("./leaflet-src.esm-a9ea7d3e-D_cnzz15.js"),[]);try{T.beforeMapMount&&await T.beforeMapMount()}catch(b){console.error(`The following error occurred running the provided beforeMapMount hook ${b.message}`)}await Us(k);const tt=typeof T.crs=="string"?q[T.crs]:T.crs;T.crs=tt||q.EPSG3857;const _t={addLayer(b){b.layerType!==void 0&&(_.layerControl===void 0?_.layersToAdd.push(b):_.layersInControl.find(B=>B.leafletObject._leaflet_id===b.leafletObject._leaflet_id)||(_.layerControl.addLayer(b),_.layersInControl.push(b))),b.visible!==!1&&_.leafletRef.addLayer(b.leafletObject)},removeLayer(b){b.layerType!==void 0&&(_.layerControl===void 0?_.layersToAdd=_.layersToAdd.filter(B=>B.name!==b.name):(_.layerControl.removeLayer(b.leafletObject),_.layersInControl=_.layersInControl.filter(B=>B.leafletObject._leaflet_id!==b.leafletObject._leaflet_id))),_.leafletRef.removeLayer(b.leafletObject)},registerLayerControl(b){_.layerControl=b,_.layersToAdd.forEach(B=>{_.layerControl.addLayer(B)}),_.layersToAdd=[],v(b)},registerControl(b){_.leafletRef.addControl(b.leafletObject)},setZoom(b){const B=_.leafletRef.getZoom();b!==B&&_.leafletRef.setZoom(b,{animate:c.noBlockingAnimations?!1:null})},setPaddingBottomRight(b){_.paddingBottomRight=b},setPaddingTopLeft(b){_.paddingTopLeft=b},setPadding(b){_.padding=b},setCrs(b){const B=_.leafletRef.getBounds();_.leafletRef.options.crs=b,_.leafletRef.fitBounds(B,{animate:!1,padding:[0,0]})},fitBounds(b){_.leafletRef.fitBounds(b,{animate:this.noBlockingAnimations?!1:null})},setBounds(b){if(!b)return;const B=he(b);B.isValid()&&!(_.lastSetBounds||_.leafletRef.getBounds()).equals(B,0)&&(_.lastSetBounds=B,_.leafletRef.fitBounds(B,this.fitBoundsOptions))},setCenter(b){if(b==null)return;const B=Ae(b),Ft=_.lastSetCenter||_.leafletRef.getCenter();(Ft.lat!==B.lat||Ft.lng!==B.lng)&&(_.lastSetCenter=B,_.leafletRef.panTo(B,{animate:this.noBlockingAnimations?!1:null}))}};ke(g,_t.addLayer),ke(I,_t.removeLayer),ke(v,_t.registerControl),ke(V,_t.registerLayerControl),_.leafletRef=wi(dt(h.value,T)),Pi(_t,_.leafletRef,c);const Zt=Ti(d.attrs);_.leafletRef.on("moveend",j.moveEndHandler),_.leafletRef.on("overlayadd",j.overlayAddHandler),_.leafletRef.on("overlayremove",j.overlayRemoveHandler),le.on(_.leafletRef,Zt),_.ready=!0,Li(()=>d.emit("ready",_.leafletRef))}),Gn(()=>{Jn(j),_.leafletRef&&(_.leafletRef.off(),_.leafletRef.remove())});const C=Fn(()=>_.leafletRef),Y=Fn(()=>_.ready);return{root:h,ready:Y,leafletObject:C}},render(){return qn("div",{style:{width:"100%",height:"100%"},ref:"root"},this.ready&&this.$slots.default?this.$slots.default():{})}},Xs=Js,$s=["Symbol(Comment)","Symbol(Text)"],Qs=["LTooltip","LPopup"],to={...Wt,draggable:{type:Boolean,default:void 0},icon:{type:[Object]},zIndexOffset:{type:Number},latLng:{type:[Object,Array],custom:!0,required:!0}},tr=(c,d,h)=>{const{options:_,methods:m}=Qn(c,d,h),T=ae(c,to,_),g={...m,setDraggable(I){d.value.dragging&&(I?d.value.dragging.enable():d.value.dragging.disable())},latLngSync(I){h.emit("update:latLng",I.latlng),h.emit("update:lat-lng",I.latlng)},setLatLng(I){if(I!=null&&d.value){const v=d.value.getLatLng();(!v||!v.equals(I))&&d.value.setLatLng(I)}}};return{options:T,methods:g}},er=(c,d)=>{const h=d.slots.default&&d.slots.default();return h&&h.length&&h.some(ir)};function ir(c){return!($s.includes(c.type.toString())||Qs.includes(c.type.name))}const nr={name:"LMarker",props:to,setup(c,d){const h=re({}),_=re(!1),m=Ht(Mi),T=Ht("addLayer");xt("canSetParentHtml",()=>!!h.value.getElement()),xt("setParentHtml",V=>h.value.getElement().innerHTML=V),xt("setIcon",V=>h.value.setIcon&&h.value.setIcon(V));const{options:g,methods:I}=tr(c,h,d),v={moveHandler:Yn(I.latLngSync)};return bi(async()=>{const{marker:V,DomEvent:j,divIcon:C}=m?se.L:await jt(()=>import("./leaflet-src.esm-a9ea7d3e-D_cnzz15.js"),[]);er(g,d)&&(g.icon=C({className:""})),h.value=wi(V(c.latLng,g));const Y=Ti(d.attrs);j.on(h.value,Y),h.value.on("move",v.moveHandler),Pi(I,h.value,c),T({...c,...I,leafletObject:h.value}),_.value=!0,Li(()=>d.emit("ready",h.value))}),Gn(()=>Jn(v)),{ready:_,leafletObject:h}},render(){return Gs(this.ready,this.$slots)}},or=nr,sr={...Ks,smoothFactor:{type:Number},noClip:{type:Boolean,default:void 0},latLngs:{type:Array,required:!0,custom:!0}},rr={...sr};rr.latLngs.required=!1;const Ci={...zi,tms:{type:Boolean,default:void 0},subdomains:{type:[String,Array],validator:c=>typeof c=="string"?!0:Array.isArray(c)?c.every(d=>typeof d=="string"):!1},detectRetina:{type:Boolean,default:void 0},url:{type:String,required:!0,custom:!0}},ar=(c,d,h)=>{const{options:_,methods:m}=Ys(c,d,h),T=ae(c,Ci,_),g={...m};return{options:T,methods:g}},hr={props:Ci,setup(c,d){const h=re({}),_=Ht(Mi),m=Ht("addLayer"),{options:T,methods:g}=ar(c,h,d);return bi(async()=>{const{tileLayer:I,DomEvent:v}=_?se.L:await jt(()=>import("./leaflet-src.esm-a9ea7d3e-D_cnzz15.js"),[]);h.value=wi(I(c.url,T));const V=Ti(d.attrs);v.on(h.value,V),Pi(g,h.value,c),m({...c,...g,leafletObject:h.value}),Li(()=>d.emit("ready",h.value))}),{leafletObject:h}},render(){return null}},lr=hr;({...Ci});var ur=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,eo=(c,d,h,_)=>{for(var m=_>1?void 0:_?cr(d,h):d,T=c.length-1,g;T>=0;T--)(g=c[T])&&(m=(_?g(d,h,m):g(m))||m);return _&&m&&ur(d,h,m),m};let Oe=class extends Bs{constructor(){super(...arguments),yi(this,"f"),yi(this,"marker"),yi(this,"zoom",14)}get options(){return{scrollWheelZoom:!1}}get center(){return[this.f.latitude,this.f.longitude]}created(){this.marker=this.center}};eo([Is({required:!0})],Oe.prototype,"f",2);Oe=eo([Rs({components:{LMap:Xs,LTileLayer:lr,LMarker:or}})],Oe);const dr={id:"Location"},_r={class:"map"},pr={key:0,class:"info"},mr={key:0,class:"title"},fr={key:1,class:"address"};function gr(c,d,h,_,m,T){const g=fi("LMarker"),I=fi("LTileLayer"),v=fi("LMap");return Se(),Ze("div",dr,[Ss("div",_r,[gi(v,{options:c.options,zoom:c.zoom,center:c.center,minZoom:3,maxZoom:16},{default:Zs(()=>[gi(g,{"lat-lng":c.marker},null,8,["lat-lng"]),gi(I,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","layer-type":"base",name:"OpenStreetMap"})]),_:1},8,["options","zoom","center"])]),c.f.title?(Se(),Ze("div",pr,[c.f.title?(Se(),Ze("div",mr,Wn(c.f.title),1)):vi("",!0),c.f.address?(Se(),Ze("div",fr,Wn(c.f.address),1)):vi("",!0)])):vi("",!0)])}const xr=As(Oe,[["render",gr],["__scopeId","data-v-0a3cfff1"]]);export{xr as default}; diff --git a/assets/Menu-D2Yz2CFX.js b/assets/Menu-DWwHUWFO.js similarity index 98% rename from assets/Menu-D2Yz2CFX.js rename to assets/Menu-DWwHUWFO.js index e3be53e..f413247 100644 --- a/assets/Menu-D2Yz2CFX.js +++ b/assets/Menu-DWwHUWFO.js @@ -1 +1 @@ -var v=Object.defineProperty;var y=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var h=(e,t,n)=>y(e,typeof t!="symbol"?t+"":t,n);import{V as C,C as E,_ as x,c as r,a as o,F as p,r as f,o as u,t as i,n as F,f as w,p as B,g as D}from"./index-DjertsXM.js";var M=Object.defineProperty,O=Object.getOwnPropertyDescriptor,$=(e,t,n,c)=>{for(var m=c>1?void 0:c?O(t,n):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(m=(c?a(t,n,m):a(m))||m);return c&&m&&M(t,n,m),m},I=(e=>(e[e.light=0]="light",e[e.normal=1]="normal",e[e.salty=2]="salty",e))(I||{});const g=[{cat:"🍖 猪肉",items:[{name:"玉米排骨汤",recommend:!0},{name:"红烧蜜汁五花肉",sub:"+卤蛋",recommend:!0},{name:"蒜香炸排骨"},{name:"椒盐排骨"},{name:"酱香排骨"},{name:"四川回锅肉"},{name:"蒜蓉粉丝蒸排骨"}]},{cat:"🍗 鸡肉",items:[{name:"土豆炖鸡腿",recommend:!0},{name:"香烤鸡腿",recommend:!0},{name:"可乐鸡翅"},{name:"照烧鸡翅"}]},{cat:"🥩 牛肉",items:[{name:"煎牛排"},{name:"牛肉粉丝汤"}]},{cat:"🐟 海鲜",items:[{name:"煎三文鱼皮"}]},{cat:"🥗 菜",items:[{name:"肉丁炒芹菜",recommend:!0},{name:"干锅菜花",recommend:!0},{name:"韭菜炒蛋"},{name:"红烧土豆"},{name:"葱花鸡蛋"},{name:"白菜炖粉条"},{name:"素炒绿叶菜",sub:"大白菜/小油菜"}]},{cat:"🍜 面条",items:[{name:"味噌叉烧豚骨面"},{name:"番茄牛肉面"},{name:"黑椒炒意面"},{name:"炒面",sub:"挂面/乌冬/意面/方便面"}]},{cat:"🍥 其他的",items:[{name:"鸡蛋火腿吐司",recommend:!0},{name:"茶叶蛋"}]},{cat:"🍛 主食",items:[{name:"照烧肥牛饭",sub:"肥牛片/五花肉",recommend:!0},{name:"咖喱饭",sub:"牛肉块/肥牛片/五花肉"},{name:"炒饭"}]},{cat:"🍰 蛋糕",subtitle:"(要提前几天预定哦! qwq",items:[{name:"提拉米苏",recommend:!0}]},{cat:"🍸 饮料",items:[{name:"白桃奶油鸡尾酒",recommend:!0,original:!0},{name:"火龙果葡萄酒",original:!0},{name:"水果宾治鸡尾酒"}]}];let b=class extends C{constructor(){super(...arguments);h(this,"max_cols",2);h(this,"cols",new Array(this.max_cols))}created(){const n=Array.from(g);n.sort((s,a)=>a.items.length-s.items.length);let c=new Array(this.max_cols).fill(0);for(const s of n){let a=c.indexOf(Math.min(...c));s.column=a,c[a]+=s.items.length}for(let s=0;sa.column==s);let m=0;this.cols.forEach(s=>s.forEach(a=>a.items.forEach(_=>_.id=m++)))}};b=$([E],b);const P=e=>(B("data-v-662d7c10"),e=e(),D(),e),S={id:"Menu",class:"general-page"},V=P(()=>o("div",{class:"title"},[o("h2",null,"小桂桂的私房菜 菜单"),o("div",{class:"subtitle"},"在桂桂家里可以吃到这些哦")],-1)),A={class:"columns"},j={class:"cat"},q={class:"subtitle"},N={class:"items"},k={class:"number"},z={class:"name"},L={key:0,class:"sub"};function G(e,t,n,c,m,s){return u(),r("div",S,[V,o("div",A,[(u(!0),r(p,null,f(e.cols,(a,_)=>(u(),r("div",{class:"column",key:_},[(u(!0),r(p,null,f(a,d=>(u(),r("div",{class:"category",key:d.cat},[o("div",j,i(d.cat)+"!",1),o("div",q,i(d.subtitle),1),o("div",N,[(u(!0),r(p,null,f(d.items,l=>(u(),r("div",{class:F(["item",{recommend:l.recommend,original:l.original}]),key:l.name},[o("span",k,i(l.id)+". ",1),o("span",z,i(l.name),1),l.sub?(u(),r("span",L,"("+i(l.sub)+")",1)):w("",!0)],2))),128))])]))),128))]))),128))])])}const Q=x(b,[["render",G],["__scopeId","data-v-662d7c10"]]);export{I as Flavor,Q as default,g as menu}; +var v=Object.defineProperty;var y=(e,t,n)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var h=(e,t,n)=>y(e,typeof t!="symbol"?t+"":t,n);import{V as C,C as E,_ as x,c as r,a as o,F as p,r as f,o as u,t as i,n as F,f as w,p as B,g as D}from"./index-CY8g26_C.js";var M=Object.defineProperty,O=Object.getOwnPropertyDescriptor,$=(e,t,n,c)=>{for(var m=c>1?void 0:c?O(t,n):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(m=(c?a(t,n,m):a(m))||m);return c&&m&&M(t,n,m),m},I=(e=>(e[e.light=0]="light",e[e.normal=1]="normal",e[e.salty=2]="salty",e))(I||{});const g=[{cat:"🍖 猪肉",items:[{name:"玉米排骨汤",recommend:!0},{name:"红烧蜜汁五花肉",sub:"+卤蛋",recommend:!0},{name:"蒜香炸排骨"},{name:"椒盐排骨"},{name:"酱香排骨"},{name:"四川回锅肉"},{name:"蒜蓉粉丝蒸排骨"}]},{cat:"🍗 鸡肉",items:[{name:"土豆炖鸡腿",recommend:!0},{name:"香烤鸡腿",recommend:!0},{name:"可乐鸡翅"},{name:"照烧鸡翅"}]},{cat:"🥩 牛肉",items:[{name:"煎牛排"},{name:"牛肉粉丝汤"}]},{cat:"🐟 海鲜",items:[{name:"煎三文鱼皮"}]},{cat:"🥗 菜",items:[{name:"肉丁炒芹菜",recommend:!0},{name:"干锅菜花",recommend:!0},{name:"韭菜炒蛋"},{name:"红烧土豆"},{name:"葱花鸡蛋"},{name:"白菜炖粉条"},{name:"素炒绿叶菜",sub:"大白菜/小油菜"}]},{cat:"🍜 面条",items:[{name:"味噌叉烧豚骨面"},{name:"番茄牛肉面"},{name:"黑椒炒意面"},{name:"炒面",sub:"挂面/乌冬/意面/方便面"}]},{cat:"🍥 其他的",items:[{name:"鸡蛋火腿吐司",recommend:!0},{name:"茶叶蛋"}]},{cat:"🍛 主食",items:[{name:"照烧肥牛饭",sub:"肥牛片/五花肉",recommend:!0},{name:"咖喱饭",sub:"牛肉块/肥牛片/五花肉"},{name:"炒饭"}]},{cat:"🍰 蛋糕",subtitle:"(要提前几天预定哦! qwq",items:[{name:"提拉米苏",recommend:!0}]},{cat:"🍸 饮料",items:[{name:"白桃奶油鸡尾酒",recommend:!0,original:!0},{name:"火龙果葡萄酒",original:!0},{name:"水果宾治鸡尾酒"}]}];let b=class extends C{constructor(){super(...arguments);h(this,"max_cols",2);h(this,"cols",new Array(this.max_cols))}created(){const n=Array.from(g);n.sort((s,a)=>a.items.length-s.items.length);let c=new Array(this.max_cols).fill(0);for(const s of n){let a=c.indexOf(Math.min(...c));s.column=a,c[a]+=s.items.length}for(let s=0;sa.column==s);let m=0;this.cols.forEach(s=>s.forEach(a=>a.items.forEach(_=>_.id=m++)))}};b=$([E],b);const P=e=>(B("data-v-662d7c10"),e=e(),D(),e),S={id:"Menu",class:"general-page"},V=P(()=>o("div",{class:"title"},[o("h2",null,"小桂桂的私房菜 菜单"),o("div",{class:"subtitle"},"在桂桂家里可以吃到这些哦")],-1)),A={class:"columns"},j={class:"cat"},q={class:"subtitle"},N={class:"items"},k={class:"number"},z={class:"name"},L={key:0,class:"sub"};function G(e,t,n,c,m,s){return u(),r("div",S,[V,o("div",A,[(u(!0),r(p,null,f(e.cols,(a,_)=>(u(),r("div",{class:"column",key:_},[(u(!0),r(p,null,f(a,d=>(u(),r("div",{class:"category",key:d.cat},[o("div",j,i(d.cat)+"!",1),o("div",q,i(d.subtitle),1),o("div",N,[(u(!0),r(p,null,f(d.items,l=>(u(),r("div",{class:F(["item",{recommend:l.recommend,original:l.original}]),key:l.name},[o("span",k,i(l.id)+". ",1),o("span",z,i(l.name),1),l.sub?(u(),r("span",L,"("+i(l.sub)+")",1)):w("",!0)],2))),128))])]))),128))]))),128))])])}const Q=x(b,[["render",G],["__scopeId","data-v-662d7c10"]]);export{I as Flavor,Q as default,g as menu}; diff --git a/assets/Others-B_UBzPGF.js b/assets/Others-23UaGWwp.js similarity index 92% rename from assets/Others-B_UBzPGF.js rename to assets/Others-23UaGWwp.js index b1285ee..dce6c9b 100644 --- a/assets/Others-B_UBzPGF.js +++ b/assets/Others-23UaGWwp.js @@ -1 +1 @@ -import{_ as r,c as d,a as e,e as a,w as c,b as _,o as i,l as n,p as l,g as h}from"./index-DjertsXM.js";const p={},s=t=>(l("data-v-16122667"),t=t(),h(),t),u={id:"Others",class:"general-page"},f=s(()=>e("div",{class:"title"},[e("h2",null,"更多链接"),e("div",{class:"subtitle"},"欢迎点进来看看")],-1)),v={class:"links"},k=s(()=>e("a",{href:"https://cast.hydev.org"},"📹 公开直播间",-1)),m=s(()=>e("a",{href:"http://status.hydev.org/"},"🔌 看看服务器们过得怎么样",-1));function g(t,x){const o=_("router-link");return i(),d("div",u,[f,e("div",v,[a(o,{class:"rlink",to:"/kitchen-menu"},{default:c(()=>[n("🍳 小桂桂的私房菜 菜单")]),_:1}),a(o,{class:"rlink",to:"/friends"},{default:c(()=>[n("🎎 朋友们")]),_:1}),k,m])])}const w=r(p,[["render",g],["__scopeId","data-v-16122667"]]);export{w as default}; +import{_ as r,c as d,a as e,e as a,w as c,b as _,o as i,l as n,p as l,g as h}from"./index-CY8g26_C.js";const p={},s=t=>(l("data-v-16122667"),t=t(),h(),t),u={id:"Others",class:"general-page"},f=s(()=>e("div",{class:"title"},[e("h2",null,"更多链接"),e("div",{class:"subtitle"},"欢迎点进来看看")],-1)),v={class:"links"},k=s(()=>e("a",{href:"https://cast.hydev.org"},"📹 公开直播间",-1)),m=s(()=>e("a",{href:"http://status.hydev.org/"},"🔌 看看服务器们过得怎么样",-1));function g(t,x){const o=_("router-link");return i(),d("div",u,[f,e("div",v,[a(o,{class:"rlink",to:"/kitchen-menu"},{default:c(()=>[n("🍳 小桂桂的私房菜 菜单")]),_:1}),a(o,{class:"rlink",to:"/friends"},{default:c(()=>[n("🎎 朋友们")]),_:1}),k,m])])}const w=r(p,[["render",g],["__scopeId","data-v-16122667"]]);export{w as default}; diff --git a/assets/Poll-ee42f803-DCZkljGB.js b/assets/Poll-ee42f803-CjE9lbzE.js similarity index 92% rename from assets/Poll-ee42f803-DCZkljGB.js rename to assets/Poll-ee42f803-CjE9lbzE.js index bf3de94..9eee9ff 100644 --- a/assets/Poll-ee42f803-DCZkljGB.js +++ b/assets/Poll-ee42f803-CjE9lbzE.js @@ -1 +1 @@ -import{k as v,W as f,Q as m,y}from"./Life-Cmxky2ql.js";import{o as u,c as p,a as o,t as i,F as _,r as g,n as b,m as h,p as x,g as F}from"./index-DjertsXM.js";var P=Object.defineProperty,R=(e,t,s)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,j=(e,t,s)=>(R(e,t+"",s),s),k=Object.defineProperty,q=Object.getOwnPropertyDescriptor,d=(e,t,s,n)=>{for(var a=n>1?void 0:n?q(t,s):t,l=e.length-1,r;l>=0;l--)(r=e[l])&&(a=(n?r(t,s,a):r(a))||a);return n&&a&&k(t,s,a),a};let c=class extends f{constructor(){super(...arguments),j(this,"f")}get max(){return Math.max(...this.f.options.map(e=>e.voter_count))}percent(e){return this.f.total_voter_count==0?"0%":(e.voter_count/this.f.total_voter_count*100).toFixed(0)+"%"}get subtitle(){let e=this.f.type=="REGULAR"?"Poll":"Quiz";return this.f.is_anonymous&&(e="Anonymous "+e),e}};d([m({required:!0})],c.prototype,"f",2);c=d([y({components:{}})],c);const w=e=>(x("data-v-c8a557d5"),e=e(),F(),e),z={id:"Poll"},I={class:"question"},O={class:"subtitle"},S={class:"text"},A=w(()=>o("span",{class:"f-grow1"},null,-1)),B={class:"percentage"},D={class:"tail"};function E(e,t,s,n,a,l){return u(),p("div",z,[o("div",I,i(e.f.question),1),o("div",O,i(e.subtitle),1),(u(!0),p(_,null,g(e.f.options,r=>(u(),p("div",{class:b(["options",{dominant:r.voter_count===e.max&&e.max!==0}])},[o("span",S,i(r.text),1),A,o("span",B,i(e.percent(r)),1),o("div",{class:"bar",style:h({width:e.percent(r)})},null,4)],2))),256)),o("div",D,"Final Results - "+i(e.f.total_voter_count)+" Responses",1)])}const M=v(c,[["render",E],["__scopeId","data-v-c8a557d5"]]);export{M as default}; +import{k as v,W as f,Q as m,y}from"./Life-DXD9PuiT.js";import{o as u,c as p,a as o,t as i,F as _,r as g,n as b,m as h,p as x,g as F}from"./index-CY8g26_C.js";var P=Object.defineProperty,R=(e,t,s)=>t in e?P(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,j=(e,t,s)=>(R(e,t+"",s),s),k=Object.defineProperty,q=Object.getOwnPropertyDescriptor,d=(e,t,s,n)=>{for(var a=n>1?void 0:n?q(t,s):t,l=e.length-1,r;l>=0;l--)(r=e[l])&&(a=(n?r(t,s,a):r(a))||a);return n&&a&&k(t,s,a),a};let c=class extends f{constructor(){super(...arguments),j(this,"f")}get max(){return Math.max(...this.f.options.map(e=>e.voter_count))}percent(e){return this.f.total_voter_count==0?"0%":(e.voter_count/this.f.total_voter_count*100).toFixed(0)+"%"}get subtitle(){let e=this.f.type=="REGULAR"?"Poll":"Quiz";return this.f.is_anonymous&&(e="Anonymous "+e),e}};d([m({required:!0})],c.prototype,"f",2);c=d([y({components:{}})],c);const w=e=>(x("data-v-c8a557d5"),e=e(),F(),e),z={id:"Poll"},I={class:"question"},O={class:"subtitle"},S={class:"text"},A=w(()=>o("span",{class:"f-grow1"},null,-1)),B={class:"percentage"},D={class:"tail"};function E(e,t,s,n,a,l){return u(),p("div",z,[o("div",I,i(e.f.question),1),o("div",O,i(e.subtitle),1),(u(!0),p(_,null,g(e.f.options,r=>(u(),p("div",{class:b(["options",{dominant:r.voter_count===e.max&&e.max!==0}])},[o("span",S,i(r.text),1),A,o("span",B,i(e.percent(r)),1),o("div",{class:"bar",style:h({width:e.percent(r)})},null,4)],2))),256)),o("div",D,"Final Results - "+i(e.f.total_voter_count)+" Responses",1)])}const M=v(c,[["render",E],["__scopeId","data-v-c8a557d5"]]);export{M as default}; diff --git a/assets/Projects-Ci_l8rQr.js b/assets/Projects-B5YLv4L4.js similarity index 84% rename from assets/Projects-Ci_l8rQr.js rename to assets/Projects-B5YLv4L4.js index 9084220..799d48a 100644 --- a/assets/Projects-Ci_l8rQr.js +++ b/assets/Projects-B5YLv4L4.js @@ -1 +1 @@ -import{V as p,C as a,_ as f,c as l,o as P}from"./index-DjertsXM.js";var u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d=(t,r,o,s)=>{for(var e=s>1?void 0:s?v(r,o):r,c=t.length-1,n;c>=0;c--)(n=t[c])&&(e=(s?n(r,o,e):n(e))||e);return s&&e&&u(r,o,e),e};let _=class extends p{};_=d([a],_);const i={id:"Projects"};function j(t,r,o,s,e,c){return P(),l("div",i)}const x=f(_,[["render",j]]);export{x as default}; +import{V as p,C as a,_ as f,c as l,o as P}from"./index-CY8g26_C.js";var u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d=(t,r,o,s)=>{for(var e=s>1?void 0:s?v(r,o):r,c=t.length-1,n;c>=0;c--)(n=t[c])&&(e=(s?n(r,o,e):n(e))||e);return s&&e&&u(r,o,e),e};let _=class extends p{};_=d([a],_);const i={id:"Projects"};function j(t,r,o,s,e,c){return P(),l("div",i)}const x=f(_,[["render",j]]);export{x as default}; diff --git a/assets/VideoPlayer-328c0f9f-BW-JfgPD.js b/assets/VideoPlayer-328c0f9f-C8ZAoKiP.js similarity index 99% rename from assets/VideoPlayer-328c0f9f-BW-JfgPD.js rename to assets/VideoPlayer-328c0f9f-C8ZAoKiP.js index 69d415b..e1ac1ff 100644 --- a/assets/VideoPlayer-328c0f9f-BW-JfgPD.js +++ b/assets/VideoPlayer-328c0f9f-C8ZAoKiP.js @@ -1,2 +1,2 @@ -import{z as gt,u as ft,B as yt,o as Ie,c as $e,f as bt}from"./index-DjertsXM.js";function m(e,i,t){return(i=wt(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function vt(e,i){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,i||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function wt(e){var i=vt(e,"string");return typeof i=="symbol"?i:String(i)}function kt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Oe(e,i){for(var t=0;ti){var t=It(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var Ot=function(){function e(i,t){kt(this,e),_.element(i)?this.element=i:_.string(i)&&(this.element=document.querySelector(i)),_.element(this.element)&&_.empty(this.element.rangeTouch)&&(this.config=je({},qe,{},t),this.init())}return Tt(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(n){t.element[s](n,function(a){return t.set(a)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!_.event(i))return null;var t,s=i.target,n=i.changedTouches[0],a=parseFloat(s.getAttribute("min"))||0,r=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(n.clientX-c.left))?t=0:100t?t-=(100-2*t)*u:50e!=null?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),Pe=e=>e==null,Ye=e=>se(e)===Object,_t=e=>se(e)===Number&&!Number.isNaN(e),de=e=>se(e)===String,jt=e=>se(e)===Boolean,Qe=e=>typeof e=="function",Xe=e=>Array.isArray(e),qt=e=>U(e,WeakMap),Je=e=>U(e,NodeList),Ht=e=>se(e)===Text,Dt=e=>U(e,Event),Ft=e=>U(e,KeyboardEvent),Rt=e=>U(e,window.TextTrackCue)||U(e,window.VTTCue),Vt=e=>U(e,TextTrack)||!Pe(e)&&de(e.kind),Ut=e=>U(e,Promise)&&Qe(e.then),Wt=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",Ge=e=>Pe(e)||(de(e)||Xe(e)||Je(e))&&!e.length||Ye(e)&&!Object.keys(e).length,Bt=e=>{if(U(e,window.URL))return!0;if(!de(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!Ge(new URL(i).hostname)}catch{return!1}};var l={nullOrUndefined:Pe,object:Ye,number:_t,string:de,boolean:jt,function:Qe,array:Xe,weakMap:qt,nodeList:Je,element:Wt,textNode:Ht,event:Dt,keyboardEvent:Ft,cue:Rt,track:Vt,promise:Ut,url:Bt,empty:Ge};const ve=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return!!l.string(t)&&i[t]})();function Ze(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const zt=!!window.document.documentMode,Kt=/Edge/g.test(navigator.userAgent),Yt="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),Qt=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,Xt=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Jt=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var O={isIE:zt,isEdge:Kt,isWebKit:Yt,isIPhone:Qt,isIPadOS:Xt,isIos:Jt};function Gt(e){return JSON.parse(JSON.stringify(e))}function et(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function N(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),N(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),N(e,...i)):e}function tt(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,n)=>{const a=n>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;a.appendChild(s),o?r.insertBefore(a,o):r.appendChild(a)})}function we(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function y(e,i,t){const s=document.createElement(e);return l.object(i)&&we(s,i),l.string(t)&&(s.innerText=t),s}function Zt(e,i){l.element(e)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function He(e,i,t,s){l.element(i)&&i.appendChild(y(e,t,s))}function V(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(V):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function le(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ce(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function F(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=N({},i);return e.split(",").forEach(n=>{const a=n.trim(),r=a.replace(".",""),o=a.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(a.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${r}`:t.class=r;break;case"#":t.id=a.replace("#","");break;case"[":t[c]=u}}),N(s,t)}function z(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function E(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>E(s,i,t));if(l.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function ue(e,i){return l.element(e)&&e.classList.contains(i)}function K(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function ei(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(K.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function I(e){return this.elements.container.querySelector(e)}function ge(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const De={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},x={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=x[e]||i!=="html5";return{api:t,ui:t&&x.rangeInput}},pip:!(O.isIPhone||!l.function(y("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||y("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(De).includes(t)&&(t+=`; codecs="${De[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:ve!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ti=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Z(e,i,t,s=!1,n=!0,a=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=a;ti&&(o={passive:n,capture:a}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function C(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!0,s,n)}function me(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!1,s,n)}function Me(e,i="",t,s=!0,n=!1){const a=(...r)=>{me(e,i,a,s,n),t.apply(this,r)};Z.call(this,e,i,a,!0,s,n)}function b(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const n=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(n)}function ii(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:n}=e;i.removeEventListener(t,s,n)}),this.eventListeners=[])}function si(){return new Promise(e=>this.ready?setTimeout(e,0):C.call(this,this.elements.container,"ready",e)).then(()=>{})}function R(e){l.promise(e)&&e.then(null,()=>{})}function ke(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function it(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)({...e,[i/t]:[i,t]}),{});function nt(e){return l.array(e)||l.string(e)&&e.includes(":")?(l.array(e)?e:e.split(":")).map(Number).every(l.number):!1}function he(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(a,r)=>r===0?a:s(r,a%r),n=s(i,t);return[i/n,t/n]}function Ne(e){const i=s=>nt(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:n}=this.media;t=[s,n]}return he(t)}function Y(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ne.call(this,e);if(!l.array(t))return{};const[s,n]=he(t),a=100/s*n;if(st(`aspect-ratio: ${s}/${n}`)?i.style.aspectRatio=`${s}/${n}`:i.style.paddingBottom=`${a}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(r-a)/(r/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${o}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:t}}function at(e,i,t=.05){const s=e/i,n=it(Object.keys(Fe),s);return Math.abs(n-s)<=t?Fe[n]:[e,i]}function ni(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const B={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||x.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:B.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||Y.call(e),Object.defineProperty(e.media,"quality",{get(){const i=B.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=B.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:n,preload:a,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(a!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,n||R(e.play())}),e.media.load())}b.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(V(B.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ai(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Te(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function li(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const J=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),lt=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());function ri(e=""){let i=e.toString();return i=J(i,"-"," "),i=J(i,"_"," "),i=lt(i),J(i," ","")}function oi(e=""){let i=e.toString();return i=ri(i),i.charAt(0).toLowerCase()+i.slice(1)}function ci(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function ui(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const Re={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},$={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=et(i.i18n,e);if(l.empty(t))return Object.keys(Re).includes(e)?Re[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([n,a])=>{t=J(t,n,a)}),t}};class ee{constructor(i){m(this,"get",t=>{if(!ee.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const n=JSON.parse(s);return l.string(t)&&t.length?n[t]:n}),m(this,"set",t=>{if(!ee.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),N(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function ne(e,i="text"){return new Promise((t,s)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(n.responseText))}catch{t(n.responseText)}else t(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=i,n.send()}catch(n){s(n)}})}function rt(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let n=!1;const a=()=>document.getElementById(i)!==null,r=(o,c)=>{o.innerHTML=c,s&&a()||document.body.insertAdjacentElement("afterbegin",o)};if(!s||!a()){const o=ee.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(n=u!==null,n){const g=JSON.parse(u);r(c,g.content)}}ne(e).then(u=>{if(!l.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}r(c,u)}}).catch(()=>{})}}const ot=e=>Math.trunc(e/60/60%60,10),hi=e=>Math.trunc(e/60%60,10),di=e=>Math.trunc(e%60,10);function pe(e=0,i=!1,t=!1){if(!l.number(e))return pe(void 0,i,t);const s=o=>`0${o}`.slice(-2);let n=ot(e);const a=hi(e),r=di(e);return n=i||n>0?`${n}:`:"",`${t&&e>0?"-":""}${n}${s(a)}:${s(r)}`}const h={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||O.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=I.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:I.call(this,this.config.selectors.buttons.pause),restart:I.call(this,this.config.selectors.buttons.restart),rewind:I.call(this,this.config.selectors.buttons.rewind),fastForward:I.call(this,this.config.selectors.buttons.fastForward),mute:I.call(this,this.config.selectors.buttons.mute),pip:I.call(this,this.config.selectors.buttons.pip),airplay:I.call(this,this.config.selectors.buttons.airplay),settings:I.call(this,this.config.selectors.buttons.settings),captions:I.call(this,this.config.selectors.buttons.captions),fullscreen:I.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=I.call(this,this.config.selectors.progress),this.elements.inputs={seek:I.call(this,this.config.selectors.inputs.seek),volume:I.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:I.call(this,this.config.selectors.display.buffer),currentTime:I.call(this,this.config.selectors.display.currentTime),duration:I.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=h.getIconUrl.call(this),n=`${s.cors?"":s.url}#${this.config.iconPrefix}`,a=document.createElementNS(t,"svg");we(a,N(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${n}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),a.appendChild(r),a},createLabel(e,i={}){const t=$.get(e,this.config);return y("span",{...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(l.empty(e))return null;const i=y("span",{class:this.config.classNames.menu.value});return i.appendChild(y("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=N({},i);let s=oi(e);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(n[r]=t[r],delete t[r])}),n.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||N(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:l.empty(n.label)&&(n.label=s),l.empty(n.icon)&&(n.icon=e)}const a=y(n.element);return n.toggle?(a.appendChild(h.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(h.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(h.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(h.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(h.createIcon.call(this,n.icon)),a.appendChild(h.createLabel.call(this,n.label))),N(t,F(this.config.selectors.buttons[s],t)),we(a,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(a)):this.elements.buttons[s]=a,a},createRange(e,i){const t=y("input",N(F(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":$.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,h.updateRangeFill.call(this,t),Ot.setup(t),t},createProgress(e,i){const t=y("progress",N(F(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(y("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],n=s?$.get(s,this.config):"";t.innerText=`% ${n.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=F(this.config.selectors.display[e],i),s=y("div",N(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":$.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){C.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=K(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))h.showMenuPanel.call(this,i,!0);else{let n;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(n=e.nextElementSibling,l.element(n)||(n=e.parentNode.firstElementChild)):(n=e.previousElementSibling,l.element(n)||(n=e.parentNode.lastElementChild)),ge.call(this,n,!0))}},!1),C.call(this,e,"keyup",t=>{t.key==="Return"&&h.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:n=null,checked:a=!1}){const r=F(this.config.selectors.inputs[t]),o=y("button",N(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":a,value:e})),c=y("span");c.innerHTML=s,l.element(n)&&c.appendChild(n),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>o.getAttribute("aria-checked")==="true",set(u){u&&Array.from(o.parentNode.children).filter(g=>K(g,'[role="menuitemradio"]')).forEach(g=>g.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!l.keyboardEvent(u)||u.key===" "){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}h.showMenuPanel.call(this,"home",l.keyboardEvent(u))}},t,!1),h.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){return l.number(e)?pe(e,ot(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=h.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&h.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,h.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,n)=>{const a=l.number(n)?n:0,r=l.element(s)?s:this.elements.display.buffer;if(l.element(r)){r.value=a;const o=r.getElementsByTagName("span")[0];l.element(o)&&(o.childNodes[0].nodeValue=a)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=li(this.currentTime,this.duration),e.type==="timeupdate"&&h.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&i.getAttribute("type")==="range"){if(K(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=h.formatTime(this.currentTime),s=h.formatTime(this.duration),n=$.get("seekLabel",this.config);i.setAttribute("aria-valuetext",n.replace("{currentTime}",t).replace("{duration}",s))}else if(K(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);(O.isWebKit||O.isIPadOS)&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,a=g=>E(s,n,g);if(this.touch)return void a(!1);let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e))r=100/o.width*(e.pageX-o.left);else{if(!ue(s,n))return;r=parseFloat(s.style.left,10)}r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.innerText=h.formatTime(c);const u=(i=this.config.markers)===null||i===void 0||(t=i.points)===null||t===void 0?void 0:t.find(({time:g})=>g===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}
`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&a(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;h.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||h.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return z(this.elements.display.currentTime,!0),void z(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&h.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&h.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&h.setMarkers.call(this),h.updateSeekTooltip.call(this)},toggleMenuButton(e,i){z(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let n=null,a=i;if(e==="captions")n=this.currentTrack;else{if(n=l.empty(t)?this[e]:t,l.empty(n)&&(n=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(n))return void this.debug.warn(`Unsupported value of '${n}' for ${e}`);if(!this.config[e].options.includes(n))return void this.debug.warn(`Disabled value of '${n}' for ${e}`)}if(l.element(a)||(a=s&&s.querySelector('[role="menu"]')),!l.element(a))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=h.getLabel.call(this,e,n);const r=a&&a.querySelector(`[value="${n}"]`);l.element(r)&&(r.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?$.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=$.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return lt(i);case"captions":return S.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=ke(e).filter(a=>this.config.quality.options.includes(a)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(h.toggleMenuButton.call(this,i,s),le(t),h.checkMenu.call(this),!s)return;const n=a=>{const r=$.get(`qualityBadge.${a}`,this.config);return r.length?h.createBadge.call(this,r):null};this.options.quality.sort((a,r)=>{const o=this.config.quality.options;return o.indexOf(a)>o.indexOf(r)?1:-1}).forEach(a=>{h.createMenuItem.call(this,{value:a,list:t,type:i,title:h.getLabel.call(this,"quality",a),badge:n(a)})}),h.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=S.getTracks.call(this),s=!!t.length;if(h.toggleMenuButton.call(this,e,s),le(i),h.checkMenu.call(this),!s)return;const n=t.map((a,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:S.getLabel.call(this,a),badge:a.language&&h.createBadge.call(this,a.language.toUpperCase()),list:i,type:"language"}));n.unshift({value:-1,checked:!this.captions.toggled,title:$.get("disabled",this.config),list:i,type:"language"}),n.forEach(h.createMenuItem.bind(this)),h.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;h.toggleMenuButton.call(this,e,t),le(i),h.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{h.createMenuItem.call(this,{value:s,list:i,type:e,title:h.getLabel.call(this,"speed",s)})}),h.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);z(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(n=>!n.hidden));const s=t.querySelector('[role^="menuitem"]');ge.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let n=s;if(l.boolean(e))n=e;else if(l.keyboardEvent(e)&&e.key==="Escape")n=!1;else if(l.event(e)){const a=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(a);if(r||!r&&e.target!==t&&n)return}t.setAttribute("aria-expanded",n),z(i,!n),E(this.elements.container,this.config.classNames.menu.open,n),n&&l.keyboardEvent(e)?h.focusFirstMenuItem.call(this,null,!0):n||s||ge.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return V(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,n=Array.from(s.children).find(a=>!a.hidden);if(x.transitions&&!x.reducedMotion){s.style.width=`${n.scrollWidth}px`,s.style.height=`${n.scrollHeight}px`;const a=h.getMenuSize.call(this,t),r=o=>{o.target===s&&["width","height"].includes(o.propertyName)&&(s.style.width="",s.style.height="",me.call(this,s,ve,r))};C.call(this,s,ve,r),s.style.width=`${a.width}px`,s.style.height=`${a.height}px`}z(n,!0),z(t,!1),h.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:n,createTime:a,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=h;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=y("div",F(this.config.selectors.controls.wrapper));this.elements.controls=u;const g={class:"plyr__controls__item"};return ke(l.array(this.config.controls)?this.config.controls:[]).forEach(f=>{if(f==="restart"&&u.appendChild(t.call(this,"restart",g)),f==="rewind"&&u.appendChild(t.call(this,"rewind",g)),f==="play"&&u.appendChild(t.call(this,"play",g)),f==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",g)),f==="progress"){const d=y("div",{class:`${g.class} plyr__progress__container`}),v=y("div",F(this.config.selectors.progress));if(v.appendChild(n.call(this,"seek",{id:`plyr-seek-${e.id}`})),v.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const k=y("span",{class:this.config.classNames.tooltip},"00:00");v.appendChild(k),this.elements.display.seekTooltip=k}this.elements.progress=v,d.appendChild(this.elements.progress),u.appendChild(d)}if(f==="current-time"&&u.appendChild(a.call(this,"currentTime",g)),f==="duration"&&u.appendChild(a.call(this,"duration",g)),f==="mute"||f==="volume"){let{volume:d}=this.elements;if(l.element(d)&&u.contains(d)||(d=y("div",N({},g,{class:`${g.class} plyr__volume`.trim()})),this.elements.volume=d,u.appendChild(d)),f==="mute"&&d.appendChild(t.call(this,"mute")),f==="volume"&&!O.isIos&&!O.isIPadOS){const v={max:1,step:.05,value:this.config.volume};d.appendChild(n.call(this,"volume",N(v,{id:`plyr-volume-${e.id}`})))}}if(f==="captions"&&u.appendChild(t.call(this,"captions",g)),f==="settings"&&!l.empty(this.config.settings)){const d=y("div",N({},g,{class:`${g.class} plyr__menu`.trim(),hidden:""}));d.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const v=y("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),k=y("div"),T=y("div",{id:`plyr-settings-${e.id}-home`}),M=y("div",{role:"menu"});T.appendChild(M),k.appendChild(T),this.elements.settings.panels.home=T,this.config.settings.forEach(w=>{const p=y("button",N(F(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,p,w),C.call(this,p,"click",()=>{c.call(this,w,!1)});const A=y("span",null,$.get(w,this.config)),L=y("span",{class:this.config.classNames.menu.value});L.innerHTML=e[w],A.appendChild(L),p.appendChild(A),M.appendChild(p);const j=y("div",{id:`plyr-settings-${e.id}-${w}`,hidden:""}),q=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});q.appendChild(y("span",{"aria-hidden":!0},$.get(w,this.config))),q.appendChild(y("span",{class:this.config.classNames.hidden},$.get("menuBack",this.config))),C.call(this,j,"keydown",D=>{D.key==="ArrowLeft"&&(D.preventDefault(),D.stopPropagation(),c.call(this,"home",!0))},!1),C.call(this,q,"click",()=>{c.call(this,"home",!1)}),j.appendChild(q),j.appendChild(y("div",{role:"menu"})),k.appendChild(j),this.elements.settings.buttons[w]=p,this.elements.settings.panels[w]=j}),v.appendChild(k),d.appendChild(v),u.appendChild(d),this.elements.settings.popup=v,this.elements.settings.menu=d}if(f==="pip"&&x.pip&&u.appendChild(t.call(this,"pip",g)),f==="airplay"&&x.airplay&&u.appendChild(t.call(this,"airplay",g)),f==="download"){const d=N({},g,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(d.download="");const{download:v}=this.config.urls;!l.url(v)&&this.isEmbed&&N(d,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",d))}f==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",g))}),this.isHTML5&&r.call(this,B.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const n=h.getIconUrl.call(this);n.cors&&rt(n.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=h.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:S.getLabel.call(this)}),t=!1);let s;if(t&&l.string(this.config.controls)&&(e=(n=>{let a=n;return Object.entries(i).forEach(([r,o])=>{a=J(a,`{${r}}`,o)}),a})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||h.findElements.call(this),!l.empty(this.elements.buttons)){const n=a=>{const r=this.config.classNames.controlPressed;a.setAttribute("aria-pressed","false"),Object.defineProperty(a,"pressed",{configurable:!0,enumerable:!0,get:()=>ue(a,r),set(o=!1){E(a,r,o),a.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(a=>{l.array(a)||l.nodeList(a)?Array.from(a).filter(Boolean).forEach(n):n(a)})}if(O.isEdge&&Ze(s),this.config.tooltips.controls){const{classNames:n,selectors:a}=this.config,r=`${a.controls.wrapper} ${a.labels} .${n.hidden}`,o=G.call(this,r);Array.from(o).forEach(c=>{E(c,this.config.classNames.hidden,!1),E(c,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(i=e.points)===null||i===void 0?void 0:i.filter(({time:c})=>c>0&&cE(a,r,c);t.forEach(c=>{const u=y("span",{class:this.config.classNames.marker},""),g=c.time/this.duration*100+"%";a&&(u.addEventListener("mouseenter",()=>{c.label||(a.style.left=g,a.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=g,n.appendChild(u)}),s.appendChild(n),this.config.tooltips.seek||(a=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(a)),this.elements.markers={points:n,tip:a},this.elements.progress.appendChild(s)}};function ct(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ut(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const S={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!x.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this));if(l.element(this.elements.captions)||(this.elements.captions=y("div",F(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Zt(this.elements.captions,this.elements.wrapper)),O.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(n=>{const a=n.getAttribute("src"),r=ct(a);r!==null&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&ne(a,"blob").then(o=>{n.setAttribute("src",window.URL.createObjectURL(o))}).catch(()=>{V(n)})})}const e=ke((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(s=>s.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();i==="auto"&&([i]=e);let t=this.storage.get("captions");if(l.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:i,languages:e}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";C.call(this,this.media.textTracks,s,S.update.bind(this))}setTimeout(S.update.bind(this),0)},update(){const e=S.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:n}=this.captions,a=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),C.call(this,r,"cuechange",()=>S.updateCues.call(this))}),(a&&this.language!==t||!e.includes(n))&&(S.setLanguage.call(this,t),S.toggle.call(this,i&&a)),this.elements&&E(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,n=l.nullOrUndefined(e)?!t:e;if(n!==t){if(i||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!i){const a=S.getTracks.call(this),r=S.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void S.set.call(this,a.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),E(this.elements.container,s,n),this.captions.toggled=n,h.updateSetting.call(this,"captions"),b.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=S.getTracks.call(this);if(e!==-1)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:n}=s||{};this.captions.currentTrackNode=s,h.updateSetting.call(this,"captions"),i||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),b.call(this,this.media,"languagechange")}S.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&S.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else S.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=S.getTracks.call(this),n=S.findTrack.call(this,[t]);S.set.call(this,s.indexOf(n),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=S.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),n=Array.from(t).sort((r,o)=>s(o)-s(r));let a;return e.every(r=>(a=n.find(o=>o.language===r),!a)),a||(i?n[0]:void 0)},getCurrentTrack(){return S.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&x.textTracks&&this.captions.toggled&&(i=S.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?$.get("enabled",this.config):e.language.toUpperCase():i.label:$.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=S.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(n=>n.getCueAsHTML()).map(ui)}const t=i.map(s=>s.trim()).join(` +import{z as gt,u as ft,B as yt,o as Ie,c as $e,f as bt}from"./index-CY8g26_C.js";function m(e,i,t){return(i=wt(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function vt(e,i){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var s=t.call(e,i||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function wt(e){var i=vt(e,"string");return typeof i=="symbol"?i:String(i)}function kt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Oe(e,i){for(var t=0;ti){var t=It(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var Ot=function(){function e(i,t){kt(this,e),_.element(i)?this.element=i:_.string(i)&&(this.element=document.querySelector(i)),_.element(this.element)&&_.empty(this.element.rangeTouch)&&(this.config=je({},qe,{},t),this.init())}return Tt(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(n){t.element[s](n,function(a){return t.set(a)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!_.event(i))return null;var t,s=i.target,n=i.changedTouches[0],a=parseFloat(s.getAttribute("min"))||0,r=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(n.clientX-c.left))?t=0:100t?t-=(100-2*t)*u:50e!=null?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),Pe=e=>e==null,Ye=e=>se(e)===Object,_t=e=>se(e)===Number&&!Number.isNaN(e),de=e=>se(e)===String,jt=e=>se(e)===Boolean,Qe=e=>typeof e=="function",Xe=e=>Array.isArray(e),qt=e=>U(e,WeakMap),Je=e=>U(e,NodeList),Ht=e=>se(e)===Text,Dt=e=>U(e,Event),Ft=e=>U(e,KeyboardEvent),Rt=e=>U(e,window.TextTrackCue)||U(e,window.VTTCue),Vt=e=>U(e,TextTrack)||!Pe(e)&&de(e.kind),Ut=e=>U(e,Promise)&&Qe(e.then),Wt=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",Ge=e=>Pe(e)||(de(e)||Xe(e)||Je(e))&&!e.length||Ye(e)&&!Object.keys(e).length,Bt=e=>{if(U(e,window.URL))return!0;if(!de(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!Ge(new URL(i).hostname)}catch{return!1}};var l={nullOrUndefined:Pe,object:Ye,number:_t,string:de,boolean:jt,function:Qe,array:Xe,weakMap:qt,nodeList:Je,element:Wt,textNode:Ht,event:Dt,keyboardEvent:Ft,cue:Rt,track:Vt,promise:Ut,url:Bt,empty:Ge};const ve=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return!!l.string(t)&&i[t]})();function Ze(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const zt=!!window.document.documentMode,Kt=/Edge/g.test(navigator.userAgent),Yt="WebkitAppearance"in document.documentElement.style&&!/Edge/g.test(navigator.userAgent),Qt=/iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1,Xt=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,Jt=/iPad|iPhone|iPod/gi.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var O={isIE:zt,isEdge:Kt,isWebKit:Yt,isIPhone:Qt,isIPadOS:Xt,isIos:Jt};function Gt(e){return JSON.parse(JSON.stringify(e))}function et(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function N(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),N(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),N(e,...i)):e}function tt(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,n)=>{const a=n>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;a.appendChild(s),o?r.insertBefore(a,o):r.appendChild(a)})}function we(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function y(e,i,t){const s=document.createElement(e);return l.object(i)&&we(s,i),l.string(t)&&(s.innerText=t),s}function Zt(e,i){l.element(e)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function He(e,i,t,s){l.element(i)&&i.appendChild(y(e,t,s))}function V(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(V):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function le(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ce(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function F(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=N({},i);return e.split(",").forEach(n=>{const a=n.trim(),r=a.replace(".",""),o=a.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(a.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${r}`:t.class=r;break;case"#":t.id=a.replace("#","");break;case"[":t[c]=u}}),N(s,t)}function z(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function E(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>E(s,i,t));if(l.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function ue(e,i){return l.element(e)&&e.classList.contains(i)}function K(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function ei(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(K.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function I(e){return this.elements.container.querySelector(e)}function ge(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const De={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},x={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=x[e]||i!=="html5";return{api:t,ui:t&&x.rangeInput}},pip:!(O.isIPhone||!l.function(y("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||y("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(De).includes(t)&&(t+=`; codecs="${De[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:ve!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},ti=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Z(e,i,t,s=!1,n=!0,a=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=a;ti&&(o={passive:n,capture:a}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function C(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!0,s,n)}function me(e,i="",t,s=!0,n=!1){Z.call(this,e,i,t,!1,s,n)}function Me(e,i="",t,s=!0,n=!1){const a=(...r)=>{me(e,i,a,s,n),t.apply(this,r)};Z.call(this,e,i,a,!0,s,n)}function b(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const n=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(n)}function ii(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:n}=e;i.removeEventListener(t,s,n)}),this.eventListeners=[])}function si(){return new Promise(e=>this.ready?setTimeout(e,0):C.call(this,this.elements.container,"ready",e)).then(()=>{})}function R(e){l.promise(e)&&e.then(null,()=>{})}function ke(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function it(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)({...e,[i/t]:[i,t]}),{});function nt(e){return l.array(e)||l.string(e)&&e.includes(":")?(l.array(e)?e:e.split(":")).map(Number).every(l.number):!1}function he(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(a,r)=>r===0?a:s(r,a%r),n=s(i,t);return[i/n,t/n]}function Ne(e){const i=s=>nt(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:n}=this.media;t=[s,n]}return he(t)}function Y(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ne.call(this,e);if(!l.array(t))return{};const[s,n]=he(t),a=100/s*n;if(st(`aspect-ratio: ${s}/${n}`)?i.style.aspectRatio=`${s}/${n}`:i.style.paddingBottom=`${a}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const r=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),o=(r-a)/(r/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${o}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:a,ratio:t}}function at(e,i,t=.05){const s=e/i,n=it(Object.keys(Fe),s);return Math.abs(n-s)<=t?Fe[n]:[e,i]}function ni(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const B={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||x.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:B.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||Y.call(e),Object.defineProperty(e.media,"quality",{get(){const i=B.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=B.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:n,preload:a,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(a!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,n||R(e.play())}),e.media.load())}b.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(V(B.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function ai(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Te(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function li(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const J=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),lt=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase());function ri(e=""){let i=e.toString();return i=J(i,"-"," "),i=J(i,"_"," "),i=lt(i),J(i," ","")}function oi(e=""){let i=e.toString();return i=ri(i),i.charAt(0).toLowerCase()+i.slice(1)}function ci(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function ui(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const Re={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},$={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=et(i.i18n,e);if(l.empty(t))return Object.keys(Re).includes(e)?Re[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([n,a])=>{t=J(t,n,a)}),t}};class ee{constructor(i){m(this,"get",t=>{if(!ee.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const n=JSON.parse(s);return l.string(t)&&t.length?n[t]:n}),m(this,"set",t=>{if(!ee.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),N(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function ne(e,i="text"){return new Promise((t,s)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;n.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(n.responseText))}catch{t(n.responseText)}else t(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=i,n.send()}catch(n){s(n)}})}function rt(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let n=!1;const a=()=>document.getElementById(i)!==null,r=(o,c)=>{o.innerHTML=c,s&&a()||document.body.insertAdjacentElement("afterbegin",o)};if(!s||!a()){const o=ee.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(n=u!==null,n){const g=JSON.parse(u);r(c,g.content)}}ne(e).then(u=>{if(!l.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}r(c,u)}}).catch(()=>{})}}const ot=e=>Math.trunc(e/60/60%60,10),hi=e=>Math.trunc(e/60%60,10),di=e=>Math.trunc(e%60,10);function pe(e=0,i=!1,t=!1){if(!l.number(e))return pe(void 0,i,t);const s=o=>`0${o}`.slice(-2);let n=ot(e);const a=hi(e),r=di(e);return n=i||n>0?`${n}:`:"",`${t&&e>0?"-":""}${n}${s(a)}:${s(r)}`}const h={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||O.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=I.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:I.call(this,this.config.selectors.buttons.pause),restart:I.call(this,this.config.selectors.buttons.restart),rewind:I.call(this,this.config.selectors.buttons.rewind),fastForward:I.call(this,this.config.selectors.buttons.fastForward),mute:I.call(this,this.config.selectors.buttons.mute),pip:I.call(this,this.config.selectors.buttons.pip),airplay:I.call(this,this.config.selectors.buttons.airplay),settings:I.call(this,this.config.selectors.buttons.settings),captions:I.call(this,this.config.selectors.buttons.captions),fullscreen:I.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=I.call(this,this.config.selectors.progress),this.elements.inputs={seek:I.call(this,this.config.selectors.inputs.seek),volume:I.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:I.call(this,this.config.selectors.display.buffer),currentTime:I.call(this,this.config.selectors.display.currentTime),duration:I.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=h.getIconUrl.call(this),n=`${s.cors?"":s.url}#${this.config.iconPrefix}`,a=document.createElementNS(t,"svg");we(a,N(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${n}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),a.appendChild(r),a},createLabel(e,i={}){const t=$.get(e,this.config);return y("span",{...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")},t)},createBadge(e){if(l.empty(e))return null;const i=y("span",{class:this.config.classNames.menu.value});return i.appendChild(y("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=N({},i);let s=oi(e);const n={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(n[r]=t[r],delete t[r])}),n.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(r=>r===this.config.classNames.control)||N(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":n.toggle=!0,n.label="play",n.labelPressed="pause",n.icon="play",n.iconPressed="pause";break;case"mute":n.toggle=!0,n.label="mute",n.labelPressed="unmute",n.icon="volume",n.iconPressed="muted";break;case"captions":n.toggle=!0,n.label="enableCaptions",n.labelPressed="disableCaptions",n.icon="captions-off",n.iconPressed="captions-on";break;case"fullscreen":n.toggle=!0,n.label="enterFullscreen",n.labelPressed="exitFullscreen",n.icon="enter-fullscreen",n.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",n.label="play",n.icon="play";break;default:l.empty(n.label)&&(n.label=s),l.empty(n.icon)&&(n.icon=e)}const a=y(n.element);return n.toggle?(a.appendChild(h.createIcon.call(this,n.iconPressed,{class:"icon--pressed"})),a.appendChild(h.createIcon.call(this,n.icon,{class:"icon--not-pressed"})),a.appendChild(h.createLabel.call(this,n.labelPressed,{class:"label--pressed"})),a.appendChild(h.createLabel.call(this,n.label,{class:"label--not-pressed"}))):(a.appendChild(h.createIcon.call(this,n.icon)),a.appendChild(h.createLabel.call(this,n.label))),N(t,F(this.config.selectors.buttons[s],t)),we(a,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(a)):this.elements.buttons[s]=a,a},createRange(e,i){const t=y("input",N(F(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":$.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,h.updateRangeFill.call(this,t),Ot.setup(t),t},createProgress(e,i){const t=y("progress",N(F(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(y("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],n=s?$.get(s,this.config):"";t.innerText=`% ${n.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=F(this.config.selectors.display[e],i),s=y("div",N(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":$.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){C.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=K(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))h.showMenuPanel.call(this,i,!0);else{let n;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(n=e.nextElementSibling,l.element(n)||(n=e.parentNode.firstElementChild)):(n=e.previousElementSibling,l.element(n)||(n=e.parentNode.lastElementChild)),ge.call(this,n,!0))}},!1),C.call(this,e,"keyup",t=>{t.key==="Return"&&h.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:n=null,checked:a=!1}){const r=F(this.config.selectors.inputs[t]),o=y("button",N(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":a,value:e})),c=y("span");c.innerHTML=s,l.element(n)&&c.appendChild(n),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get:()=>o.getAttribute("aria-checked")==="true",set(u){u&&Array.from(o.parentNode.children).filter(g=>K(g,'[role="menuitemradio"]')).forEach(g=>g.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!l.keyboardEvent(u)||u.key===" "){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}h.showMenuPanel.call(this,"home",l.keyboardEvent(u))}},t,!1),h.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){return l.number(e)?pe(e,ot(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=h.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&h.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,h.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,n)=>{const a=l.number(n)?n:0,r=l.element(s)?s:this.elements.display.buffer;if(l.element(r)){r.value=a;const o=r.getElementsByTagName("span")[0];l.element(o)&&(o.childNodes[0].nodeValue=a)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=li(this.currentTime,this.duration),e.type==="timeupdate"&&h.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&i.getAttribute("type")==="range"){if(K(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=h.formatTime(this.currentTime),s=h.formatTime(this.duration),n=$.get("seekLabel",this.config);i.setAttribute("aria-valuetext",n.replace("{currentTime}",t).replace("{duration}",s))}else if(K(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);(O.isWebKit||O.isIPadOS)&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,n=`${this.config.classNames.tooltip}--visible`,a=g=>E(s,n,g);if(this.touch)return void a(!1);let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e))r=100/o.width*(e.pageX-o.left);else{if(!ue(s,n))return;r=parseFloat(s.style.left,10)}r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.innerText=h.formatTime(c);const u=(i=this.config.markers)===null||i===void 0||(t=i.points)===null||t===void 0?void 0:t.find(({time:g})=>g===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}
`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&a(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;h.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||h.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return z(this.elements.display.currentTime,!0),void z(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&h.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&h.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&h.setMarkers.call(this),h.updateSeekTooltip.call(this)},toggleMenuButton(e,i){z(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let n=null,a=i;if(e==="captions")n=this.currentTrack;else{if(n=l.empty(t)?this[e]:t,l.empty(n)&&(n=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(n))return void this.debug.warn(`Unsupported value of '${n}' for ${e}`);if(!this.config[e].options.includes(n))return void this.debug.warn(`Disabled value of '${n}' for ${e}`)}if(l.element(a)||(a=s&&s.querySelector('[role="menu"]')),!l.element(a))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=h.getLabel.call(this,e,n);const r=a&&a.querySelector(`[value="${n}"]`);l.element(r)&&(r.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?$.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=$.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return lt(i);case"captions":return S.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=ke(e).filter(a=>this.config.quality.options.includes(a)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(h.toggleMenuButton.call(this,i,s),le(t),h.checkMenu.call(this),!s)return;const n=a=>{const r=$.get(`qualityBadge.${a}`,this.config);return r.length?h.createBadge.call(this,r):null};this.options.quality.sort((a,r)=>{const o=this.config.quality.options;return o.indexOf(a)>o.indexOf(r)?1:-1}).forEach(a=>{h.createMenuItem.call(this,{value:a,list:t,type:i,title:h.getLabel.call(this,"quality",a),badge:n(a)})}),h.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=S.getTracks.call(this),s=!!t.length;if(h.toggleMenuButton.call(this,e,s),le(i),h.checkMenu.call(this),!s)return;const n=t.map((a,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:S.getLabel.call(this,a),badge:a.language&&h.createBadge.call(this,a.language.toUpperCase()),list:i,type:"language"}));n.unshift({value:-1,checked:!this.captions.toggled,title:$.get("disabled",this.config),list:i,type:"language"}),n.forEach(h.createMenuItem.bind(this)),h.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;h.toggleMenuButton.call(this,e,t),le(i),h.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{h.createMenuItem.call(this,{value:s,list:i,type:e,title:h.getLabel.call(this,"speed",s)})}),h.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);z(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(n=>!n.hidden));const s=t.querySelector('[role^="menuitem"]');ge.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let n=s;if(l.boolean(e))n=e;else if(l.keyboardEvent(e)&&e.key==="Escape")n=!1;else if(l.event(e)){const a=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(a);if(r||!r&&e.target!==t&&n)return}t.setAttribute("aria-expanded",n),z(i,!n),E(this.elements.container,this.config.classNames.menu.open,n),n&&l.keyboardEvent(e)?h.focusFirstMenuItem.call(this,null,!0):n||s||ge.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return V(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,n=Array.from(s.children).find(a=>!a.hidden);if(x.transitions&&!x.reducedMotion){s.style.width=`${n.scrollWidth}px`,s.style.height=`${n.scrollHeight}px`;const a=h.getMenuSize.call(this,t),r=o=>{o.target===s&&["width","height"].includes(o.propertyName)&&(s.style.width="",s.style.height="",me.call(this,s,ve,r))};C.call(this,s,ve,r),s.style.width=`${a.width}px`,s.style.height=`${a.height}px`}z(n,!0),z(t,!1),h.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:n,createTime:a,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=h;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=y("div",F(this.config.selectors.controls.wrapper));this.elements.controls=u;const g={class:"plyr__controls__item"};return ke(l.array(this.config.controls)?this.config.controls:[]).forEach(f=>{if(f==="restart"&&u.appendChild(t.call(this,"restart",g)),f==="rewind"&&u.appendChild(t.call(this,"rewind",g)),f==="play"&&u.appendChild(t.call(this,"play",g)),f==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",g)),f==="progress"){const d=y("div",{class:`${g.class} plyr__progress__container`}),v=y("div",F(this.config.selectors.progress));if(v.appendChild(n.call(this,"seek",{id:`plyr-seek-${e.id}`})),v.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const k=y("span",{class:this.config.classNames.tooltip},"00:00");v.appendChild(k),this.elements.display.seekTooltip=k}this.elements.progress=v,d.appendChild(this.elements.progress),u.appendChild(d)}if(f==="current-time"&&u.appendChild(a.call(this,"currentTime",g)),f==="duration"&&u.appendChild(a.call(this,"duration",g)),f==="mute"||f==="volume"){let{volume:d}=this.elements;if(l.element(d)&&u.contains(d)||(d=y("div",N({},g,{class:`${g.class} plyr__volume`.trim()})),this.elements.volume=d,u.appendChild(d)),f==="mute"&&d.appendChild(t.call(this,"mute")),f==="volume"&&!O.isIos&&!O.isIPadOS){const v={max:1,step:.05,value:this.config.volume};d.appendChild(n.call(this,"volume",N(v,{id:`plyr-volume-${e.id}`})))}}if(f==="captions"&&u.appendChild(t.call(this,"captions",g)),f==="settings"&&!l.empty(this.config.settings)){const d=y("div",N({},g,{class:`${g.class} plyr__menu`.trim(),hidden:""}));d.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const v=y("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),k=y("div"),T=y("div",{id:`plyr-settings-${e.id}-home`}),M=y("div",{role:"menu"});T.appendChild(M),k.appendChild(T),this.elements.settings.panels.home=T,this.config.settings.forEach(w=>{const p=y("button",N(F(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,p,w),C.call(this,p,"click",()=>{c.call(this,w,!1)});const A=y("span",null,$.get(w,this.config)),L=y("span",{class:this.config.classNames.menu.value});L.innerHTML=e[w],A.appendChild(L),p.appendChild(A),M.appendChild(p);const j=y("div",{id:`plyr-settings-${e.id}-${w}`,hidden:""}),q=y("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});q.appendChild(y("span",{"aria-hidden":!0},$.get(w,this.config))),q.appendChild(y("span",{class:this.config.classNames.hidden},$.get("menuBack",this.config))),C.call(this,j,"keydown",D=>{D.key==="ArrowLeft"&&(D.preventDefault(),D.stopPropagation(),c.call(this,"home",!0))},!1),C.call(this,q,"click",()=>{c.call(this,"home",!1)}),j.appendChild(q),j.appendChild(y("div",{role:"menu"})),k.appendChild(j),this.elements.settings.buttons[w]=p,this.elements.settings.panels[w]=j}),v.appendChild(k),d.appendChild(v),u.appendChild(d),this.elements.settings.popup=v,this.elements.settings.menu=d}if(f==="pip"&&x.pip&&u.appendChild(t.call(this,"pip",g)),f==="airplay"&&x.airplay&&u.appendChild(t.call(this,"airplay",g)),f==="download"){const d=N({},g,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(d.download="");const{download:v}=this.config.urls;!l.url(v)&&this.isEmbed&&N(d,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",d))}f==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",g))}),this.isHTML5&&r.call(this,B.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const n=h.getIconUrl.call(this);n.cors&&rt(n.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=h.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:S.getLabel.call(this)}),t=!1);let s;if(t&&l.string(this.config.controls)&&(e=(n=>{let a=n;return Object.entries(i).forEach(([r,o])=>{a=J(a,`{${r}}`,o)}),a})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||h.findElements.call(this),!l.empty(this.elements.buttons)){const n=a=>{const r=this.config.classNames.controlPressed;a.setAttribute("aria-pressed","false"),Object.defineProperty(a,"pressed",{configurable:!0,enumerable:!0,get:()=>ue(a,r),set(o=!1){E(a,r,o),a.setAttribute("aria-pressed",o?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(a=>{l.array(a)||l.nodeList(a)?Array.from(a).filter(Boolean).forEach(n):n(a)})}if(O.isEdge&&Ze(s),this.config.tooltips.controls){const{classNames:n,selectors:a}=this.config,r=`${a.controls.wrapper} ${a.labels} .${n.hidden}`,o=G.call(this,r);Array.from(o).forEach(c=>{E(c,this.config.classNames.hidden,!1),E(c,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=(e=this.config.markers)===null||e===void 0||(i=e.points)===null||i===void 0?void 0:i.filter(({time:c})=>c>0&&cE(a,r,c);t.forEach(c=>{const u=y("span",{class:this.config.classNames.marker},""),g=c.time/this.duration*100+"%";a&&(u.addEventListener("mouseenter",()=>{c.label||(a.style.left=g,a.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=g,n.appendChild(u)}),s.appendChild(n),this.config.tooltips.seek||(a=y("span",{class:this.config.classNames.tooltip},""),s.appendChild(a)),this.elements.markers={points:n,tip:a},this.elements.progress.appendChild(s)}};function ct(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ut(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const S={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!x.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this));if(l.element(this.elements.captions)||(this.elements.captions=y("div",F(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Zt(this.elements.captions,this.elements.wrapper)),O.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(n=>{const a=n.getAttribute("src"),r=ct(a);r!==null&&r.hostname!==window.location.href.hostname&&["http:","https:"].includes(r.protocol)&&ne(a,"blob").then(o=>{n.setAttribute("src",window.URL.createObjectURL(o))}).catch(()=>{V(n)})})}const e=ke((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(s=>s.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();i==="auto"&&([i]=e);let t=this.storage.get("captions");if(l.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:i,languages:e}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";C.call(this,this.media.textTracks,s,S.update.bind(this))}setTimeout(S.update.bind(this),0)},update(){const e=S.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:n}=this.captions,a=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),C.call(this,r,"cuechange",()=>S.updateCues.call(this))}),(a&&this.language!==t||!e.includes(n))&&(S.setLanguage.call(this,t),S.toggle.call(this,i&&a)),this.elements&&E(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&h.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,n=l.nullOrUndefined(e)?!t:e;if(n!==t){if(i||(this.captions.active=n,this.storage.set({captions:n})),!this.language&&n&&!i){const a=S.getTracks.call(this),r=S.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=r.language,void S.set.call(this,a.indexOf(r))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=n),E(this.elements.container,s,n),this.captions.toggled=n,h.updateSetting.call(this,"captions"),b.call(this,this.media,n?"captionsenabled":"captionsdisabled")}setTimeout(()=>{n&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=S.getTracks.call(this);if(e!==-1)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:n}=s||{};this.captions.currentTrackNode=s,h.updateSetting.call(this,"captions"),i||(this.captions.language=n,this.storage.set({language:n})),this.isVimeo&&this.embed.enableTextTrack(n),b.call(this,this.media,"languagechange")}S.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&S.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else S.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=S.getTracks.call(this),n=S.findTrack.call(this,[t]);S.set.call(this,s.indexOf(n),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=S.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),n=Array.from(t).sort((r,o)=>s(o)-s(r));let a;return e.every(r=>(a=n.find(o=>o.language===r),!a)),a||(i?n[0]:void 0)},getCurrentTrack(){return S.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&x.textTracks&&this.captions.toggled&&(i=S.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?$.get("enabled",this.config):e.language.toUpperCase():i.label:$.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=S.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(n=>n.getCueAsHTML()).map(ui)}const t=i.map(s=>s.trim()).join(` `);if(t!==this.elements.captions.innerHTML){le(this.elements.captions);const s=y("span",F(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),b.call(this,this.media,"cuechange")}}},ht={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.7.8/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},fe={active:"picture-in-picture",inactive:"inline"},W={html5:"html5",youtube:"youtube",vimeo:"vimeo"},ye={audio:"audio",video:"video"};function mi(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?W.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?W.vimeo:null}const be=()=>{};class pi{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):be}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):be}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):be}}class H{constructor(i){m(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active);const s=this.target===this.player.media?this.target:this.player.elements.container;b.call(this.player,s,this.active?"enterfullscreen":"exitfullscreen",!0)}),m(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",E(this.target,this.player.config.classNames.fullscreen.fallback,t),O.isIos){let s=document.head.querySelector('meta[name="viewport"]');const n="viewport-fit=cover";s||(s=document.createElement("meta"),s.setAttribute("name","viewport"));const a=l.string(s.content)&&s.content.includes(n);t?(this.cleanupViewport=!a,a||(s.content+=`,${n}`)):this.cleanupViewport&&(s.content=s.content.split(",").filter(r=>r.trim()!==n).join(","))}this.onChange()}),m(this,"trapFocus",t=>{if(O.isIos||O.isIPadOS||!this.active||t.key!=="Tab")return;const s=document.activeElement,n=G.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[a]=n,r=n[n.length-1];s!==r||t.shiftKey?s===a&&t.shiftKey&&(r.focus(),t.preventDefault()):(a.focus(),t.preventDefault())}),m(this,"update",()=>{if(this.supported){let t;t=this.forceFallback?"Fallback (forced)":H.nativeSupported?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");E(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),m(this,"enter",()=>{this.supported&&(O.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!H.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),m(this,"exit",()=>{if(this.supported)if(O.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),R(this.player.play());else if(!H.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!l.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),m(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=H.prefix,this.property=H.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&ei(this.player.elements.container,i.config.fullscreen.container),C.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),C.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),C.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return H.nativeSupported&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>!(!l.function(document[`${t}ExitFullscreen`])&&!l.function(document[`${t}CancelFullScreen`]))&&(i=t,!0)),i}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,H.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||H.nativeSupported||!O.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!H.nativeSupported||this.forceFallback)return ue(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){return O.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function re(e,i=1){return new Promise((t,s)=>{const n=new Image,a=()=>{delete n.onload,delete n.onerror,(n.naturalWidth>=i?t:s)(n)};Object.assign(n,{onload:a,onerror:a,src:e})})}const P={addStyleHook(){E(this.elements.container,this.config.selectors.container.replace(".",""),!0),E(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void P.toggleNativeControls.call(this,!0);l.element(this.elements.controls)||(h.inject.call(this),this.listeners.controls()),P.toggleNativeControls.call(this),this.isHTML5&&S.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,h.updateVolume.call(this),h.timeUpdate.call(this),h.durationUpdate.call(this),P.checkPlaying.call(this),E(this.elements.container,this.config.classNames.pip.supported,x.pip&&this.isHTML5&&this.isVideo),E(this.elements.container,this.config.classNames.airplay.supported,x.airplay&&this.isHTML5),E(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{b.call(this,this.media,"ready")},0),P.setTitle.call(this),this.poster&&P.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&h.durationUpdate.call(this),this.config.mediaMetadata&&h.setMediaMetadata.call(this)},setTitle(){let e=$.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=I.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=$.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){E(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),si.call(this).then(()=>re(e)).catch(t=>{throw e===this.poster&&P.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),P.togglePoster.call(this,!0),e)))},checkPlaying(e){E(this.elements.container,this.config.classNames.playing,this.playing),E(this.elements.container,this.config.classNames.paused,this.paused),E(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",$.get(this.playing?"pause":"play",this.config))}),l.event(e)&&e.type==="timeupdate"||P.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{E(this.elements.container,this.config.classNames.loading,this.loading),P.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class gi{constructor(i){m(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,E(s.container,t.config.classNames.isTouch,!0)}),m(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&Z.call(s,window,"keydown keyup",this.handleKey,t,!1),Z.call(s,document.body,"click",this.toggleMenu,t),Me.call(s,document.body,"touchstart",this.firstTouch)}),m(this,"container",()=>{const{player:t}=this,{config:s,elements:n,timers:a}=t;!s.keyboard.global&&s.keyboard.focused&&C.call(t,n.container,"keydown keyup",this.handleKey,!1),C.call(t,n.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",c=>{const{controls:u}=n;u&&c.type==="enterfullscreen"&&(u.pressed=!1,u.hover=!1);let g=0;["touchstart","touchmove","mousemove"].includes(c.type)&&(P.toggleControls.call(t,!0),g=t.touch?3e3:2e3),clearTimeout(a.controls),a.controls=setTimeout(()=>P.toggleControls.call(t,!1),g)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=n.wrapper,{active:u}=t.fullscreen,[g,f]=Ne.call(t),d=st(`aspect-ratio: ${g} / ${f}`);if(!u)return void(d?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null));const[v,k]=ni(),T=v/k>g/f;d?(c.style.width=T?"auto":"100%",c.style.height=T?"100%":"auto"):(c.style.maxWidth=T?k/f*g+"px":null,c.style.margin=T?"0 auto":null)},o=()=>{clearTimeout(a.resized),a.resized=setTimeout(r,50)};C.call(t,n.container,"enterfullscreen exitfullscreen",c=>{const{target:u}=t.fullscreen;u===n.container&&(!t.isEmbed&&l.empty(t.config.ratio)||(r(),(c.type==="enterfullscreen"?C:me).call(t,window,"resize",o)))})}),m(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(C.call(t,t.media,"timeupdate seeking seeked",a=>h.timeUpdate.call(t,a)),C.call(t,t.media,"durationchange loadeddata loadedmetadata",a=>h.durationUpdate.call(t,a)),C.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),C.call(t,t.media,"progress playing seeking seeked",a=>h.updateProgress.call(t,a)),C.call(t,t.media,"volumechange",a=>h.updateVolume.call(t,a)),C.call(t,t.media,"playing play pause ended emptied timeupdate",a=>P.checkPlaying.call(t,a)),C.call(t,t.media,"waiting canplay seeked playing",a=>P.checkLoading.call(t,a)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const a=I.call(t,`.${t.config.classNames.video}`);if(!l.element(a))return;C.call(t,s.container,"click",r=>{([s.container,a].includes(r.target)||a.contains(r.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{R(t.play())},"play")):this.proxy(r,()=>{R(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&C.call(t,s.wrapper,"contextmenu",a=>{a.preventDefault()},!1),C.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),C.call(t,t.media,"ratechange",()=>{h.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),C.call(t,t.media,"qualitychange",a=>{h.updateSetting.call(t,"quality",null,a.detail.quality)}),C.call(t,t.media,"ready qualitychange",()=>{h.setDownloadUrl.call(t)});const n=t.config.events.concat(["keyup","keydown"]).join(" ");C.call(t,t.media,n,a=>{let{detail:r={}}=a;a.type==="error"&&(r=t.media.error),b.call(t,s.container,a.type,!0,r)})}),m(this,"proxy",(t,s,n)=>{const{player:a}=this,r=a.config.listeners[n];let o=!0;l.function(r)&&(o=r.call(a,t)),o!==!1&&l.function(s)&&s.call(a,t)}),m(this,"bind",(t,s,n,a,r=!0)=>{const{player:o}=this,c=o.config.listeners[a],u=l.function(c);C.call(o,t,s,g=>this.proxy(g,n,a),r&&!u)}),m(this,"controls",()=>{const{player:t}=this,{elements:s}=t,n=O.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(a=>{this.bind(a,"click",()=>{R(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{b.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",a=>{a.stopPropagation(),a.preventDefault(),h.toggleMenu.call(t,a)},null,!1),this.bind(s.buttons.settings,"keyup",a=>{[" ","Enter"].includes(a.key)&&(a.key!=="Enter"?(a.preventDefault(),a.stopPropagation(),h.toggleMenu.call(t,a)):h.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",a=>{a.key==="Escape"&&h.toggleMenu.call(t,a)}),this.bind(s.inputs.seek,"mousedown mousemove",a=>{const r=s.progress.getBoundingClientRect(),o=100/r.width*(a.pageX-r.left);a.currentTarget.setAttribute("seek-value",o)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",a=>{const r=a.currentTarget,o="play-on-seeked";if(l.keyboardEvent(a)&&!["ArrowLeft","ArrowRight"].includes(a.key))return;t.lastSeekTime=Date.now();const c=r.hasAttribute(o),u=["mouseup","touchend","keyup"].includes(a.type);c&&u?(r.removeAttribute(o),R(t.play())):!u&&t.playing&&(r.setAttribute(o,""),t.pause())}),O.isIos){const a=G.call(t,'input[type="range"]');Array.from(a).forEach(r=>this.bind(r,n,o=>Ze(o.target)))}this.bind(s.inputs.seek,n,a=>{const r=a.currentTarget;let o=r.getAttribute("seek-value");l.empty(o)&&(o=r.value),r.removeAttribute("seek-value"),t.currentTime=o/r.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",a=>h.updateSeekTooltip.call(t,a)),this.bind(s.progress,"mousemove touchmove",a=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(a)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:a}=t;a&&a.loaded&&a.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",a=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(a)}),this.bind(s.progress,"mouseup touchend",a=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(a)}),O.isWebKit&&Array.from(G.call(t,'input[type="range"]')).forEach(a=>{this.bind(a,"input",r=>h.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,h.timeUpdate.call(t))}),this.bind(s.inputs.volume,n,a=>{t.volume=a.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",a=>{s.controls.hover=!t.touch&&a.type==="mouseenter"}),s.fullscreen&&Array.from(s.fullscreen.children).filter(a=>!a.contains(s.container)).forEach(a=>{this.bind(a,"mouseenter mouseleave",r=>{s.controls&&(s.controls.hover=!t.touch&&r.type==="mouseenter")})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",a=>{s.controls.pressed=["mousedown","touchstart"].includes(a.type)}),this.bind(s.controls,"focusin",()=>{const{config:a,timers:r}=t;E(s.controls,a.classNames.noTransition,!0),P.toggleControls.call(t,!0),setTimeout(()=>{E(s.controls,a.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>P.toggleControls.call(t,!1),o)}),this.bind(s.inputs.volume,"wheel",a=>{const r=a.webkitDirectionInvertedFromDevice,[o,c]=[a.deltaX,-a.deltaY].map(f=>r?-f:f),u=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(u/50);const{volume:g}=t.media;(u===1&&g<1||u===-1&&g>0)&&a.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,{key:n,type:a,altKey:r,ctrlKey:o,metaKey:c,shiftKey:u}=i,g=a==="keydown",f=g&&n===this.lastKey;if(!(r||o||c||u)&&n){if(g){const v=document.activeElement;if(l.element(v)){const{editable:k}=t.config.selectors,{seek:T}=s.inputs;if(v!==T&&K(v,k)||i.key===" "&&K(v,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(n)&&(i.preventDefault(),i.stopPropagation()),n){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":f||(d=parseInt(n,10),t.currentTime=t.duration/10*d);break;case" ":case"k":f||R(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":f||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":f||t.toggleCaptions();break;case"l":t.loop=!t.loop}n==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=n}else this.lastKey=null;var d}}toggleMenu(i){h.toggleMenu.call(this.player,i)}}function fi(e,i){return e(i={exports:{}},i.exports),i.exports}var yi=fi(function(e,i){e.exports=function(){var t=function(){},s={},n={},a={};function r(d,v){d=d.push?d:[d];var k,T,M,w=[],p=d.length,A=p;for(k=function(L,j){j.length&&w.push(L),--A||v(w)};p--;)T=d[p],(M=n[T])?k(T,M):(a[T]=a[T]||[]).push(k)}function o(d,v){if(d){var k=a[d];if(n[d]=v,k)for(;k.length;)k[0](d,v),k.splice(0,1)}}function c(d,v){d.call&&(d={success:d}),v.length?(d.error||t)(v):(d.success||t)(d)}function u(d,v,k,T){var M,w,p=document,A=k.async,L=(k.numRetries||0)+1,j=k.before||t,q=d.replace(/[\?|#].*$/,""),D=d.replace(/^(css|img)!/,"");T=T||0,/(^css!|\.css$)/.test(q)?((w=p.createElement("link")).rel="stylesheet",w.href=D,(M="hideFocus"in w)&&w.relList&&(M=0,w.rel="preload",w.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(q)?(w=p.createElement("img")).src=D:((w=p.createElement("script")).src=d,w.async=A===void 0||A),w.onload=w.onerror=w.onbeforeload=function(Le){var ae=Le.type[0];if(M)try{w.sheet.cssText.length||(ae="e")}catch(pt){pt.code!=18&&(ae="e")}if(ae=="e"){if((T+=1){yi(e,{success:i,error:t})})}function bi(e){return l.empty(e)?null:l.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function vi(e){const i=e.match(/^.*(vimeo.com\/|video\/)(\d+)(\?.*&*h=|\/)+([\d,a-f]+)/);return i&&i.length===5?i[4]:null}function Q(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,b.call(this,this.media,e?"play":"pause"))}const Ce={setup(){const e=this;E(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Y.call(e),l.object(window.Vimeo)?Ce.ready.call(e):xe(e.config.urls.vimeo.sdk).then(()=>{Ce.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,{premium:t,referrerPolicy:s,...n}=i;let a=e.media.getAttribute("src"),r="";l.empty(a)?(a=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=vi(a);const o=r?{h:r}:{};t&&Object.assign(n,{controls:!1,sidedock:!1});const c=ut({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...n}),u=bi(a),g=y("iframe"),f=Te(e.config.urls.vimeo.iframe,u,c);if(g.setAttribute("src",f),g.setAttribute("allowfullscreen",""),g.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||g.setAttribute("referrerPolicy",s),t||!i.customControls)g.setAttribute("data-poster",e.poster),e.media=ce(g,e.media);else{const p=y("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});p.appendChild(g),e.media=ce(p,e.media)}i.customControls||ne(Te(e.config.urls.vimeo.api,f)).then(p=>{!l.empty(p)&&p.thumbnail_url&&P.setPoster.call(e,p.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(g,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Q.call(e,!0),e.embed.play()),e.media.pause=()=>(Q.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:d}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>d,set(p){const{embed:A,media:L,paused:j,volume:q}=e,D=j&&!A.hasPlayed;L.seeking=!0,b.call(e,L,"seeking"),Promise.resolve(D&&A.setVolume(0)).then(()=>A.setCurrentTime(p)).then(()=>D&&A.pause()).then(()=>D&&A.setVolume(q)).catch(()=>{})}});let v=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>v,set(p){e.embed.setPlaybackRate(p).then(()=>{v=p,b.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:k}=e.config;Object.defineProperty(e.media,"volume",{get:()=>k,set(p){e.embed.setVolume(p).then(()=>{k=p,b.call(e,e.media,"volumechange")})}});let{muted:T}=e.config;Object.defineProperty(e.media,"muted",{get:()=>T,set(p){const A=!!l.boolean(p)&&p;e.embed.setMuted(!!A||e.config.muted).then(()=>{T=A,b.call(e,e.media,"volumechange")})}});let M,{loop:w}=e.config;Object.defineProperty(e.media,"loop",{get:()=>w,set(p){const A=l.boolean(p)?p:e.config.loop.active;e.embed.setLoop(A).then(()=>{w=A})}}),e.embed.getVideoUrl().then(p=>{M=p,h.setDownloadUrl.call(e)}).catch(p=>{this.debug.warn(p)}),Object.defineProperty(e.media,"currentSrc",{get:()=>M}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(p=>{const[A,L]=p;e.embed.ratio=at(A,L),Y.call(this)}),e.embed.setAutopause(e.config.autopause).then(p=>{e.config.autopause=p}),e.embed.getVideoTitle().then(p=>{e.config.title=p,P.setTitle.call(this)}),e.embed.getCurrentTime().then(p=>{d=p,b.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(p=>{e.media.duration=p,b.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(p=>{e.media.textTracks=p,S.setup.call(e)}),e.embed.on("cuechange",({cues:p=[]})=>{const A=p.map(L=>ci(L.text));S.updateCues.call(e,A)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(p=>{Q.call(e,!p),p||b.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{b.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{b.call(e,e.media,"playing")}),e.embed.on("play",()=>{Q.call(e,!0),b.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Q.call(e,!1)}),e.embed.on("timeupdate",p=>{e.media.seeking=!1,d=p.seconds,b.call(e,e.media,"timeupdate")}),e.embed.on("progress",p=>{e.media.buffered=p.percent,b.call(e,e.media,"progress"),parseInt(p.percent,10)===1&&b.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(A=>{A!==e.media.duration&&(e.media.duration=A,b.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,b.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,b.call(e,e.media,"ended")}),e.embed.on("error",p=>{e.media.error=p,b.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>P.build.call(e),0)}};function wi(e){return l.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function X(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,b.call(this,this.media,e?"play":"pause"))}function ki(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const oe={setup(){if(E(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))oe.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),oe.ready.call(this)},xe(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){ne(Te(this.config.urls.youtube.api,e)).then(i=>{if(l.object(i)){const{title:t,height:s,width:n}=i;this.config.title=t,P.setTitle.call(this),this.embed.ratio=at(n,s)}Y.call(this)}).catch(()=>{Y.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const n=wi(s),a=y("div",{id:ai(e.provider),"data-poster":i.customControls?e.poster:void 0});if(e.media=ce(a,e.media),i.customControls){const r=o=>`https://i.ytimg.com/vi/${n}/${o}default.jpg`;re(r("maxres"),121).catch(()=>re(r("sd"),121)).catch(()=>re(r("hq"))).then(o=>P.setPoster.call(e,o.src)).then(o=>{o.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:n,host:ki(i),playerVars:N({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(r){if(!e.media.error){const o=r.data,c={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[o]||"An unknown error occurred";e.media.error={code:o,message:c},b.call(e,e.media,"error")}},onPlaybackRateChange(r){const o=r.target;e.media.playbackRate=o.getPlaybackRate(),b.call(e,e.media,"ratechange")},onReady(r){if(l.function(e.media.play))return;const o=r.target;oe.getTitle.call(e,n),e.media.play=()=>{X.call(e,!0),o.playVideo()},e.media.pause=()=>{X.call(e,!1),o.pauseVideo()},e.media.stop=()=>{o.stopVideo()},e.media.duration=o.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(o.getCurrentTime()),set(f){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,b.call(e,e.media,"seeking"),o.seekTo(f)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>o.getPlaybackRate(),set(f){o.setPlaybackRate(f)}});let{volume:c}=e.config;Object.defineProperty(e.media,"volume",{get:()=>c,set(f){c=f,o.setVolume(100*c),b.call(e,e.media,"volumechange")}});let{muted:u}=e.config;Object.defineProperty(e.media,"muted",{get:()=>u,set(f){const d=l.boolean(f)?f:u;u=d,o[d?"mute":"unMute"](),o.setVolume(100*c),b.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>o.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const g=o.getAvailablePlaybackRates();e.options.speed=g.filter(f=>e.config.speed.options.includes(f)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),b.call(e,e.media,"timeupdate"),b.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=o.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBufferedP.build.call(e),50)},onStateChange(r){const o=r.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(r.data)&&(e.media.seeking=!1,b.call(e,e.media,"seeked")),r.data){case-1:b.call(e,e.media,"timeupdate"),e.media.buffered=o.getVideoLoadedFraction(),b.call(e,e.media,"progress");break;case 0:X.call(e,!1),e.media.loop?(o.stopVideo(),o.playVideo()):b.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(X.call(e,!0),b.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{b.call(e,e.media,"timeupdate")},50),e.media.duration!==o.getDuration()&&(e.media.duration=o.getDuration(),b.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),X.call(e,!1);break;case 3:b.call(e,e.media,"waiting")}b.call(e,e.elements.container,"statechange",!1,{code:r.data})}}})}},dt={setup(){this.media?(E(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),E(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&E(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=y("div",{class:this.config.classNames.video}),tt(this.media,this.elements.wrapper),this.elements.poster=y("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?B.setup.call(this):this.isYouTube?oe.setup.call(this):this.isVimeo&&Ce.setup.call(this)):this.debug.warn("No media element found!")}};class Ti{constructor(i){m(this,"load",()=>{this.enabled&&(l.object(window.google)&&l.object(window.google.ima)?this.ready():xe(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),m(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),m(this,"setupIMA",()=>{this.elements.container=y("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),m(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),m(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const s=pe(Math.max(this.manager.getRemainingTime(),0)),n=`${$.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",n)},100)}),m(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,n=>this.onAdError(n)),Object.keys(google.ima.AdEvent.Type).forEach(n=>{this.manager.addEventListener(google.ima.AdEvent.Type[n],a=>this.onAdEvent(a))}),this.trigger("loaded")}),m(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t{const{container:s}=this.player.elements,n=t.getAd(),a=t.getAdData();switch((r=>{b.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),n.isLinear()||(n.width=s.offsetWidth,n.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:a.adError&&this.player.debug.warn(`Non-fatal ad error: ${a.adError.getMessage()}`)}}),m(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),m(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const n=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((a,r)=>{s{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),m(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),m(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,R(this.player.media.play())}),m(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),m(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),m(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),m(this,"trigger",(t,...s)=>{const n=this.events[t];l.array(n)&&n.forEach(a=>{l.function(a)&&a.apply(this,s)})}),m(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),m(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),m(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;return l.url(i.tagUrl)?i.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${ut({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId})}`}}function mt(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}const Ci=e=>{const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(n=>{if(l.number(s.startTime)){if(!l.empty(n.trim())&&l.empty(s.text)){const a=n.trim().split("#xywh=");[s.text]=a,a[1]&&([s.x,s.y,s.w,s.h]=a[1].split(","))}}else{const a=n.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);a&&(s.startTime=60*Number(a[1]||0)*60+60*Number(a[2])+Number(a[3])+ +`0.${a[4]}`,s.endTime=60*Number(a[6]||0)*60+60*Number(a[7])+Number(a[8])+ +`0.${a[9]}`)}}),s.text&&i.push(s)}),i},Ve=(e,i)=>{const t={};return e>i.width/i.height?(t.width=i.width,t.height=1/e*i.width):(t.height=i.height,t.width=e*i.height),t};class Ae{constructor(i){m(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),m(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const n=()=>{this.thumbnails.sort((a,r)=>a.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(a=>{this.thumbnails=a,n()});else{const a=(l.string(s)?[s]:s).map(r=>this.getThumbnail(r));Promise.all(a).then(n)}})),m(this,"getThumbnail",t=>new Promise(s=>{ne(t).then(n=>{const a={frames:Ci(n),height:null,urlPrefix:""};a.frames[0].text.startsWith("/")||a.frames[0].text.startsWith("http://")||a.frames[0].text.startsWith("https://")||(a.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{a.height=r.naturalHeight,a.width=r.naturalWidth,this.thumbnails.push(a),s()},r.src=a.urlPrefix+a.frames[0].text})})),m(this,"startMove",t=>{if(this.loaded&&l.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var s,n;const a=this.player.elements.progress.getBoundingClientRect(),r=100/a.width*(t.pageX-a.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=pe(this.seekTime);const o=(s=this.player.config.markers)===null||s===void 0||(n=s.points)===null||n===void 0?void 0:n.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}
`)}this.showImageAtCurrentTime()}}),m(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),m(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),m(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Me.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),m(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),m(this,"render",()=>{this.elements.thumb.container=y("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=y("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=y("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=y("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=y("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),m(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),m(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(a=>this.seekTime>=a.startTime&&this.seekTime<=a.endTime),s=t>=0;let n=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((a,r)=>{this.loadedImages.includes(a.frames[t].text)&&(n=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(n)))}),m(this,"loadImage",(t=0)=>{const s=this.showingThumb,n=this.thumbnails[t],{urlPrefix:a}=n,r=n.frames[s],o=n.frames[s].text,c=a+o;if(this.currentImageElement&&this.currentImageElement.dataset.filename===o)this.showImage(this.currentImageElement,r,t,s,o,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const u=new Image;u.src=c,u.dataset.index=s,u.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${c}`),u.onload=()=>this.showImage(u,r,t,s,o,!0),this.loadingImage=u,this.removeOldImages(u)}}),m(this,"showImage",(t,s,n,a,r,o=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${a}. qual: ${n}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(a,!0).then(this.preloadNearby(a,!1)).then(this.getHigherQuality(n,t,s,r))}),m(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if(s.tagName.toLowerCase()!=="img")return;const n=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:a}=this;setTimeout(()=>{a.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},n)}})}),m(this,"preloadNearby",(t,s=!0)=>new Promise(n=>{setTimeout(()=>{const a=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===a){let r;r=s?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;r.forEach(c=>{const u=c.text;if(u!==a&&!this.loadedImages.includes(u)){o=!0,this.player.debug.log(`Preloading thumb filename: ${u}`);const{urlPrefix:g}=this.thumbnails[0],f=g+u,d=new Image;d.src=f,d.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${u}`),this.loadedImages.includes(u)||this.loadedImages.push(u),n()}}}),o||n()}},300)})),m(this,"getHigherQuality",(t,s,n,a)=>{if(t{this.showingThumbFilename===a&&(this.player.debug.log(`Showing higher quality thumb for: ${a}`),this.loadImage(t+1))},300)}}),m(this,"toggleThumbContainer",(t=!1,s=!1)=>{const n=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(n,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"toggleScrubbingContainer",(t=!1)=>{const s=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(s,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),m(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const s=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${s}px`}else if(t.clientHeight<20&&t.clientWidth>20){const s=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${s}px`}}else{const s=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${s}px`}this.setThumbContainerPos()}),m(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:n}=this.elements.thumb,a=s.left-t.left+10,r=s.right-t.left-n.clientWidth-10,o=this.mousePosX-t.left-n.clientWidth/2,c=mt(o,a,r);n.style.left=`${c}px`,n.style.setProperty("--preview-arrow-offset",o-c+"px")}),m(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=Ve(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),m(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const n=this.thumbContainerHeight/s.h;t.style.height=t.naturalHeight*n+"px",t.style.width=t.naturalWidth*n+"px",t.style.left=`-${s.x*n}px`,t.style.top=`-${s.y*n}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=Ve(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const Se={insertElements(e,i){l.string(i)?He(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{He(e,this.media,t)})},change(e){et(e,"sources.length")?(B.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],V(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=W.html5,src:n}]=i,a=s==="html5"?t:"div",r=s==="html5"?{}:{src:n};Object.assign(this,{provider:s,type:t,supported:x.check(t,s,this.config.playsinline),media:y(a,r)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),P.addStyleHook.call(this),this.isHTML5&&Se.insertElements.call(this,"source",i),this.config.title=e.title,dt.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&Se.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&P.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ae(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};class te{constructor(i,t){if(m(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>R(this.media.play())),this.media.play()):null),m(this,"pause",()=>this.playing&&l.function(this.media.pause)?this.media.pause():null),m(this,"togglePlay",o=>(l.boolean(o)?o:!this.playing)?this.play():this.pause()),m(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),m(this,"restart",()=>{this.currentTime=0}),m(this,"rewind",o=>{this.currentTime-=l.number(o)?o:this.config.seekTime}),m(this,"forward",o=>{this.currentTime+=l.number(o)?o:this.config.seekTime}),m(this,"increaseVolume",o=>{const c=this.media.muted?0:this.volume;this.volume=c+(l.number(o)?o:0)}),m(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),m(this,"airplay",()=>{x.airplay&&this.media.webkitShowPlaybackTargetPicker()}),m(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const c=ue(this.elements.container,this.config.classNames.hideControls),u=o===void 0?void 0:!o,g=E(this.elements.container,this.config.classNames.hideControls,u);if(g&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&h.toggleMenu.call(this,!1),g!==c){const f=g?"controlshidden":"controlsshown";b.call(this,this.media,f)}return!g}return!1}),m(this,"on",(o,c)=>{C.call(this,this.elements.container,o,c)}),m(this,"once",(o,c)=>{Me.call(this,this.elements.container,o,c)}),m(this,"off",(o,c)=>{me(this.elements.container,o,c)}),m(this,"destroy",(o,c=!1)=>{if(!this.ready)return;const u=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(V(this.elements.buttons.play),V(this.elements.captions),V(this.elements.controls),V(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(o)&&o()):(ii.call(this),B.cancelRequests.call(this),ce(this.elements.original,this.elements.container),b.call(this,this.elements.original,"destroyed",!0),l.function(o)&&o.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(P.toggleNativeControls.call(this,!0),u()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&l.function(this.embed.destroy)&&this.embed.destroy(),u()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(u),setTimeout(u,200))}),m(this,"supports",o=>x.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=x.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=N({},ht,te.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new pi(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",x),l.nullOrUndefined(this.media)||!l.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!x.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const n=this.media.tagName.toLowerCase();let a=null,r=null;switch(n){case"div":if(a=this.media.querySelector("iframe"),l.element(a)){if(r=ct(a.getAttribute("src")),this.provider=mi(r.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",r.search.length){const o=["1","true"];o.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(W).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=ye.video;break;case"video":case"audio":this.type=n,this.provider=W.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=x.check(this.type,this.provider),this.supported.api?(this.eventListeners=[],this.listeners=new gi(this),this.storage=new ee(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=y("div"),tt(this.media,this.elements.container)),P.migrateStyles.call(this),P.addStyleHook.call(this),dt.setup.call(this),this.config.debug&&C.call(this,this.elements.container,this.config.events.join(" "),o=>{this.debug.log(`event: ${o.type}`)}),this.fullscreen=new H(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&P.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ti(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>R(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ae(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===W.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===W.youtube}get isVimeo(){return this.provider===W.vimeo}get isVideo(){return this.type===ye.video}get isAudio(){return this.type===ye.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const i=parseFloat(this.config.duration),t=(this.media||{}).duration,s=l.number(t)&&t!==1/0?t:0;return i||s}set volume(i){let t=i;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||!!this.isAudio||!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:n}=this;t=mt(t,s,n),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let n=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),a=!0;if(!s.includes(n)){const r=it(s,n);this.debug.warn(`Unsupported quality option: ${n}, using ${r} instead`),n=r,a=!1}t.selected=n,this.media.quality=n,a&&this.storage.set({quality:n})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(i){Se.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,h.setDownloadUrl.call(this))}set poster(i){this.isVideo?P.setPoster.call(this,i,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=he(Ne.call(this));return l.array(i)?i.join(":"):i}set ratio(i){this.isVideo?l.string(i)&&nt(i)?(this.config.ratio=he(i),Y.call(this)):this.debug.error(`Invalid aspect ratio specified (${i})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(i){this.config.autoplay=l.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){S.toggle.call(this,i,!1)}set currentTrack(i){S.set.call(this,i,!1),S.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){S.setLanguage.call(this,i,!1)}get language(){return(S.getCurrentTrack.call(this)||{}).language}set pip(i){if(!x.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?fe.active:fe.inactive),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return x.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===fe.active:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Ae(this))}static supported(i,t){return x.check(i,t)}static loadSprite(i,t){return rt(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(n=>new te(n,t))}}te.defaults=Gt(ht);const Ai=["src"],Si=["src"],Pi=gt({__name:"VideoPlayer",props:{f:{}},setup(e){const i=ft();return yt(()=>{new te(i.value)}),(t,s)=>(Ie(),$e("video",{ref_key:"vid",ref:i,src:t.f.url,preload:"auto",loop:"",playsinline:""},[t.f.thumb?(Ie(),$e("img",{key:0,src:t.f.thumb,alt:""},null,8,Si)):bt("",!0)],8,Ai))}});export{Pi as default}; diff --git a/assets/index-DjertsXM.js b/assets/index-CY8g26_C.js similarity index 98% rename from assets/index-DjertsXM.js rename to assets/index-CY8g26_C.js index 5ecc999..448d301 100644 --- a/assets/index-DjertsXM.js +++ b/assets/index-CY8g26_C.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-C_au7WVD.js","assets/Loading-TN5rVjOy.js","assets/Loading-DnO-mloa.css","assets/utils-DMoCDHuU.js","assets/About-CqjRyPcY.css","assets/Life-Cmxky2ql.js","assets/Life-CGdNlMU4.css","assets/Blog-dGUD7XKf.js","assets/Blog-C6lz5TUU.css","assets/Others-B_UBzPGF.js","assets/Others-BJRAXMc6.css","assets/Menu-D2Yz2CFX.js","assets/Menu-C9so1p3X.css","assets/Friends-DnfLZaPx.js","assets/Friends-DY_pUEmK.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-BYeHamSp.js","assets/Loading-4yKS49A6.js","assets/Loading-DnO-mloa.css","assets/utils-DltlUubN.js","assets/About-CqjRyPcY.css","assets/Life-DXD9PuiT.js","assets/Life-CGdNlMU4.css","assets/Blog-ClLY7XDi.js","assets/Blog-C6lz5TUU.css","assets/Others-23UaGWwp.js","assets/Others-BJRAXMc6.css","assets/Menu-DWwHUWFO.js","assets/Menu-C9so1p3X.css","assets/Friends-DTGzMD4D.js","assets/Friends-DY_pUEmK.css"])))=>i.map(i=>d[i]); var fp=Object.defineProperty;var dp=(e,t,n)=>t in e?fp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ot=(e,t,n)=>dp(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** * @vue/shared v3.4.35 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -37,7 +37,7 @@ var fp=Object.defineProperty;var dp=(e,t,n)=>t in e?fp(e,t,{enumerable:!0,config * vue-router v4.4.0 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const ps=typeof document<"u";function iE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ee=Object.assign;function go(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ut(r)?r.map(e):e(r)}return n}const tr=()=>{},Ut=Array.isArray,Ch=/#/g,oE=/&/g,lE=/\//g,aE=/=/g,cE=/\?/g,Nh=/\+/g,uE=/%5B/g,fE=/%5D/g,Oh=/%5E/g,dE=/%60/g,Ih=/%7B/g,hE=/%7C/g,Ah=/%7D/g,pE=/%20/g;function da(e){return encodeURI(""+e).replace(hE,"|").replace(uE,"[").replace(fE,"]")}function mE(e){return da(e).replace(Ih,"{").replace(Ah,"}").replace(Oh,"^")}function Qo(e){return da(e).replace(Nh,"%2B").replace(pE,"+").replace(Ch,"%23").replace(oE,"%26").replace(dE,"`").replace(Ih,"{").replace(Ah,"}").replace(Oh,"^")}function gE(e){return Qo(e).replace(aE,"%3D")}function _E(e){return da(e).replace(Ch,"%23").replace(cE,"%3F")}function yE(e){return e==null?"":_E(e).replace(lE,"%2F")}function mr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bE=/\/$/,EE=e=>e.replace(bE,"");function _o(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(s=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),r=e(i)),l>-1&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=CE(s??t,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:mr(o)}}function vE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Pc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function TE(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ps(t.matched[s],n.matched[r])&&kh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ps(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!SE(e[n],t[n]))return!1;return!0}function SE(e,t){return Ut(e)?Mc(e,t):Ut(t)?Mc(t,e):e===t}function Mc(e,t){return Ut(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function CE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const mn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var gr;(function(e){e.pop="pop",e.push="push"})(gr||(gr={}));var nr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nr||(nr={}));function NE(e){if(!e)if(ps){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),EE(e)}const OE=/^[^#]+#/;function IE(e,t){return e.replace(OE,"#")+t}function AE(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Zi=()=>({left:window.scrollX,top:window.scrollY});function kE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=AE(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Dc(e,t){return(history.state?history.state.position-t:-1)+e}const zo=new Map;function LE(e,t){zo.set(e,t)}function RE(e){const t=zo.get(e);return zo.delete(e),t}let wE=()=>location.protocol+"//"+location.host;function Lh(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),Pc(a,"")}return Pc(n,e)+s+r}function PE(e,t,n,s){let r=[],i=[],o=null;const l=({state:d})=>{const h=Lh(e,location),E=n.value,C=t.value;let A=0;if(d){if(n.value=h,t.value=d,o&&o===E){o=null;return}A=C?d.position-C.position:0}else s(h);r.forEach(k=>{k(n.value,E,{delta:A,type:gr.pop,direction:A?A>0?nr.forward:nr.back:nr.unknown})})};function a(){o=n.value}function c(d){r.push(d);const h=()=>{const E=r.indexOf(d);E>-1&&r.splice(E,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(Ee({},d.state,{scroll:Zi()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function Fc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Zi():null}}function ME(e){const{history:t,location:n}=window,s={value:Lh(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:wE()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function o(a,c){const u=Ee({},t.state,Fc(r.value.back,a,r.value.forward,!0),c,{position:r.value.position});i(a,u,!0),s.value=a}function l(a,c){const u=Ee({},r.value,t.state,{forward:a,scroll:Zi()});i(u.current,u,!0);const f=Ee({},Fc(s.value,a,null),{position:u.position+1},c);i(a,f,!1),s.value=a}return{location:s,state:r,push:l,replace:o}}function DE(e){e=NE(e);const t=ME(e),n=PE(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=Ee({location:"",base:e,go:s,createHref:IE.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function FE(e){return typeof e=="string"||e&&typeof e=="object"}function Rh(e){return typeof e=="string"||typeof e=="symbol"}const wh=Symbol("");var xc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xc||(xc={}));function Ms(e,t){return Ee(new Error,{type:e,[wh]:!0},t)}function Jt(e,t){return e instanceof Error&&wh in e&&(t==null||!!(e.type&t))}const $c="[^/]+?",xE={sensitive:!1,strict:!1,start:!0,end:!0},$E=/[.+*?^${}()[\]/\\]/g;function VE(e,t){const n=Ee({},xE,t),s=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function Ph(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const HE={type:0,value:""},jE=/[a-zA-Z0-9_]/;function BE(e){if(!e)return[[]];if(e==="/")return[[HE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{o(p)}:tr}function o(f){if(Rh(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){const d=XE(f,n);n.splice(d,0,f),f.record.name&&!Hc(f)&&s.set(f.record.name,f)}function c(f,d){let h,E={},C,A;if("name"in f&&f.name){if(h=s.get(f.name),!h)throw Ms(1,{location:f});A=h.record.name,E=Ee(Uc(d.params,h.keys.filter(p=>!p.optional).concat(h.parent?h.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),f.params&&Uc(f.params,h.keys.map(p=>p.name))),C=h.stringify(E)}else if(f.path!=null)C=f.path,h=n.find(p=>p.re.test(C)),h&&(E=h.parse(C),A=h.record.name);else{if(h=d.name?s.get(d.name):n.find(p=>p.re.test(d.path)),!h)throw Ms(1,{location:f,currentLocation:d});A=h.record.name,E=Ee({},d.params,f.params),C=h.stringify(E)}const k=[];let O=h;for(;O;)k.unshift(O.record),O=O.parent;return{name:A,path:C,params:E,matched:k,meta:YE(k)}}e.forEach(f=>i(f));function u(){n.length=0,s.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Uc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function GE(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function qE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Hc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function YE(e){return e.reduce((t,n)=>Ee(t,n.meta),{})}function jc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function XE(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;Ph(e,t[i])<0?s=i:n=i+1}const r=JE(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function JE(e){let t=e;for(;t=t.parent;)if(Mh(t)&&Ph(e,t)===0)return t}function Mh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function QE(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Qo(i)):[s&&Qo(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function zE(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ut(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ZE=Symbol(""),Wc=Symbol(""),ha=Symbol(""),Dh=Symbol(""),Zo=Symbol("");function Ws(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Tn(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=d=>{d===!1?a(Ms(4,{from:n,to:t})):d instanceof Error?a(d):FE(d)?a(Ms(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),l())},u=i(()=>e.call(s&&s.instances[r],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>a(d))})}function yo(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let a=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(ev(a)){const u=(a.__vccOpts||a)[t];u&&i.push(Tn(u,n,s,o,l,r))}else{let c=a();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const f=iE(u)?u.default:u;o.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Tn(h,n,s,o,l,r)()}))}}return i}function ev(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kc(e){const t=$t(ha),n=$t(Dh),s=Le(()=>{const a=In(e.to);return t.resolve(a)}),r=Le(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Ps.bind(null,u));if(d>-1)return d;const h=Gc(a[c-2]);return c>1&&Gc(u)===h&&f[f.length-1].path!==h?f.findIndex(Ps.bind(null,a[c-2])):d}),i=Le(()=>r.value>-1&&rv(n.params,s.value.params)),o=Le(()=>r.value>-1&&r.value===n.matched.length-1&&kh(n.params,s.value.params));function l(a={}){return sv(a)?t[In(e.replace)?"replace":"push"](In(e.to)).catch(tr):Promise.resolve()}return{route:s,href:Le(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}const tv=Yt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Kc,setup(e,{slots:t}){const n=Er(Kc(e)),{options:s}=$t(ha),r=Le(()=>({[qc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[qc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:cs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),nv=tv;function sv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function rv(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ut(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function Gc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qc=(e,t,n)=>e??t??n,iv=Yt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=$t(Zo),r=Le(()=>e.route||s.value),i=$t(Wc,0),o=Le(()=>{let c=In(i);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Le(()=>r.value.matched[o.value]);Xs(Wc,Le(()=>o.value+1)),Xs(ZE,l),Xs(Zo,r);const a=kt();return an(()=>[a.value,l.value,e.name],([c,u,f],[d,h,E])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Ps(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Yc(n.default,{Component:d,route:c});const h=f.props[u],E=h?h===!0?c.params:typeof h=="function"?h(c):h:null,A=cs(d,Ee({},E,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Yc(n.default,{Component:A,route:c})||A}}});function Yc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ov=iv;function lv(e){const t=KE(e.routes,e),n=e.parseQuery||QE,s=e.stringifyQuery||Bc,r=e.history,i=Ws(),o=Ws(),l=Ws(),a=$i(mn);let c=mn;ps&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=go.bind(null,$=>""+$),f=go.bind(null,yE),d=go.bind(null,mr);function h($,X){let G,z;return Rh($)?(G=t.getRecordMatcher($),z=X):z=$,t.addRoute(z,G)}function E($){const X=t.getRecordMatcher($);X&&t.removeRoute(X)}function C(){return t.getRoutes().map($=>$.record)}function A($){return!!t.getRecordMatcher($)}function k($,X){if(X=Ee({},X||a.value),typeof $=="string"){const m=_o(n,$,X.path),I=t.resolve({path:m.path},X),V=r.createHref(m.fullPath);return Ee(m,I,{params:d(I.params),hash:mr(m.hash),redirectedFrom:void 0,href:V})}let G;if($.path!=null)G=Ee({},$,{path:_o(n,$.path,X.path).path});else{const m=Ee({},$.params);for(const I in m)m[I]==null&&delete m[I];G=Ee({},$,{params:f(m)}),X.params=f(X.params)}const z=t.resolve(G,X),ue=$.hash||"";z.params=u(d(z.params));const ye=vE(s,Ee({},$,{hash:mE(ue),path:z.path})),y=r.createHref(ye);return Ee({fullPath:ye,hash:ue,query:s===Bc?zE($.query):$.query||{}},z,{redirectedFrom:void 0,href:y})}function O($){return typeof $=="string"?_o(n,$,a.value.path):Ee({},$)}function p($,X){if(c!==$)return Ms(8,{from:X,to:$})}function b($){return L($)}function T($){return b(Ee(O($),{replace:!0}))}function v($){const X=$.matched[$.matched.length-1];if(X&&X.redirect){const{redirect:G}=X;let z=typeof G=="function"?G($):G;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=O(z):{path:z},z.params={}),Ee({query:$.query,hash:$.hash,params:z.path!=null?{}:$.params},z)}}function L($,X){const G=c=k($),z=a.value,ue=$.state,ye=$.force,y=$.replace===!0,m=v(G);if(m)return L(Ee(O(m),{state:typeof m=="object"?Ee({},ue,m.state):ue,force:ye,replace:y}),X||G);const I=G;I.redirectedFrom=X;let V;return!ye&&TE(s,z,G)&&(V=Ms(16,{to:I,from:z}),Se(z,z,!0,!1)),(V?Promise.resolve(V):M(I,z)).catch(F=>Jt(F)?Jt(F,2)?F:Be(F):J(F,I,z)).then(F=>{if(F){if(Jt(F,2))return L(Ee({replace:y},O(F.to),{state:typeof F.to=="object"?Ee({},ue,F.to.state):ue,force:ye}),X||I)}else F=P(I,z,!0,y,ue);return U(I,z,F),F})}function w($,X){const G=p($,X);return G?Promise.reject(G):Promise.resolve()}function S($){const X=gt.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext($):$()}function M($,X){let G;const[z,ue,ye]=av($,X);G=yo(z.reverse(),"beforeRouteLeave",$,X);for(const m of z)m.leaveGuards.forEach(I=>{G.push(Tn(I,$,X))});const y=w.bind(null,$,X);return G.push(y),We(G).then(()=>{G=[];for(const m of i.list())G.push(Tn(m,$,X));return G.push(y),We(G)}).then(()=>{G=yo(ue,"beforeRouteUpdate",$,X);for(const m of ue)m.updateGuards.forEach(I=>{G.push(Tn(I,$,X))});return G.push(y),We(G)}).then(()=>{G=[];for(const m of ye)if(m.beforeEnter)if(Ut(m.beforeEnter))for(const I of m.beforeEnter)G.push(Tn(I,$,X));else G.push(Tn(m.beforeEnter,$,X));return G.push(y),We(G)}).then(()=>($.matched.forEach(m=>m.enterCallbacks={}),G=yo(ye,"beforeRouteEnter",$,X,S),G.push(y),We(G))).then(()=>{G=[];for(const m of o.list())G.push(Tn(m,$,X));return G.push(y),We(G)}).catch(m=>Jt(m,8)?m:Promise.reject(m))}function U($,X,G){l.list().forEach(z=>S(()=>z($,X,G)))}function P($,X,G,z,ue){const ye=p($,X);if(ye)return ye;const y=X===mn,m=ps?history.state:{};G&&(z||y?r.replace($.fullPath,Ee({scroll:y&&m&&m.scroll},ue)):r.push($.fullPath,ue)),a.value=$,Se($,X,G,y),Be()}let H;function Z(){H||(H=r.listen(($,X,G)=>{if(!Ht.listening)return;const z=k($),ue=v(z);if(ue){L(Ee(ue,{replace:!0}),z).catch(tr);return}c=z;const ye=a.value;ps&&LE(Dc(ye.fullPath,G.delta),Zi()),M(z,ye).catch(y=>Jt(y,12)?y:Jt(y,2)?(L(y.to,z).then(m=>{Jt(m,20)&&!G.delta&&G.type===gr.pop&&r.go(-1,!1)}).catch(tr),Promise.reject()):(G.delta&&r.go(-G.delta,!1),J(y,z,ye))).then(y=>{y=y||P(z,ye,!1),y&&(G.delta&&!Jt(y,8)?r.go(-G.delta,!1):G.type===gr.pop&&Jt(y,20)&&r.go(-1,!1)),U(z,ye,y)}).catch(tr)}))}let ee=Ws(),W=Ws(),te;function J($,X,G){Be($);const z=W.list();return z.length?z.forEach(ue=>ue($,X,G)):console.error($),Promise.reject($)}function De(){return te&&a.value!==mn?Promise.resolve():new Promise(($,X)=>{ee.add([$,X])})}function Be($){return te||(te=!$,Z(),ee.list().forEach(([X,G])=>$?G($):X()),ee.reset()),$}function Se($,X,G,z){const{scrollBehavior:ue}=e;if(!ps||!ue)return Promise.resolve();const ye=!G&&RE(Dc($.fullPath,0))||(z||!G)&&history.state&&history.state.scroll||null;return vr().then(()=>ue($,X,ye)).then(y=>y&&kE(y)).catch(y=>J(y,$,X))}const Re=$=>r.go($);let Nt;const gt=new Set,Ht={currentRoute:a,listening:!0,addRoute:h,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:A,getRoutes:C,resolve:k,options:e,push:b,replace:T,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:W.add,isReady:De,install($){const X=this;$.component("RouterLink",nv),$.component("RouterView",ov),$.config.globalProperties.$router=X,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>In(a)}),ps&&!Nt&&a.value===mn&&(Nt=!0,b(r.location).catch(ue=>{}));const G={};for(const ue in mn)Object.defineProperty(G,ue,{get:()=>a.value[ue],enumerable:!0});$.provide(ha,X),$.provide(Dh,yl(G)),$.provide(Zo,a);const z=$.unmount;gt.add($),$.unmount=function(){gt.delete($),gt.size<1&&(c=mn,H&&H(),H=null,a.value=mn,Nt=!1,te=!1),z()}}};function We($){return $.reduce((X,G)=>X.then(()=>S(G)),Promise.resolve())}return Ht}function av(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oPs(c,l))?s.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(c=>Ps(c,a))||r.push(a))}return[n,s,r]}const Rr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},cv={},uv=e=>(Nl("data-v-b7716c04"),e=e(),Ol(),e),fv={id:"Home",class:"fbox-center f-grow1"},dv=uv(()=>ke("div",{id:"box"},[ke("div",{class:"font-script-en"},"Azalea's"),ke("div",{class:"font-script-en bold"},"Road Less Traveled")],-1)),hv=[dv];function pv(e,t){return lt(),Dt("div",fv,hv)}const mv=Rr(cv,[["render",pv],["__scopeId","data-v-b7716c04"]]),gv=[{path:"/",name:"Home",meta:{title:"Home",nav:!0},component:mv},{path:"/about",name:"About",meta:{title:"关于",nav:!0},component:()=>Hn(()=>import("./About-C_au7WVD.js"),__vite__mapDeps([0,1,2,3,4]))},{path:"/life",name:"Life",meta:{title:"生活",nav:!0},component:()=>Hn(()=>import("./Life-Cmxky2ql.js").then(e=>e.L),__vite__mapDeps([5,6]))},{path:"/blog",name:"Blog",meta:{title:"记事本",nav:!0},component:()=>Hn(()=>import("./Blog-dGUD7XKf.js"),__vite__mapDeps([7,1,2,8])),props:e=>e.query},{path:"/others",name:"Others",meta:{title:"更多",nav:!0},component:()=>Hn(()=>import("./Others-B_UBzPGF.js"),__vite__mapDeps([9,10]))},{path:"/kitchen-menu",name:"Menu",meta:{title:"菜单",navBookmark:"Others"},component:()=>Hn(()=>import("./Menu-D2Yz2CFX.js"),__vite__mapDeps([11,12]))},{path:"/friends",name:"Friends",meta:{title:"朋友们",navBookmark:"Others"},component:()=>Hn(()=>import("./Friends-DnfLZaPx.js"),__vite__mapDeps([13,3,14]))},{path:"/projects",name:"Projects",meta:{title:"我做的",navBookmark:"Others"},component:()=>Hn(()=>import("./Projects-Ci_l8rQr.js"),[])}],Ai=lv({history:DE(),routes:gv});function Xc(e){const t={...Ai.currentRoute.value.query??{}};console.log(e);for(const n of Object.keys(e))e[n]==null?delete t[n]:t[n]=e[n];return Ai.push({query:t})}var _v=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,bv=(e,t,n,s)=>{for(var r=s>1?void 0:s?yv(t,n):t,i=e.length-1,o;i>=0;i--)(o=e[i])&&(r=(s?o(t,n,r):o(r))||r);return s&&r&&_v(t,n,r),r};let el=class extends fa{constructor(){super(...arguments);Ot(this,"currentRoute","");Ot(this,"currentLink",null);Ot(this,"bookmarkCss","");Ot(this,"bookmarkUpdateIntervalId");Ot(this,"lastTop",0);Ot(this,"menuOpen",!1)}showMenu(){this.menuOpen=!this.menuOpen,this.menuOpen&&setTimeout(()=>this.menuOpen=!1,2e3)}updateBookmark(n){var s;this.$nextTick(()=>{n.name=="Blog"&&Object.keys(n.query).length!=0||(document.title=n.meta.title?`Hykilpikonna - ${n.meta.title}`:"Hykilpikonna - Home")}),console.log("AfterEach called",n),this.currentRoute=(((s=n.meta)==null?void 0:s.navBookmark)??n.name).toLowerCase(),this.calculateBookmarkCss(),this.menuOpen=!1}mounted(){var n;console.log("Mounted called",this.$route),Ai.afterEach(this.updateBookmark),this.$route.name&&(this.currentRoute=(((n=this.$route.meta)==null?void 0:n.navBookmark)??this.$route.name).toLowerCase()),window.addEventListener("resize",this.calculateBookmarkCss,!0),this.bookmarkUpdateIntervalId=window.setInterval(this.calculateBookmarkCss,1e3)}unmounted(){window.removeEventListener("resize",this.calculateBookmarkCss),window.clearInterval(this.bookmarkUpdateIntervalId)}calculateBookmarkCss(){if(this.currentRoute in this.$refs)this.currentLink=this.$refs[this.currentRoute].$el;else return;let n=this.currentLink.getBoundingClientRect();if(n.top==this.lastTop)return;this.lastTop=n.top;let s=n.bottom-n.top,r=Math.round(s/2)+8;this.bookmarkCss=`top: ${n.top-8}px;border-width: ${r}px 20px ${r}px 50px;`}};el=bv([ca],el);const Ev="/meru_256px.png",vv=ke("i",{class:"fas fa-bars"},null,-1),Tv=[vv],Sv={id:"items",class:"fbox-v"},Cv=ke("div",{class:"dot"},"·",-1),Nv=ke("div",{class:"dot"},"·",-1),Ov=ke("div",{class:"dot"},"·",-1),Iv=ke("div",{class:"dot"},"·",-1),Av=ke("svg",{focusable:"false","data-prefix":"fal","data-icon":"house-night",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"svg-inline--fa fa-house-night fa-w-20"},[ke("path",{fill:"currentColor",d:"M112,224a111.5,111.5,0,0,0,87-41.45,20.51,20.51,0,0,0-19.75-33.08A59.2,59.2,0,0,1,138.84,39.85a20.3,20.3,0,0,0,10.07-21.27,20.26,20.26,0,0,0-16.47-16.7A136,136,0,0,0,112,0a112,112,0,0,0,0,224ZM97.78,33.27a91.21,91.21,0,0,0,54.47,147.9A80,80,0,1,1,97.78,33.27Zm97.15,35.51,39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L317,68.78a5.33,5.33,0,0,0,0-9.54L277.32,42.68,260.76,3a5.33,5.33,0,0,0-9.55,0L234.65,42.68,194.93,59.24a5.34,5.34,0,0,0,0,9.54ZM157,379.24l-39.72-16.57L100.76,323a5.34,5.34,0,0,0-9.55,0L74.65,362.67,34.93,379.24a5.34,5.34,0,0,0,0,9.54l39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L157,388.78a5.33,5.33,0,0,0,0-9.54Zm179-101.9v85.33A21.39,21.39,0,0,0,357.36,384h85.31A21.39,21.39,0,0,0,464,362.67V277.34A21.4,21.4,0,0,0,442.67,256H357.36A21.4,21.4,0,0,0,336,277.34ZM368,288H432v64H368Zm266.49,8L576,244.75V144a16,16,0,0,0-32,0v72.75L410.53,100a16,16,0,0,0-21.07,0l-224,196a16,16,0,0,0,21.07,24.09L224,287.28V464a48.05,48.05,0,0,0,48,48H528a48.06,48.06,0,0,0,48-48V287.28l37.46,32.78A16,16,0,0,0,634.53,296ZM544,464a16,16,0,0,1-16,16H272a16,16,0,0,1-16-16V264a15.94,15.94,0,0,0-.81-4L400,133.27l144,126Z",class:""})],-1),kv=ke("div",{class:"dot"},"·",-1),Lv=ke("div",{id:"nav-background"},null,-1),Rv=ke("img",{id:"meru",src:Ev,alt:""},null,-1);function wv(e,t,n,s,r,i){const o=ui("router-link"),l=ui("router-view");return lt(),Dt(we,null,[e.currentRoute!=="colorpicker"?(lt(),Dt("div",{key:0,id:"nav",class:ls(["fbox-v",e.currentRoute+" "+(e.menuOpen?"open":"")])},[ke("div",{id:"menu",onClick:t[0]||(t[0]=(...a)=>e.showMenu&&e.showMenu(...a))},Tv),ke("div",Sv,[me(o,{class:"router-link",ref:"others",to:"/others"},{default:nn(()=>[Cn(Kt(e.$t("nav.others")),1)]),_:1},512),Cv,me(o,{class:"router-link",ref:"blog",to:"/blog"},{default:nn(()=>[Cn(Kt(e.$t("nav.blog")),1)]),_:1},512),Nv,me(o,{class:"router-link",ref:"life",to:"/life"},{default:nn(()=>[Cn(Kt(e.$t("nav.life")),1)]),_:1},512),Ov,me(o,{class:"router-link",ref:"about",to:"/about"},{default:nn(()=>[Cn(Kt(e.$t("nav.about")),1)]),_:1},512),Iv,me(o,{class:"router-link",ref:"home",to:"/"},{default:nn(()=>[Av]),_:1},512),kv]),ke("div",{id:"nav-bookmark",ref:"bookmark",style:Vs(e.bookmarkCss)},null,4),Lv,Rv],2)):nd("",!0),me(l)],64)}const Pv=Rr(el,[["render",wv]]);/*! + */const ps=typeof document<"u";function iE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ee=Object.assign;function go(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ut(r)?r.map(e):e(r)}return n}const tr=()=>{},Ut=Array.isArray,Ch=/#/g,oE=/&/g,lE=/\//g,aE=/=/g,cE=/\?/g,Nh=/\+/g,uE=/%5B/g,fE=/%5D/g,Oh=/%5E/g,dE=/%60/g,Ih=/%7B/g,hE=/%7C/g,Ah=/%7D/g,pE=/%20/g;function da(e){return encodeURI(""+e).replace(hE,"|").replace(uE,"[").replace(fE,"]")}function mE(e){return da(e).replace(Ih,"{").replace(Ah,"}").replace(Oh,"^")}function Qo(e){return da(e).replace(Nh,"%2B").replace(pE,"+").replace(Ch,"%23").replace(oE,"%26").replace(dE,"`").replace(Ih,"{").replace(Ah,"}").replace(Oh,"^")}function gE(e){return Qo(e).replace(aE,"%3D")}function _E(e){return da(e).replace(Ch,"%23").replace(cE,"%3F")}function yE(e){return e==null?"":_E(e).replace(lE,"%2F")}function mr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bE=/\/$/,EE=e=>e.replace(bE,"");function _o(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let a=t.indexOf("?");return l=0&&(a=-1),a>-1&&(s=t.slice(0,a),i=t.slice(a+1,l>-1?l:t.length),r=e(i)),l>-1&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=CE(s??t,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:mr(o)}}function vE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Pc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function TE(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ps(t.matched[s],n.matched[r])&&kh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ps(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!SE(e[n],t[n]))return!1;return!0}function SE(e,t){return Ut(e)?Mc(e,t):Ut(t)?Mc(t,e):e===t}function Mc(e,t){return Ut(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function CE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const mn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var gr;(function(e){e.pop="pop",e.push="push"})(gr||(gr={}));var nr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nr||(nr={}));function NE(e){if(!e)if(ps){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),EE(e)}const OE=/^[^#]+#/;function IE(e,t){return e.replace(OE,"#")+t}function AE(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Zi=()=>({left:window.scrollX,top:window.scrollY});function kE(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=AE(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Dc(e,t){return(history.state?history.state.position-t:-1)+e}const zo=new Map;function LE(e,t){zo.set(e,t)}function RE(e){const t=zo.get(e);return zo.delete(e),t}let wE=()=>location.protocol+"//"+location.host;function Lh(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),Pc(a,"")}return Pc(n,e)+s+r}function PE(e,t,n,s){let r=[],i=[],o=null;const l=({state:d})=>{const h=Lh(e,location),E=n.value,C=t.value;let A=0;if(d){if(n.value=h,t.value=d,o&&o===E){o=null;return}A=C?d.position-C.position:0}else s(h);r.forEach(k=>{k(n.value,E,{delta:A,type:gr.pop,direction:A?A>0?nr.forward:nr.back:nr.unknown})})};function a(){o=n.value}function c(d){r.push(d);const h=()=>{const E=r.indexOf(d);E>-1&&r.splice(E,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(Ee({},d.state,{scroll:Zi()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:a,listen:c,destroy:f}}function Fc(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Zi():null}}function ME(e){const{history:t,location:n}=window,s={value:Lh(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,c,u){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:wE()+e+a;try{t[u?"replaceState":"pushState"](c,"",d),r.value=c}catch(h){console.error(h),n[u?"replace":"assign"](d)}}function o(a,c){const u=Ee({},t.state,Fc(r.value.back,a,r.value.forward,!0),c,{position:r.value.position});i(a,u,!0),s.value=a}function l(a,c){const u=Ee({},r.value,t.state,{forward:a,scroll:Zi()});i(u.current,u,!0);const f=Ee({},Fc(s.value,a,null),{position:u.position+1},c);i(a,f,!1),s.value=a}return{location:s,state:r,push:l,replace:o}}function DE(e){e=NE(e);const t=ME(e),n=PE(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=Ee({location:"",base:e,go:s,createHref:IE.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function FE(e){return typeof e=="string"||e&&typeof e=="object"}function Rh(e){return typeof e=="string"||typeof e=="symbol"}const wh=Symbol("");var xc;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xc||(xc={}));function Ms(e,t){return Ee(new Error,{type:e,[wh]:!0},t)}function Jt(e,t){return e instanceof Error&&wh in e&&(t==null||!!(e.type&t))}const $c="[^/]+?",xE={sensitive:!1,strict:!1,start:!0,end:!0},$E=/[.+*?^${}()[\]/\\]/g;function VE(e,t){const n=Ee({},xE,t),s=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function Ph(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const HE={type:0,value:""},jE=/[a-zA-Z0-9_]/;function BE(e){if(!e)return[[]];if(e==="/")return[[HE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,a,c="",u="";function f(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=a}for(;l{o(p)}:tr}function o(f){if(Rh(f)){const d=s.get(f);d&&(s.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(o),d.alias.forEach(o))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function a(f){const d=XE(f,n);n.splice(d,0,f),f.record.name&&!Hc(f)&&s.set(f.record.name,f)}function c(f,d){let h,E={},C,A;if("name"in f&&f.name){if(h=s.get(f.name),!h)throw Ms(1,{location:f});A=h.record.name,E=Ee(Uc(d.params,h.keys.filter(p=>!p.optional).concat(h.parent?h.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),f.params&&Uc(f.params,h.keys.map(p=>p.name))),C=h.stringify(E)}else if(f.path!=null)C=f.path,h=n.find(p=>p.re.test(C)),h&&(E=h.parse(C),A=h.record.name);else{if(h=d.name?s.get(d.name):n.find(p=>p.re.test(d.path)),!h)throw Ms(1,{location:f,currentLocation:d});A=h.record.name,E=Ee({},d.params,f.params),C=h.stringify(E)}const k=[];let O=h;for(;O;)k.unshift(O.record),O=O.parent;return{name:A,path:C,params:E,matched:k,meta:YE(k)}}e.forEach(f=>i(f));function u(){n.length=0,s.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Uc(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function GE(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:qE(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function qE(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Hc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function YE(e){return e.reduce((t,n)=>Ee(t,n.meta),{})}function jc(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function XE(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;Ph(e,t[i])<0?s=i:n=i+1}const r=JE(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function JE(e){let t=e;for(;t=t.parent;)if(Mh(t)&&Ph(e,t)===0)return t}function Mh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function QE(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Qo(i)):[s&&Qo(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function zE(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ut(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ZE=Symbol(""),Wc=Symbol(""),ha=Symbol(""),Dh=Symbol(""),Zo=Symbol("");function Ws(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Tn(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=d=>{d===!1?a(Ms(4,{from:n,to:t})):d instanceof Error?a(d):FE(d)?a(Ms(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),l())},u=i(()=>e.call(s&&s.instances[r],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(d=>a(d))})}function yo(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let a=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(ev(a)){const u=(a.__vccOpts||a)[t];u&&i.push(Tn(u,n,s,o,l,r))}else{let c=a();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${o.path}"`));const f=iE(u)?u.default:u;o.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Tn(h,n,s,o,l,r)()}))}}return i}function ev(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kc(e){const t=$t(ha),n=$t(Dh),s=Le(()=>{const a=In(e.to);return t.resolve(a)}),r=Le(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const d=f.findIndex(Ps.bind(null,u));if(d>-1)return d;const h=Gc(a[c-2]);return c>1&&Gc(u)===h&&f[f.length-1].path!==h?f.findIndex(Ps.bind(null,a[c-2])):d}),i=Le(()=>r.value>-1&&rv(n.params,s.value.params)),o=Le(()=>r.value>-1&&r.value===n.matched.length-1&&kh(n.params,s.value.params));function l(a={}){return sv(a)?t[In(e.replace)?"replace":"push"](In(e.to)).catch(tr):Promise.resolve()}return{route:s,href:Le(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}const tv=Yt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Kc,setup(e,{slots:t}){const n=Er(Kc(e)),{options:s}=$t(ha),r=Le(()=>({[qc(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[qc(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:cs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),nv=tv;function sv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function rv(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ut(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function Gc(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const qc=(e,t,n)=>e??t??n,iv=Yt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=$t(Zo),r=Le(()=>e.route||s.value),i=$t(Wc,0),o=Le(()=>{let c=In(i);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=Le(()=>r.value.matched[o.value]);Xs(Wc,Le(()=>o.value+1)),Xs(ZE,l),Xs(Zo,r);const a=kt();return an(()=>[a.value,l.value,e.name],([c,u,f],[d,h,E])=>{u&&(u.instances[f]=c,h&&h!==u&&c&&c===d&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Ps(u,h)||!d)&&(u.enterCallbacks[f]||[]).forEach(C=>C(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,d=f&&f.components[u];if(!d)return Yc(n.default,{Component:d,route:c});const h=f.props[u],E=h?h===!0?c.params:typeof h=="function"?h(c):h:null,A=cs(d,Ee({},E,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return Yc(n.default,{Component:A,route:c})||A}}});function Yc(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ov=iv;function lv(e){const t=KE(e.routes,e),n=e.parseQuery||QE,s=e.stringifyQuery||Bc,r=e.history,i=Ws(),o=Ws(),l=Ws(),a=$i(mn);let c=mn;ps&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=go.bind(null,$=>""+$),f=go.bind(null,yE),d=go.bind(null,mr);function h($,X){let G,z;return Rh($)?(G=t.getRecordMatcher($),z=X):z=$,t.addRoute(z,G)}function E($){const X=t.getRecordMatcher($);X&&t.removeRoute(X)}function C(){return t.getRoutes().map($=>$.record)}function A($){return!!t.getRecordMatcher($)}function k($,X){if(X=Ee({},X||a.value),typeof $=="string"){const m=_o(n,$,X.path),I=t.resolve({path:m.path},X),V=r.createHref(m.fullPath);return Ee(m,I,{params:d(I.params),hash:mr(m.hash),redirectedFrom:void 0,href:V})}let G;if($.path!=null)G=Ee({},$,{path:_o(n,$.path,X.path).path});else{const m=Ee({},$.params);for(const I in m)m[I]==null&&delete m[I];G=Ee({},$,{params:f(m)}),X.params=f(X.params)}const z=t.resolve(G,X),ue=$.hash||"";z.params=u(d(z.params));const ye=vE(s,Ee({},$,{hash:mE(ue),path:z.path})),y=r.createHref(ye);return Ee({fullPath:ye,hash:ue,query:s===Bc?zE($.query):$.query||{}},z,{redirectedFrom:void 0,href:y})}function O($){return typeof $=="string"?_o(n,$,a.value.path):Ee({},$)}function p($,X){if(c!==$)return Ms(8,{from:X,to:$})}function b($){return L($)}function T($){return b(Ee(O($),{replace:!0}))}function v($){const X=$.matched[$.matched.length-1];if(X&&X.redirect){const{redirect:G}=X;let z=typeof G=="function"?G($):G;return typeof z=="string"&&(z=z.includes("?")||z.includes("#")?z=O(z):{path:z},z.params={}),Ee({query:$.query,hash:$.hash,params:z.path!=null?{}:$.params},z)}}function L($,X){const G=c=k($),z=a.value,ue=$.state,ye=$.force,y=$.replace===!0,m=v(G);if(m)return L(Ee(O(m),{state:typeof m=="object"?Ee({},ue,m.state):ue,force:ye,replace:y}),X||G);const I=G;I.redirectedFrom=X;let V;return!ye&&TE(s,z,G)&&(V=Ms(16,{to:I,from:z}),Se(z,z,!0,!1)),(V?Promise.resolve(V):M(I,z)).catch(F=>Jt(F)?Jt(F,2)?F:Be(F):J(F,I,z)).then(F=>{if(F){if(Jt(F,2))return L(Ee({replace:y},O(F.to),{state:typeof F.to=="object"?Ee({},ue,F.to.state):ue,force:ye}),X||I)}else F=P(I,z,!0,y,ue);return U(I,z,F),F})}function w($,X){const G=p($,X);return G?Promise.reject(G):Promise.resolve()}function S($){const X=gt.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext($):$()}function M($,X){let G;const[z,ue,ye]=av($,X);G=yo(z.reverse(),"beforeRouteLeave",$,X);for(const m of z)m.leaveGuards.forEach(I=>{G.push(Tn(I,$,X))});const y=w.bind(null,$,X);return G.push(y),We(G).then(()=>{G=[];for(const m of i.list())G.push(Tn(m,$,X));return G.push(y),We(G)}).then(()=>{G=yo(ue,"beforeRouteUpdate",$,X);for(const m of ue)m.updateGuards.forEach(I=>{G.push(Tn(I,$,X))});return G.push(y),We(G)}).then(()=>{G=[];for(const m of ye)if(m.beforeEnter)if(Ut(m.beforeEnter))for(const I of m.beforeEnter)G.push(Tn(I,$,X));else G.push(Tn(m.beforeEnter,$,X));return G.push(y),We(G)}).then(()=>($.matched.forEach(m=>m.enterCallbacks={}),G=yo(ye,"beforeRouteEnter",$,X,S),G.push(y),We(G))).then(()=>{G=[];for(const m of o.list())G.push(Tn(m,$,X));return G.push(y),We(G)}).catch(m=>Jt(m,8)?m:Promise.reject(m))}function U($,X,G){l.list().forEach(z=>S(()=>z($,X,G)))}function P($,X,G,z,ue){const ye=p($,X);if(ye)return ye;const y=X===mn,m=ps?history.state:{};G&&(z||y?r.replace($.fullPath,Ee({scroll:y&&m&&m.scroll},ue)):r.push($.fullPath,ue)),a.value=$,Se($,X,G,y),Be()}let H;function Z(){H||(H=r.listen(($,X,G)=>{if(!Ht.listening)return;const z=k($),ue=v(z);if(ue){L(Ee(ue,{replace:!0}),z).catch(tr);return}c=z;const ye=a.value;ps&&LE(Dc(ye.fullPath,G.delta),Zi()),M(z,ye).catch(y=>Jt(y,12)?y:Jt(y,2)?(L(y.to,z).then(m=>{Jt(m,20)&&!G.delta&&G.type===gr.pop&&r.go(-1,!1)}).catch(tr),Promise.reject()):(G.delta&&r.go(-G.delta,!1),J(y,z,ye))).then(y=>{y=y||P(z,ye,!1),y&&(G.delta&&!Jt(y,8)?r.go(-G.delta,!1):G.type===gr.pop&&Jt(y,20)&&r.go(-1,!1)),U(z,ye,y)}).catch(tr)}))}let ee=Ws(),W=Ws(),te;function J($,X,G){Be($);const z=W.list();return z.length?z.forEach(ue=>ue($,X,G)):console.error($),Promise.reject($)}function De(){return te&&a.value!==mn?Promise.resolve():new Promise(($,X)=>{ee.add([$,X])})}function Be($){return te||(te=!$,Z(),ee.list().forEach(([X,G])=>$?G($):X()),ee.reset()),$}function Se($,X,G,z){const{scrollBehavior:ue}=e;if(!ps||!ue)return Promise.resolve();const ye=!G&&RE(Dc($.fullPath,0))||(z||!G)&&history.state&&history.state.scroll||null;return vr().then(()=>ue($,X,ye)).then(y=>y&&kE(y)).catch(y=>J(y,$,X))}const Re=$=>r.go($);let Nt;const gt=new Set,Ht={currentRoute:a,listening:!0,addRoute:h,removeRoute:E,clearRoutes:t.clearRoutes,hasRoute:A,getRoutes:C,resolve:k,options:e,push:b,replace:T,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:W.add,isReady:De,install($){const X=this;$.component("RouterLink",nv),$.component("RouterView",ov),$.config.globalProperties.$router=X,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>In(a)}),ps&&!Nt&&a.value===mn&&(Nt=!0,b(r.location).catch(ue=>{}));const G={};for(const ue in mn)Object.defineProperty(G,ue,{get:()=>a.value[ue],enumerable:!0});$.provide(ha,X),$.provide(Dh,yl(G)),$.provide(Zo,a);const z=$.unmount;gt.add($),$.unmount=function(){gt.delete($),gt.size<1&&(c=mn,H&&H(),H=null,a.value=mn,Nt=!1,te=!1),z()}}};function We($){return $.reduce((X,G)=>X.then(()=>S(G)),Promise.resolve())}return Ht}function av(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oPs(c,l))?s.push(l):n.push(l));const a=e.matched[o];a&&(t.matched.find(c=>Ps(c,a))||r.push(a))}return[n,s,r]}const Rr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},cv={},uv=e=>(Nl("data-v-b7716c04"),e=e(),Ol(),e),fv={id:"Home",class:"fbox-center f-grow1"},dv=uv(()=>ke("div",{id:"box"},[ke("div",{class:"font-script-en"},"Azalea's"),ke("div",{class:"font-script-en bold"},"Road Less Traveled")],-1)),hv=[dv];function pv(e,t){return lt(),Dt("div",fv,hv)}const mv=Rr(cv,[["render",pv],["__scopeId","data-v-b7716c04"]]),gv=[{path:"/",name:"Home",meta:{title:"Home",nav:!0},component:mv},{path:"/about",name:"About",meta:{title:"关于",nav:!0},component:()=>Hn(()=>import("./About-BYeHamSp.js"),__vite__mapDeps([0,1,2,3,4]))},{path:"/life",name:"Life",meta:{title:"生活",nav:!0},component:()=>Hn(()=>import("./Life-DXD9PuiT.js").then(e=>e.L),__vite__mapDeps([5,6]))},{path:"/blog",name:"Blog",meta:{title:"记事本",nav:!0},component:()=>Hn(()=>import("./Blog-ClLY7XDi.js"),__vite__mapDeps([7,1,2,8])),props:e=>e.query},{path:"/others",name:"Others",meta:{title:"更多",nav:!0},component:()=>Hn(()=>import("./Others-23UaGWwp.js"),__vite__mapDeps([9,10]))},{path:"/kitchen-menu",name:"Menu",meta:{title:"菜单",navBookmark:"Others"},component:()=>Hn(()=>import("./Menu-DWwHUWFO.js"),__vite__mapDeps([11,12]))},{path:"/friends",name:"Friends",meta:{title:"朋友们",navBookmark:"Others"},component:()=>Hn(()=>import("./Friends-DTGzMD4D.js"),__vite__mapDeps([13,3,14]))},{path:"/projects",name:"Projects",meta:{title:"我做的",navBookmark:"Others"},component:()=>Hn(()=>import("./Projects-B5YLv4L4.js"),[])}],Ai=lv({history:DE(),routes:gv});function Xc(e){const t={...Ai.currentRoute.value.query??{}};console.log(e);for(const n of Object.keys(e))e[n]==null?delete t[n]:t[n]=e[n];return Ai.push({query:t})}var _v=Object.defineProperty,yv=Object.getOwnPropertyDescriptor,bv=(e,t,n,s)=>{for(var r=s>1?void 0:s?yv(t,n):t,i=e.length-1,o;i>=0;i--)(o=e[i])&&(r=(s?o(t,n,r):o(r))||r);return s&&r&&_v(t,n,r),r};let el=class extends fa{constructor(){super(...arguments);Ot(this,"currentRoute","");Ot(this,"currentLink",null);Ot(this,"bookmarkCss","");Ot(this,"bookmarkUpdateIntervalId");Ot(this,"lastTop",0);Ot(this,"menuOpen",!1)}showMenu(){this.menuOpen=!this.menuOpen,this.menuOpen&&setTimeout(()=>this.menuOpen=!1,2e3)}updateBookmark(n){var s;this.$nextTick(()=>{n.name=="Blog"&&Object.keys(n.query).length!=0||(document.title=n.meta.title?`Aza - ${n.meta.title}`:"Aza - Home")}),console.log("AfterEach called",n),this.currentRoute=(((s=n.meta)==null?void 0:s.navBookmark)??n.name).toLowerCase(),this.calculateBookmarkCss(),this.menuOpen=!1}mounted(){var n;console.log("Mounted called",this.$route),Ai.afterEach(this.updateBookmark),this.$route.name&&(this.currentRoute=(((n=this.$route.meta)==null?void 0:n.navBookmark)??this.$route.name).toLowerCase()),window.addEventListener("resize",this.calculateBookmarkCss,!0),this.bookmarkUpdateIntervalId=window.setInterval(this.calculateBookmarkCss,1e3)}unmounted(){window.removeEventListener("resize",this.calculateBookmarkCss),window.clearInterval(this.bookmarkUpdateIntervalId)}calculateBookmarkCss(){if(this.currentRoute in this.$refs)this.currentLink=this.$refs[this.currentRoute].$el;else return;let n=this.currentLink.getBoundingClientRect();if(n.top==this.lastTop)return;this.lastTop=n.top;let s=n.bottom-n.top,r=Math.round(s/2)+8;this.bookmarkCss=`top: ${n.top-8}px;border-width: ${r}px 20px ${r}px 50px;`}};el=bv([ca],el);const Ev="/meru_256px.png",vv=ke("i",{class:"fas fa-bars"},null,-1),Tv=[vv],Sv={id:"items",class:"fbox-v"},Cv=ke("div",{class:"dot"},"·",-1),Nv=ke("div",{class:"dot"},"·",-1),Ov=ke("div",{class:"dot"},"·",-1),Iv=ke("div",{class:"dot"},"·",-1),Av=ke("svg",{focusable:"false","data-prefix":"fal","data-icon":"house-night",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",class:"svg-inline--fa fa-house-night fa-w-20"},[ke("path",{fill:"currentColor",d:"M112,224a111.5,111.5,0,0,0,87-41.45,20.51,20.51,0,0,0-19.75-33.08A59.2,59.2,0,0,1,138.84,39.85a20.3,20.3,0,0,0,10.07-21.27,20.26,20.26,0,0,0-16.47-16.7A136,136,0,0,0,112,0a112,112,0,0,0,0,224ZM97.78,33.27a91.21,91.21,0,0,0,54.47,147.9A80,80,0,1,1,97.78,33.27Zm97.15,35.51,39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L317,68.78a5.33,5.33,0,0,0,0-9.54L277.32,42.68,260.76,3a5.33,5.33,0,0,0-9.55,0L234.65,42.68,194.93,59.24a5.34,5.34,0,0,0,0,9.54ZM157,379.24l-39.72-16.57L100.76,323a5.34,5.34,0,0,0-9.55,0L74.65,362.67,34.93,379.24a5.34,5.34,0,0,0,0,9.54l39.72,16.56,16.56,39.72a5.33,5.33,0,0,0,9.55,0l16.56-39.72L157,388.78a5.33,5.33,0,0,0,0-9.54Zm179-101.9v85.33A21.39,21.39,0,0,0,357.36,384h85.31A21.39,21.39,0,0,0,464,362.67V277.34A21.4,21.4,0,0,0,442.67,256H357.36A21.4,21.4,0,0,0,336,277.34ZM368,288H432v64H368Zm266.49,8L576,244.75V144a16,16,0,0,0-32,0v72.75L410.53,100a16,16,0,0,0-21.07,0l-224,196a16,16,0,0,0,21.07,24.09L224,287.28V464a48.05,48.05,0,0,0,48,48H528a48.06,48.06,0,0,0,48-48V287.28l37.46,32.78A16,16,0,0,0,634.53,296ZM544,464a16,16,0,0,1-16,16H272a16,16,0,0,1-16-16V264a15.94,15.94,0,0,0-.81-4L400,133.27l144,126Z",class:""})],-1),kv=ke("div",{class:"dot"},"·",-1),Lv=ke("div",{id:"nav-background"},null,-1),Rv=ke("img",{id:"meru",src:Ev,alt:""},null,-1);function wv(e,t,n,s,r,i){const o=ui("router-link"),l=ui("router-view");return lt(),Dt(we,null,[e.currentRoute!=="colorpicker"?(lt(),Dt("div",{key:0,id:"nav",class:ls(["fbox-v",e.currentRoute+" "+(e.menuOpen?"open":"")])},[ke("div",{id:"menu",onClick:t[0]||(t[0]=(...a)=>e.showMenu&&e.showMenu(...a))},Tv),ke("div",Sv,[me(o,{class:"router-link",ref:"others",to:"/others"},{default:nn(()=>[Cn(Kt(e.$t("nav.others")),1)]),_:1},512),Cv,me(o,{class:"router-link",ref:"blog",to:"/blog"},{default:nn(()=>[Cn(Kt(e.$t("nav.blog")),1)]),_:1},512),Nv,me(o,{class:"router-link",ref:"life",to:"/life"},{default:nn(()=>[Cn(Kt(e.$t("nav.life")),1)]),_:1},512),Ov,me(o,{class:"router-link",ref:"about",to:"/about"},{default:nn(()=>[Cn(Kt(e.$t("nav.about")),1)]),_:1},512),Iv,me(o,{class:"router-link",ref:"home",to:"/"},{default:nn(()=>[Av]),_:1},512),kv]),ke("div",{id:"nav-bookmark",ref:"bookmark",style:Vs(e.bookmarkCss)},null,4),Lv,Rv],2)):nd("",!0),me(l)],64)}const Pv=Rr(el,[["render",wv]]);/*! * shared v9.13.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. diff --git a/assets/utils-DMoCDHuU.js b/assets/utils-DltlUubN.js similarity index 69% rename from assets/utils-DMoCDHuU.js rename to assets/utils-DltlUubN.js index 1b7756c..8d5034e 100644 --- a/assets/utils-DMoCDHuU.js +++ b/assets/utils-DltlUubN.js @@ -1 +1 @@ -import"./index-DjertsXM.js";function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){let t=e.length,n;for(;t!=0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e}export{c,i as s}; +import"./index-CY8g26_C.js";function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){let t=e.length,n;for(;t!=0;)n=Math.floor(Math.random()*t),t--,[e[t],e[n]]=[e[n],e[t]];return e}export{c,i as s}; diff --git a/index.html b/index.html index 9f3e98c..e7546c5 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ - +