ai-chat-bot-interface 1.7.10 → 1.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,111 +0,0 @@
1
- (function(ze,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(ze=typeof globalThis<"u"?globalThis:ze||self,i(ze["ai-chat-bot-interface"]={},ze.Vue))})(this,function(ze,i){"use strict";/*!
2
- * shared v9.14.5
3
- * (c) 2025 kazuya kawaguchi
4
- * Released under the MIT License.
5
- */function Se(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const qr={};function Wr(e){qr[e]||(qr[e]=!0,Se(e))}const at=typeof window<"u";let Xe,$t;if(process.env.NODE_ENV!=="production"){const e=at&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Xe=t=>{e.mark(t)},$t=(t,n,u)=>{e.measure(t,n,u),e.clearMarks(n),e.clearMarks(u)})}const Xs=/\{([0-9a-zA-Z]+)\}/g;function Ou(e,...t){return t.length===1&&te(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Xs,(n,u)=>t.hasOwnProperty(u)?t[u]:"")}const mt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Zs=(e,t,n)=>Ks({l:e,k:t,s:n}),Ks=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),De=e=>typeof e=="number"&&isFinite(e),Js=e=>Kr(e)==="[object Date]",Tt=e=>Kr(e)==="[object RegExp]",Wn=e=>j(e)&&Object.keys(e).length===0,Be=Object.assign,Qs=Object.create,fe=(e=null)=>Qs(e);let Yr;const kt=()=>Yr||(Yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:fe());function Gr(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function Xr(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function el(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(u,r,o)=>`${r}="${Xr(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(u,r,o)=>`${r}='${Xr(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Se("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(u=>{e=e.replace(u,"$1javascript&#58;")}),e}const tl=Object.prototype.hasOwnProperty;function it(e,t){return tl.call(e,t)}const be=Array.isArray,de=e=>typeof e=="function",F=e=>typeof e=="string",K=e=>typeof e=="boolean",te=e=>e!==null&&typeof e=="object",nl=e=>te(e)&&de(e.then)&&de(e.catch),Zr=Object.prototype.toString,Kr=e=>Zr.call(e),j=e=>{if(!te(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},ul=e=>e==null?"":be(e)||j(e)&&e.toString===Zr?JSON.stringify(e,null,2):String(e);function rl(e,t=""){return e.reduce((n,u,r)=>r===0?n+u:n+t+u,"")}const Jr=2;function ol(e,t=0,n=e.length){const u=e.split(/\r?\n/);let r=0;const o=[];for(let a=0;a<u.length;a++)if(r+=u[a].length+1,r>=t){for(let s=a-Jr;s<=a+Jr||n>r;s++){if(s<0||s>=u.length)continue;const l=s+1;o.push(`${l}${" ".repeat(3-String(l).length)}| ${u[s]}`);const c=u[s].length;if(s===a){const f=t-(r-c)+1,d=Math.max(1,n>r?c-f:n-t);o.push(" | "+" ".repeat(f)+"^".repeat(d))}else if(s>a){if(n>r){const f=Math.max(Math.min(n-r,c),1);o.push(" | "+"^".repeat(f))}r+=c+1}}break}return o.join(`
6
- `)}function Yn(e){let t=e;return()=>++t}function Lu(){const e=new Map;return{events:e,on(n,u){const r=e.get(n);r&&r.push(u)||e.set(n,[u])},off(n,u){const r=e.get(n);r&&r.splice(r.indexOf(u)>>>0,1)},emit(n,u){(e.get(n)||[]).slice().map(r=>r(u)),(e.get("*")||[]).slice().map(r=>r(n,u))}}}const Gn=e=>!te(e)||be(e);function Xn(e,t){if(Gn(e)||Gn(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:u,des:r}=n.pop();Object.keys(u).forEach(o=>{o!=="__proto__"&&(te(u[o])&&!te(r[o])&&(r[o]=Array.isArray(u[o])?[]:fe()),Gn(r[o])||Gn(u[o])?r[o]=u[o]:n.push({src:u[o],des:r[o]}))})}}/*!
7
- * message-compiler v9.14.5
8
- * (c) 2025 kazuya kawaguchi
9
- * Released under the MIT License.
10
- */function al(e,t,n){return{line:e,column:t,offset:n}}function Zn(e,t,n){return{start:e,end:t}}const il=/\{([0-9a-zA-Z]+)\}/g;function Qr(e,...t){return t.length===1&&sl(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(il,(n,u)=>t.hasOwnProperty(u)?t[u]:"")}const eo=Object.assign,to=e=>typeof e=="string",sl=e=>e!==null&&typeof e=="object";function no(e,t=""){return e.reduce((n,u,r)=>r===0?n+u:n+t+u,"")}const Kn={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},ll={[Kn.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function cl(e,t,...n){const u=Qr(ll[e],...n||[]),r={message:String(u),code:e};return t&&(r.location=t),r}const $={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},fl={[$.EXPECTED_TOKEN]:"Expected token: '{0}'",[$.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[$.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[$.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[$.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[$.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[$.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[$.EMPTY_PLACEHOLDER]:"Empty placeholder",[$.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[$.INVALID_LINKED_FORMAT]:"Invalid linked format",[$.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[$.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[$.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[$.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[$.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[$.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Xt(e,t,n={}){const{domain:u,messages:r,args:o}=n,a=Qr((r||fl)[e]||"",...o||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=u,s}function dl(e){throw e}const hl=/<\/?[\w\s="/.':;#-\/]+>/,ml=e=>hl.test(e),xt=" ",pl="\r",je=`
11
- `,_l="\u2028",gl="\u2029";function bl(e){const t=e;let n=0,u=1,r=1,o=0;const a=w=>t[w]===pl&&t[w+1]===je,s=w=>t[w]===je,l=w=>t[w]===gl,c=w=>t[w]===_l,f=w=>a(w)||s(w)||l(w)||c(w),d=()=>n,h=()=>u,_=()=>r,p=()=>o,x=w=>a(w)||l(w)||c(w)?je:t[w],C=()=>x(n),D=()=>x(n+o);function v(){return o=0,f(n)&&(u++,r=0),a(n)&&n++,n++,r++,t[n]}function m(){return a(n+o)&&o++,o++,t[n+o]}function b(){n=0,u=1,r=1,o=0}function E(w=0){o=w}function y(){const w=n+o;for(;w!==n;)v();o=0}return{index:d,line:h,column:_,peekOffset:p,charAt:x,currentChar:C,currentPeek:D,next:v,peek:m,reset:b,resetPeek:E,skipToPeek:y}}const At=void 0,El=".",uo="'",yl="tokenizer";function kl(e,t={}){const n=t.location!==!1,u=bl(e),r=()=>u.index(),o=()=>al(u.line(),u.column(),u.index()),a=o(),s=r(),l={currentType:14,offset:s,startLoc:a,endLoc:a,lastType:14,lastOffset:s,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:f}=t;function d(g,k,S,...V){const ve=c();if(k.column+=S,k.offset+=S,f){const ge=n?Zn(ve.startLoc,k):null,ce=Xt(g,ge,{domain:yl,args:V});f(ce)}}function h(g,k,S){g.endLoc=o(),g.currentType=k;const V={type:k};return n&&(V.loc=Zn(g.startLoc,g.endLoc)),S!=null&&(V.value=S),V}const _=g=>h(g,14);function p(g,k){return g.currentChar()===k?(g.next(),k):(d($.EXPECTED_TOKEN,o(),0,k),"")}function x(g){let k="";for(;g.currentPeek()===xt||g.currentPeek()===je;)k+=g.currentPeek(),g.peek();return k}function C(g){const k=x(g);return g.skipToPeek(),k}function D(g){if(g===At)return!1;const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k===95}function v(g){if(g===At)return!1;const k=g.charCodeAt(0);return k>=48&&k<=57}function m(g,k){const{currentType:S}=k;if(S!==2)return!1;x(g);const V=D(g.currentPeek());return g.resetPeek(),V}function b(g,k){const{currentType:S}=k;if(S!==2)return!1;x(g);const V=g.currentPeek()==="-"?g.peek():g.currentPeek(),ve=v(V);return g.resetPeek(),ve}function E(g,k){const{currentType:S}=k;if(S!==2)return!1;x(g);const V=g.currentPeek()===uo;return g.resetPeek(),V}function y(g,k){const{currentType:S}=k;if(S!==8)return!1;x(g);const V=g.currentPeek()===".";return g.resetPeek(),V}function w(g,k){const{currentType:S}=k;if(S!==9)return!1;x(g);const V=D(g.currentPeek());return g.resetPeek(),V}function T(g,k){const{currentType:S}=k;if(!(S===8||S===12))return!1;x(g);const V=g.currentPeek()===":";return g.resetPeek(),V}function A(g,k){const{currentType:S}=k;if(S!==10)return!1;const V=()=>{const ge=g.currentPeek();return ge==="{"?D(g.peek()):ge==="@"||ge==="%"||ge==="|"||ge===":"||ge==="."||ge===xt||!ge?!1:ge===je?(g.peek(),V()):U(g,!1)},ve=V();return g.resetPeek(),ve}function B(g){x(g);const k=g.currentPeek()==="|";return g.resetPeek(),k}function he(g){const k=x(g),S=g.currentPeek()==="%"&&g.peek()==="{";return g.resetPeek(),{isModulo:S,hasSpace:k.length>0}}function U(g,k=!0){const S=(ve=!1,ge="",ce=!1)=>{const N=g.currentPeek();return N==="{"?ge==="%"?!1:ve:N==="@"||!N?ge==="%"?!0:ve:N==="%"?(g.peek(),S(ve,"%",!0)):N==="|"?ge==="%"||ce?!0:!(ge===xt||ge===je):N===xt?(g.peek(),S(!0,xt,ce)):N===je?(g.peek(),S(!0,je,ce)):!0},V=S();return k&&g.resetPeek(),V}function R(g,k){const S=g.currentChar();return S===At?At:k(S)?(g.next(),S):null}function Q(g){const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36}function q(g){return R(g,Q)}function ue(g){const k=g.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36||k===45}function Ue(g){return R(g,ue)}function M(g){const k=g.charCodeAt(0);return k>=48&&k<=57}function Y(g){return R(g,M)}function P(g){const k=g.charCodeAt(0);return k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102}function _e(g){return R(g,P)}function W(g){let k="",S="";for(;k=Y(g);)S+=k;return S}function Le(g){C(g);const k=g.currentChar();return k!=="%"&&d($.EXPECTED_TOKEN,o(),0,k),g.next(),"%"}function re(g){let k="";for(;;){const S=g.currentChar();if(S==="{"||S==="}"||S==="@"||S==="|"||!S)break;if(S==="%")if(U(g))k+=S,g.next();else break;else if(S===xt||S===je)if(U(g))k+=S,g.next();else{if(B(g))break;k+=S,g.next()}else k+=S,g.next()}return k}function ht(g){C(g);let k="",S="";for(;k=Ue(g);)S+=k;return g.currentChar()===At&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),S}function ie(g){C(g);let k="";return g.currentChar()==="-"?(g.next(),k+=`-${W(g)}`):k+=W(g),g.currentChar()===At&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),k}function I(g){return g!==uo&&g!==je}function Z(g){C(g),p(g,"'");let k="",S="";for(;k=R(g,I);)k==="\\"?S+=X(g):S+=k;const V=g.currentChar();return V===je||V===At?(d($.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),V===je&&(g.next(),p(g,"'")),S):(p(g,"'"),S)}function X(g){const k=g.currentChar();switch(k){case"\\":case"'":return g.next(),`\\${k}`;case"u":return se(g,k,4);case"U":return se(g,k,6);default:return d($.UNKNOWN_ESCAPE_SEQUENCE,o(),0,k),""}}function se(g,k,S){p(g,k);let V="";for(let ve=0;ve<S;ve++){const ge=_e(g);if(!ge){d($.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${k}${V}${g.currentChar()}`);break}V+=ge}return`\\${k}${V}`}function ee(g){return g!=="{"&&g!=="}"&&g!==xt&&g!==je}function Ae(g){C(g);let k="",S="";for(;k=R(g,ee);)S+=k;return S}function qe(g){let k="",S="";for(;k=q(g);)S+=k;return S}function O(g){const k=S=>{const V=g.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===xt?S:(S+=V,g.next(),k(S))};return k("")}function z(g){C(g);const k=p(g,"|");return C(g),k}function ot(g,k){let S=null;switch(g.currentChar()){case"{":return k.braceNest>=1&&d($.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),g.next(),S=h(k,2,"{"),C(g),k.braceNest++,S;case"}":return k.braceNest>0&&k.currentType===2&&d($.EMPTY_PLACEHOLDER,o(),0),g.next(),S=h(k,3,"}"),k.braceNest--,k.braceNest>0&&C(g),k.inLinked&&k.braceNest===0&&(k.inLinked=!1),S;case"@":return k.braceNest>0&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),S=le(g,k)||_(k),k.braceNest=0,S;default:{let ve=!0,ge=!0,ce=!0;if(B(g))return k.braceNest>0&&d($.UNTERMINATED_CLOSING_BRACE,o(),0),S=h(k,1,z(g)),k.braceNest=0,k.inLinked=!1,S;if(k.braceNest>0&&(k.currentType===5||k.currentType===6||k.currentType===7))return d($.UNTERMINATED_CLOSING_BRACE,o(),0),k.braceNest=0,yt(g,k);if(ve=m(g,k))return S=h(k,5,ht(g)),C(g),S;if(ge=b(g,k))return S=h(k,6,ie(g)),C(g),S;if(ce=E(g,k))return S=h(k,7,Z(g)),C(g),S;if(!ve&&!ge&&!ce)return S=h(k,13,Ae(g)),d($.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,S.value),C(g),S;break}}return S}function le(g,k){const{currentType:S}=k;let V=null;const ve=g.currentChar();switch((S===8||S===9||S===12||S===10)&&(ve===je||ve===xt)&&d($.INVALID_LINKED_FORMAT,o(),0),ve){case"@":return g.next(),V=h(k,8,"@"),k.inLinked=!0,V;case".":return C(g),g.next(),h(k,9,".");case":":return C(g),g.next(),h(k,10,":");default:return B(g)?(V=h(k,1,z(g)),k.braceNest=0,k.inLinked=!1,V):y(g,k)||T(g,k)?(C(g),le(g,k)):w(g,k)?(C(g),h(k,12,qe(g))):A(g,k)?(C(g),ve==="{"?ot(g,k)||V:h(k,11,O(g))):(S===8&&d($.INVALID_LINKED_FORMAT,o(),0),k.braceNest=0,k.inLinked=!1,yt(g,k))}}function yt(g,k){let S={type:14};if(k.braceNest>0)return ot(g,k)||_(k);if(k.inLinked)return le(g,k)||_(k);switch(g.currentChar()){case"{":return ot(g,k)||_(k);case"}":return d($.UNBALANCED_CLOSING_BRACE,o(),0),g.next(),h(k,3,"}");case"@":return le(g,k)||_(k);default:{if(B(g))return S=h(k,1,z(g)),k.braceNest=0,k.inLinked=!1,S;const{isModulo:ve,hasSpace:ge}=he(g);if(ve)return ge?h(k,0,re(g)):h(k,4,Le(g));if(U(g))return h(k,0,re(g));break}}return S}function En(){const{currentType:g,offset:k,startLoc:S,endLoc:V}=l;return l.lastType=g,l.lastOffset=k,l.lastStartLoc=S,l.lastEndLoc=V,l.offset=r(),l.startLoc=o(),u.currentChar()===At?h(l,14):yt(u,l)}return{nextToken:En,currentOffset:r,currentPosition:o,context:c}}const xl="parser",Cl=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vl(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const u=parseInt(t||n,16);return u<=55295||u>=57344?String.fromCodePoint(u):"�"}}}function wl(e={}){const t=e.location!==!1,{onError:n,onWarn:u}=e;function r(m,b,E,y,...w){const T=m.currentPosition();if(T.offset+=y,T.column+=y,n){const A=t?Zn(E,T):null,B=Xt(b,A,{domain:xl,args:w});n(B)}}function o(m,b,E,y,...w){const T=m.currentPosition();if(T.offset+=y,T.column+=y,u){const A=t?Zn(E,T):null;u(cl(b,A,w))}}function a(m,b,E){const y={type:m};return t&&(y.start=b,y.end=b,y.loc={start:E,end:E}),y}function s(m,b,E,y){t&&(m.end=b,m.loc&&(m.loc.end=E))}function l(m,b){const E=m.context(),y=a(3,E.offset,E.startLoc);return y.value=b,s(y,m.currentOffset(),m.currentPosition()),y}function c(m,b){const E=m.context(),{lastOffset:y,lastStartLoc:w}=E,T=a(5,y,w);return T.index=parseInt(b,10),m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function f(m,b,E){const y=m.context(),{lastOffset:w,lastStartLoc:T}=y,A=a(4,w,T);return A.key=b,E===!0&&(A.modulo=!0),m.nextToken(),s(A,m.currentOffset(),m.currentPosition()),A}function d(m,b){const E=m.context(),{lastOffset:y,lastStartLoc:w}=E,T=a(9,y,w);return T.value=b.replace(Cl,vl),m.nextToken(),s(T,m.currentOffset(),m.currentPosition()),T}function h(m){const b=m.nextToken(),E=m.context(),{lastOffset:y,lastStartLoc:w}=E,T=a(8,y,w);return b.type!==12?(r(m,$.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),T.value="",s(T,y,w),{nextConsumeToken:b,node:T}):(b.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,st(b)),T.value=b.value||"",s(T,m.currentOffset(),m.currentPosition()),{node:T})}function _(m,b){const E=m.context(),y=a(7,E.offset,E.startLoc);return y.value=b,s(y,m.currentOffset(),m.currentPosition()),y}function p(m){const b=m.context(),E=a(6,b.offset,b.startLoc);let y=m.nextToken();if(y.type===9){const w=h(m);E.modifier=w.node,y=w.nextConsumeToken||m.nextToken()}switch(y.type!==10&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),y=m.nextToken(),y.type===2&&(y=m.nextToken()),y.type){case 11:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=_(m,y.value||"");break;case 5:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=f(m,y.value||"");break;case 6:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=c(m,y.value||"");break;case 7:y.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(y)),E.key=d(m,y.value||"");break;default:{r(m,$.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const w=m.context(),T=a(7,w.offset,w.startLoc);return T.value="",s(T,w.offset,w.startLoc),E.key=T,s(E,w.offset,w.startLoc),{nextConsumeToken:y,node:E}}}return s(E,m.currentOffset(),m.currentPosition()),{node:E}}function x(m){const b=m.context(),E=b.currentType===1?m.currentOffset():b.offset,y=b.currentType===1?b.endLoc:b.startLoc,w=a(2,E,y);w.items=[];let T=null,A=null;do{const U=T||m.nextToken();switch(T=null,U.type){case 0:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(l(m,U.value||""));break;case 6:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(c(m,U.value||""));break;case 4:A=!0;break;case 5:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(f(m,U.value||"",!!A)),A&&(o(m,Kn.USE_MODULO_SYNTAX,b.lastStartLoc,0,st(U)),A=null);break;case 7:U.value==null&&r(m,$.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,st(U)),w.items.push(d(m,U.value||""));break;case 8:{const R=p(m);w.items.push(R.node),T=R.nextConsumeToken||null;break}}}while(b.currentType!==14&&b.currentType!==1);const B=b.currentType===1?b.lastOffset:m.currentOffset(),he=b.currentType===1?b.lastEndLoc:m.currentPosition();return s(w,B,he),w}function C(m,b,E,y){const w=m.context();let T=y.items.length===0;const A=a(1,b,E);A.cases=[],A.cases.push(y);do{const B=x(m);T||(T=B.items.length===0),A.cases.push(B)}while(w.currentType!==14);return T&&r(m,$.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),s(A,m.currentOffset(),m.currentPosition()),A}function D(m){const b=m.context(),{offset:E,startLoc:y}=b,w=x(m);return b.currentType===14?w:C(m,E,y,w)}function v(m){const b=kl(m,eo({},e)),E=b.context(),y=a(0,E.offset,E.startLoc);return t&&y.loc&&(y.loc.source=m),y.body=D(b),e.onCacheKey&&(y.cacheKey=e.onCacheKey(m)),E.currentType!==14&&r(b,$.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,m[E.offset]||""),s(y,b.currentOffset(),b.currentPosition()),y}return{parse:v}}function st(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Nl(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function ro(e,t){for(let n=0;n<e.length;n++)Fu(e[n],t)}function Fu(e,t){switch(e.type){case 1:ro(e.cases,t),t.helper("plural");break;case 2:ro(e.items,t);break;case 6:{Fu(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Dl(e,t={}){const n=Nl(e);n.helper("normalize"),e.body&&Fu(e.body,n);const u=n.context();e.helpers=Array.from(u.helpers)}function Tl(e){const t=e.body;return t.type===2?oo(t):t.cases.forEach(n=>oo(n)),e}function oo(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const u=e.items[n];if(!(u.type===3||u.type===9)||u.value==null)break;t.push(u.value)}if(t.length===e.items.length){e.static=no(t);for(let n=0;n<e.items.length;n++){const u=e.items[n];(u.type===3||u.type===9)&&delete u.value}}}}const Al="minifier";function Zt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Zt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let u=0;u<n.length;u++)Zt(n[u]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let u=0;u<n.length;u++)Zt(n[u]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Zt(t.key),t.k=t.key,delete t.key,t.modifier&&(Zt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Xt($.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Al,args:[e.type]})}delete e.type}const Il="parser";function Sl(e,t){const{filename:n,breakLineCode:u,needIndent:r}=t,o=t.location!==!1,a={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:u,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const s=()=>a;function l(x,C){a.code+=x}function c(x,C=!0){const D=C?u:"";l(r?D+" ".repeat(x):D)}function f(x=!0){const C=++a.indentLevel;x&&c(C)}function d(x=!0){const C=--a.indentLevel;x&&c(C)}function h(){c(a.indentLevel)}return{context:s,push:l,indent:f,deindent:d,newline:h,helper:x=>`_${x}`,needIndent:()=>a.needIndent}}function Ol(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Kt(e,t.key),t.modifier?(e.push(", "),Kt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Ll(e,t){const{helper:n,needIndent:u}=e;e.push(`${n("normalize")}([`),e.indent(u());const r=t.items.length;for(let o=0;o<r&&(Kt(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(u()),e.push("])")}function Fl(e,t){const{helper:n,needIndent:u}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(u());const r=t.cases.length;for(let o=0;o<r&&(Kt(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(u()),e.push("])")}}function Pl(e,t){t.body?Kt(e,t.body):e.push("null")}function Kt(e,t){const{helper:n}=e;switch(t.type){case 0:Pl(e,t);break;case 1:Fl(e,t);break;case 2:Ll(e,t);break;case 6:Ol(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Xt($.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Il,args:[t.type]})}}const Ml=(e,t={})=>{const n=to(t.mode)?t.mode:"normal",u=to(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
- `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],s=Sl(e,{filename:u,breakLineCode:r,needIndent:o});s.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),s.indent(o),a.length>0&&(s.push(`const { ${no(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),s.newline()),s.push("return "),Kt(s,e),s.deindent(o),s.push("}"),delete e.helpers;const{code:l,map:c}=s.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function Vl(e,t={}){const n=eo({},t),u=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,s=wl(n).parse(e);return u?(o&&Tl(s),r&&Zt(s),{ast:s,code:""}):(Dl(s,n),Ml(s,n))}/*!
13
- * core-base v9.14.5
14
- * (c) 2025 kazuya kawaguchi
15
- * Released under the MIT License.
16
- */function Rl(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Qe(e){return te(e)&&Pu(e)===0&&(it(e,"b")||it(e,"body"))}const ao=["b","body"];function Bl(e){return It(e,ao)}const io=["c","cases"];function $l(e){return It(e,io,[])}const so=["s","static"];function Ul(e){return It(e,so)}const lo=["i","items"];function zl(e){return It(e,lo,[])}const co=["t","type"];function Pu(e){return It(e,co)}const fo=["v","value"];function Jn(e,t){const n=It(e,fo);if(n!=null)return n;throw kn(t)}const ho=["m","modifier"];function jl(e){return It(e,ho)}const mo=["k","key"];function Hl(e){const t=It(e,mo);if(t)return t;throw kn(6)}function It(e,t,n){for(let u=0;u<t.length;u++){const r=t[u];if(it(e,r)&&e[r]!=null)return e[r]}return n}const po=[...ao,...io,...so,...lo,...mo,...ho,...fo,...co];function kn(e){return new Error(`unhandled node type: ${e}`)}const St=[];St[0]={w:[0],i:[3,0],"[":[4],o:[7]},St[1]={w:[1],".":[2],"[":[4],o:[7]},St[2]={w:[2],i:[3,0],0:[3,0]},St[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},St[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},St[5]={"'":[4,0],o:8,l:[5,0]},St[6]={'"':[4,0],o:8,l:[6,0]};const ql=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Wl(e){return ql.test(e)}function Yl(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Gl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Xl(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Wl(t)?Yl(t):"*"+t}function Zl(e){const t=[];let n=-1,u=0,r=0,o,a,s,l,c,f,d;const h=[];h[0]=()=>{a===void 0?a=s:a+=s},h[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},h[2]=()=>{h[0](),r++},h[3]=()=>{if(r>0)r--,u=4,h[0]();else{if(r=0,a===void 0||(a=Xl(a),a===!1))return!1;h[1]()}};function _(){const p=e[n+1];if(u===5&&p==="'"||u===6&&p==='"')return n++,s="\\"+p,h[0](),!0}for(;u!==null;)if(n++,o=e[n],!(o==="\\"&&_())){if(l=Gl(o),d=St[u],c=d[l]||d.l||8,c===8||(u=c[0],c[1]!==void 0&&(f=h[c[1]],f&&(s=o,f()===!1))))return;if(u===7)return t}}const _o=new Map;function Kl(e,t){return te(e)?e[t]:null}function Jl(e,t){if(!te(e))return null;let n=_o.get(t);if(n||(n=Zl(t),n&&_o.set(t,n)),!n)return null;const u=n.length;let r=e,o=0;for(;o<u;){const a=n[o];if(po.includes(a)&&Qe(r))return null;const s=r[a];if(s===void 0||de(r))return null;r=s,o++}return r}const Ql=e=>e,ec=e=>"",tc="text",nc=e=>e.length===0?"":rl(e),uc=ul;function go(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function rc(e){const t=De(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(De(e.named.count)||De(e.named.n))?De(e.named.count)?e.named.count:De(e.named.n)?e.named.n:t:t}function oc(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ac(e={}){const t=e.locale,n=rc(e),u=te(e.pluralRules)&&F(t)&&de(e.pluralRules[t])?e.pluralRules[t]:go,r=te(e.pluralRules)&&F(t)&&de(e.pluralRules[t])?go:void 0,o=D=>D[u(n,D.length,r)],a=e.list||[],s=D=>a[D],l=e.named||fe();De(e.pluralIndex)&&oc(n,l);const c=D=>l[D];function f(D){const v=de(e.messages)?e.messages(D):te(e.messages)?e.messages[D]:!1;return v||(e.parent?e.parent.message(D):ec)}const d=D=>e.modifiers?e.modifiers[D]:Ql,h=j(e.processor)&&de(e.processor.normalize)?e.processor.normalize:nc,_=j(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:uc,p=j(e.processor)&&F(e.processor.type)?e.processor.type:tc,C={list:s,named:c,plural:o,linked:(D,...v)=>{const[m,b]=v;let E="text",y="";v.length===1?te(m)?(y=m.modifier||y,E=m.type||E):F(m)&&(y=m||y):v.length===2&&(F(m)&&(y=m||y),F(b)&&(E=b||E));const w=f(D)(C),T=E==="vnode"&&be(w)&&y?w[0]:w;return y?d(y)(T,E):T},message:f,type:p,interpolate:_,normalize:h,values:Be(fe(),a,l)};return C}let xn=null;function ic(e){xn=e}function sc(e,t,n){xn&&xn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const lc=cc("function:translate");function cc(e){return t=>xn&&xn.emit(e,t)}const bo=Kn.__EXTEND_POINT__,Ut=Yn(bo),He={NOT_FOUND_KEY:bo,FALLBACK_TO_TRANSLATE:Ut(),CANNOT_FORMAT_NUMBER:Ut(),FALLBACK_TO_NUMBER_FORMAT:Ut(),CANNOT_FORMAT_DATE:Ut(),FALLBACK_TO_DATE_FORMAT:Ut(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Ut(),__EXTEND_POINT__:Ut()},fc={[He.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[He.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[He.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[He.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[He.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[He.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[He.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function zt(e,...t){return Ou(fc[e],...t)}const Eo=$.__EXTEND_POINT__,jt=Yn(Eo),Pe={INVALID_ARGUMENT:Eo,INVALID_DATE_ARGUMENT:jt(),INVALID_ISO_DATE_ARGUMENT:jt(),NOT_SUPPORT_NON_STRING_MESSAGE:jt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:jt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:jt(),NOT_SUPPORT_LOCALE_TYPE:jt(),__EXTEND_POINT__:jt()};function pt(e){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:dc}:void 0)}const dc={[Pe.INVALID_ARGUMENT]:"Invalid arguments",[Pe.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Pe.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Pe.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Pe.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Mu(e,t){return t.locale!=null?yo(t.locale):yo(e.locale)}let Vu;function yo(e){if(F(e))return e;if(de(e)){if(e.resolvedOnce&&Vu!=null)return Vu;if(e.constructor.name==="Function"){const t=e();if(nl(t))throw pt(Pe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vu=t}else throw pt(Pe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw pt(Pe.NOT_SUPPORT_LOCALE_TYPE)}function hc(e,t,n){return[...new Set([n,...be(t)?t:te(t)?Object.keys(t):F(t)?[t]:[n]])]}function ko(e,t,n){const u=F(n)?n:Jt,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(u);if(!o){o=[];let a=[n];for(;be(a);)a=xo(o,a,t);const s=be(t)||!j(t)?t:t.default?t.default:null;a=F(s)?[s]:s,be(a)&&xo(o,a,!1),r.__localeChainCache.set(u,o)}return o}function xo(e,t,n){let u=!0;for(let r=0;r<t.length&&K(u);r++){const o=t[r];F(o)&&(u=mc(e,t[r],n))}return u}function mc(e,t,n){let u;const r=t.split("-");do{const o=r.join("-");u=pc(e,o,n),r.splice(-1,1)}while(r.length&&u===!0);return u}function pc(e,t,n){let u=!1;if(!e.includes(t)&&(u=!0,t)){u=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(be(n)||j(n))&&n[r]&&(u=n[r])}return u}const _c="9.14.5",Qn=-1,Jt="en-US",eu="",Co=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function gc(){return{upper:(e,t)=>t==="text"&&F(e)?e.toUpperCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&F(e)?e.toLowerCase():t==="vnode"&&te(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&F(e)?Co(e):t==="vnode"&&te(e)&&"__v_isVNode"in e?Co(e.children):e}}let vo;function wo(e){vo=e}let No;function bc(e){No=e}let Do;function Ec(e){Do=e}let To=null;const yc=e=>{To=e},kc=()=>To;let Ao=null;const Io=e=>{Ao=e},xc=()=>Ao;let So=0;function Cc(e={}){const t=de(e.onWarn)?e.onWarn:Se,n=F(e.version)?e.version:_c,u=F(e.locale)||de(e.locale)?e.locale:Jt,r=de(u)?Jt:u,o=be(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,a=j(e.messages)?e.messages:Ru(r),s=j(e.datetimeFormats)?e.datetimeFormats:Ru(r),l=j(e.numberFormats)?e.numberFormats:Ru(r),c=Be(fe(),e.modifiers,gc()),f=e.pluralRules||fe(),d=de(e.missing)?e.missing:null,h=K(e.missingWarn)||Tt(e.missingWarn)?e.missingWarn:!0,_=K(e.fallbackWarn)||Tt(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,x=!!e.unresolving,C=de(e.postTranslation)?e.postTranslation:null,D=j(e.processor)?e.processor:null,v=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,m=!!e.escapeParameter,b=de(e.messageCompiler)?e.messageCompiler:vo;process.env.NODE_ENV!=="production"&&de(e.messageCompiler)&&Wr(zt(He.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const E=de(e.messageResolver)?e.messageResolver:No||Kl,y=de(e.localeFallbacker)?e.localeFallbacker:Do||hc,w=te(e.fallbackContext)?e.fallbackContext:void 0,T=e,A=te(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,B=te(T.__numberFormatters)?T.__numberFormatters:new Map,he=te(T.__meta)?T.__meta:{};So++;const U={version:n,cid:So,locale:u,fallbackLocale:o,messages:a,modifiers:c,pluralRules:f,missing:d,missingWarn:h,fallbackWarn:_,fallbackFormat:p,unresolving:x,postTranslation:C,processor:D,warnHtmlMessage:v,escapeParameter:m,messageCompiler:b,messageResolver:E,localeFallbacker:y,fallbackContext:w,onWarn:t,__meta:he};return U.datetimeFormats=s,U.numberFormats=l,U.__datetimeFormatters=A,U.__numberFormatters=B,process.env.NODE_ENV!=="production"&&(U.__v_emitter=T.__v_emitter!=null?T.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&sc(U,n,he),U}const Ru=e=>({[e]:fe()});function tu(e,t){return e instanceof RegExp?e.test(t):e}function Oo(e,t){return e instanceof RegExp?e.test(t):e}function Bu(e,t,n,u,r){const{missing:o,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const s=e.__v_emitter;s&&s.emit("missing",{locale:n,key:t,type:r,groupId:`${r}:${t}`})}if(o!==null){const s=o(e,n,t,r);return F(s)?s:t}else return process.env.NODE_ENV!=="production"&&Oo(u,t)&&a(zt(He.NOT_FOUND_KEY,{key:t,locale:n})),t}function Cn(e,t,n){const u=e;u.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Lo(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function vc(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let u=n+1;u<t.length;u++)if(Lo(e,t[u]))return!0;return!1}function $u(e){return n=>wc(n,e)}function wc(e,t){const n=Bl(t);if(n==null)throw kn(0);if(Pu(n)===1){const o=$l(n);return e.plural(o.reduce((a,s)=>[...a,Fo(e,s)],[]))}else return Fo(e,n)}function Fo(e,t){const n=Ul(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const u=zl(t).reduce((r,o)=>[...r,Uu(e,o)],[]);return e.normalize(u)}}function Uu(e,t){const n=Pu(t);switch(n){case 3:return Jn(t,n);case 9:return Jn(t,n);case 4:{const u=t;if(it(u,"k")&&u.k)return e.interpolate(e.named(u.k));if(it(u,"key")&&u.key)return e.interpolate(e.named(u.key));throw kn(n)}case 5:{const u=t;if(it(u,"i")&&De(u.i))return e.interpolate(e.list(u.i));if(it(u,"index")&&De(u.index))return e.interpolate(e.list(u.index));throw kn(n)}case 6:{const u=t,r=jl(u),o=Hl(u);return e.linked(Uu(e,o),r?Uu(e,r):void 0,e.type)}case 7:return Jn(t,n);case 8:return Jn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const Nc="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Po(e,t){t&&ml(e)&&Se(Ou(Nc,{source:e}))}const Mo=e=>e;let Qt=fe();function Vo(e){e.code===Kn.USE_MODULO_SYNTAX&&Se(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
17
- reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
18
- (message compiler warning message: ${e.message})`)}function Ro(e,t={}){let n=!1;const u=t.onError||dl;return t.onError=r=>{n=!0,u(r)},{...Vl(e,t),detectError:n}}const Dc=(e,t)=>{if(!F(e))throw pt(Pe.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=Vo);{const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Po(e,n);const r=(t.onCacheKey||Mo)(e),o=Qt[r];if(o)return o;const{code:a,detectError:s}=Ro(e,t),l=new Function(`return ${a}`)();return s?l:Qt[r]=l}};function Tc(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=Vo),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&F(e)){const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Po(e,n);const r=(t.onCacheKey||Mo)(e),o=Qt[r];if(o)return o;const{ast:a,detectError:s}=Ro(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),l=$u(a);return s?l:Qt[r]=l}else{if(process.env.NODE_ENV!=="production"&&!Qe(e))return Se(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const u=Qt[n];return u||(Qt[n]=$u(e))}else return $u(e)}}const Bo=()=>"",et=e=>de(e);function $o(e,...t){const{fallbackFormat:n,postTranslation:u,unresolving:r,messageCompiler:o,fallbackLocale:a,messages:s}=e,[l,c]=zu(...t),f=K(c.missingWarn)?c.missingWarn:e.missingWarn,d=K(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=K(c.escapeParameter)?c.escapeParameter:e.escapeParameter,_=!!c.resolvedMessage,p=F(c.default)||K(c.default)?K(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:"",x=n||p!=="",C=Mu(e,c);h&&Ac(c);let[D,v,m]=_?[l,C,s[C]||fe()]:Uo(e,l,C,a,d,f),b=D,E=l;if(!_&&!(F(b)||Qe(b)||et(b))&&x&&(b=p,E=b),!_&&(!(F(b)||Qe(b)||et(b))||!F(v)))return r?Qn:l;if(process.env.NODE_ENV!=="production"&&F(b)&&e.messageCompiler==null)return Se(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`),l;let y=!1;const w=()=>{y=!0},T=et(b)?b:zo(e,l,v,b,E,w);if(y)return b;const A=Lc(e,v,m,c),B=ac(A),he=Ic(e,T,B);let U=u?u(he,l):he;if(h&&F(U)&&(U=el(U)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const R={timestamp:Date.now(),key:F(l)?l:et(b)?b.key:"",locale:v||(et(b)?b.locale:""),format:F(b)?b:et(b)?b.source:"",message:U};R.meta=Be({},e.__meta,kc()||{}),lc(R)}return U}function Ac(e){be(e.list)?e.list=e.list.map(t=>F(t)?Gr(t):t):te(e.named)&&Object.keys(e.named).forEach(t=>{F(e.named[t])&&(e.named[t]=Gr(e.named[t]))})}function Uo(e,t,n,u,r,o){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,f=c(e,u,n);let d=fe(),h,_=null,p=n,x=null;const C="translate";for(let D=0;D<f.length;D++){if(h=x=f[D],process.env.NODE_ENV!=="production"&&n!==h&&!Lo(n,h)&&tu(r,t)&&s(zt(He.FALLBACK_TO_TRANSLATE,{key:t,target:h})),process.env.NODE_ENV!=="production"&&n!==h){const E=e.__v_emitter;E&&E.emit("fallback",{type:C,key:t,from:p,to:x,groupId:`${C}:${t}`})}d=a[h]||fe();let v=null,m,b;if(process.env.NODE_ENV!=="production"&&at&&(v=window.performance.now(),m="intlify-message-resolve-start",b="intlify-message-resolve-end",Xe&&Xe(m)),(_=l(d,t))===null&&(_=d[t]),process.env.NODE_ENV!=="production"&&at){const E=window.performance.now(),y=e.__v_emitter;y&&v&&_&&y.emit("message-resolve",{type:"message-resolve",key:t,message:_,time:E-v,groupId:`${C}:${t}`}),m&&b&&Xe&&$t&&(Xe(b),$t("intlify message resolve",m,b))}if(F(_)||Qe(_)||et(_))break;if(!vc(h,f)){const E=Bu(e,t,h,o,C);E!==t&&(_=E)}p=x}return[_,h,d]}function zo(e,t,n,u,r,o){const{messageCompiler:a,warnHtmlMessage:s}=e;if(et(u)){const h=u;return h.locale=h.locale||n,h.key=h.key||t,h}if(a==null){const h=()=>u;return h.locale=n,h.key=t,h}let l=null,c,f;process.env.NODE_ENV!=="production"&&at&&(l=window.performance.now(),c="intlify-message-compilation-start",f="intlify-message-compilation-end",Xe&&Xe(c));const d=a(u,Sc(e,n,r,u,s,o));if(process.env.NODE_ENV!=="production"&&at){const h=window.performance.now(),_=e.__v_emitter;_&&l&&_.emit("message-compilation",{type:"message-compilation",message:u,time:h-l,groupId:`translate:${t}`}),c&&f&&Xe&&$t&&(Xe(f),$t("intlify message compilation",c,f))}return d.locale=n,d.key=t,d.source=u,d}function Ic(e,t,n){let u=null,r,o;process.env.NODE_ENV!=="production"&&at&&(u=window.performance.now(),r="intlify-message-evaluation-start",o="intlify-message-evaluation-end",Xe&&Xe(r));const a=t(n);if(process.env.NODE_ENV!=="production"&&at){const s=window.performance.now(),l=e.__v_emitter;l&&u&&l.emit("message-evaluation",{type:"message-evaluation",value:a,time:s-u,groupId:`translate:${t.key}`}),r&&o&&Xe&&$t&&(Xe(o),$t("intlify message evaluation",r,o))}return a}function zu(...e){const[t,n,u]=e,r=fe();if(!F(t)&&!De(t)&&!et(t)&&!Qe(t))throw pt(Pe.INVALID_ARGUMENT);const o=De(t)?String(t):(et(t),t);return De(n)?r.plural=n:F(n)?r.default=n:j(n)&&!Wn(n)?r.named=n:be(n)&&(r.list=n),De(u)?r.plural=u:F(u)?r.default=u:j(u)&&Be(r,u),[o,r]}function Sc(e,t,n,u,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:a=>{if(o&&o(a),process.env.NODE_ENV!=="production"){const s=Oc(u),l=`Message compilation error: ${a.message}`,c=a.location&&s&&ol(s,a.location.start.offset,a.location.end.offset),f=e.__v_emitter;f&&s&&f.emit("compile-error",{message:s,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${n}`}),console.error(c?`${l}
19
- ${c}`:l)}else throw a},onCacheKey:a=>Zs(t,n,a)}}function Oc(e){if(F(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Lc(e,t,n,u){const{modifiers:r,pluralRules:o,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:f}=e,h={locale:t,modifiers:r,pluralRules:o,messages:_=>{let p=a(n,_);if(p==null&&f){const[,,x]=Uo(f,_,t,s,l,c);p=a(x,_)}if(F(p)||Qe(p)){let x=!1;const D=zo(e,_,t,p,_,()=>{x=!0});return x?Bo:D}else return et(p)?p:Bo}};return e.processor&&(h.processor=e.processor),u.list&&(h.list=u.list),u.named&&(h.named=u.named),De(u.plural)&&(h.pluralIndex=u.plural),h}const jo=typeof Intl<"u",Ho={dateTimeFormat:jo&&typeof Intl.DateTimeFormat<"u",numberFormat:jo&&typeof Intl.NumberFormat<"u"};function qo(e,...t){const{datetimeFormats:n,unresolving:u,fallbackLocale:r,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Ho.dateTimeFormat)return o(zt(He.CANNOT_FORMAT_DATE)),eu;const[l,c,f,d]=ju(...t),h=K(f.missingWarn)?f.missingWarn:e.missingWarn,_=K(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,p=!!f.part,x=Mu(e,f),C=a(e,r,x);if(!F(l)||l==="")return new Intl.DateTimeFormat(x,d).format(c);let D={},v,m=null,b=x,E=null;const y="datetime format";for(let A=0;A<C.length;A++){if(v=E=C[A],process.env.NODE_ENV!=="production"&&x!==v&&tu(_,l)&&o(zt(He.FALLBACK_TO_DATE_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&x!==v){const B=e.__v_emitter;B&&B.emit("fallback",{type:y,key:l,from:b,to:E,groupId:`${y}:${l}`})}if(D=n[v]||{},m=D[l],j(m))break;Bu(e,l,v,h,y),b=E}if(!j(m)||!F(v))return u?Qn:l;let w=`${v}__${l}`;Wn(d)||(w=`${w}__${JSON.stringify(d)}`);let T=s.get(w);return T||(T=new Intl.DateTimeFormat(v,Be({},m,d)),s.set(w,T)),p?T.formatToParts(c):T.format(c)}const Wo=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ju(...e){const[t,n,u,r]=e,o=fe();let a=fe(),s;if(F(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw pt(Pe.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(c);try{s.toISOString()}catch{throw pt(Pe.INVALID_ISO_DATE_ARGUMENT)}}else if(Js(t)){if(isNaN(t.getTime()))throw pt(Pe.INVALID_DATE_ARGUMENT);s=t}else if(De(t))s=t;else throw pt(Pe.INVALID_ARGUMENT);return F(n)?o.key=n:j(n)&&Object.keys(n).forEach(l=>{Wo.includes(l)?a[l]=n[l]:o[l]=n[l]}),F(u)?o.locale=u:j(u)&&(a=u),j(r)&&(a=r),[o.key||"",s,o,a]}function Yo(e,t,n){const u=e;for(const r in n){const o=`${t}__${r}`;u.__datetimeFormatters.has(o)&&u.__datetimeFormatters.delete(o)}}function Go(e,...t){const{numberFormats:n,unresolving:u,fallbackLocale:r,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(process.env.NODE_ENV!=="production"&&!Ho.numberFormat)return o(zt(He.CANNOT_FORMAT_NUMBER)),eu;const[l,c,f,d]=Hu(...t),h=K(f.missingWarn)?f.missingWarn:e.missingWarn,_=K(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,p=!!f.part,x=Mu(e,f),C=a(e,r,x);if(!F(l)||l==="")return new Intl.NumberFormat(x,d).format(c);let D={},v,m=null,b=x,E=null;const y="number format";for(let A=0;A<C.length;A++){if(v=E=C[A],process.env.NODE_ENV!=="production"&&x!==v&&tu(_,l)&&o(zt(He.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:v})),process.env.NODE_ENV!=="production"&&x!==v){const B=e.__v_emitter;B&&B.emit("fallback",{type:y,key:l,from:b,to:E,groupId:`${y}:${l}`})}if(D=n[v]||{},m=D[l],j(m))break;Bu(e,l,v,h,y),b=E}if(!j(m)||!F(v))return u?Qn:l;let w=`${v}__${l}`;Wn(d)||(w=`${w}__${JSON.stringify(d)}`);let T=s.get(w);return T||(T=new Intl.NumberFormat(v,Be({},m,d)),s.set(w,T)),p?T.formatToParts(c):T.format(c)}const Xo=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Hu(...e){const[t,n,u,r]=e,o=fe();let a=fe();if(!De(t))throw pt(Pe.INVALID_ARGUMENT);const s=t;return F(n)?o.key=n:j(n)&&Object.keys(n).forEach(l=>{Xo.includes(l)?a[l]=n[l]:o[l]=n[l]}),F(u)?o.locale=u:j(u)&&(a=u),j(r)&&(a=r),[o.key||"",s,o,a]}function Zo(e,t,n){const u=e;for(const r in n){const o=`${t}__${r}`;u.__numberFormatters.has(o)&&u.__numberFormatters.delete(o)}}Rl();function Fc(){return Ko().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ko(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Pc=typeof Proxy=="function",Mc="devtools-plugin:setup",Vc="plugin:settings:set";let en,qu;function Rc(){var e;return en!==void 0||(typeof window<"u"&&window.performance?(en=!0,qu=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(en=!0,qu=globalThis.perf_hooks.performance):en=!1),en}function Bc(){return Rc()?qu.now():Date.now()}class $c{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const u={};if(t.settings)for(const a in t.settings){const s=t.settings[a];u[a]=s.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},u);try{const a=localStorage.getItem(r),s=JSON.parse(a);Object.assign(o,s)}catch{}this.fallbacks={getSettings(){return o},setSettings(a){try{localStorage.setItem(r,JSON.stringify(a))}catch{}o=a},now(){return Bc()}},n&&n.on(Vc,(a,s)=>{a===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(a,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(a,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:s,args:l,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Uc(e,t){const n=e,u=Ko(),r=Fc(),o=Pc&&n.enableEarlyProxy;if(r&&(u.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(Mc,e,t);else{const a=o?new $c(n,r):null;(u.__VUE_DEVTOOLS_PLUGINS__=u.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
20
- * vue-i18n v9.14.5
21
- * (c) 2025 kazuya kawaguchi
22
- * Released under the MIT License.
23
- */const zc="9.14.5";function jc(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Jo=He.__EXTEND_POINT__,Ct=Yn(Jo),Ce={FALLBACK_TO_ROOT:Jo,NOT_SUPPORTED_PRESERVE:Ct(),NOT_SUPPORTED_FORMATTER:Ct(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Ct(),NOT_SUPPORTED_GET_CHOICE_INDEX:Ct(),COMPONENT_NAME_LEGACY_COMPATIBLE:Ct(),NOT_FOUND_PARENT_SCOPE:Ct(),IGNORE_OBJ_FLATTEN:Ct(),NOTICE_DROP_ALLOW_COMPOSITION:Ct(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Ct()},Hc={[Ce.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Ce.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Ce.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Ce.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Ce.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Ce.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Ce.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Ce.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Ce.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function We(e,...t){return Ou(Hc[e],...t)}const Qo=Pe.__EXTEND_POINT__,Ye=Yn(Qo),ne={UNEXPECTED_RETURN_TYPE:Qo,INVALID_ARGUMENT:Ye(),MUST_BE_CALL_SETUP_TOP:Ye(),NOT_INSTALLED:Ye(),NOT_AVAILABLE_IN_LEGACY_MODE:Ye(),REQUIRED_VALUE:Ye(),INVALID_VALUE:Ye(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ye(),NOT_INSTALLED_WITH_PROVIDE:Ye(),UNEXPECTED_ERROR:Ye(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ye(),BRIDGE_SUPPORT_VUE_2_ONLY:Ye(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ye(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ye(),__EXTEND_POINT__:Ye()};function Fe(e,...t){return Xt(e,null,process.env.NODE_ENV!=="production"?{messages:qc,args:t}:void 0)}const qc={[ne.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ne.INVALID_ARGUMENT]:"Invalid argument",[ne.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[ne.NOT_INSTALLED]:"Need to install with `app.use` function",[ne.UNEXPECTED_ERROR]:"Unexpected error",[ne.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[ne.REQUIRED_VALUE]:"Required in value: {0}",[ne.INVALID_VALUE]:"Invalid value",[ne.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[ne.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[ne.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[ne.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[ne.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[ne.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Wu=mt("__translateVNode"),Yu=mt("__datetimeParts"),Gu=mt("__numberParts"),Ht=mt("__enableEmitter"),vn=mt("__disableEmitter"),ea=mt("__setPluralRules"),ta=mt("__injectWithOption"),Xu=mt("__dispose");function wn(e){if(!te(e)||Qe(e))return e;for(const t in e)if(it(e,t))if(!t.includes("."))te(e[t])&&wn(e[t]);else{const n=t.split("."),u=n.length-1;let r=e,o=!1;for(let a=0;a<u;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in r||(r[n[a]]=fe()),!te(r[n[a]])){process.env.NODE_ENV!=="production"&&Se(We(Ce.IGNORE_OBJ_FLATTEN,{key:n[a]})),o=!0;break}r=r[n[a]]}if(o||(Qe(r)?po.includes(n[u])||delete e[t]:(r[n[u]]=e[t],delete e[t])),!Qe(r)){const a=r[n[u]];te(a)&&wn(a)}}return e}function nu(e,t){const{messages:n,__i18n:u,messageResolver:r,flatJson:o}=t,a=j(n)?n:be(u)?fe():{[e]:fe()};if(be(u)&&u.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:c}=s;l?(a[l]=a[l]||fe(),Xn(c,a[l])):Xn(c,a)}else F(s)&&Xn(JSON.parse(s),a)}),r==null&&o)for(const s in a)it(a,s)&&wn(a[s]);return a}function na(e){return e.type}function ua(e,t,n){let u=te(t.messages)?t.messages:fe();"__i18nGlobal"in n&&(u=nu(e.locale.value,{messages:u,__i18n:n.__i18nGlobal}));const r=Object.keys(u);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,u[o])});{if(te(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(te(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function ra(e){return i.createVNode(i.Text,null,e,0)}const oa="__INTLIFY_META__",aa=()=>[],Wc=()=>!1;let ia=0;function sa(e){return(t,n,u,r)=>e(n,u,i.getCurrentInstance()||void 0,r)}const Yc=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=na(e)[oa])?{[oa]:t}:null};function Zu(e={},t){const{__root:n,__injectWithOption:u}=e,r=n===void 0,o=e.flatJson,a=at?i.ref:i.shallowRef,s=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&s&&Wr(We(Ce.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let l=K(e.inheritLocale)?e.inheritLocale:!0;const c=a(n&&l?n.locale.value:F(e.locale)?e.locale:Jt),f=a(n&&l?n.fallbackLocale.value:F(e.fallbackLocale)||be(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=a(nu(c.value,e)),h=a(j(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),_=a(j(e.numberFormats)?e.numberFormats:{[c.value]:{}});let p=n?n.missingWarn:K(e.missingWarn)||Tt(e.missingWarn)?e.missingWarn:!0,x=n?n.fallbackWarn:K(e.fallbackWarn)||Tt(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,D=!!e.fallbackFormat,v=de(e.missing)?e.missing:null,m=de(e.missing)?sa(e.missing):null,b=de(e.postTranslation)?e.postTranslation:null,E=n?n.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const w=n?n.modifiers:j(e.modifiers)?e.modifiers:{};let T=e.pluralRules||n&&n.pluralRules,A;A=(()=>{r&&Io(null);const N={version:zc,locale:c.value,fallbackLocale:f.value,messages:d.value,modifiers:w,pluralRules:T,missing:m===null?void 0:m,missingWarn:p,fallbackWarn:x,fallbackFormat:D,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:E,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};N.datetimeFormats=h.value,N.numberFormats=_.value,N.__datetimeFormatters=j(A)?A.__datetimeFormatters:void 0,N.__numberFormatters=j(A)?A.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(N.__v_emitter=j(A)?A.__v_emitter:void 0);const L=Cc(N);return r&&Io(L),L})(),Cn(A,c.value,f.value);function he(){return[c.value,f.value,d.value,h.value,_.value]}const U=i.computed({get:()=>c.value,set:N=>{c.value=N,A.locale=c.value}}),R=i.computed({get:()=>f.value,set:N=>{f.value=N,A.fallbackLocale=f.value,Cn(A,c.value,N)}}),Q=i.computed(()=>d.value),q=i.computed(()=>h.value),ue=i.computed(()=>_.value);function Ue(){return de(b)?b:null}function M(N){b=N,A.postTranslation=N}function Y(){return v}function P(N){N!==null&&(m=sa(N)),v=N,A.missing=m}function _e(N,L){return N!=="translate"||!L.resolvedMessage}const W=(N,L,ae,Ie,Bt,Su)=>{he();let yn;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=n?xc():void 0),yn=N(A)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(A.fallbackContext=void 0)}if(ae!=="translate exists"&&De(yn)&&yn===Qn||ae==="translate exists"&&!yn){const[Gt,Kb]=L();if(process.env.NODE_ENV!=="production"&&n&&F(Gt)&&_e(ae,Kb)&&(C&&(tu(x,Gt)||Oo(p,Gt))&&Se(We(Ce.FALLBACK_TO_ROOT,{key:Gt,type:ae})),process.env.NODE_ENV!=="production")){const{__v_emitter:Gs}=A;Gs&&C&&Gs.emit("fallback",{type:ae,key:Gt,to:"global",groupId:`${ae}:${Gt}`})}return n&&C?Ie(n):Bt(Gt)}else{if(Su(yn))return yn;throw Fe(ne.UNEXPECTED_RETURN_TYPE)}};function Le(...N){return W(L=>Reflect.apply($o,null,[L,...N]),()=>zu(...N),"translate",L=>Reflect.apply(L.t,L,[...N]),L=>L,L=>F(L))}function re(...N){const[L,ae,Ie]=N;if(Ie&&!te(Ie))throw Fe(ne.INVALID_ARGUMENT);return Le(L,ae,Be({resolvedMessage:!0},Ie||{}))}function ht(...N){return W(L=>Reflect.apply(qo,null,[L,...N]),()=>ju(...N),"datetime format",L=>Reflect.apply(L.d,L,[...N]),()=>eu,L=>F(L))}function ie(...N){return W(L=>Reflect.apply(Go,null,[L,...N]),()=>Hu(...N),"number format",L=>Reflect.apply(L.n,L,[...N]),()=>eu,L=>F(L))}function I(N){return N.map(L=>F(L)||De(L)||K(L)?ra(String(L)):L)}const X={normalize:I,interpolate:N=>N,type:"vnode"};function se(...N){return W(L=>{let ae;const Ie=L;try{Ie.processor=X,ae=Reflect.apply($o,null,[Ie,...N])}finally{Ie.processor=null}return ae},()=>zu(...N),"translate",L=>L[Wu](...N),L=>[ra(L)],L=>be(L))}function ee(...N){return W(L=>Reflect.apply(Go,null,[L,...N]),()=>Hu(...N),"number format",L=>L[Gu](...N),aa,L=>F(L)||be(L))}function Ae(...N){return W(L=>Reflect.apply(qo,null,[L,...N]),()=>ju(...N),"datetime format",L=>L[Yu](...N),aa,L=>F(L)||be(L))}function qe(N){T=N,A.pluralRules=T}function O(N,L){return W(()=>{if(!N)return!1;const ae=F(L)?L:c.value,Ie=le(ae),Bt=A.messageResolver(Ie,N);return s?Bt!=null:Qe(Bt)||et(Bt)||F(Bt)},()=>[N],"translate exists",ae=>Reflect.apply(ae.te,ae,[N,L]),Wc,ae=>K(ae))}function z(N){let L=null;const ae=ko(A,f.value,c.value);for(let Ie=0;Ie<ae.length;Ie++){const Bt=d.value[ae[Ie]]||{},Su=A.messageResolver(Bt,N);if(Su!=null){L=Su;break}}return L}function ot(N){const L=z(N);return L??(n?n.tm(N)||{}:{})}function le(N){return d.value[N]||{}}function yt(N,L){if(o){const ae={[N]:L};for(const Ie in ae)it(ae,Ie)&&wn(ae[Ie]);L=ae[N]}d.value[N]=L,A.messages=d.value}function En(N,L){d.value[N]=d.value[N]||{};const ae={[N]:L};if(o)for(const Ie in ae)it(ae,Ie)&&wn(ae[Ie]);L=ae[N],Xn(L,d.value[N]),A.messages=d.value}function g(N){return h.value[N]||{}}function k(N,L){h.value[N]=L,A.datetimeFormats=h.value,Yo(A,N,L)}function S(N,L){h.value[N]=Be(h.value[N]||{},L),A.datetimeFormats=h.value,Yo(A,N,L)}function V(N){return _.value[N]||{}}function ve(N,L){_.value[N]=L,A.numberFormats=_.value,Zo(A,N,L)}function ge(N,L){_.value[N]=Be(_.value[N]||{},L),A.numberFormats=_.value,Zo(A,N,L)}ia++,n&&at&&(i.watch(n.locale,N=>{l&&(c.value=N,A.locale=N,Cn(A,c.value,f.value))}),i.watch(n.fallbackLocale,N=>{l&&(f.value=N,A.fallbackLocale=N,Cn(A,c.value,f.value))}));const ce={id:ia,locale:U,fallbackLocale:R,get inheritLocale(){return l},set inheritLocale(N){l=N,N&&n&&(c.value=n.locale.value,f.value=n.fallbackLocale.value,Cn(A,c.value,f.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:Q,get modifiers(){return w},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return p},set missingWarn(N){p=N,A.missingWarn=p},get fallbackWarn(){return x},set fallbackWarn(N){x=N,A.fallbackWarn=x},get fallbackRoot(){return C},set fallbackRoot(N){C=N},get fallbackFormat(){return D},set fallbackFormat(N){D=N,A.fallbackFormat=D},get warnHtmlMessage(){return E},set warnHtmlMessage(N){E=N,A.warnHtmlMessage=N},get escapeParameter(){return y},set escapeParameter(N){y=N,A.escapeParameter=N},t:Le,getLocaleMessage:le,setLocaleMessage:yt,mergeLocaleMessage:En,getPostTranslationHandler:Ue,setPostTranslationHandler:M,getMissingHandler:Y,setMissingHandler:P,[ea]:qe};return ce.datetimeFormats=q,ce.numberFormats=ue,ce.rt=re,ce.te=O,ce.tm=ot,ce.d=ht,ce.n=ie,ce.getDateTimeFormat=g,ce.setDateTimeFormat=k,ce.mergeDateTimeFormat=S,ce.getNumberFormat=V,ce.setNumberFormat=ve,ce.mergeNumberFormat=ge,ce[ta]=u,ce[Wu]=se,ce[Yu]=Ae,ce[Gu]=ee,process.env.NODE_ENV!=="production"&&(ce[Ht]=N=>{A.__v_emitter=N},ce[vn]=()=>{A.__v_emitter=void 0}),ce}function Gc(e){const t=F(e.locale)?e.locale:Jt,n=F(e.fallbackLocale)||be(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,u=de(e.missing)?e.missing:void 0,r=K(e.silentTranslationWarn)||Tt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=K(e.silentFallbackWarn)||Tt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=K(e.fallbackRoot)?e.fallbackRoot:!0,s=!!e.formatFallbackMessages,l=j(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,f=de(e.postTranslation)?e.postTranslation:void 0,d=F(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,_=K(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Se(We(Ce.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Se(We(Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let p=e.messages;if(j(e.sharedMessages)){const y=e.sharedMessages;p=Object.keys(y).reduce((T,A)=>{const B=T[A]||(T[A]={});return Be(B,y[A]),T},p||{})}const{__i18n:x,__root:C,__injectWithOption:D}=e,v=e.datetimeFormats,m=e.numberFormats,b=e.flatJson,E=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:p,flatJson:b,datetimeFormats:v,numberFormats:m,missing:u,missingWarn:r,fallbackWarn:o,fallbackRoot:a,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:f,warnHtmlMessage:d,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:_,translateExistCompatible:E,__i18n:x,__root:C,__injectWithOption:D}}function Ku(e={},t){{const n=Zu(Gc(e)),{__extender:u}=e,r={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(o){process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return K(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=K(o)?!o:o},get silentFallbackWarn(){return K(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=K(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(o){process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[a,s,l]=o,c={};let f=null,d=null;if(!F(a))throw Fe(ne.INVALID_ARGUMENT);const h=a;return F(s)?c.locale=s:be(s)?f=s:j(s)&&(d=s),be(l)?f=l:j(l)&&(d=l),Reflect.apply(n.t,n,[h,f||d||{},c])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[a,s,l]=o,c={plural:1};let f=null,d=null;if(!F(a))throw Fe(ne.INVALID_ARGUMENT);const h=a;return F(s)?c.locale=s:De(s)?c.plural=s:be(s)?f=s:j(s)&&(d=s),F(l)?c.locale=l:be(l)?f=l:j(l)&&(d=l),Reflect.apply(n.t,n,[h,f||d||{},c])},te(o,a){return n.te(o,a)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,a){n.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){n.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,a){n.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){n.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,a){n.setNumberFormat(o,a)},mergeNumberFormat(o,a){n.mergeNumberFormat(o,a)},getChoiceIndex(o,a){return process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return r.__extender=u,process.env.NODE_ENV!=="production"&&(r.__enableEmitter=o=>{const a=n;a[Ht]&&a[Ht](o)},r.__disableEmitter=()=>{const o=n;o[vn]&&o[vn]()}),r}}const Ju={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Xc({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((u,r)=>[...u,...r.type===i.Fragment?r.children:[r]],[]):t.reduce((n,u)=>{const r=e[u];return r&&(n[u]=r()),n},fe())}function la(e){return i.Fragment}const Qu=i.defineComponent({name:"i18n-t",props:Be({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>De(e)||!isNaN(e)}},Ju),setup(e,t){const{slots:n,attrs:u}=t,r=e.i18n||tn({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d!=="_"),a=fe();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=F(e.plural)?+e.plural:e.plural);const s=Xc(t,o),l=r[Wu](e.keypath,s,a),c=Be(fe(),u),f=F(e.tag)||te(e.tag)?e.tag:la();return i.h(f,c,l)}}});function Zc(e){return be(e)&&!F(e[0])}function ca(e,t,n,u){const{slots:r,attrs:o}=t;return()=>{const a={part:!0};let s=fe();e.locale&&(a.locale=e.locale),F(e.format)?a.key=e.format:te(e.format)&&(F(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce((h,_)=>n.includes(_)?Be(fe(),h,{[_]:e.format[_]}):h,fe()));const l=u(e.value,a,s);let c=[a.key];be(l)?c=l.map((h,_)=>{const p=r[h.type],x=p?p({[h.type]:h.value,index:_,parts:l}):[h.value];return Zc(x)&&(x[0].key=`${h.type}-${_}`),x}):F(l)&&(c=[l]);const f=Be(fe(),o),d=F(e.tag)||te(e.tag)?e.tag:la();return i.h(d,f,c)}}const fa=i.defineComponent({name:"i18n-n",props:Be({value:{type:Number,required:!0},format:{type:[String,Object]}},Ju),setup(e,t){const n=e.i18n||tn({useScope:e.scope,__useComponent:!0});return ca(e,t,Xo,(...u)=>n[Gu](...u))}}),da=i.defineComponent({name:"i18n-d",props:Be({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ju),setup(e,t){const n=e.i18n||tn({useScope:e.scope,__useComponent:!0});return ca(e,t,Wo,(...u)=>n[Yu](...u))}});function Kc(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const u=n.__getInstance(t);return u!=null?u.__composer:e.global.__composer}}function Jc(e){const t=a=>{const{instance:s,modifiers:l,value:c}=a;if(!s||!s.$)throw Fe(ne.UNEXPECTED_ERROR);const f=Kc(e,s.$);process.env.NODE_ENV!=="production"&&l.preserve&&Se(We(Ce.NOT_SUPPORTED_PRESERVE));const d=ha(c);return[Reflect.apply(f.t,f,[...ma(d)]),f]};return{created:(a,s)=>{const[l,c]=t(s);at&&e.global===c&&(a.__i18nWatcher=i.watch(c.locale,()=>{s.instance&&s.instance.$forceUpdate()})),a.__composer=c,a.textContent=l},unmounted:a=>{at&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:s})=>{if(a.__composer){const l=a.__composer,c=ha(s);a.textContent=Reflect.apply(l.t,l,[...ma(c)])}},getSSRProps:a=>{const[s]=t(a);return{textContent:s}}}}function ha(e){if(F(e))return{path:e};if(j(e)){if(!("path"in e))throw Fe(ne.REQUIRED_VALUE,"path");return e}else throw Fe(ne.INVALID_VALUE)}function ma(e){const{path:t,locale:n,args:u,choice:r,plural:o}=e,a={},s=u||{};return F(n)&&(a.locale=n),De(r)&&(a.plural=r),De(o)&&(a.plural=o),[t,s,a]}function Qc(e,t,...n){const u=j(n[0])?n[0]:{},r=!!u.useI18nComponentName,o=K(u.globalInstall)?u.globalInstall:!0;process.env.NODE_ENV!=="production"&&o&&r&&Se(We(Ce.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Qu.name})),o&&([r?"i18n":Qu.name,"I18nT"].forEach(a=>e.component(a,Qu)),[fa.name,"I18nN"].forEach(a=>e.component(a,fa)),[da.name,"I18nD"].forEach(a=>e.component(a,da))),e.directive("t",Jc(t))}const er={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},e0={"vue-i18n-resource-inspector":"Search for scopes ..."},t0={"vue-i18n-timeline":16764185},pa="vue-i18n: composer properties";let tr;async function n0(e,t){return new Promise((n,u)=>{try{Uc({id:"vue-devtools-plugin-vue-i18n",label:er["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[pa],app:e},r=>{tr=r,r.on.visitComponentTree(({componentInstance:a,treeNode:s})=>{u0(a,s,t)}),r.on.inspectComponent(({componentInstance:a,instanceData:s})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&s&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&ga(s,a.vnode.el.__VUE_I18N__):ga(s,a.vnode.el.__VUE_I18N__))}),r.addInspector({id:"vue-i18n-resource-inspector",label:er["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:e0["vue-i18n-resource-inspector"]}),r.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&s0(a,t)});const o=new Map;r.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(r.unhighlightElement(),c0(a,t),a.nodeId==="global"){if(!o.has(a.app)){const[s]=await r.getComponentInstances(a.app);o.set(a.app,s)}r.highlightElement(o.get(a.app))}else{const s=l0(a.nodeId,t);s&&r.highlightElement(s)}}),r.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&d0(a,t)}),r.addTimelineLayer({id:"vue-i18n-timeline",label:er["vue-i18n-timeline"],color:t0["vue-i18n-timeline"]}),n(!0)})}catch(r){console.error(r),u(!1)}})}function _a(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function u0(e,t,n){const u=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==u){const r={label:`i18n (${_a(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(r)}}function ga(e,t){const n=pa;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:nr(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function nr(e){const t={};return Object.keys(e).forEach(n=>{const u=e[n];de(u)&&"source"in u?t[n]=i0(u):Qe(u)&&u.loc&&u.loc.source?t[n]=u.loc.source:te(u)?t[n]=nr(u):t[n]=u}),t}const r0={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function o0(e){return e.replace(/[<>"&]/g,a0)}function a0(e){return r0[e]||e}function i0(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${o0(e.source)}")`:"(?)"}`}}}function s0(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[u,r]of t.__instances){const o=t.mode==="composition"?r:r.__composer;n!==o&&e.rootNodes.push({id:o.id.toString(),label:`${_a(u)} Scope`})}}function l0(e,t){let n=null;if(e!=="global"){for(const[u,r]of t.__instances.entries())if(r.id.toString()===e){n=u;break}}return n}function ba(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(u=>u.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function c0(e,t){const n=ba(e.nodeId,t);return n&&(e.state=f0(n)),null}function f0(e){const t={},n="Locale related info",u=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=u;const r="Locale messages info",o=[{type:r,key:"messages",editable:!1,value:nr(e.messages.value)}];t[r]=o;{const a="Datetime formats info",s=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=s;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[l]=c}return t}function Nn(e,t){if(tr){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),tr.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function d0(e,t){const n=ba(e.nodeId,t);if(n){const[u]=e.path;u==="locale"&&F(e.state.value)?n.locale.value=e.state.value:u==="fallbackLocale"&&(F(e.state.value)||be(e.state.value)||te(e.state.value))?n.fallbackLocale.value=e.state.value:u==="inheritLocale"&&K(e.state.value)&&(n.inheritLocale=e.state.value)}}function h0(e,t,n){return{beforeCreate(){const u=i.getCurrentInstance();if(!u)throw Fe(ne.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=Ea(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Ku(o);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=Ea(e,r);else{this.$i18n=Ku({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&ua(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$tc=(...o)=>this.$i18n.tc(...o),this.$te=(o,a)=>this.$i18n.te(o,a),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(u,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const u=this.$i18n;this.$el.__VUE_I18N__=u.__composer;const r=this.__v_emitter=Lu();u.__enableEmitter&&u.__enableEmitter(r),r.on("*",Nn)}},unmounted(){const u=i.getCurrentInstance();if(!u)throw Fe(ne.UNEXPECTED_ERROR);const r=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",Nn),delete this.__v_emitter),this.$i18n&&(r.__disableEmitter&&r.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(u),delete this.$i18n}}}function Ea(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ea](t.pluralizationRules||e.pluralizationRules);const n=nu(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(u=>e.mergeLocaleMessage(u,n[u])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(u=>e.mergeDateTimeFormat(u,t.datetimeFormats[u])),t.numberFormats&&Object.keys(t.numberFormats).forEach(u=>e.mergeNumberFormat(u,t.numberFormats[u])),e}const m0=mt("global-vue-i18n");function p0(e={},t){const n=__VUE_I18N_LEGACY_API__&&K(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,u=K(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,o=new Map,[a,s]=_0(e,n),l=mt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&r&&Se(We(Ce.NOTICE_DROP_ALLOW_COMPOSITION));function c(h){return o.get(h)||null}function f(h,_){o.set(h,_)}function d(h){o.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(_,...p){if(process.env.NODE_ENV!=="production"&&(_.__VUE_I18N__=h),_.__VUE_I18N_SYMBOL__=l,_.provide(_.__VUE_I18N_SYMBOL__,h),j(p[0])){const D=p[0];h.__composerExtend=D.__composerExtend,h.__vueI18nExtend=D.__vueI18nExtend}let x=null;!n&&u&&(x=w0(_,h.global)),__VUE_I18N_FULL_INSTALL__&&Qc(_,h,...p),__VUE_I18N_LEGACY_API__&&n&&_.mixin(h0(s,s.__composer,h));const C=_.unmount;if(_.unmount=()=>{x&&x(),h.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await n0(_,h))throw Fe(ne.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const v=Lu();if(n){const m=s;m.__enableEmitter&&m.__enableEmitter(v)}else{const m=s;m[Ht]&&m[Ht](v)}v.on("*",Nn)}},get global(){return s},dispose(){a.stop()},__instances:o,__getInstance:c,__setInstance:f,__deleteInstance:d};return h}}function tn(e={}){const t=i.getCurrentInstance();if(t==null)throw Fe(ne.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Fe(ne.NOT_INSTALLED);const n=g0(t),u=E0(n),r=na(t),o=b0(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Fe(ne.NOT_AVAILABLE_IN_LEGACY_MODE);return C0(t,o,u,e)}if(o==="global")return ua(u,e,r),u;if(o==="parent"){let l=y0(n,t,e.__useComponent);return l==null&&(process.env.NODE_ENV!=="production"&&Se(We(Ce.NOT_FOUND_PARENT_SCOPE)),l=u),l}const a=n;let s=a.__getInstance(t);if(s==null){const l=Be({},e);"__i18n"in r&&(l.__i18n=r.__i18n),u&&(l.__root=u),s=Zu(l),a.__composerExtend&&(s[Xu]=a.__composerExtend(s)),x0(a,t,s),a.__setInstance(t,s)}return s}function _0(e,t,n){const u=i.effectScope();{const r=__VUE_I18N_LEGACY_API__&&t?u.run(()=>Ku(e)):u.run(()=>Zu(e));if(r==null)throw Fe(ne.UNEXPECTED_ERROR);return[u,r]}}function g0(e){{const t=i.inject(e.isCE?m0:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Fe(e.isCE?ne.NOT_INSTALLED_WITH_PROVIDE:ne.UNEXPECTED_ERROR);return t}}function b0(e,t){return Wn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function E0(e){return e.mode==="composition"?e.global:e.global.__composer}function y0(e,t,n=!1){let u=null;const r=t.root;let o=k0(t,n);for(;o!=null;){const a=e;if(e.mode==="composition")u=a.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const s=a.__getInstance(o);s!=null&&(u=s.__composer,n&&u&&!u[ta]&&(u=null))}if(u!=null||r===o)break;o=o.parent}return u}function k0(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function x0(e,t,n){let u=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,u=Lu();const r=n;r[Ht]&&r[Ht](u),u.on("*",Nn)}},t),i.onUnmounted(()=>{const r=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(u&&u.off("*",Nn),r[vn]&&r[vn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const o=r[Xu];o&&(o(),delete r[Xu])},t)}function C0(e,t,n,u={}){const r=t==="local",o=i.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Fe(ne.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=K(u.inheritLocale)?u.inheritLocale:!F(u.locale),s=i.ref(!r||a?n.locale.value:F(u.locale)?u.locale:Jt),l=i.ref(!r||a?n.fallbackLocale.value:F(u.fallbackLocale)||be(u.fallbackLocale)||j(u.fallbackLocale)||u.fallbackLocale===!1?u.fallbackLocale:s.value),c=i.ref(nu(s.value,u)),f=i.ref(j(u.datetimeFormats)?u.datetimeFormats:{[s.value]:{}}),d=i.ref(j(u.numberFormats)?u.numberFormats:{[s.value]:{}}),h=r?n.missingWarn:K(u.missingWarn)||Tt(u.missingWarn)?u.missingWarn:!0,_=r?n.fallbackWarn:K(u.fallbackWarn)||Tt(u.fallbackWarn)?u.fallbackWarn:!0,p=r?n.fallbackRoot:K(u.fallbackRoot)?u.fallbackRoot:!0,x=!!u.fallbackFormat,C=de(u.missing)?u.missing:null,D=de(u.postTranslation)?u.postTranslation:null,v=r?n.warnHtmlMessage:K(u.warnHtmlMessage)?u.warnHtmlMessage:!0,m=!!u.escapeParameter,b=r?n.modifiers:j(u.modifiers)?u.modifiers:{},E=u.pluralRules||r&&n.pluralRules;function y(){return[s.value,l.value,c.value,f.value,d.value]}const w=i.computed({get:()=>o.value?o.value.locale.value:s.value,set:O=>{o.value&&(o.value.locale.value=O),s.value=O}}),T=i.computed({get:()=>o.value?o.value.fallbackLocale.value:l.value,set:O=>{o.value&&(o.value.fallbackLocale.value=O),l.value=O}}),A=i.computed(()=>o.value?o.value.messages.value:c.value),B=i.computed(()=>f.value),he=i.computed(()=>d.value);function U(){return o.value?o.value.getPostTranslationHandler():D}function R(O){o.value&&o.value.setPostTranslationHandler(O)}function Q(){return o.value?o.value.getMissingHandler():C}function q(O){o.value&&o.value.setMissingHandler(O)}function ue(O){return y(),O()}function Ue(...O){return o.value?ue(()=>Reflect.apply(o.value.t,null,[...O])):ue(()=>"")}function M(...O){return o.value?Reflect.apply(o.value.rt,null,[...O]):""}function Y(...O){return o.value?ue(()=>Reflect.apply(o.value.d,null,[...O])):ue(()=>"")}function P(...O){return o.value?ue(()=>Reflect.apply(o.value.n,null,[...O])):ue(()=>"")}function _e(O){return o.value?o.value.tm(O):{}}function W(O,z){return o.value?o.value.te(O,z):!1}function Le(O){return o.value?o.value.getLocaleMessage(O):{}}function re(O,z){o.value&&(o.value.setLocaleMessage(O,z),c.value[O]=z)}function ht(O,z){o.value&&o.value.mergeLocaleMessage(O,z)}function ie(O){return o.value?o.value.getDateTimeFormat(O):{}}function I(O,z){o.value&&(o.value.setDateTimeFormat(O,z),f.value[O]=z)}function Z(O,z){o.value&&o.value.mergeDateTimeFormat(O,z)}function X(O){return o.value?o.value.getNumberFormat(O):{}}function se(O,z){o.value&&(o.value.setNumberFormat(O,z),d.value[O]=z)}function ee(O,z){o.value&&o.value.mergeNumberFormat(O,z)}const Ae={get id(){return o.value?o.value.id:-1},locale:w,fallbackLocale:T,messages:A,datetimeFormats:B,numberFormats:he,get inheritLocale(){return o.value?o.value.inheritLocale:a},set inheritLocale(O){o.value&&(o.value.inheritLocale=O)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(c.value)},get modifiers(){return o.value?o.value.modifiers:b},get pluralRules(){return o.value?o.value.pluralRules:E},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:h},set missingWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackWarn(){return o.value?o.value.fallbackWarn:_},set fallbackWarn(O){o.value&&(o.value.missingWarn=O)},get fallbackRoot(){return o.value?o.value.fallbackRoot:p},set fallbackRoot(O){o.value&&(o.value.fallbackRoot=O)},get fallbackFormat(){return o.value?o.value.fallbackFormat:x},set fallbackFormat(O){o.value&&(o.value.fallbackFormat=O)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:v},set warnHtmlMessage(O){o.value&&(o.value.warnHtmlMessage=O)},get escapeParameter(){return o.value?o.value.escapeParameter:m},set escapeParameter(O){o.value&&(o.value.escapeParameter=O)},t:Ue,getPostTranslationHandler:U,setPostTranslationHandler:R,getMissingHandler:Q,setMissingHandler:q,rt:M,d:Y,n:P,tm:_e,te:W,getLocaleMessage:Le,setLocaleMessage:re,mergeLocaleMessage:ht,getDateTimeFormat:ie,setDateTimeFormat:I,mergeDateTimeFormat:Z,getNumberFormat:X,setNumberFormat:se,mergeNumberFormat:ee};function qe(O){O.locale.value=s.value,O.fallbackLocale.value=l.value,Object.keys(c.value).forEach(z=>{O.mergeLocaleMessage(z,c.value[z])}),Object.keys(f.value).forEach(z=>{O.mergeDateTimeFormat(z,f.value[z])}),Object.keys(d.value).forEach(z=>{O.mergeNumberFormat(z,d.value[z])}),O.escapeParameter=m,O.fallbackFormat=x,O.fallbackRoot=p,O.fallbackWarn=_,O.missingWarn=h,O.warnHtmlMessage=v}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Fe(ne.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const O=o.value=e.proxy.$i18n.__composer;t==="global"?(s.value=O.locale.value,l.value=O.fallbackLocale.value,c.value=O.messages.value,f.value=O.datetimeFormats.value,d.value=O.numberFormats.value):r&&qe(O)}),Ae}const v0=["locale","fallbackLocale","availableLocales"],ya=["t","rt","d","n","tm","te"];function w0(e,t){const n=Object.create(null);return v0.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw Fe(ne.UNEXPECTED_ERROR);const a=i.isRef(o.value)?{get(){return o.value.value},set(s){o.value.value=s}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,a)}),e.config.globalProperties.$i18n=n,ya.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw Fe(ne.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,ya.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}if(jc(),__INTLIFY_JIT_COMPILATION__?wo(Tc):wo(Dc),bc(Jl),Ec(ko),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,ic(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const N0=p0({locale:"zh-CN",messages:{"zh-CN":{common:{send:"发送",cancel:"取消",confirm:"确认",close:"关闭",save:"保存",delete:"删除",edit:"编辑",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加载中...",success:"操作成功",error:"操作失败",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"历史记录",settings:"设置",help:"帮助",about:"关于",inputPlaceholder:"输入消息...",sendButton:"发送",clearButton:"清空",exportButton:"导出",importButton:"导入"},msg_obj:{placeholder:"发消息⋯",fileText:"请根据我上传的体检报告为我生成饮食方案",uploadingTips:"文件正在上传,请稍候...",matchText:"请用以上方案为我配餐",matchContent:"请用以上方案为我配餐",energy:"热量",protein:"蛋白质",fat:"脂肪",carbonwater:"碳水",newChat:"新对话",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用该方案配餐",aiTips:"【内容由AI生成,仅供参考】"},personal_form:{title:"个人信息",sex:"性别",age:"年龄",height:"身高",weight:"体重",sport:"日常运动水平",taste:"口味偏好及饮食禁忌",placeholder:{sex:"请选择",age:"请输入年龄",height:"请输入身高",weight:"请输入体重",sport:"请输入",taste:"无忌口"},unit:{age:"岁",height:"cm",weight:"kg"},sport_list:{rest:"休息状态",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"轻体力",light_sub:"站立或需要走动的工作",medium:"中体力",medium_sub:"走动多的工作",heavy:"重体力",heavy_sub:"高强度体力工作"},taste_list:["不吃辣","不吃葱","不吃姜","不吃蒜","不吃糖","不吃鱼","不吃虾","不吃牛肉","不吃鸡肉","不吃猪肉"],taboo_list:["高GI","高饱和脂肪酸","高嘌呤","高盐","高胆固醇"],button:"按身体数据领取食谱",toast:{select_sex:"请选择性别",input_age:"请输入年龄",input_height:"请输入身高",input_weight:"请输入体重",select_sport:"请选择日常运动水平",fill_all:"请填写完整信息",age_range:"年龄需要在6-100岁",height_range:"身高需要在100-220cm",weight_range:"体重需要在10-150kg"},dialog:{sex:"选择性别",age:"设置年龄",height:"设置身高",weight:"设置体重",sport:"日常运动水平",taste:"口味偏好&饮食禁忌"},no_taboo:"没有饮食禁忌",sex_options:{male:"男",female:"女"}}},"en-US":{common:{send:"Send",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",add:"Add",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info"},chat:{newChat:"New Chat",history:"History",settings:"Settings",help:"Help",about:"About",inputPlaceholder:"Type a message...",sendButton:"Send",clearButton:"Clear",exportButton:"Export",importButton:"Import"},msg_obj:{placeholder:"Type a message⋯",fileText:"Please generate a diet plan based on my uploaded medical report",uploadingTips:"File is uploading, please wait...",matchText:"Please use the above plan to prepare meals for me",matchContent:"Please use the above plan to prepare meals for me",energy:"Calories",protein:"Protein",fat:"Fat",carbonwater:"Carbs",newChat:"New Conversation",thinking:"Thinking...",thinkCompleted:"Thinking completed",useSolution:"Use this plan to prepare meals",aiTips:"[Content generated by AI, for reference only]"},personal_form:{title:"Personal Information",sex:"Gender",age:"Age",height:"Height",weight:"Weight",sport:"Daily Activity Level",taste:"Taste Preferences & Dietary Restrictions",placeholder:{sex:"Please select",age:"Please enter age",height:"Please enter height",weight:"Please enter weight",sport:"Please enter",taste:"No restrictions"},unit:{age:"years",height:"cm",weight:"kg"},sport_list:{rest:"Resting",rest_sub:"Bedridden or sitting rest",sedentary:"Sedentary",sedentary_sub:"Office work",light:"Light activity",light_sub:"Standing or walking work",medium:"Moderate activity",medium_sub:"Work with frequent walking",heavy:"Heavy activity",heavy_sub:"High-intensity physical work"},taste_list:["No spicy","No green onions","No ginger","No garlic","No sugar","No fish","No shrimp","No beef","No chicken","No pork"],taboo_list:["High GI","High saturated fat","High purine","High salt","High cholesterol"],button:"Get diet plan based on body data",toast:{select_sex:"Please select gender",input_age:"Please enter age",input_height:"Please enter height",input_weight:"Please enter weight",select_sport:"Please select daily activity level",fill_all:"Please fill in all information",age_range:"Age should be between 6-100 years",height_range:"Height should be between 100-220cm",weight_range:"Weight should be between 10-150kg"},dialog:{sex:"Select Gender",age:"Set Age",height:"Set Height",weight:"Set Weight",sport:"Daily Activity Level",taste:"Taste Preferences & Dietary Restrictions"},no_taboo:"No dietary restrictions",sex_options:{male:"Male",female:"Female"}}},"zh-TW":{common:{send:"發送",cancel:"取消",confirm:"確認",close:"關閉",save:"保存",delete:"刪除",edit:"編輯",add:"添加",back:"返回",next:"下一步",previous:"上一步",loading:"加載中...",success:"操作成功",error:"操作失敗",warning:"警告",info:"提示"},chat:{newChat:"新聊天",history:"歷史記錄",settings:"設置",help:"幫助",about:"關於",inputPlaceholder:"輸入消息...",sendButton:"發送",clearButton:"清空",exportButton:"導出",importButton:"導入"},msg_obj:{placeholder:"發消息⋯",fileText:"請根據我上傳的體檢報告為我生成飲食方案",uploadingTips:"文件正在上傳,請稍候...",matchText:"請用以上方案為我配餐",matchContent:"請用以上方案為我配餐",energy:"熱量",protein:"蛋白質",fat:"脂肪",carbonwater:"碳水",newChat:"新對話",thinking:"思考中...",thinkCompleted:"思考完成",useSolution:"用該方案配餐",aiTips:"【内容由AI生成,僅供參考】"},personal_form:{title:"個人信息",sex:"性別",age:"年齡",height:"身高",weight:"體重",sport:"日常運動水平",taste:"口味偏好及飲食禁忌",placeholder:{sex:"請選擇",age:"請輸入年齡",height:"請輸入身高",weight:"請輸入體重",sport:"請輸入",taste:"無禁忌"},unit:{age:"歲",height:"cm",weight:"kg"},sport_list:{rest:"休息狀態",rest_sub:"卧床或者坐式休息",sedentary:"久坐",sedentary_sub:"坐式工作",light:"輕體力",light_sub:"站立或需要走動的工作",medium:"中體力",medium_sub:"走動多的工作",heavy:"重體力",heavy_sub:"高強度體力工作"},taste_list:["不吃辣","不吃蔥","不吃姜","不吃蒜","不吃糖","不吃魚","不吃蝦","不吃牛肉","不吃雞肉","不吃豬肉"],taboo_list:["高GI","高飽和脂肪酸","高嘌呤","高鹽","高膽固醇"],button:"按身體數據領取食譜",toast:{select_sex:"請選擇性別",input_age:"請輸入年齡",input_height:"請輸入身高",input_weight:"請輸入體重",select_sport:"請選擇日常運動水平",fill_all:"請填寫完整信息",age_range:"年齡需要在6-100歲",height_range:"身高需要在100-220cm",weight_range:"體重需要在10-150kg"},dialog:{sex:"選擇性別",age:"設置年齡",height:"設置身高",weight:"設置體重",sport:"日常運動水平",taste:"口味偏好&飲食禁忌"},no_taboo:"沒有飲食禁忌",sex_options:{male:"男",female:"女"}}}},legacy:!1,globalInjection:!0}),ke=(e,t)=>{const n=e.__vccOpts||e;for(const[u,r]of t)n[u]=r;return n},D0={},T0={class:"icon-icon icon-icon-coz_broom",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function A0(e,t){return i.openBlock(),i.createElementBlock("svg",T0,t[0]||(t[0]=[i.createElementVNode("path",{d:"M9 2V6L4 6C2.89543 6 2 6.89543 2 8V21C2 22.1046 2.89543 23 4 23H20C21.1046 23 22 22.1046 22 21V8C22 6.89543 21.1046 6 20 6L15 6V2C15 0.895431 14.1046 0 13 0H11C9.89543 0 9 0.895431 9 2ZM13 2V8H20V12H4V8H11V2H13ZM4 14H20V21H9V18C9 17.4477 8.55228 17 8 17C7.44772 17 7 17.4477 7 18V21H4L4 14Z"},null,-1)]))}const I0=ke(D0,[["render",A0]]),S0={},O0={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function L0(e,t){return i.openBlock(),i.createElementBlock("svg",O0,t[0]||(t[0]=[i.createElementVNode("path",{d:"M4.96977 17.7929C4.57925 18.1834 4.57925 18.8166 4.96977 19.2071C5.3603 19.5976 5.99346 19.5976 6.38399 19.2071L12.1769 13.4142L17.9698 19.2071C18.3603 19.5976 18.9935 19.5976 19.384 19.2071C19.7745 18.8166 19.7745 18.1834 19.384 17.7929L13.5911 12L19.384 6.20711C19.7745 5.81658 19.7745 5.18342 19.384 4.79289C18.9935 4.40237 18.3603 4.40237 17.9698 4.79289L12.1769 10.5858L6.38399 4.79289C5.99347 4.40237 5.3603 4.40237 4.96978 4.79289C4.57925 5.18342 4.57925 5.81658 4.96978 6.20711L10.7627 12L4.96977 17.7929Z"},null,-1)]))}const ka=ke(S0,[["render",L0]]),F0={},P0={width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function M0(e,t){return i.openBlock(),i.createElementBlock("svg",P0,t[0]||(t[0]=[i.createElementVNode("path",{d:"M1 16C1 7.71573 7.71573 1 16 1C24.2843 1 31 7.71573 31 16C31 24.2843 24.2843 31 16 31C7.71573 31 1 24.2843 1 16Z",fill:"currentColor"},null,-1),i.createElementVNode("path",{d:"M16.7066 8.29236L16 7.58578L15.2929 8.29289L9.29289 14.2929C8.90237 14.6834 8.90237 15.3166 9.29289 15.7071C9.68342 16.0976 10.3166 16.0976 10.7071 15.7071L15 11.4142L15 23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23L17 11.4142L21.2929 15.7071C21.6834 16.0976 22.3166 16.0976 22.7071 15.7071C23.0976 15.3166 23.0976 14.6834 22.7071 14.2929L16.7077 8.29351L16.7071 8.29289L16.7066 8.29236Z",fill:"#fff"},null,-1)]))}const V0=ke(F0,[["render",M0]]);function xa(e,t={}){const u={...{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"},body:null,credentials:"same-origin",mode:"cors",cache:"default"},...t};if(console.log("====finalOptions====",u),u.method.toUpperCase()==="POST"&&!u.body)throw new Error("POST request must have a body");return fetch(e,u).then(r=>{if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return r.json()}).catch(r=>{throw console.error("Fetch error:",r),r})}function R0(e,t={}){return xa(e,{...t,method:"GET"})}function uu(e,t={},n={}){return xa(e,{...n,method:"POST",body:JSON.stringify(t)})}/*!
24
- * Viewer.js v1.11.7
25
- * https://fengyuanchen.github.io/viewerjs
26
- *
27
- * Copyright 2015-present Chen Fengyuan
28
- * Released under the MIT license
29
- *
30
- * Date: 2024-11-24T04:32:19.116Z
31
- */function B0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ca(e,t){for(var n=0;n<t.length;n++){var u=t[n];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(e,wa(u.key),u)}}function $0(e,t,n){return t&&Ca(e.prototype,t),n&&Ca(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U0(e,t,n){return(t=wa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,u)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?va(Object(n),!0).forEach(function(u){U0(e,u,n[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach(function(u){Object.defineProperty(e,u,Object.getOwnPropertyDescriptor(n,u))})}return e}function z0(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var u=n.call(e,t);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function wa(e){var t=z0(e,"string");return typeof t=="symbol"?t:t+""}function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}var Na={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},j0='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',ru=typeof window<"u"&&typeof window.document<"u",vt=ru?window:{},nn=ru&&vt.document.documentElement?"ontouchstart"in vt.document.documentElement:!1,or=ru?"PointerEvent"in vt:!1,J="viewer",ou="move",Da="switch",Dn="zoom",au="".concat(J,"-active"),H0="".concat(J,"-close"),iu="".concat(J,"-fade"),ar="".concat(J,"-fixed"),q0="".concat(J,"-fullscreen"),Ta="".concat(J,"-fullscreen-exit"),qt="".concat(J,"-hide"),W0="".concat(J,"-hide-md-down"),Y0="".concat(J,"-hide-sm-down"),G0="".concat(J,"-hide-xs-down"),tt="".concat(J,"-in"),Tn="".concat(J,"-invisible"),un="".concat(J,"-loading"),X0="".concat(J,"-move"),Aa="".concat(J,"-open"),rn="".concat(J,"-show"),Ne="".concat(J,"-transition"),on="click",ir="dblclick",Ia="dragstart",Sa="focusin",Oa="keydown",nt="load",Wt="error",Z0=nn?"touchend touchcancel":"mouseup",K0=nn?"touchmove":"mousemove",J0=nn?"touchstart":"mousedown",La=or?"pointerdown":J0,Fa=or?"pointermove":K0,Pa=or?"pointerup pointercancel":Z0,Ma="resize",lt="transitionend",Va="wheel",Ra="ready",Ba="show",$a="shown",Ua="hide",za="hidden",ja="view",An="viewed",Ha="move",qa="moved",Wa="rotate",Ya="rotated",Ga="scale",Xa="scaled",Za="zoom",Ka="zoomed",Ja="play",Qa="stop",su="".concat(J,"Action"),sr=/\s\s*/,lu=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function In(e){return typeof e=="string"}var Q0=Number.isNaN||vt.isNaN;function we(e){return typeof e=="number"&&!Q0(e)}function an(e){return typeof e>"u"}function sn(e){return rr(e)==="object"&&e!==null}var ef=Object.prototype.hasOwnProperty;function ln(e){if(!sn(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&ef.call(n,"isPrototypeOf")}catch{return!1}}function me(e){return typeof e=="function"}function Ee(e,t){if(e&&me(t))if(Array.isArray(e)||we(e.length)){var n=e.length,u;for(u=0;u<n&&t.call(e,e[u],u,e)!==!1;u+=1);}else sn(e)&&Object.keys(e).forEach(function(r){t.call(e,e[r],r,e)});return e}var Ze=Object.assign||function(t){for(var n=arguments.length,u=new Array(n>1?n-1:0),r=1;r<n;r++)u[r-1]=arguments[r];return sn(t)&&u.length>0&&u.forEach(function(o){sn(o)&&Object.keys(o).forEach(function(a){t[a]=o[a]})}),t},tf=/^(?:width|height|left|top|marginLeft|marginTop)$/;function ct(e,t){var n=e.style;Ee(t,function(u,r){tf.test(r)&&we(u)&&(u+="px"),n[r]=u})}function nf(e){return In(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e}function cn(e,t){return!e||!t?!1:e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function H(e,t){if(!(!e||!t)){if(we(e.length)){Ee(e,function(u){H(u,t)});return}if(e.classList){e.classList.add(t);return}var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function oe(e,t){if(!(!e||!t)){if(we(e.length)){Ee(e,function(n){oe(n,t)});return}if(e.classList){e.classList.remove(t);return}e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,""))}}function Sn(e,t,n){if(t){if(we(e.length)){Ee(e,function(u){Sn(u,t,n)});return}n?H(e,t):oe(e,t)}}var uf=/([a-z\d])([A-Z])/g;function lr(e){return e.replace(uf,"$1-$2").toLowerCase()}function fn(e,t){return sn(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(lr(t)))}function cr(e,t,n){sn(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(lr(t)),n)}var ei=function(){var e=!1;if(ru){var t=!1,n=function(){},u=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(o){t=o}});vt.addEventListener("test",n,u),vt.removeEventListener("test",n,u)}return e}();function pe(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(sr).forEach(function(o){if(!ei){var a=e.listeners;a&&a[o]&&a[o][n]&&(r=a[o][n],delete a[o][n],Object.keys(a[o]).length===0&&delete a[o],Object.keys(a).length===0&&delete e.listeners)}e.removeEventListener(o,r,u)})}function G(e,t,n){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},r=n;t.trim().split(sr).forEach(function(o){if(u.once&&!ei){var a=e.listeners,s=a===void 0?{}:a;r=function(){delete s[o][n],e.removeEventListener(o,r,u);for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];n.apply(e,f)},s[o]||(s[o]={}),s[o][n]&&e.removeEventListener(o,s[o][n],u),s[o][n]=r,e.listeners=s}e.addEventListener(o,r,u)})}function Te(e,t,n,u){var r;return me(Event)&&me(CustomEvent)?r=new CustomEvent(t,ur({bubbles:!0,cancelable:!0,detail:n},u)):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(r)}function rf(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}function cu(e){var t=e.rotate,n=e.scaleX,u=e.scaleY,r=e.translateX,o=e.translateY,a=[];we(r)&&r!==0&&a.push("translateX(".concat(r,"px)")),we(o)&&o!==0&&a.push("translateY(".concat(o,"px)")),we(t)&&t!==0&&a.push("rotate(".concat(t,"deg)")),we(n)&&n!==1&&a.push("scaleX(".concat(n,")")),we(u)&&u!==1&&a.push("scaleY(".concat(u,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function of(e){return In(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var fr=vt.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(vt.navigator.userAgent);function ti(e,t,n){var u=document.createElement("img");if(e.naturalWidth&&!fr)return n(e.naturalWidth,e.naturalHeight),u;var r=document.body||document.documentElement;return u.onload=function(){n(u.width,u.height),fr||r.removeChild(u)},Ee(t.inheritedAttributes,function(o){var a=e.getAttribute(o);a!==null&&u.setAttribute(o,a)}),u.src=e.src,fr||(u.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(u)),u}function fu(e){switch(e){case 2:return G0;case 3:return Y0;case 4:return W0;default:return""}}function af(e){var t=ur({},e),n=[];return Ee(e,function(u,r){delete t[r],Ee(t,function(o){var a=Math.abs(u.startX-o.startX),s=Math.abs(u.startY-o.startY),l=Math.abs(u.endX-o.endX),c=Math.abs(u.endY-o.endY),f=Math.sqrt(a*a+s*s),d=Math.sqrt(l*l+c*c),h=(d-f)/f;n.push(h)})}),n.sort(function(u,r){return Math.abs(u)<Math.abs(r)}),n[0]}function du(e,t){var n=e.pageX,u=e.pageY,r={endX:n,endY:u};return t?r:ur({timeStamp:Date.now(),startX:n,startY:u},r)}function sf(e){var t=0,n=0,u=0;return Ee(e,function(r){var o=r.startX,a=r.startY;t+=o,n+=a,u+=1}),t/=u,n/=u,{pageX:t,pageY:n}}var lf={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var t=this.element.ownerDocument,n=t.body||t.documentElement;this.body=n,this.scrollbarWidth=window.innerWidth-t.documentElement.clientWidth,this.initialBodyPaddingRight=n.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(n).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var t=this.options,n=this.parent,u;t.inline&&(u={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=u),(this.fulled||!u)&&(u=this.containerData),this.viewerData=Ze({},u)},renderViewer:function(){this.options.inline&&!this.fulled&&ct(this.viewer,this.viewerData)},initList:function(){var t=this,n=this.element,u=this.options,r=this.list,o=[];r.innerHTML="",Ee(this.images,function(a,s){var l=a.src,c=a.alt||of(l),f=t.getImageURL(a);if(l||f){var d=document.createElement("li"),h=document.createElement("img");Ee(u.inheritedAttributes,function(_){var p=a.getAttribute(_);p!==null&&h.setAttribute(_,p)}),u.navbar&&(h.src=l||f),h.alt=c,h.setAttribute("data-original-url",f||l),d.setAttribute("data-index",s),d.setAttribute("data-viewer-action","view"),d.setAttribute("role","button"),u.keyboard&&d.setAttribute("tabindex",0),d.appendChild(h),r.appendChild(d),o.push(d)}}),this.items=o,Ee(o,function(a){var s=a.firstElementChild,l,c;cr(s,"filled",!0),u.loading&&H(a,un),G(s,nt,l=function(d){pe(s,Wt,c),u.loading&&oe(a,un),t.loadImage(d)},{once:!0}),G(s,Wt,c=function(){pe(s,nt,l),u.loading&&oe(a,un)},{once:!0})}),u.transition&&G(n,An,function(){H(r,Ne)},{once:!0})},renderList:function(){var t=this.index,n=this.items[t];if(n){var u=n.nextElementSibling,r=parseInt(window.getComputedStyle(u||n).marginLeft,10),o=n.offsetWidth,a=o+r;ct(this.list,Ze({width:a*this.length-r},cu({translateX:(this.viewerData.width-o)/2-a*t})))}},resetList:function(){var t=this.list;t.innerHTML="",oe(t,Ne),ct(t,cu({translateX:0}))},initImage:function(t){var n=this,u=this.options,r=this.image,o=this.viewerData,a=this.footer.offsetHeight,s=o.width,l=Math.max(o.height-a,a),c=this.imageData||{},f;this.imageInitializing={abort:function(){f.onload=null}},f=ti(r,u,function(d,h){var _=d/h,p=Math.max(0,Math.min(1,u.initialCoverage)),x=s,C=l;n.imageInitializing=!1,l*_>s?C=s/_:x=l*_,p=we(p)?p:.9,x=Math.min(x*p,d),C=Math.min(C*p,h);var D=(s-x)/2,v=(l-C)/2,m={left:D,top:v,x:D,y:v,width:x,height:C,oldRatio:1,ratio:x/d,aspectRatio:_,naturalWidth:d,naturalHeight:h},b=Ze({},m);u.rotatable&&(m.rotate=c.rotate||0,b.rotate=0),u.scalable&&(m.scaleX=c.scaleX||1,m.scaleY=c.scaleY||1,b.scaleX=1,b.scaleY=1),n.imageData=m,n.initialImageData=b,t&&t()})},renderImage:function(t){var n=this,u=this.image,r=this.imageData;if(ct(u,Ze({width:r.width,height:r.height,marginLeft:r.x,marginTop:r.y},cu(r))),t)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&cn(u,Ne)){var o=function(){n.imageRendering=!1,t()};this.imageRendering={abort:function(){pe(u,lt,o)}},G(u,lt,o,{once:!0})}else t()},resetImage:function(){var t=this.image;t&&(this.viewing&&this.viewing.abort(),t.parentNode.removeChild(t),this.image=null,this.title.innerHTML="")}},cf={bind:function(){var t=this.options,n=this.viewer,u=this.canvas,r=this.element.ownerDocument;G(n,on,this.onClick=this.click.bind(this)),G(n,Ia,this.onDragStart=this.dragstart.bind(this)),G(u,La,this.onPointerDown=this.pointerdown.bind(this)),G(r,Fa,this.onPointerMove=this.pointermove.bind(this)),G(r,Pa,this.onPointerUp=this.pointerup.bind(this)),G(r,Oa,this.onKeyDown=this.keydown.bind(this)),G(window,Ma,this.onResize=this.resize.bind(this)),t.zoomable&&t.zoomOnWheel&&G(n,Va,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleOnDblclick&&G(u,ir,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var t=this.options,n=this.viewer,u=this.canvas,r=this.element.ownerDocument;pe(n,on,this.onClick),pe(n,Ia,this.onDragStart),pe(u,La,this.onPointerDown),pe(r,Fa,this.onPointerMove),pe(r,Pa,this.onPointerUp),pe(r,Oa,this.onKeyDown),pe(window,Ma,this.onResize),t.zoomable&&t.zoomOnWheel&&pe(n,Va,this.onWheel,{passive:!1,capture:!0}),t.toggleOnDblclick&&pe(u,ir,this.onDblclick)}},ff={click:function(t){var n=this.options,u=this.imageData,r=t.target,o=fn(r,su);switch(!o&&r.localName==="img"&&r.parentElement.localName==="li"&&(r=r.parentElement,o=fn(r,su)),nn&&t.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(fn(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-u.scaleX||-1);break;case"flip-vertical":this.scaleY(-u.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(t){t.preventDefault(),this.viewed&&t.target===this.image&&(nn&&t.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(t.isTrusted?t:t.detail&&t.detail.originalEvent))},load:function(){var t=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var n=this.element,u=this.options,r=this.image,o=this.index,a=this.viewerData;oe(r,Tn),u.loading&&oe(this.canvas,un),r.style.cssText="height:0;"+"margin-left:".concat(a.width/2,"px;")+"margin-top:".concat(a.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){Sn(r,X0,u.movable),Sn(r,Ne,u.transition),t.renderImage(function(){t.viewed=!0,t.viewing=!1,me(u.viewed)&&G(n,An,u.viewed,{once:!0}),Te(n,An,{originalImage:t.images[o],index:o,image:r},{cancelable:!1})})})},loadImage:function(t){var n=t.target,u=n.parentNode,r=u.offsetWidth||30,o=u.offsetHeight||50,a=!!fn(n,"filled");ti(n,this.options,function(s,l){var c=s/l,f=r,d=o;o*c>r?a?f=o*c:d=r/c:a?d=r/c:f=o*c,ct(n,Ze({width:f,height:d},cu({translateX:(r-f)/2,translateY:(o-d)/2})))})},keydown:function(t){var n=this.options;if(n.keyboard){var u=t.keyCode||t.which||t.charCode;switch(u){case 13:this.viewer.contains(t.target)&&this.click(t);break}if(this.fulled)switch(u){case 27:this.played?this.stop():n.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(n.loop);break;case 38:t.preventDefault(),this.zoom(n.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(n.loop);break;case 40:t.preventDefault(),this.zoom(-n.zoomRatio,!0);break;case 48:case 49:t.ctrlKey&&(t.preventDefault(),this.toggle());break}}},dragstart:function(t){t.target.localName==="img"&&t.preventDefault()},pointerdown:function(t){var n=this.options,u=this.pointers,r=t.buttons,o=t.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||(t.type==="mousedown"||t.type==="pointerdown"&&t.pointerType==="mouse")&&(we(r)&&r!==1||we(o)&&o!==0||t.ctrlKey))){t.preventDefault(),t.changedTouches?Ee(t.changedTouches,function(s){u[s.identifier]=du(s)}):u[t.pointerId||0]=du(t);var a=n.movable?ou:!1;n.zoomOnTouch&&n.zoomable&&Object.keys(u).length>1?a=Dn:n.slideOnTouch&&(t.pointerType==="touch"||t.type==="touchstart")&&this.isSwitchable()&&(a=Da),n.transition&&(a===ou||a===Dn)&&oe(this.image,Ne),this.action=a}},pointermove:function(t){var n=this.pointers,u=this.action;!this.viewed||!u||(t.preventDefault(),t.changedTouches?Ee(t.changedTouches,function(r){Ze(n[r.identifier]||{},du(r,!0))}):Ze(n[t.pointerId||0]||{},du(t,!0)),this.change(t))},pointerup:function(t){var n=this,u=this.options,r=this.action,o=this.pointers,a;t.changedTouches?Ee(t.changedTouches,function(s){a=o[s.identifier],delete o[s.identifier]}):(a=o[t.pointerId||0],delete o[t.pointerId||0]),r&&(t.preventDefault(),u.transition&&(r===ou||r===Dn)&&H(this.image,Ne),this.action=!1,nn&&r!==Dn&&a&&Date.now()-a.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),u.toggleOnDblclick&&this.viewed&&t.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Te(n.image,ir,{originalEvent:t})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,u.backdrop&&u.backdrop!=="static"&&t.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Te(n.canvas,on,{originalEvent:t})},50)))))},resize:function(){var t=this;if(!(!this.isShown||this.hiding)&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)){this.stop();return}Ee(this.player.getElementsByTagName("img"),function(n){G(n,nt,t.loadImage.bind(t),{once:!0}),Te(n,nt)})}},wheel:function(t){var n=this;if(this.viewed&&(t.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){n.wheeling=!1},50);var u=Number(this.options.zoomRatio)||.1,r=1;t.deltaY?r=t.deltaY>0?1:-1:t.wheelDelta?r=-t.wheelDelta/120:t.detail&&(r=t.detail>0?1:-1),this.zoom(-r*u,!0,null,t)}}},df={show:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.element,u=this.options;if(u.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(t),this;if(me(u.show)&&G(n,Ba,u.show,{once:!0}),Te(n,Ba)===!1||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var r=this.viewer;if(oe(r,qt),r.setAttribute("role","dialog"),r.setAttribute("aria-labelledby",this.title.id),r.setAttribute("aria-modal",!0),r.removeAttribute("aria-hidden"),u.transition&&!t){var o=this.shown.bind(this);this.transitioning={abort:function(){pe(r,lt,o),oe(r,tt)}},H(r,Ne),r.initialOffsetWidth=r.offsetWidth,G(r,lt,o,{once:!0}),H(r,tt)}else H(r,tt),this.shown();return this},hide:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,u=this.element,r=this.options;if(r.inline||this.hiding||!(this.isShown||this.showing))return this;if(me(r.hide)&&G(u,Ua,r.hide,{once:!0}),Te(u,Ua)===!1)return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var o=this.viewer,a=this.image,s=function(){oe(o,tt),t.hidden()};if(r.transition&&!n){var l=function(d){d&&d.target===o&&(pe(o,lt,l),t.hidden())},c=function(){cn(o,Ne)?(G(o,lt,l),oe(o,tt)):s()};this.transitioning={abort:function(){t.viewed&&cn(a,Ne)?pe(a,lt,c):cn(o,Ne)&&pe(o,lt,l)}},this.viewed&&cn(a,Ne)?(G(a,lt,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else s();return this},view:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.initialViewIndex;if(n=Number(n)||0,this.hiding||this.played||n<0||n>=this.length||this.viewed&&n===this.index)return this;if(!this.isShown)return this.index=n,this.show();this.viewing&&this.viewing.abort();var u=this.element,r=this.options,o=this.title,a=this.canvas,s=this.items[n],l=s.querySelector("img"),c=fn(l,"originalUrl"),f=l.getAttribute("alt"),d=document.createElement("img");if(Ee(r.inheritedAttributes,function(C){var D=l.getAttribute(C);D!==null&&d.setAttribute(C,D)}),d.src=c,d.alt=f,me(r.view)&&G(u,ja,r.view,{once:!0}),Te(u,ja,{originalImage:this.images[n],index:n,image:d})===!1||!this.isShown||this.hiding||this.played)return this;var h=this.items[this.index];h&&(oe(h,au),h.removeAttribute("aria-selected")),H(s,au),s.setAttribute("aria-selected",!0),r.focus&&s.focus(),this.image=d,this.viewed=!1,this.index=n,this.imageData={},H(d,Tn),r.loading&&H(a,un),a.innerHTML="",a.appendChild(d),this.renderList(),o.innerHTML="";var _=function(){var D=t.imageData,v=Array.isArray(r.title)?r.title[1]:r.title;o.innerHTML=nf(me(v)?v.call(t,d,D):"".concat(f," (").concat(D.naturalWidth," × ").concat(D.naturalHeight,")"))},p,x;return G(u,An,_,{once:!0}),this.viewing={abort:function(){pe(u,An,_),d.complete?t.imageRendering?t.imageRendering.abort():t.imageInitializing&&t.imageInitializing.abort():(d.src="",pe(d,nt,p),t.timeout&&clearTimeout(t.timeout))}},d.complete?this.load():(G(d,nt,p=function(){pe(d,Wt,x),t.load()},{once:!0}),G(d,Wt,x=function(){pe(d,nt,p),t.timeout&&(clearTimeout(t.timeout),t.timeout=!1),oe(d,Tn),r.loading&&oe(t.canvas,un)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){oe(d,Tn),t.timeout=!1},1e3)),this},prev:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.index-1;return n<0&&(n=t?this.length-1:0),this.view(n),this},next:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=this.length-1,u=this.index+1;return u>n&&(u=t?0:n),this.view(u),this},move:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,u=this.imageData;return this.moveTo(an(t)?t:u.x+Number(t),an(n)?n:u.y+Number(n)),this},moveTo:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=this.element,a=this.options,s=this.imageData;if(t=Number(t),u=Number(u),this.viewed&&!this.played&&a.movable){var l=s.x,c=s.y,f=!1;if(we(t)?f=!0:t=l,we(u)?f=!0:u=c,f){if(me(a.move)&&G(o,Ha,a.move,{once:!0}),Te(o,Ha,{x:t,y:u,oldX:l,oldY:c,originalEvent:r})===!1)return this;s.x=t,s.y=u,s.left=t,s.top=u,this.moving=!0,this.renderImage(function(){n.moving=!1,me(a.moved)&&G(o,qa,a.moved,{once:!0}),Te(o,qa,{x:t,y:u,oldX:l,oldY:c,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(t){return this.rotateTo((this.imageData.rotate||0)+Number(t)),this},rotateTo:function(t){var n=this,u=this.element,r=this.options,o=this.imageData;if(t=Number(t),we(t)&&this.viewed&&!this.played&&r.rotatable){var a=o.rotate;if(me(r.rotate)&&G(u,Wa,r.rotate,{once:!0}),Te(u,Wa,{degree:t,oldDegree:a})===!1)return this;o.rotate=t,this.rotating=!0,this.renderImage(function(){n.rotating=!1,me(r.rotated)&&G(u,Ya,r.rotated,{once:!0}),Te(u,Ya,{degree:t,oldDegree:a},{cancelable:!1})})}return this},scaleX:function(t){return this.scale(t,this.imageData.scaleY),this},scaleY:function(t){return this.scale(this.imageData.scaleX,t),this},scale:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=this.element,o=this.options,a=this.imageData;if(t=Number(t),u=Number(u),this.viewed&&!this.played&&o.scalable){var s=a.scaleX,l=a.scaleY,c=!1;if(we(t)?c=!0:t=s,we(u)?c=!0:u=l,c){if(me(o.scale)&&G(r,Ga,o.scale,{once:!0}),Te(r,Ga,{scaleX:t,scaleY:u,oldScaleX:s,oldScaleY:l})===!1)return this;a.scaleX=t,a.scaleY=u,this.scaling=!0,this.renderImage(function(){n.scaling=!1,me(o.scaled)&&G(r,Xa,o.scaled,{once:!0}),Te(r,Xa,{scaleX:t,scaleY:u,oldScaleX:s,oldScaleY:l},{cancelable:!1})})}}return this},zoom:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=this.imageData;return t=Number(t),t<0?t=1/(1-t):t=1+t,this.zoomTo(o.width*t/o.naturalWidth,n,u,r),this},zoomTo:function(t){var n=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,s=this.element,l=this.options,c=this.pointers,f=this.imageData,d=f.x,h=f.y,_=f.width,p=f.height,x=f.naturalWidth,C=f.naturalHeight;if(t=Math.max(0,t),we(t)&&this.viewed&&!this.played&&(a||l.zoomable)){if(!a){var D=Math.max(.01,l.minZoomRatio),v=Math.min(100,l.maxZoomRatio);t=Math.min(Math.max(t,D),v)}if(o)switch(o.type){case"wheel":l.zoomRatio>=.055&&t>.95&&t<1.05&&(t=1);break;case"pointermove":case"touchmove":case"mousemove":t>.99&&t<1.01&&(t=1);break}var m=x*t,b=C*t,E=m-_,y=b-p,w=f.ratio;if(me(l.zoom)&&G(s,Za,l.zoom,{once:!0}),Te(s,Za,{ratio:t,oldRatio:w,originalEvent:o})===!1)return this;if(this.zooming=!0,o){var T=rf(this.viewer),A=c&&Object.keys(c).length>0?sf(c):{pageX:o.pageX,pageY:o.pageY};f.x-=E*((A.pageX-T.left-d)/_),f.y-=y*((A.pageY-T.top-h)/p)}else ln(r)&&we(r.x)&&we(r.y)?(f.x-=E*((r.x-d)/_),f.y-=y*((r.y-h)/p)):(f.x-=E/2,f.y-=y/2);f.left=f.x,f.top=f.y,f.width=m,f.height=b,f.oldRatio=w,f.ratio=t,this.renderImage(function(){n.zooming=!1,me(l.zoomed)&&G(s,Ka,l.zoomed,{once:!0}),Te(s,Ka,{ratio:t,oldRatio:w,originalEvent:o},{cancelable:!1})}),u&&this.tooltip()}return this},play:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.isShown||this.played)return this;var u=this.element,r=this.options;if(me(r.play)&&G(u,Ja,r.play,{once:!0}),Te(u,Ja)===!1)return this;var o=this.player,a=this.loadImage.bind(this),s=[],l=0,c=0;if(this.played=!0,this.onLoadWhenPlay=a,n&&this.requestFullscreen(n),H(o,rn),Ee(this.items,function(h,_){var p=h.querySelector("img"),x=document.createElement("img");x.src=fn(p,"originalUrl"),x.alt=p.getAttribute("alt"),x.referrerPolicy=p.referrerPolicy,l+=1,H(x,iu),Sn(x,Ne,r.transition),cn(h,au)&&(H(x,tt),c=_),s.push(x),G(x,nt,a,{once:!0}),o.appendChild(x)}),we(r.interval)&&r.interval>0){var f=function(){clearTimeout(t.playing.timeout),oe(s[c],tt),c-=1,c=c>=0?c:l-1,H(s[c],tt),t.playing.timeout=setTimeout(f,r.interval)},d=function(){clearTimeout(t.playing.timeout),oe(s[c],tt),c+=1,c=c<l?c:0,H(s[c],tt),t.playing.timeout=setTimeout(d,r.interval)};l>1&&(this.playing={prev:f,next:d,timeout:setTimeout(d,r.interval)})}return this},stop:function(){var t=this;if(!this.played)return this;var n=this.element,u=this.options;if(me(u.stop)&&G(n,Qa,u.stop,{once:!0}),Te(n,Qa)===!1)return this;var r=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,Ee(r.getElementsByTagName("img"),function(o){pe(o,nt,t.onLoadWhenPlay)}),oe(r,rn),r.innerHTML="",this.exitFullscreen(),this},full:function(){var t=this,n=this.options,u=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||this.fulled||!n.inline?this:(this.fulled=!0,this.open(),H(this.button,Ta),n.transition&&(oe(o,Ne),this.viewed&&oe(r,Ne)),H(u,ar),u.setAttribute("role","dialog"),u.setAttribute("aria-labelledby",this.title.id),u.setAttribute("aria-modal",!0),u.removeAttribute("style"),ct(u,{zIndex:n.zIndex}),n.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Ze({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(r,Ne),H(o,Ne)},0)})}),this)},exit:function(){var t=this,n=this.options,u=this.viewer,r=this.image,o=this.list;return!this.isShown||this.played||!this.fulled||!n.inline?this:(this.fulled=!1,this.close(),oe(this.button,Ta),n.transition&&(oe(o,Ne),this.viewed&&oe(r,Ne)),n.focus&&this.clearEnforceFocus(),u.removeAttribute("role"),u.removeAttribute("aria-labelledby"),u.removeAttribute("aria-modal"),oe(u,ar),ct(u,{zIndex:n.zIndexInline}),this.viewerData=Ze({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){t.renderImage(function(){n.transition&&setTimeout(function(){H(r,Ne),H(o,Ne)},0)})}),this)},tooltip:function(){var t=this,n=this.options,u=this.tooltipBox,r=this.imageData;return!this.viewed||this.played||!n.tooltip?this:(u.textContent="".concat(Math.round(r.ratio*100),"%"),this.tooltipping?clearTimeout(this.tooltipping):n.transition?(this.fading&&Te(u,lt),H(u,rn),H(u,iu),H(u,Ne),u.removeAttribute("aria-hidden"),u.initialOffsetWidth=u.offsetWidth,H(u,tt)):(H(u,rn),u.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){n.transition?(G(u,lt,function(){oe(u,rn),oe(u,iu),oe(u,Ne),u.setAttribute("aria-hidden",!0),t.fading=!1},{once:!0}),oe(u,tt),t.fading=!0):(oe(u,rn),u.setAttribute("aria-hidden",!0)),t.tooltipping=!1},1e3),this)},toggle:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.imageData.ratio===1?this.zoomTo(this.imageData.oldRatio,!0,null,t):this.zoomTo(1,!0,null,t),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Ze({},this.initialImageData),this.renderImage()),this},update:function(){var t=this,n=this.element,u=this.options,r=this.isImg;if(r&&!n.parentNode)return this.destroy();var o=[];if(Ee(r?[n]:n.querySelectorAll("img"),function(c){me(u.filter)?u.filter.call(t,c)&&o.push(c):t.getImageURL(c)&&o.push(c)}),!o.length)return this;if(this.images=o,this.length=o.length,this.ready){var a=[];if(Ee(this.items,function(c,f){var d=c.querySelector("img"),h=o[f];h&&d?(h.src!==d.src||h.alt!==d.alt)&&a.push(f):a.push(f)}),ct(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=a.indexOf(this.index);if(s>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-s,this.length-1),0));else{var l=this.items[this.index];H(l,au),l.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var t=this.element,n=this.options;return t[J]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),n.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):n.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),n.inline||pe(t,on,this.onStart),t[J]=void 0,this):this}},hf={getImageURL:function(t){var n=this.options.url;return In(n)?n=t.getAttribute(n):me(n)?n=n.call(this,t):n="",n},enforceFocus:function(){var t=this;this.clearEnforceFocus(),G(document,Sa,this.onFocusin=function(n){var u=t.viewer,r=n.target;if(!(r===document||r===u||u.contains(r))){for(;r;){if(r.getAttribute("tabindex")!==null||r.getAttribute("aria-modal")==="true")return;r=r.parentElement}u.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(pe(document,Sa,this.onFocusin),this.onFocusin=null)},open:function(){var t=this.body;H(t,Aa),this.scrollbarWidth>0&&(t.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var t=this.body;oe(t,Aa),this.scrollbarWidth>0&&(t.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var t=this.element,n=this.options,u=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,n.focus&&(u.focus(),this.enforceFocus()),me(n.shown)&&G(t,$a,n.shown,{once:!0}),Te(t,$a)!==!1&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var t=this.element,n=this.options,u=this.viewer;n.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),H(u,qt),u.removeAttribute("role"),u.removeAttribute("aria-labelledby"),u.removeAttribute("aria-modal"),u.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(me(n.hidden)&&G(t,za,n.hidden,{once:!0}),Te(t,za,null,{cancelable:!1}))},requestFullscreen:function(t){var n=this.element.ownerDocument;if(this.fulled&&!(n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement)){var u=n.documentElement;u.requestFullscreen?ln(t)?u.requestFullscreen(t):u.requestFullscreen():u.webkitRequestFullscreen?u.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):u.mozRequestFullScreen?u.mozRequestFullScreen():u.msRequestFullscreen&&u.msRequestFullscreen()}},exitFullscreen:function(){var t=this.element.ownerDocument;this.fulled&&(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},change:function(t){var n=this.options,u=this.pointers,r=u[Object.keys(u)[0]];if(r){var o=r.endX-r.startX,a=r.endY-r.startY;switch(this.action){case ou:(o!==0||a!==0)&&(this.pointerMoved=!0,this.move(o,a,t));break;case Dn:this.zoom(af(u),!1,null,t);break;case Da:{this.action="switched";var s=Math.abs(o);s>1&&s>Math.abs(a)&&(this.pointers={},o>1?this.prev(n.loop):o<-1&&this.next(n.loop));break}}Ee(u,function(l){l.startX=l.endX,l.startY=l.endY})}},isSwitchable:function(){var t=this.imageData,n=this.viewerData;return this.length>1&&t.x>=0&&t.y>=0&&t.width<=n.width&&t.height<=n.height}},mf=vt.Viewer,pf=function(e){return function(){return e+=1,e}}(-1),dr=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(B0(this,e),!t||t.nodeType!==1)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=Ze({},Na,ln(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=pf(),this.init()}return $0(e,[{key:"init",value:function(){var n=this,u=this.element,r=this.options;if(!u[J]){u[J]=this,r.focus&&!r.keyboard&&(r.focus=!1);var o=u.localName==="img",a=[];if(Ee(o?[u]:u.querySelectorAll("img"),function(c){me(r.filter)?r.filter.call(n,c)&&a.push(c):n.getImageURL(c)&&a.push(c)}),this.isImg=o,this.length=a.length,this.images=a,this.initBody(),an(document.createElement(J).style.transition)&&(r.transition=!1),r.inline){var s=0,l=function(){if(s+=1,s===n.length){var f;n.initializing=!1,n.delaying={abort:function(){clearTimeout(f)}},f=setTimeout(function(){n.delaying=!1,n.build()},0)}};this.initializing={abort:function(){Ee(a,function(f){f.complete||(pe(f,nt,l),pe(f,Wt,l))})}},Ee(a,function(c){if(c.complete)l();else{var f,d;G(c,nt,f=function(){pe(c,Wt,d),l()},{once:!0}),G(c,Wt,d=function(){pe(c,nt,f),l()},{once:!0})}})}else G(u,on,this.onStart=function(c){var f=c.target;f.localName==="img"&&(!me(r.filter)||r.filter.call(n,f))&&n.view(n.images.indexOf(f))})}}},{key:"build",value:function(){if(!this.ready){var n=this.element,u=this.options,r=n.parentNode,o=document.createElement("div");o.innerHTML=j0;var a=o.querySelector(".".concat(J,"-container")),s=a.querySelector(".".concat(J,"-title")),l=a.querySelector(".".concat(J,"-toolbar")),c=a.querySelector(".".concat(J,"-navbar")),f=a.querySelector(".".concat(J,"-button")),d=a.querySelector(".".concat(J,"-canvas"));if(this.parent=r,this.viewer=a,this.title=s,this.toolbar=l,this.navbar=c,this.button=f,this.canvas=d,this.footer=a.querySelector(".".concat(J,"-footer")),this.tooltipBox=a.querySelector(".".concat(J,"-tooltip")),this.player=a.querySelector(".".concat(J,"-player")),this.list=a.querySelector(".".concat(J,"-list")),a.id="".concat(J).concat(this.id),s.id="".concat(J,"Title").concat(this.id),H(s,u.title?fu(Array.isArray(u.title)?u.title[0]:u.title):qt),H(c,u.navbar?fu(u.navbar):qt),Sn(f,qt,!u.button),u.keyboard&&f.setAttribute("tabindex",0),u.backdrop&&(H(a,"".concat(J,"-backdrop")),!u.inline&&u.backdrop!=="static"&&cr(d,su,"hide")),In(u.className)&&u.className&&u.className.split(sr).forEach(function(m){H(a,m)}),u.toolbar){var h=document.createElement("ul"),_=ln(u.toolbar),p=lu.slice(0,3),x=lu.slice(7,9),C=lu.slice(9);_||H(l,fu(u.toolbar)),Ee(_?u.toolbar:lu,function(m,b){var E=_&&ln(m),y=_?lr(b):m,w=E&&!an(m.show)?m.show:m;if(!(!w||!u.zoomable&&p.indexOf(y)!==-1||!u.rotatable&&x.indexOf(y)!==-1||!u.scalable&&C.indexOf(y)!==-1)){var T=E&&!an(m.size)?m.size:m,A=E&&!an(m.click)?m.click:m,B=document.createElement("li");u.keyboard&&B.setAttribute("tabindex",0),B.setAttribute("role","button"),H(B,"".concat(J,"-").concat(y)),me(A)||cr(B,su,y),we(w)&&H(B,fu(w)),["small","large"].indexOf(T)!==-1?H(B,"".concat(J,"-").concat(T)):y==="play"&&H(B,"".concat(J,"-large")),me(A)&&G(B,on,A),h.appendChild(B)}}),l.appendChild(h)}else H(l,qt);if(!u.rotatable){var D=l.querySelectorAll('li[class*="rotate"]');H(D,Tn),Ee(D,function(m){l.appendChild(m)})}if(u.inline)H(f,q0),ct(a,{zIndex:u.zIndexInline}),window.getComputedStyle(r).position==="static"&&ct(r,{position:"relative"}),r.insertBefore(a,n.nextSibling);else{H(f,H0),H(a,ar),H(a,iu),H(a,qt),ct(a,{zIndex:u.zIndex});var v=u.container;In(v)&&(v=n.ownerDocument.querySelector(v)),v||(v=this.body),v.appendChild(a)}if(u.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,me(u.ready)&&G(n,Ra,u.ready,{once:!0}),Te(n,Ra)===!1){this.ready=!1;return}this.ready&&u.inline&&this.view(this.index)}}}],[{key:"noConflict",value:function(){return window.Viewer=mf,e}},{key:"setDefaults",value:function(n){Ze(Na,ln(n)&&n)}}])}();Ze(dr.prototype,lf,cf,ff,df,hf);var _f=typeof global=="object"&&global&&global.Object===Object&&global;const ni=_f;var gf=typeof self=="object"&&self&&self.Object===Object&&self,bf=ni||gf||Function("return this")();const hr=bf;var Ef=hr.Symbol;const hu=Ef;var ui=Object.prototype,yf=ui.hasOwnProperty,kf=ui.toString,On=hu?hu.toStringTag:void 0;function xf(e){var t=yf.call(e,On),n=e[On];try{e[On]=void 0;var u=!0}catch{}var r=kf.call(e);return u&&(t?e[On]=n:delete e[On]),r}var Cf=Object.prototype,vf=Cf.toString;function wf(e){return vf.call(e)}var Nf="[object Null]",Df="[object Undefined]",ri=hu?hu.toStringTag:void 0;function mr(e){return e==null?e===void 0?Df:Nf:ri&&ri in Object(e)?xf(e):wf(e)}function pr(e){return e!=null&&typeof e=="object"}var Tf=Array.isArray;const Af=Tf;function mu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oi(e){return e}var If="[object AsyncFunction]",Sf="[object Function]",Of="[object GeneratorFunction]",Lf="[object Proxy]";function ai(e){if(!mu(e))return!1;var t=mr(e);return t==Sf||t==Of||t==If||t==Lf}var Ff=hr["__core-js_shared__"];const _r=Ff;var ii=function(){var e=/[^.]+$/.exec(_r&&_r.keys&&_r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Pf(e){return!!ii&&ii in e}var Mf=Function.prototype,Vf=Mf.toString;function Rf(e){if(e!=null){try{return Vf.call(e)}catch{}try{return e+""}catch{}}return""}var Bf=/[\\^$.*+?()[\]{}|]/g,$f=/^\[object .+?Constructor\]$/,Uf=Function.prototype,zf=Object.prototype,jf=Uf.toString,Hf=zf.hasOwnProperty,qf=RegExp("^"+jf.call(Hf).replace(Bf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wf(e){if(!mu(e)||Pf(e))return!1;var t=ai(e)?qf:$f;return t.test(Rf(e))}function Yf(e,t){return e==null?void 0:e[t]}function Gf(e,t){var n=Yf(e,t);return Wf(n)?n:void 0}function Xf(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Zf=800,Kf=16,Jf=Date.now;function Qf(e){var t=0,n=0;return function(){var u=Jf(),r=Kf-(u-n);if(n=u,r>0){if(++t>=Zf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ed(e){return function(){return e}}var td=function(){try{var e=Gf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const pu=td;var nd=pu?function(e,t){return pu(e,"toString",{configurable:!0,enumerable:!1,value:ed(t),writable:!0})}:oi,ud=Qf(nd);const rd=ud;var od=9007199254740991,ad=/^(?:0|[1-9]\d*)$/;function si(e,t){var n=typeof e;return t=t??od,!!t&&(n=="number"||n!="symbol"&&ad.test(e))&&e>-1&&e%1==0&&e<t}function li(e,t,n){t=="__proto__"&&pu?pu(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gr(e,t){return e===t||e!==e&&t!==t}var id=Object.prototype,sd=id.hasOwnProperty;function ci(e,t,n){var u=e[t];(!(sd.call(e,t)&&gr(u,n))||n===void 0&&!(t in e))&&li(e,t,n)}function ld(e,t,n,u){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;l===void 0&&(l=e[s]),r?li(n,s,l):ci(n,s,l)}return n}var fi=Math.max;function cd(e,t,n){return t=fi(t===void 0?e.length-1:t,0),function(){for(var u=arguments,r=-1,o=fi(u.length-t,0),a=Array(o);++r<o;)a[r]=u[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=u[r];return s[t]=n(a),Xf(e,this,s)}}function di(e,t){return rd(cd(e,t,oi),e+"")}var fd=9007199254740991;function hi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fd}function _u(e){return e!=null&&hi(e.length)&&!ai(e)}function mi(e,t,n){if(!mu(n))return!1;var u=typeof t;return(u=="number"?_u(n)&&si(t,n.length):u=="string"&&t in n)?gr(n[t],e):!1}function dd(e){return di(function(t,n){var u=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(r--,o):void 0,a&&mi(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),t=Object(t);++u<r;){var s=n[u];s&&e(t,s,u,o)}return t})}var hd=Object.prototype;function br(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hd;return e===n}function md(e,t){for(var n=-1,u=Array(e);++n<e;)u[n]=t(n);return u}var pd="[object Arguments]";function pi(e){return pr(e)&&mr(e)==pd}var _i=Object.prototype,_d=_i.hasOwnProperty,gd=_i.propertyIsEnumerable,bd=pi(function(){return arguments}())?pi:function(e){return pr(e)&&_d.call(e,"callee")&&!gd.call(e,"callee")};const Ed=bd;function yd(){return!1}var gi=typeof ze=="object"&&ze&&!ze.nodeType&&ze,bi=gi&&typeof module=="object"&&module&&!module.nodeType&&module,kd=bi&&bi.exports===gi,Ei=kd?hr.Buffer:void 0,xd=Ei?Ei.isBuffer:void 0,Cd=xd||yd;const vd=Cd;var wd="[object Arguments]",Nd="[object Array]",Dd="[object Boolean]",Td="[object Date]",Ad="[object Error]",Id="[object Function]",Sd="[object Map]",Od="[object Number]",Ld="[object Object]",Fd="[object RegExp]",Pd="[object Set]",Md="[object String]",Vd="[object WeakMap]",Rd="[object ArrayBuffer]",Bd="[object DataView]",$d="[object Float32Array]",Ud="[object Float64Array]",zd="[object Int8Array]",jd="[object Int16Array]",Hd="[object Int32Array]",qd="[object Uint8Array]",Wd="[object Uint8ClampedArray]",Yd="[object Uint16Array]",Gd="[object Uint32Array]",xe={};xe[$d]=xe[Ud]=xe[zd]=xe[jd]=xe[Hd]=xe[qd]=xe[Wd]=xe[Yd]=xe[Gd]=!0,xe[wd]=xe[Nd]=xe[Rd]=xe[Dd]=xe[Bd]=xe[Td]=xe[Ad]=xe[Id]=xe[Sd]=xe[Od]=xe[Ld]=xe[Fd]=xe[Pd]=xe[Md]=xe[Vd]=!1;function Xd(e){return pr(e)&&hi(e.length)&&!!xe[mr(e)]}function Zd(e){return function(t){return e(t)}}var yi=typeof ze=="object"&&ze&&!ze.nodeType&&ze,Ln=yi&&typeof module=="object"&&module&&!module.nodeType&&module,Kd=Ln&&Ln.exports===yi,Er=Kd&&ni.process,Jd=function(){try{var e=Ln&&Ln.require&&Ln.require("util").types;return e||Er&&Er.binding&&Er.binding("util")}catch{}}();const ki=Jd;var xi=ki&&ki.isTypedArray,Qd=xi?Zd(xi):Xd;const e1=Qd;var t1=Object.prototype,n1=t1.hasOwnProperty;function Ci(e,t){var n=Af(e),u=!n&&Ed(e),r=!n&&!u&&vd(e),o=!n&&!u&&!r&&e1(e),a=n||u||r||o,s=a?md(e.length,String):[],l=s.length;for(var c in e)(t||n1.call(e,c))&&!(a&&(c=="length"||r&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||si(c,l)))&&s.push(c);return s}function u1(e,t){return function(n){return e(t(n))}}var r1=u1(Object.keys,Object);const o1=r1;var a1=Object.prototype,i1=a1.hasOwnProperty;function s1(e){if(!br(e))return o1(e);var t=[];for(var n in Object(e))i1.call(e,n)&&n!="constructor"&&t.push(n);return t}function l1(e){return _u(e)?Ci(e):s1(e)}var c1=Object.prototype,f1=c1.hasOwnProperty,d1=dd(function(e,t){if(br(t)||_u(t)){ld(t,l1(t),e);return}for(var n in t)f1.call(t,n)&&ci(e,n,t[n])});const h1=d1;function m1(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var p1=Object.prototype,_1=p1.hasOwnProperty;function g1(e){if(!mu(e))return m1(e);var t=br(e),n=[];for(var u in e)u=="constructor"&&(t||!_1.call(e,u))||n.push(u);return n}function b1(e){return _u(e)?Ci(e,!0):g1(e)}var vi=Object.prototype,E1=vi.hasOwnProperty;di(function(e,t){e=Object(e);var n=-1,u=t.length,r=u>2?t[2]:void 0;for(r&&mi(t[0],t[1],r)&&(u=1);++n<u;)for(var o=t[n],a=b1(o),s=-1,l=a.length;++s<l;){var c=a[s],f=e[c];(f===void 0||gr(f,vi[c])&&!E1.call(e,c))&&(e[c]=o[c])}return e});const gu=({images:e=[],options:t})=>{t=h1(t,{inline:!1});const n=document.createElement("div"),u=i.h("div",{style:{display:"none"},class:["__viewer-token"]},e.map(s=>i.h("img",typeof s=="string"?{src:s}:s)));i.render(u,n);const r=n.firstElementChild;document.body.appendChild(r);const o=new dr(r,t),a=o.destroy.bind(o);return o.destroy=function(){return a(),i.render(null,n),o},o.show(),r.addEventListener("hidden",function(){this.viewer===o&&o.destroy()}),o};i.defineComponent({name:"Viewer",props:{images:{type:Array,default:()=>[]},rebuild:{type:Boolean,default:!1},trigger:{type:Object,default:null},options:{type:Object,default:()=>null}},emits:["inited"],setup(e,{emit:t}){let n;const u=i.ref();function r(){n=new dr(u.value,e.options),t("inited",n)}function o(){n&&n.destroy()}function a(){o(),r()}function s(){n?(n.update(),t("inited",n)):r()}function l(){e.rebuild?a():s()}const c={deep:!0};return i.watch(()=>e.images,()=>{i.nextTick(()=>{l()})},c),i.watch(()=>e.trigger,()=>{i.nextTick(()=>{l()})},c),i.watch(()=>e.options,()=>{i.nextTick(()=>{a()})},c),i.onMounted(()=>r()),i.onUnmounted(()=>o()),{root:u,createViewer:r,rebuildViewer:a,updateViewer:s,destroyViewer:o}}});const y1={},k1={width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function x1(e,t){return i.openBlock(),i.createElementBlock("svg",k1,t[0]||(t[0]=[i.createElementVNode("path",{d:"M10.3193 16.5L14.8193 12L10.3193 7.5",stroke:"currentColor","stroke-linecap":"round"},null,-1)]))}const wi=ke(y1,[["render",x1]]),C1=["src"],v1={class:"name"},w1={class:"sub"},N1={key:0},D1=["src"],T1=["src"],A1=ke({__name:"DishesCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,default:()=>({})},open:{type:Boolean,default:!1}},setup(e){const t=e,n=i.ref(t.open),u=i.ref(null),r=i.ref(0),o=i.ref([]);i.onMounted(async()=>{n.value&&(await p(),await s(),setTimeout(()=>{a()},200))});const a=i.inject("triggerScrollToEnd"),s=()=>new Promise(async x=>{await i.nextTick();const C=[];o.value.hasOwnProperty("craftUrl")&&o.value.craftUrl&&C.push(o.value.craftUrl),C.length?(await l(C),await i.nextTick(),r.value=f.value?u.value.scrollHeight:0,n.value&&(r.value+=26),n.value=!0):n.value=!1,x()}),l=x=>{const C=[];return x.forEach(D=>{const v=new Image,m=new Promise((b,E)=>{v.onload=()=>b(v),v.onerror=()=>E(new Error(`加载${D}失败`)),v.src=D});C.push(m)}),Promise.all(C)},c=i.computed(()=>`${t.defMsg.energy}${t.info.energy}kcal,${t.defMsg.protein}${t.info.protein}g,${t.defMsg.fat}${t.info.fat}g,${t.defMsg.carbonwater}${t.info.carbonwater}g`);i.computed(()=>{var C,D;return(((D=(C=t.info)==null?void 0:C.makeMaterialList)==null?void 0:D.map(v=>v.material+v.usage+"g"))||[]).join("、")});const f=i.computed(()=>t.info.hasOwnProperty("cid")&&t.info.cid),d=i.computed(()=>{let x="92px";return f.value&&(x=n.value?r.value+66+"px":"118px"),x}),h=x=>{gu({images:[x]})},_=async()=>{n.value?n.value=!1:(await p(),s())},p=async()=>{if(!(o.value.hasOwnProperty("makeCraftList")&&o.value.hasOwnProperty("makeMaterialList"))){const x=await uu("/api/cn.weis.api.Food/makeCraft",{method:"makeCraft",params:[{cid:t.info.cid}],token:localStorage.getItem("postToken")});x.errCode===0&&x.obj&&(o.value={...x.obj})}};return(x,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({dishes_box:!0,is_open:n.value}),style:i.normalizeStyle({height:d.value})},[i.createElementVNode("div",{class:"dishes_wrap",onClick:i.withModifiers(_,["stop"])},[i.createElementVNode("img",{class:"img",src:e.info.primaryImgUrl,alt:"img",onClick:C[0]||(C[0]=i.withModifiers(D=>h(e.info.primaryImgUrl),["stop"]))},null,8,C1),i.createElementVNode("div",null,[i.createElementVNode("div",v1,[i.createElementVNode("span",null,i.toDisplayString(e.info.skuname),1),C[2]||(C[2]=i.createElementVNode("span",null,"×1",-1))]),i.createElementVNode("div",w1,i.toDisplayString(c.value),1)])]),f.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"dishes_details",ref_key:"contentRef",ref:u},[i.withDirectives(i.createElementVNode("div",{class:"switch_open",onClick:i.withModifiers(_,["stop"])},[C[3]||(C[3]=i.createElementVNode("span",null,"查看菜谱详情",-1)),i.createVNode(wi,{class:"icon"})],512),[[i.vShow,!n.value]]),C[4]||(C[4]=i.createElementVNode("div",{class:"title"},"制作工艺",-1)),o.value.makeVideosUrl?(i.openBlock(),i.createElementBlock("div",N1,[i.createElementVNode("video",{src:o.value.makeVideosUrl,width:"100%",controls:"true"},null,8,D1)])):i.createCommentVNode("",!0),i.createElementVNode("img",{src:o.value.craftUrl,width:"100%",alt:"craft"},null,8,T1),i.createElementVNode("div",{class:"collapse_btn",onClick:C[1]||(C[1]=i.withModifiers(D=>n.value=!1,["stop"]))},"收起")],512)):i.createCommentVNode("",!0)],6))}},[["__scopeId","data-v-7da603ee"]]),I1={class:"dl_wrap"},S1={key:0},O1={key:0,class:"sep_line"},L1={class:"date"},F1={key:1,style:{padding:"15px 0"}},P1={class:"title"},M1={key:0,style:{"font-size":"10px","line-height":"16px",color:"#f16868"}},V1={key:1,class:"btn_group"},R1={key:2,class:"btn_group"},B1=ke({__name:"DishesList",props:{skuList:{type:Array,required:!0,default:()=>[]},isMini:{type:Boolean,default:!1},channel:{type:String,default:"web"},defMsg:{type:Object,default:()=>({})}},emits:["select"],setup(e,{emit:t}){const n=e,u=t;i.ref(!1);const r=i.ref(!1),o=(c,f)=>!1,a=c=>{let f=0;return((c==null?void 0:c.list)||[]).forEach(d=>{((d==null?void 0:d.getCategoryList)||[]).forEach(h=>{f+=h.energy||0})}),f},s=c=>n.skuList.slice(0,c).findIndex(f=>f.strDate===n.skuList[c].strDate)===-1,l=c=>{u("select",{type:c})};return(c,f)=>(i.openBlock(),i.createElementBlock("div",I1,[i.createElementVNode("div",{class:i.normalizeClass(["dl_list",{show_full:r.value}])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.skuList,(d,h)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:d.category},[s(h)?(i.openBlock(),i.createElementBlock("div",S1,[h>0?(i.openBlock(),i.createElementBlock("div",O1)):i.createCommentVNode("",!0),i.createElementVNode("div",L1,i.toDisplayString(d.strDate.slice(4,6))+"月"+i.toDisplayString(d.strDate.slice(6))+"日 ",1)])):i.createCommentVNode("",!0),d.list&&d.list.length?(i.openBlock(),i.createElementBlock("div",F1,[i.createElementVNode("p",P1,i.toDisplayString(d.categoryType)+" "+i.toDisplayString(a(d))+"kcal ",1),i.createElementVNode("div",null,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.list,_=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_.id},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.getCategoryList,(p,x)=>(i.openBlock(),i.createBlock(A1,{key:x,info:p,"def-msg":e.defMsg,open:o(p,d.category)},null,8,["info","def-msg","open"]))),128))],64))),128))])])):i.createCommentVNode("",!0)],64))),128))],2),i.createElementVNode("div",{class:i.normalizeClass(["dl_full",{show_full:r.value}]),onClick:f[0]||(f[0]=d=>r.value=!r.value)},i.toDisplayString(r.value?"收起菜谱":"点击查看完整食谱"),3),e.isMini?(i.openBlock(),i.createElementBlock("div",M1,f[5]||(f[5]=[i.createTextVNode(" 温馨提示:维小饭AI健康食谱为日常膳食调理方案,不能替代药物治疗或专业医疗建议。如有疾病,请及时就医并遵医嘱。"),i.createElementVNode("br",null,null,-1),i.createElementVNode("strong",null,"半价惊喜,下单即得!",-1)]))):i.createCommentVNode("",!0),e.isMini?(i.openBlock(),i.createElementBlock("div",V1,[i.createElementVNode("div",{class:"btn btn_1",onClick:f[1]||(f[1]=i.withModifiers(d=>l("personalForm"),["stop"]))},f[6]||(f[6]=[i.createElementVNode("span",{class:"name"},"私人定制个性食谱",-1)])),i.createElementVNode("div",{class:"btn btn_2",onClick:f[2]||(f[2]=i.withModifiers(d=>l("ship_order"),["stop"]))},f[7]||(f[7]=[i.createElementVNode("span",{class:"name"},"去订餐",-1)]))])):(i.openBlock(),i.createElementBlock("div",R1,[e.channel!=="hft"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"btn btn_1",onClick:f[3]||(f[3]=i.withModifiers(d=>l("ship_order"),["stop"]))},f[8]||(f[8]=[i.createElementVNode("span",{class:"name"},"配送下單",-1),i.createElementVNode("span",{class:"sub"},"(直送到府)",-1)]))):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"btn btn_2",onClick:f[4]||(f[4]=i.withModifiers(d=>l("pick_order"),["stop"]))},f[9]||(f[9]=[i.createElementVNode("span",{class:"name"},"自提下單",-1),i.createElementVNode("span",{class:"sub"},"(免運費)",-1)]))]))]))}},[["__scopeId","data-v-adcdb920"]]),$1={class:"card",style:{"margin-top":"15px"}},U1={class:"row"},z1={class:"content"},j1={class:"title"},H1={class:"row"},q1={class:"name"},W1={class:"content"},Y1={class:"row"},G1={class:"name"},X1={class:"content"},Z1={class:"row"},K1={class:"name"},J1={class:"content"},Q1={class:"row"},eh={class:"name"},th={class:"content"},nh={class:"btn_group"},uh=ke({__name:"PlanCard",props:{info:{type:Object,required:!0},defMsg:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n={"01":"早餐","02":"午餐","03":"晚餐","04":"加餐",carbohydrateTotal:"碳水化合物",proteinTotal:"蛋白質",fatTotal:"脂肪"},u=t,r=()=>{u("select",{})};return(o,a)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",$1,[i.createElementVNode("div",U1,[a[0]||(a[0]=i.createElementVNode("div",{class:"name"},"每日攝入能量",-1)),i.createElementVNode("div",z1,i.toDisplayString(e.info.totalIntake)+" kcal",1)])]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.info.planDetailList,s=>(i.openBlock(),i.createElementBlock("div",{key:o.category,class:"card"},[i.createElementVNode("div",j1,i.toDisplayString(n[s.category]),1),i.createElementVNode("div",H1,[i.createElementVNode("div",q1,i.toDisplayString(n[s.category])+"熱量",1),i.createElementVNode("div",W1,i.toDisplayString(s.totalKcal)+" kcal",1)]),a[1]||(a[1]=i.createElementVNode("div",{class:"sep"},null,-1)),i.createElementVNode("div",Y1,[i.createElementVNode("div",G1,i.toDisplayString(n.carbohydrateTotal),1),i.createElementVNode("div",X1,i.toDisplayString(s.carbohydrateTotal)+" g",1)]),i.createElementVNode("div",Z1,[i.createElementVNode("div",K1,i.toDisplayString(n.proteinTotal),1),i.createElementVNode("div",J1,i.toDisplayString(s.proteinTotal)+" g",1)]),i.createElementVNode("div",Q1,[i.createElementVNode("div",eh,i.toDisplayString(n.fatTotal),1),i.createElementVNode("div",th,i.toDisplayString(s.fatTotal)+" g",1)])]))),128)),i.createElementVNode("div",nh,[i.createElementVNode("div",{class:"btn btn_2",onClick:i.withModifiers(r,["stop"])},"用該方案配餐")])],64))}},[["__scopeId","data-v-b9dd25a1"]]),rh={},oh={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ah(e,t){return i.openBlock(),i.createElementBlock("svg",oh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M5.75335 4.13651C5.8677 3.70974 6.31858 3.36377 6.76041 3.36377C7.20223 3.36377 7.4677 3.70974 7.35335 4.13651L7.14629 4.90928L10.3463 4.90928L10.5533 4.13651C10.6677 3.70974 11.1186 3.36377 11.5604 3.36377C12.0022 3.36377 12.2677 3.70974 12.1533 4.13651L11.9463 4.90928H12.8282C13.2701 4.90928 13.5355 5.25525 13.4212 5.68202C13.3068 6.10879 12.8559 6.45476 12.4141 6.45476H11.5322L10.704 9.54561H11.5859C12.0277 9.54561 12.2932 9.89157 12.1788 10.3183C12.0645 10.7451 11.6136 11.0911 11.1718 11.0911H10.2899L10.0828 11.8639C9.96844 12.2907 9.51757 12.6367 9.07574 12.6367C8.63391 12.6367 8.36844 12.2907 8.4828 11.8639L8.68988 11.0911L5.48986 11.0911L5.28278 11.8639C5.16843 12.2907 4.71756 12.6367 4.27573 12.6367C3.8339 12.6367 3.56843 12.2907 3.68278 11.8639L3.88986 11.0911H3.17178C2.72995 11.0911 2.46448 10.7451 2.57884 10.3183C2.69319 9.89157 3.14407 9.54561 3.58589 9.54561H4.30397L4.67327 8.16737C4.78763 7.7406 5.2385 7.39463 5.68033 7.39463C6.12215 7.39463 6.38763 7.7406 6.27327 8.16737L5.90398 9.54561L9.10399 9.54561L9.93218 6.45476L4.41412 6.45476C3.97229 6.45476 3.70682 6.10879 3.82117 5.68202C3.93553 5.25524 4.3864 4.90928 4.82823 4.90928H5.54629L5.75335 4.13651Z",fill:"currentColor"},null,-1)]))}const ih=ke(rh,[["render",ah]]),sh={name:"pictureIcon"},lh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ch(e,t,n,u,r,o){return i.openBlock(),i.createElementBlock("svg",lh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M2.875 6C2.875 4.34315 4.21815 3 5.875 3H19.875C21.5319 3 22.875 4.34315 22.875 6V18C22.875 19.6569 21.5319 21 19.875 21H5.875C4.21815 21 2.875 19.6569 2.875 18V6ZM5.875 5C5.32272 5 4.875 5.44772 4.875 6V16.0852L10.475 11.8852C11.8972 10.8185 13.8528 10.8185 15.275 11.8852L20.875 16.0852V6C20.875 5.44772 20.4273 5 19.875 5H5.875ZM8.28442 10.0852C9.11285 10.0852 9.78442 9.41363 9.78442 8.58521C9.78442 7.75678 9.11285 7.08521 8.28442 7.08521C7.456 7.08521 6.78442 7.75678 6.78442 8.58521C6.78442 9.41363 7.456 10.0852 8.28442 10.0852Z",fill:"currentColor"},null,-1)]))}const fh=ke(sh,[["render",ch]]),dh={},hh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mh(e,t){return i.openBlock(),i.createElementBlock("svg",hh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M18.0849 10.6565C19.9734 8.76795 19.9734 5.70607 18.0849 3.81756C16.1964 1.92905 13.1345 1.92905 11.246 3.81756L5.05399 10.0096C2.55177 12.5118 2.55177 16.5687 5.05399 19.0709C7.55622 21.5732 11.6131 21.5732 14.1154 19.0709L20.2421 12.9442C20.6326 12.5537 20.6326 11.9205 20.2421 11.53C19.8516 11.1394 19.2184 11.1394 18.8279 11.53L12.7011 17.6567C10.98 19.3779 8.18938 19.3779 6.46821 17.6567C4.74703 15.9355 4.74703 13.145 6.4682 11.4238L12.6602 5.23178C13.7677 4.12431 15.5632 4.12431 16.6707 5.23178C17.7781 6.33924 17.7781 8.13478 16.6707 9.24224L10.5401 15.3729C10.0481 15.8648 9.25051 15.8648 8.75856 15.3729C8.26661 14.8809 8.26661 14.0833 8.75856 13.5913L13.9435 8.40645C14.334 8.01592 14.334 7.38276 13.9435 6.99223C13.5529 6.60171 12.9198 6.60171 12.5292 6.99223L7.34435 12.1771C6.07135 13.4501 6.07135 15.5141 7.34435 16.7871C8.61735 18.0601 10.6813 18.0601 11.9543 16.7871L18.0849 10.6565Z",fill:"currentColor"},null,-1)]))}const ph=ke(dh,[["render",mh]]),_h=["width","height"],gh=["stroke"],bh=["stroke","stroke-dasharray","stroke-dashoffset"],Ni={__name:"progressRing",props:{percent:{type:Number,default:75},size:{type:Number,default:48},color:{type:String,default:"#fff"},bgColor:{type:String,default:"#888"}},setup(e){const t=e,n=i.computed(()=>({l:2*Math.PI*45,p:2*Math.PI*45*(100-t.percent)/100}));return(u,r)=>(i.openBlock(),i.createElementBlock("svg",{width:e.size,height:e.size,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg"},[i.createElementVNode("circle",{cx:"50",cy:"50",r:"45",fill:"none",stroke:e.bgColor,"stroke-width":"8"},null,8,gh),i.createElementVNode("path",{id:"progressPath",d:`M 50 5\r
32
- a 45 45 0 1 1 0 90\r
33
- a 45 45 0 1 1 0 -90`,fill:"none",stroke:e.color,"stroke-width":"10","stroke-linecap":"round","stroke-dasharray":n.value.l,"stroke-dashoffset":n.value.p},null,8,bh)],8,_h))}},Eh={},yh={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function kh(e,t){return i.openBlock(),i.createElementBlock("svg",yh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M13.5 4.5C13.5 3.67157 12.8284 3 12 3C11.1716 3 10.5 3.67157 10.5 4.5L10.5 10.5H4.5C3.67157 10.5 3 11.1716 3 12C3 12.8284 3.67157 13.5 4.5 13.5H10.5L10.5 19.5C10.5 20.3284 11.1716 21 12 21C12.8284 21 13.5 20.3284 13.5 19.5V13.5H19.5C20.3284 13.5 21 12.8284 21 12C21 11.1716 20.3284 10.5 19.5 10.5H13.5V4.5Z",fill:"currentColor"},null,-1)]))}const xh=ke(Eh,[["render",kh]]),Ch={},vh={width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function wh(e,t){return i.openBlock(),i.createElementBlock("svg",vh,t[0]||(t[0]=[i.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",fill:"black","fill-opacity":"0.5"},null,-1),i.createElementVNode("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5",stroke:"currentColor"},null,-1),i.createElementVNode("path",{d:"M10.8284 6.58588C11.2189 6.19535 11.2189 5.56219 10.8284 5.17167C10.4379 4.78114 9.80471 4.78114 9.41419 5.17167L8 6.58586L6.58581 5.17167C6.19529 4.78114 5.56212 4.78114 5.1716 5.17167C4.78107 5.56219 4.78107 6.19535 5.1716 6.58588L6.58579 8.00007L5.17155 9.41431C4.78103 9.80483 4.78103 10.438 5.17155 10.8285C5.56207 11.219 6.19524 11.219 6.58576 10.8285L8 9.41428L9.41424 10.8285C9.80476 11.219 10.4379 11.219 10.8285 10.8285C11.219 10.438 11.219 9.80483 10.8285 9.41431L9.41421 8.00007L10.8284 6.58588Z",fill:"currentColor"},null,-1)]))}const Nh=ke(Ch,[["render",wh]]),Dh={},Th={width:"1em",height:"1em",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ah(e,t){return i.openBlock(),i.createElementBlock("svg",Th,t[0]||(t[0]=[i.createElementVNode("path",{d:"M21 7.64355C21 7.09127 21.4477 6.64355 22 6.64355C22.5523 6.64355 23 7.09127 23 7.64355V9.64355H25C25.5523 9.64355 26 10.0913 26 10.6436C26 11.1958 25.5523 11.6436 25 11.6436H23V13.6436C23 14.1958 22.5523 14.6436 22 14.6436C21.4477 14.6436 21 14.1958 21 13.6436V11.6436H19C18.4477 11.6436 18 11.1958 18 10.6436C18 10.0913 18.4477 9.64355 19 9.64355H21V7.64355ZM9 10.6436C9 10.0913 9.44772 9.64355 10 9.64355H16.164C16.7162 9.64355 17.164 9.19584 17.164 8.64355C17.164 8.09127 16.7162 7.64355 16.164 7.64355H10C8.34315 7.64355 7 8.9867 7 10.6436V22.8527C7 24.7723 9.0737 25.9757 10.7403 25.0233L15.035 22.5693C15.1861 22.4829 15.3571 22.4375 15.5311 22.4375H22C23.6569 22.4375 25 21.0944 25 19.4375V16.32C25 15.7677 24.5523 15.32 24 15.32C23.4477 15.32 23 15.7677 23 16.32V19.4375C23 19.9898 22.5523 20.4375 22 20.4375H15.5311C15.009 20.4375 14.496 20.5737 14.0427 20.8328L9.74807 23.2869C9.41474 23.4773 9 23.2366 9 22.8527V10.6436Z",fill:"currentColor"},null,-1)]))}const Di=ke(Dh,[["render",Ah]]),Ih={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"},Sh=["fill"],Oh=["fill"],Lh={__name:"sendLoadingIcon",props:{color:{type:String,default:"#000"},bg:{type:String,default:"#039938"}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",Ih,[i.createElementVNode("circle",{cx:"512",cy:"512",r:"512",fill:e.bg},null,8,Sh),i.createElementVNode("path",{fill:e.color,d:"M512.042667 213.333333v74.666667a224 224 0 1 1-195.626667 114.773333l-65.194667-36.394666A298.666667 298.666667 0 1 0 512.042667 213.333333z"},n[0]||(n[0]=[i.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",from:"0 512 512",to:"360 512 512",dur:"1.5s",repeatCount:"indefinite",fill:"freeze"},null,-1)]),8,Oh)]))}},Fh={class:"om_wrap"},Ph={class:"om_quick"},Mh=["onClick"],Vh={class:"om_operate_box"},Rh={class:"om_operate_wrap"},Bh={class:"file_list"},$h=["src"],Uh={key:2,class:"process"},zh={class:"om_operate"},jh=["placeholder"],Hh={class:"btn_group"},qh={class:"om_extra",style:{display:"none"}},Wh={class:"icon"},Yh={class:"text"},Gh={class:"om_ai_tips"},Xh="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",Zh=ke({__name:"OperateModule",props:{modelValue:{type:String,default:""},token:{type:String,required:!0},tagList:{type:Array,required:!0},newChat:{type:Boolean,default:!1},defMsg:{type:Object,required:!0},isReq:{type:String,default:"00"}},emits:["update:modelValue","send","tag","call"],setup(e,{emit:t}){const n=[{name:"相冊",icon:fh,type:"photo"},{name:"文件",icon:ph,type:"file"}],u=i.ref(null),r=i.ref(null),o=i.ref(null),a=i.ref(!1),s=i.ref([]),l=e,c=t,f=i.computed(()=>({headers:{Authorization:`Bearer ${l.token}`,"Content-Type":"multipart/form-data"}}));i.watch(()=>l.modelValue,()=>{A()});const d=i.computed(()=>{switch(l.isReq){case"01":return{bg:"#fff",color:"#ccc"};case"02":return{bg:"#666",color:"#CDEBD7"};case"03":return{bg:"#ccc",color:"#fff"};case"04":return{bg:"#E5F4EB",color:"#fff"}}}),h=i.computed({get:()=>l.modelValue,set:R=>{c("update:modelValue",R),A()}});i.onMounted(()=>{A()}),i.onUnmounted(()=>{u.value&&(u.value.style.height="auto")});const _=R=>{h.value=R.target.value.replace(/^\n+|\n+$/g,"")},p=R=>{R.type==="upload"?b():c("tag",{...R})},x=()=>{if(!h.value)return;if(s.value.length&&s.value.findIndex(Q=>Q.percent<100)>-1){c("call",{message:l.defMsg.uploadingTips,reason:"is_uploading",value:"toast",type:"call"});return}const R=[{content:h.value,text:h.value}];console.log("====== u file list =======",s.value),s.value.length&&(R.push({type:"object_string",content:s.value.map(Q=>({type:he(Q.file_type),name:Q.file.name,file_id:Q.data.id,file_url:Q.file_url}))}),a.value=!1),c("send",[...R]),y()},C=R=>{const Q=R.target.files[0],q=new FileReader;q.onload=()=>previewUrl.value=q.result,q.readAsDataURL(Q)},D=()=>{r.value&&r.value.click()},v=R=>{const Q=R.target.files[0];console.log("=== file ===",R),Q&&(s.value.push({file:Q,file_type:Q.type,file_url:URL.createObjectURL(Q),size:(Q.size/1024).toFixed(2),percent:0,data:{}}),console.log("=== 文件列表 ===",s.value),m(s.value.length-1))},m=async R=>{const Q=s.value[R].file;console.log("========",Q),h.value||(h.value=l.defMsg.fileText);const q=new FormData;q.append("file",Q);const ue=new XMLHttpRequest;ue.open("POST","https://api.coze.cn/v1/files/upload"),ue.setRequestHeader("Authorization",f.value.headers.Authorization),ue.upload.onprogress=Ue=>{if(Ue.lengthComputable){const M=Math.round(Ue.loaded/Ue.total*100);console.log(`======进度======:${M}%`),s.value[R].percent=M}},ue.onreadystatechange=function(){if(console.log("============",ue),ue.readyState===XMLHttpRequest.DONE)if(ue.status===200){console.log("上传成功:",ue.responseText);const Ue=JSON.parse(ue.response);s.value[R].data=Ue.data}else console.error("上传失败:",ue.status)},ue.send(q)},b=()=>{y(!0),a.value=!0},E=()=>{y(!0),a.value=!1},y=(R=!1)=>{if(R)for(let Q=s.value.length-1;Q>=0;Q-=1)w(Q);r.value&&(r.value.value=""),s.value=[]},w=R=>{URL.revokeObjectURL(s.value[R].file_url),s.value.splice(R,1),r.value&&(r.value.value="")},T=()=>{c("call",{type:"new_chat"})},A=()=>{i.nextTick(()=>{u.value&&(u.value.style.height="auto",u.value.style.height=Math.min(u.value.scrollHeight,72)+"px")})},B=()=>{i.nextTick(()=>{window.scrollTo({top:Math.round(.7*window.innerHeight+.5476*window.innerWidth-416.4),behavior:"smooth"})})},he=R=>{if(R.includes("image"))return"image";if(R.includes("application"))return"file";if(R.includes("audio"))return"audio"},U=()=>{};return(R,Q)=>(i.openBlock(),i.createElementBlock("div",Fh,[i.createElementVNode("div",Ph,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.tagList,q=>(i.openBlock(),i.createElementBlock("div",{class:"tag",key:q.value,onClick:i.withModifiers(ue=>p(q),["stop"])},[i.createVNode(ih,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(q.name),1)],8,Mh))),128))]),i.createElementVNode("div",Vh,[e.newChat?(i.openBlock(),i.createElementBlock("div",{key:0,class:"new_chat",onClick:i.withModifiers(T,["stop"])},[i.createVNode(Di)])):i.createCommentVNode("",!0),i.createElementVNode("div",Rh,[i.createElementVNode("div",{class:i.normalizeClass(["file_list_box",{hidden:!a.value}])},[i.createElementVNode("div",Bh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(q,ue)=>(i.openBlock(),i.createElementBlock("div",{key:ue,class:"file_card"},[q.file_type.toLocaleLowerCase().includes("pdf")?(i.openBlock(),i.createElementBlock("img",{key:0,class:"pdf",src:Xh,width:"100%",alt:"img"})):(i.openBlock(),i.createElementBlock("img",{key:1,class:"img",src:q.file_url,width:"100%",alt:"img"},null,8,$h)),q.percent<100?(i.openBlock(),i.createElementBlock("div",Uh,[i.createVNode(Ni,{percent:q.percent},null,8,["percent"])])):(i.openBlock(),i.createBlock(Nh,{key:3,class:"close",onClick:i.withModifiers(Ue=>w(ue),["stop"])},null,8,["onClick"]))]))),128)),s.value.length<4?(i.openBlock(),i.createElementBlock("div",{key:0,class:"file_add",onClick:i.withModifiers(D,["stop"])},[i.createVNode(xh)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"file_close",onClick:i.withModifiers(E,["stop"])},[i.createVNode(ka)])])],2),i.createElementVNode("div",zh,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":Q[0]||(Q[0]=q=>h.value=q),ref_key:"txtEle",ref:u,class:"input",rows:"1",placeholder:e.defMsg.placeholder,onInput:_,onKeyup:i.withKeys(x,["enter"]),onFocus:B,onBlur:U},null,40,jh),[[i.vModelText,h.value]]),i.createElementVNode("div",Hh,[i.createElementVNode("div",{class:"btn",onClick:i.withModifiers(x,["stop"])},[e.isReq==="00"?(i.openBlock(),i.createBlock(V0,{key:0,style:i.normalizeStyle({color:h.value?"#039938":"#ccc"})},null,8,["style"])):(i.openBlock(),i.createBlock(Lh,{key:1,bg:d.value.bg,color:d.value.color},null,8,["bg","color"]))])])])])]),i.createElementVNode("div",qh,[i.createElementVNode("input",{ref_key:"captureInput",ref:o,type:"file",accept:"image/*",capture:"environment",style:{display:"none"},onChange:C},null,544),i.createElementVNode("input",{ref_key:"uploadInput",ref:r,type:"file",accept:"image/*,application/pdf",style:{display:"none"},onChange:v},null,544),(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,q=>i.createElementVNode("div",{key:q.type,class:"card",onClick:i.withModifiers(D,["stop"])},[i.createElementVNode("div",Wh,[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(q.icon)))]),i.createElementVNode("div",Yh,i.toDisplayString(q.name),1)])),64)),i.createVNode(Ni,{percent:15})]),i.createElementVNode("div",Gh,i.toDisplayString(e.defMsg.aiTips),1)]))}},[["__scopeId","data-v-2044a301"]]),Kh={},Jh={viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"1em",height:"1em"};function Qh(e,t){return i.openBlock(),i.createElementBlock("svg",Jh,t[0]||(t[0]=[i.createElementVNode("path",{d:"M395.21518 513.604544l323.135538-312.373427c19.052938-18.416442 19.052938-48.273447 0-66.660212-19.053961-18.416442-49.910737-18.416442-68.964698 0L291.75176 480.290811c-19.052938 18.416442-19.052938 48.273447 0 66.660212l357.633237 345.688183c9.525957 9.207709 22.01234 13.796214 34.497699 13.796214 12.485359 0 24.971741-4.588505 34.466999-13.82896 19.052938-18.416442 19.052938-48.242747 0-66.660212L395.21518 513.604544z",fill:"currentColor"},null,-1)]))}const em=ke(Kh,[["render",Qh]]),tm={},nm={width:"1.5em",height:"1em",viewBox:"0 0 440 440",xmlns:"http://www.w3.org/2000/svg"};function um(e,t){return i.openBlock(),i.createElementBlock("svg",nm,t[0]||(t[0]=[i.createStaticVNode('<circle id="ballA" cx="220" cy="220" r="50" fill="rgba(0,0,0,0.8)" opacity="0.1"><animate attributeName="cx" values="220; 40; 220; 400; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="50; 80; 100; 80; 50" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="0.1; 0.6; 1; 0.6; 0.1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle><circle id="ballB" cx="220" cy="220" r="100" fill="rgba(0,0,0,0.8)" opacity="1"><animate attributeName="cx" values="220; 400; 220; 40; 220" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1; 0.25 0.1 0.25 1"></animate><animate attributeName="r" values="100; 80; 50; 80; 100" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1; 0.4 0.0 0.2 1"></animate><animate attributeName="opacity" values="1; 0.6; 0.1; 0.6; 1" dur="1.5s" repeatCount="indefinite" calcMode="spline" keySplines="0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4; 0.6 0.2 0.8 0.4"></animate></circle>',2)]))}const rm=ke(tm,[["render",um]]),om=["src","alt"],am="https://prodstatic.weis1606.cn/api/smartFood/icon/pdf_icon.png",im=ke({__name:"imgeList",props:{list:{type:Array,required:!0}},setup(e){const t=e,n=()=>{const r=t.list.filter(o=>o.type==="image"&&o.file_url);r.length&&gu({images:r.map(o=>o.file_url)})},u=({type:r,name:o,file_url:a})=>{console.log(t.list);let s=a;return r==="file"&&o.toLowerCase().endsWith("pdf")&&(s=am),s};return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["img_wrap",e.list.length>1?"grid_2":"grid_1"])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.list,a=>(i.openBlock(),i.createElementBlock("img",{key:a.file_id,class:"img",width:"100%",src:u(a),alt:a.name,onClick:i.withModifiers(n,["stop"])},null,8,om))),128))],2))}},[["__scopeId","data-v-da7f1fd0"]]),sm={},lm={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function cm(e,t){return i.openBlock(),i.createElementBlock("svg",lm,t[0]||(t[0]=[i.createElementVNode("path",{d:"M18.3752 6.19542C18.3663 5.84188 18.0971 5.61907 17.7113 5.62719C17.3249 5.63532 17.1259 5.87105 17.0624 6.22473C17.0295 6.40814 17.0401 6.60002 17.0382 6.78818C17.0349 7.1092 17.0373 7.43028 17.0373 7.75135C16.9871 7.77411 16.9369 7.79688 16.8867 7.81966C16.7181 7.65766 16.5524 7.4926 16.3805 7.33415C14.8317 5.90621 12.9939 5.37461 10.9359 5.69056C8.03017 6.13662 5.87726 8.55583 5.62463 11.5758C5.38764 14.4087 7.21523 17.1459 9.95849 18.0667C12.7336 18.9982 15.8214 17.914 17.3822 15.4574C17.4827 15.2992 17.5871 15.1369 17.6484 14.962C17.7675 14.6224 17.7077 14.3062 17.3722 14.1247C17.049 13.9499 16.7426 14.0201 16.5131 14.3168C16.3983 14.4652 16.3111 14.6344 16.204 14.7891C15.2363 16.1865 13.907 16.9479 12.206 17.0308C9.92842 17.1419 7.84057 15.6645 7.17679 13.487C6.49124 11.238 7.43946 8.81484 9.46764 7.6327C11.4392 6.48354 13.9702 6.81332 15.5656 8.43366C15.6825 8.55231 15.7612 8.70851 15.9506 8.98094C15.3277 8.98094 14.8482 8.95558 14.3726 8.98836C13.9335 9.01865 13.7009 9.27998 13.7045 9.64685C13.708 10.0041 13.9569 10.2996 14.3795 10.31C15.4824 10.3371 16.5866 10.3273 17.6901 10.3155C18.0536 10.3117 18.3546 10.1036 18.3656 9.74431C18.4019 8.56213 18.4048 7.37778 18.3752 6.19542Z",fill:"currentColor"},[i.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",from:"0 12 12",to:"360 12 12",dur:"1.5s",repeatCount:"indefinite"})],-1)]))}const fm=ke(sm,[["render",cm]]),dm={},hm={width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mm(e,t){return i.openBlock(),i.createElementBlock("svg",hm,t[0]||(t[0]=[i.createElementVNode("path",{d:"M3.78271 12C3.78271 13.0792 3.99526 14.1477 4.40822 15.1447C4.82118 16.1416 5.42646 17.0475 6.18951 17.8106C6.95256 18.5736 7.85843 19.1789 8.8554 19.5919C9.85238 20.0048 10.9209 20.2174 12 20.2174C13.0792 20.2174 14.1477 20.0048 15.1447 19.5919C16.1416 19.1789 17.0475 18.5736 17.8106 17.8106C18.5736 17.0475 19.1789 16.1416 19.5919 15.1447C20.0048 14.1477 20.2174 13.0792 20.2174 12C20.2174 10.9209 20.0048 9.85238 19.5919 8.8554C19.1789 7.85843 18.5736 6.95256 17.8106 6.18951C17.0475 5.42646 16.1416 4.82118 15.1447 4.40822C14.1477 3.99526 13.0792 3.78271 12 3.78271C10.9209 3.78271 9.85238 3.99526 8.8554 4.40822C7.85843 4.82118 6.95256 5.42646 6.18951 6.18951C5.42646 6.95256 4.82118 7.85843 4.40822 8.8554C3.99526 9.85238 3.78271 10.9209 3.78271 12Z",fill:"currentColor"},null,-1),i.createElementVNode("path",{d:"M11.0677 14.4192L8.08502 11.4365C7.87938 11.2308 7.54542 11.2308 7.33978 11.4365C7.13414 11.6421 7.13414 11.9761 7.33978 12.1817L10.3225 15.1644C10.5281 15.3701 10.8621 15.3701 11.0677 15.1644C11.2751 14.9605 11.2751 14.6266 11.0677 14.4192Z",fill:"#fff"},null,-1),i.createElementVNode("path",{d:"M16.6693 8.84027C16.4636 8.63462 16.1297 8.63462 15.924 8.84027L10.456 14.31C10.2503 14.5157 10.2503 14.8496 10.456 15.0553C10.6616 15.2609 10.9956 15.2609 11.2012 15.0553L16.6693 9.58727C16.8767 9.37986 16.8767 9.04591 16.6693 8.84027Z",fill:"#fff"},null,-1)]))}const pm=ke(dm,[["render",mm]]),_m={class:"text"},gm=["onClick"],bm=ke({__name:"assistantReplay",props:{content:{type:String,default:""}},setup(e){const t=e,n=i.ref([]),u=i.computed(()=>{const o=/\[([^\]]+)]\((https?:\/\/[^)]+)\)/gi,a=[...t.content.matchAll(o)];let s=t.content,l=0;const c=[];return a.length?(a.forEach((f,d)=>{c.push({type:"text",content:f.input.slice(l,f.index).replace(o,"")}),c.push({type:"link",string:f[0],...JSON.parse(f[0].replace(o,'{"content":"[$1]","url":"$2"}'))}),s=f.input.slice(f.index).replace(f[0],""),l=f.index}),s.length&&c.push({type:"text",content:s})):c.push({type:"text",content:s}),c}),r=({url:o})=>{n.value=[o],gu({images:n.value})};return(o,a)=>(i.openBlock(),i.createElementBlock("p",_m,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(s,l)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:l},[s.type==="text"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createTextVNode(i.toDisplayString(s.content),1)],64)):i.createCommentVNode("",!0),s.type==="link"?(i.openBlock(),i.createElementBlock("a",{key:1,class:"link",onClick:i.withModifiers(c=>r(s),["stop"])},i.toDisplayString(s.content),9,gm)):i.createCommentVNode("",!0)],64))),128))]))}},[["__scopeId","data-v-9911ed82"]]),Em=e=>{gu({images:e})},ym={class:"name"},km={class:"address"},Ti="https://prodstatic.weis1606.cn/api/smartFood/images/logo_img.png",xm=ke({__name:"StoreCard",props:{info:{type:Object,required:!0}},emits:["select"],setup(e,{emit:t}){const n=e,u=t,r=()=>{u("select",{type:"chat",content:n.info.hpName,text:n.info.hpName})};return(o,a)=>(i.openBlock(),i.createElementBlock("div",{class:"sc_wrap",onClick:i.withModifiers(r,["stop"])},[i.createElementVNode("div",{class:"img",style:i.normalizeStyle({background:`url(${e.info.signUrl||Ti}?x-oss-process=image/resize,w_144) no-repeat center`,backgroundSize:"cover"}),onClick:a[0]||(a[0]=i.withModifiers(s=>i.unref(Em)([e.info.signUrl||Ti]),["stop"]))},null,4),i.createElementVNode("div",null,[i.createElementVNode("div",ym,i.toDisplayString(e.info.hpName),1),i.createElementVNode("div",km,i.toDisplayString(e.info.address),1)])]))}},[["__scopeId","data-v-fd7bbf0d"]]),Cm={__name:"StoreList",props:{list:{type:Array,required:!0}},emits:["select"],setup(e,{emit:t}){const n=t,u=r=>{n("select",{...r})};return(r,o)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[o[0]||(o[0]=i.createElementVNode("div",null,"请选择一个门店",-1)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.list,a=>(i.openBlock(),i.createBlock(xm,{key:a.hpName,info:a,onSelect:u},null,8,["info"]))),128))],64))}},Ai={};function vm(e){let t=Ai[e];if(t)return t;t=Ai[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function dn(e,t){typeof t!="string"&&(t=dn.defaultChars);const n=vm(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let r="";for(let o=0,a=u.length;o<a;o+=3){const s=parseInt(u.slice(o+1,o+3),16);if(s<128){r+=n[s];continue}if((s&224)===192&&o+3<a){const l=parseInt(u.slice(o+4,o+6),16);if((l&192)===128){const c=s<<6&1984|l&63;c<128?r+="��":r+=String.fromCharCode(c),o+=3;continue}}if((s&240)===224&&o+6<a){const l=parseInt(u.slice(o+4,o+6),16),c=parseInt(u.slice(o+7,o+9),16);if((l&192)===128&&(c&192)===128){const f=s<<12&61440|l<<6&4032|c&63;f<2048||f>=55296&&f<=57343?r+="���":r+=String.fromCharCode(f),o+=6;continue}}if((s&248)===240&&o+9<a){const l=parseInt(u.slice(o+4,o+6),16),c=parseInt(u.slice(o+7,o+9),16),f=parseInt(u.slice(o+10,o+12),16);if((l&192)===128&&(c&192)===128&&(f&192)===128){let d=s<<18&1835008|l<<12&258048|c<<6&4032|f&63;d<65536||d>1114111?r+="����":(d-=65536,r+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}r+="�"}return r})}dn.defaultChars=";/?:@&=+$,#",dn.componentChars="";const Ii={};function wm(e){let t=Ii[e];if(t)return t;t=Ii[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function Fn(e,t,n){typeof t!="string"&&(n=t,t=Fn.defaultChars),typeof n>"u"&&(n=!0);const u=wm(t);let r="";for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);if(n&&s===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){r+=e.slice(o,o+3),o+=2;continue}if(s<128){r+=u[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){r+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[o])}return r}Fn.defaultChars=";/?:@&=+$,-_.!~*'()#",Fn.componentChars="-_.!~*'()";function yr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function bu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Nm=/^([a-z0-9.+-]+:)/i,Dm=/:[0-9]*$/,Tm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Am=["<",">",'"',"`"," ","\r",`
34
- `," "],Im=["{","}","|","\\","^","`"].concat(Am),Sm=["'"].concat(Im),Si=["%","/","?",";","#"].concat(Sm),Oi=["/","?","#"],Om=255,Li=/^[+a-z0-9A-Z_-]{0,63}$/,Lm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Fi={javascript:!0,"javascript:":!0},Pi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function kr(e,t){if(e&&e instanceof bu)return e;const n=new bu;return n.parse(e,t),n}bu.prototype.parse=function(e,t){let n,u,r,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const c=Tm.exec(o);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=Nm.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=o.substr(0,2)==="//",r&&!(a&&Fi[a])&&(o=o.substr(2),this.slashes=!0)),!Fi[a]&&(r||a&&!Pi[a])){let c=-1;for(let p=0;p<Oi.length;p++)u=o.indexOf(Oi[p]),u!==-1&&(c===-1||u<c)&&(c=u);let f,d;c===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",c),d!==-1&&(f=o.slice(0,d),o=o.slice(d+1),this.auth=f),c=-1;for(let p=0;p<Si.length;p++)u=o.indexOf(Si[p]),u!==-1&&(c===-1||u<c)&&(c=u);c===-1&&(c=o.length),o[c-1]===":"&&c--;const h=o.slice(0,c);o=o.slice(c),this.parseHost(h),this.hostname=this.hostname||"";const _=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!_){const p=this.hostname.split(/\./);for(let x=0,C=p.length;x<C;x++){const D=p[x];if(D&&!D.match(Li)){let v="";for(let m=0,b=D.length;m<b;m++)D.charCodeAt(m)>127?v+="x":v+=D[m];if(!v.match(Li)){const m=p.slice(0,x),b=p.slice(x+1),E=D.match(Lm);E&&(m.push(E[1]),b.unshift(E[2])),b.length&&(o=b.join(".")+o),this.hostname=m.join(".");break}}}}this.hostname.length>Om&&(this.hostname=""),_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");s!==-1&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Pi[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},bu.prototype.parseHost=function(e){let t=Dm.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const Fm=Object.freeze(Object.defineProperty({__proto__:null,decode:dn,encode:Fn,format:yr,parse:kr},Symbol.toStringTag,{value:"Module"})),Mi=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Vi=/[\0-\x1F\x7F-\x9F]/,Pm=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,xr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Ri=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Bi=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Mm=Object.freeze(Object.defineProperty({__proto__:null,Any:Mi,Cc:Vi,Cf:Pm,P:xr,S:Ri,Z:Bi},Symbol.toStringTag,{value:"Module"})),Vm=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Rm=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Cr;const Bm=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),$m=(Cr=String.fromCodePoint)!==null&&Cr!==void 0?Cr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Um(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Bm.get(e))!==null&&t!==void 0?t:e}var Me;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Me||(Me={}));const zm=32;var Ot;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ot||(Ot={}));function vr(e){return e>=Me.ZERO&&e<=Me.NINE}function jm(e){return e>=Me.UPPER_A&&e<=Me.UPPER_F||e>=Me.LOWER_A&&e<=Me.LOWER_F}function Hm(e){return e>=Me.UPPER_A&&e<=Me.UPPER_Z||e>=Me.LOWER_A&&e<=Me.LOWER_Z||vr(e)}function qm(e){return e===Me.EQUALS||Hm(e)}var Ve;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ve||(Ve={}));var Lt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Lt||(Lt={}));class Wm{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=Ve.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Lt.Strict}startEntity(t){this.decodeMode=t,this.state=Ve.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ve.EntityStart:return t.charCodeAt(n)===Me.NUM?(this.state=Ve.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ve.NamedEntity,this.stateNamedEntity(t,n));case Ve.NumericStart:return this.stateNumericStart(t,n);case Ve.NumericDecimal:return this.stateNumericDecimal(t,n);case Ve.NumericHex:return this.stateNumericHex(t,n);case Ve.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|zm)===Me.LOWER_X?(this.state=Ve.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ve.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,r){if(n!==u){const o=u-n;this.result=this.result*Math.pow(r,o)+parseInt(t.substr(n,o),r),this.consumed+=o}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(vr(r)||jm(r))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const r=t.charCodeAt(n);if(vr(r))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Me.SEMI)this.consumed+=1;else if(this.decodeMode===Lt.Strict)return 0;return this.emitCodePoint(Um(this.result),this.consumed),this.errors&&(t!==Me.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let r=u[this.treeIndex],o=(r&Ot.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=Ym(u,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===Lt.Attribute&&(o===0||qm(a))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],o=(r&Ot.VALUE_LENGTH)>>14,o!==0){if(a===Me.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Lt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,r=(u[n]&Ot.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~Ot.VALUE_LENGTH:r[t+1],u),n===3&&this.emitCodePoint(r[t+2],u),u}end(){var t;switch(this.state){case Ve.NamedEntity:return this.result!==0&&(this.decodeMode!==Lt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ve.NumericDecimal:return this.emitNumericEntity(0,2);case Ve.NumericHex:return this.emitNumericEntity(0,3);case Ve.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ve.EntityStart:return 0}}}function $i(e){let t="";const n=new Wm(e,u=>t+=$m(u));return function(r,o){let a=0,s=0;for(;(s=r.indexOf("&",s))>=0;){t+=r.slice(a,s),n.startEntity(o);const c=n.write(r,s+1);if(c<0){a=s+n.end();break}a=s+c,s=c===0?a+1:a}const l=t+r.slice(a);return t="",l}}function Ym(e,t,n,u){const r=(t&Ot.BRANCH_LENGTH)>>7,o=t&Ot.JUMP_TABLE;if(r===0)return o!==0&&u===o?n:-1;if(o){const l=u-o;return l<0||l>=r?-1:e[n+l]-1}let a=n,s=a+r-1;for(;a<=s;){const l=a+s>>>1,c=e[l];if(c<u)a=l+1;else if(c>u)s=l-1;else return e[l+r]}return-1}const Gm=$i(Vm);$i(Rm);function Ui(e,t=Lt.Legacy){return Gm(e,t)}function Xm(e){return Object.prototype.toString.call(e)}function wr(e){return Xm(e)==="[object String]"}const Zm=Object.prototype.hasOwnProperty;function Km(e,t){return Zm.call(e,t)}function Eu(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function zi(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Nr(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function yu(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const ji=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Jm=/&([a-z#][a-z0-9]{1,31});/gi,Qm=new RegExp(ji.source+"|"+Jm.source,"gi"),e2=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function t2(e,t){if(t.charCodeAt(0)===35&&e2.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Nr(u)?yu(u):e}const n=Ui(e);return n!==e?n:e}function n2(e){return e.indexOf("\\")<0?e:e.replace(ji,"$1")}function hn(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Qm,function(t,n,u){return n||t2(t,u)})}const u2=/[&<>"]/,r2=/[&<>"]/g,o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function a2(e){return o2[e]}function Ft(e){return u2.test(e)?e.replace(r2,a2):e}const i2=/[.?*+^$[\]\\(){}|-]/g;function s2(e){return e.replace(i2,"\\$&")}function ye(e){switch(e){case 9:case 32:return!0}return!1}function Pn(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Mn(e){return xr.test(e)||Ri.test(e)}function Vn(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function ku(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const l2=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:zi,assign:Eu,escapeHtml:Ft,escapeRE:s2,fromCodePoint:yu,has:Km,isMdAsciiPunct:Vn,isPunctChar:Mn,isSpace:ye,isString:wr,isValidEntityCode:Nr,isWhiteSpace:Pn,lib:{mdurl:Fm,ucmicro:Mm},normalizeReference:ku,unescapeAll:hn,unescapeMd:n2},Symbol.toStringTag,{value:"Module"}));function c2(e,t,n){let u,r,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),o===93&&(u--,u===0)){r=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)u++;else if(n)return e.pos=l,-1}}let c=-1;return r&&(c=e.pos),e.pos=l,c}function f2(e,t,n){let u,r=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(r)===60){for(r++;r<n;){if(u=e.charCodeAt(r),u===10||u===60)return o;if(u===62)return o.pos=r+1,o.str=hn(e.slice(t+1,r)),o.ok=!0,o;if(u===92&&r+1<n){r+=2;continue}r++}return o}let a=0;for(;r<n&&(u=e.charCodeAt(r),!(u===32||u<32||u===127));){if(u===92&&r+1<n){if(e.charCodeAt(r+1)===32)break;r+=2;continue}if(u===40&&(a++,a>32))return o;if(u===41){if(a===0)break;a--}r++}return t===r||a!==0||(o.str=hn(e.slice(t,r)),o.pos=r,o.ok=!0),o}function d2(e,t,n,u){let r,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)a.str=u.str,a.marker=u.marker;else{if(o>=n)return a;let s=e.charCodeAt(o);if(s!==34&&s!==39&&s!==40)return a;t++,o++,s===40&&(s=41),a.marker=s}for(;o<n;){if(r=e.charCodeAt(o),r===a.marker)return a.pos=o+1,a.str+=hn(e.slice(t,o)),a.ok=!0,a;if(r===40&&a.marker===41)return a;r===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=hn(e.slice(t,o)),a}const h2=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:f2,parseLinkLabel:c2,parseLinkTitle:d2},Symbol.toStringTag,{value:"Module"})),_t={};_t.code_inline=function(e,t,n,u,r){const o=e[t];return"<code"+r.renderAttrs(o)+">"+Ft(o.content)+"</code>"},_t.code_block=function(e,t,n,u,r){const o=e[t];return"<pre"+r.renderAttrs(o)+"><code>"+Ft(e[t].content)+`</code></pre>
35
- `},_t.fence=function(e,t,n,u,r){const o=e[t],a=o.info?hn(o.info).trim():"";let s="",l="";if(a){const f=a.split(/(\s+)/g);s=f[0],l=f.slice(2).join("")}let c;if(n.highlight?c=n.highlight(o.content,s,l)||Ft(o.content):c=Ft(o.content),c.indexOf("<pre")===0)return c+`
36
- `;if(a){const f=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];f<0?d.push(["class",n.langPrefix+s]):(d[f]=d[f].slice(),d[f][1]+=" "+n.langPrefix+s);const h={attrs:d};return`<pre><code${r.renderAttrs(h)}>${c}</code></pre>
37
- `}return`<pre><code${r.renderAttrs(o)}>${c}</code></pre>
38
- `},_t.image=function(e,t,n,u,r){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=r.renderInlineAsText(o.children,n,u),r.renderToken(e,t,n)},_t.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
39
- `:`<br>
40
- `},_t.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
41
- `:`<br>
42
- `:`
43
- `},_t.text=function(e,t){return Ft(e[t].content)},_t.html_block=function(e,t){return e[t].content},_t.html_inline=function(e,t){return e[t].content};function mn(){this.rules=Eu({},_t)}mn.prototype.renderAttrs=function(t){let n,u,r;if(!t.attrs)return"";for(r="",n=0,u=t.attrs.length;n<u;n++)r+=" "+Ft(t.attrs[n][0])+'="'+Ft(t.attrs[n][1])+'"';return r},mn.prototype.renderToken=function(t,n,u){const r=t[n];let o="";if(r.hidden)return"";r.block&&r.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
44
- `),o+=(r.nesting===-1?"</":"<")+r.tag,o+=this.renderAttrs(r),r.nesting===0&&u.xhtmlOut&&(o+=" /");let a=!1;if(r.block&&(a=!0,r.nesting===1&&n+1<t.length)){const s=t[n+1];(s.type==="inline"||s.hidden||s.nesting===-1&&s.tag===r.tag)&&(a=!1)}return o+=a?`>
45
- `:">",o},mn.prototype.renderInline=function(e,t,n){let u="";const r=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;typeof r[s]<"u"?u+=r[s](e,o,t,n,this):u+=this.renderToken(e,o,t)}return u},mn.prototype.renderInlineAsText=function(e,t,n){let u="";for(let r=0,o=e.length;r<o;r++)switch(e[r].type){case"text":u+=e[r].content;break;case"image":u+=this.renderInlineAsText(e[r].children,t,n);break;case"html_inline":case"html_block":u+=e[r].content;break;case"softbreak":case"hardbreak":u+=`
46
- `;break}return u},mn.prototype.render=function(e,t,n){let u="";const r=this.rules;for(let o=0,a=e.length;o<a;o++){const s=e[o].type;s==="inline"?u+=this.renderInline(e[o].children,t,n):typeof r[s]<"u"?u+=r[s](e,o,t,n,this):u+=this.renderToken(e,o,t,n)}return u};function Ge(){this.__rules__=[],this.__cache__=null}Ge.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Ge.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})},Ge.prototype.at=function(e,t,n){const u=this.__find__(e),r=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=r.alt||[],this.__cache__=null},Ge.prototype.before=function(e,t,n,u){const r=this.__find__(e),o=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Ge.prototype.after=function(e,t,n,u){const r=this.__find__(e),o=u||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Ge.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null},Ge.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!0,n.push(u)},this),this.__cache__=null,n},Ge.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},Ge.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const r=this.__find__(u);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[r].enabled=!1,n.push(u)},this),this.__cache__=null,n},Ge.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function ft(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ft.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,r=n.length;u<r;u++)if(n[u][0]===t)return u;return-1},ft.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},ft.prototype.attrSet=function(t,n){const u=this.attrIndex(t),r=[t,n];u<0?this.attrPush(r):this.attrs[u]=r},ft.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u},ft.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Hi(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Hi.prototype.Token=ft;const m2=/\r\n?|\n/g,p2=/\0/g;function _2(e){let t;t=e.src.replace(m2,`
47
- `),t=t.replace(p2,"�"),e.src=t}function g2(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function b2(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const r=t[n];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function E2(e){return/^<a[>\s]/i.test(e)}function y2(e){return/^<\/a\s*>/i.test(e)}function k2(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let a=r.length-1;a>=0;a--){const s=r[a];if(s.type==="link_close"){for(a--;r[a].level!==s.level&&r[a].type!=="link_open";)a--;continue}if(s.type==="html_inline"&&(E2(s.content)&&o>0&&o--,y2(s.content)&&o++),!(o>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let c=e.md.linkify.match(l);const f=[];let d=s.level,h=0;c.length>0&&c[0].index===0&&a>0&&r[a-1].type==="text_special"&&(c=c.slice(1));for(let _=0;_<c.length;_++){const p=c[_].url,x=e.md.normalizeLink(p);if(!e.md.validateLink(x))continue;let C=c[_].text;c[_].schema?c[_].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,"");const D=c[_].index;if(D>h){const E=new e.Token("text","",0);E.content=l.slice(h,D),E.level=d,f.push(E)}const v=new e.Token("link_open","a",1);v.attrs=[["href",x]],v.level=d++,v.markup="linkify",v.info="auto",f.push(v);const m=new e.Token("text","",0);m.content=C,m.level=d,f.push(m);const b=new e.Token("link_close","a",-1);b.level=--d,b.markup="linkify",b.info="auto",f.push(b),h=c[_].lastIndex}if(h<l.length){const _=new e.Token("text","",0);_.content=l.slice(h),_.level=d,f.push(_)}t[n].children=r=zi(r,a,f)}}}}const qi=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,x2=/\((c|tm|r)\)/i,C2=/\((c|tm|r)\)/ig,v2={c:"©",r:"®",tm:"™"};function w2(e,t){return v2[t.toLowerCase()]}function N2(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(C2,w2)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function D2(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&qi.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function T2(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(x2.test(e.tokens[t].content)&&N2(e.tokens[t].children),qi.test(e.tokens[t].content)&&D2(e.tokens[t].children))}const A2=/['"]/,Wi=/['"]/g,Yi="’";function xu(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function I2(e,t){let n;const u=[];for(let r=0;r<e.length;r++){const o=e[r],a=e[r].level;for(n=u.length-1;n>=0&&!(u[n].level<=a);n--);if(u.length=n+1,o.type!=="text")continue;let s=o.content,l=0,c=s.length;e:for(;l<c;){Wi.lastIndex=l;const f=Wi.exec(s);if(!f)break;let d=!0,h=!0;l=f.index+1;const _=f[0]==="'";let p=32;if(f.index-1>=0)p=s.charCodeAt(f.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let x=32;if(l<c)x=s.charCodeAt(l);else for(n=r+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){x=e[n].content.charCodeAt(0);break}const C=Vn(p)||Mn(String.fromCharCode(p)),D=Vn(x)||Mn(String.fromCharCode(x)),v=Pn(p),m=Pn(x);if(m?d=!1:D&&(v||C||(d=!1)),v?h=!1:C&&(m||D||(h=!1)),x===34&&f[0]==='"'&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=C,h=D),!d&&!h){_&&(o.content=xu(o.content,f.index,Yi));continue}if(h)for(n=u.length-1;n>=0;n--){let b=u[n];if(u[n].level<a)break;if(b.single===_&&u[n].level===a){b=u[n];let E,y;_?(E=t.md.options.quotes[2],y=t.md.options.quotes[3]):(E=t.md.options.quotes[0],y=t.md.options.quotes[1]),o.content=xu(o.content,f.index,y),e[b.token].content=xu(e[b.token].content,b.pos,E),l+=y.length-1,b.token===r&&(l+=E.length-1),s=o.content,c=s.length,u.length=n;continue e}}d?u.push({token:r,pos:f.index,single:_,level:a}):h&&_&&(o.content=xu(o.content,f.index,Yi))}}}function S2(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!A2.test(e.tokens[t].content)||I2(e.tokens[t].children,e)}function O2(e){let t,n;const u=e.tokens,r=u.length;for(let o=0;o<r;o++){if(u[o].type!=="inline")continue;const a=u[o].children,s=a.length;for(t=0;t<s;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<s;t++)a[t].type==="text"&&t+1<s&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const Dr=[["normalize",_2],["block",g2],["inline",b2],["linkify",k2],["replacements",T2],["smartquotes",S2],["text_join",O2]];function Tr(){this.ruler=new Ge;for(let e=0;e<Dr.length;e++)this.ruler.push(Dr[e][0],Dr[e][1])}Tr.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)},Tr.prototype.State=Hi;function gt(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const r=this.src;for(let o=0,a=0,s=0,l=0,c=r.length,f=!1;a<c;a++){const d=r.charCodeAt(a);if(!f)if(ye(d)){s++,d===9?l+=4-l%4:l++;continue}else f=!0;(d===10||a===c-1)&&(d!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),f=!1,s=0,l=0,o=a+1)}this.bMarks.push(r.length),this.eMarks.push(r.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}gt.prototype.push=function(e,t,n){const u=new ft(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u},gt.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},gt.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},gt.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!ye(u))break}return t},gt.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!ye(this.src.charCodeAt(--t)))return t+1;return t},gt.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t},gt.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t},gt.prototype.getLines=function(t,n,u,r){if(t>=n)return"";const o=new Array(n-t);for(let a=0,s=t;s<n;s++,a++){let l=0;const c=this.bMarks[s];let f=c,d;for(s+1<n||r?d=this.eMarks[s]+1:d=this.eMarks[s];f<d&&l<u;){const h=this.src.charCodeAt(f);if(ye(h))h===9?l+=4-(l+this.bsCount[s])%4:l++;else if(f-c<this.tShift[s])l++;else break;f++}l>u?o[a]=new Array(l-u+1).join(" ")+this.src.slice(f,d):o[a]=this.src.slice(f,d)}return o.join("")},gt.prototype.Token=ft;const L2=65536;function Ar(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Gi(e){const t=[],n=e.length;let u=0,r=e.charCodeAt(u),o=!1,a=0,s="";for(;u<n;)r===124&&(o?(s+=e.substring(a,u-1),a=u):(t.push(s+e.substring(a,u)),s="",a=u+1)),o=r===92,u++,r=e.charCodeAt(u);return t.push(s+e.substring(a)),t}function F2(e,t,n,u){if(t+2>n)return!1;let r=t+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let o=e.bMarks[r]+e.tShift[r];if(o>=e.eMarks[r])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[r])return!1;const s=e.src.charCodeAt(o++);if(s!==124&&s!==45&&s!==58&&!ye(s)||a===45&&ye(s))return!1;for(;o<e.eMarks[r];){const b=e.src.charCodeAt(o);if(b!==124&&b!==45&&b!==58&&!ye(b))return!1;o++}let l=Ar(e,t+1),c=l.split("|");const f=[];for(let b=0;b<c.length;b++){const E=c[b].trim();if(!E){if(b===0||b===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?f.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=Ar(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;c=Gi(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==f.length)return!1;if(u)return!0;const h=e.parentType;e.parentType="table";const _=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),x=[t,0];p.map=x;const C=e.push("thead_open","thead",1);C.map=[t,t+1];const D=e.push("tr_open","tr",1);D.map=[t,t+1];for(let b=0;b<c.length;b++){const E=e.push("th_open","th",1);f[b]&&(E.attrs=[["style","text-align:"+f[b]]]);const y=e.push("inline","",0);y.content=c[b].trim(),y.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let v,m=0;for(r=t+2;r<n&&!(e.sCount[r]<e.blkIndent);r++){let b=!1;for(let y=0,w=_.length;y<w;y++)if(_[y](e,r,n,!0)){b=!0;break}if(b||(l=Ar(e,r).trim(),!l)||e.sCount[r]-e.blkIndent>=4||(c=Gi(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),m+=d-c.length,m>L2))break;if(r===t+2){const y=e.push("tbody_open","tbody",1);y.map=v=[t+2,0]}const E=e.push("tr_open","tr",1);E.map=[r,r+1];for(let y=0;y<d;y++){const w=e.push("td_open","td",1);f[y]&&(w.attrs=[["style","text-align:"+f[y]]]);const T=e.push("inline","",0);T.content=c[y]?c[y].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return v&&(e.push("tbody_close","tbody",-1),v[1]=r),e.push("table_close","table",-1),x[1]=r,e.parentType=h,e.line=r,!0}function P2(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,r=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,r=u;continue}break}e.line=r;const o=e.push("code_block","code",0);return o.content=e.getLines(t,r,4+e.blkIndent,!1)+`
48
- `,o.map=[t,e.line],!0}function M2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>o)return!1;const a=e.src.charCodeAt(r);if(a!==126&&a!==96)return!1;let s=r;r=e.skipChars(r,a);let l=r-s;if(l<3)return!1;const c=e.src.slice(s,r),f=e.src.slice(r,o);if(a===96&&f.indexOf(String.fromCharCode(a))>=0)return!1;if(u)return!0;let d=t,h=!1;for(;d++,!(d>=n||(r=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],r<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===a&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,a),!(r-s<l)&&(r=e.skipSpaces(r),!(r<o)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const _=e.push("fence","code",0);return _.info=f,_.content=e.getLines(t+1,d,l,!0),_.markup=c,_.map=[t,e.line],!0}function V2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(u)return!0;const s=[],l=[],c=[],f=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let _=!1,p;for(p=t;p<n;p++){const m=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],r>=o)break;if(e.src.charCodeAt(r++)===62&&!m){let E=e.sCount[p]+1,y,w;e.src.charCodeAt(r)===32?(r++,E++,w=!1,y=!0):e.src.charCodeAt(r)===9?(y=!0,(e.bsCount[p]+E)%4===3?(r++,E++,w=!1):w=!0):y=!1;let T=E;for(s.push(e.bMarks[p]),e.bMarks[p]=r;r<o;){const A=e.src.charCodeAt(r);if(ye(A))A===9?T+=4-(T+e.bsCount[p]+(w?1:0))%4:T++;else break;r++}_=r>=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(y?1:0),c.push(e.sCount[p]),e.sCount[p]=T-E,f.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(_)break;let b=!1;for(let E=0,y=d.length;E<y;E++)if(d[E](e,p,n,!0)){b=!0;break}if(b){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),f.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const x=e.blkIndent;e.blkIndent=0;const C=e.push("blockquote_open","blockquote",1);C.markup=">";const D=[t,0];C.map=D,e.md.block.tokenize(e,t,p);const v=e.push("blockquote_close","blockquote",-1);v.markup=">",e.lineMax=a,e.parentType=h,D[1]=e.line;for(let m=0;m<f.length;m++)e.bMarks[m+t]=s[m],e.tShift[m+t]=f[m],e.sCount[m+t]=c[m],e.bsCount[m+t]=l[m];return e.blkIndent=x,!0}function R2(e,t,n,u){const r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let s=1;for(;o<r;){const c=e.src.charCodeAt(o++);if(c!==a&&!ye(c))return!1;c===a&&s++}if(s<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0}function Xi(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==43)return-1;if(u<n){const o=e.src.charCodeAt(u);if(!ye(o))return-1}return u}function Zi(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let r=n;if(r+1>=u)return-1;let o=e.src.charCodeAt(r++);if(o<48||o>57)return-1;for(;;){if(r>=u)return-1;if(o=e.src.charCodeAt(r++),o>=48&&o<=57){if(r-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return r<u&&(o=e.src.charCodeAt(r),!ye(o))?-1:r}function B2(e,t){const n=e.level+2;for(let u=t+2,r=e.tokens.length-2;u<r;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function $2(e,t,n,u){let r,o,a,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let d,h,_;if((_=Zi(e,l))>=0){if(d=!0,a=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(a,_-1)),f&&h!==1)return!1}else if((_=Xi(e,l))>=0)d=!1;else return!1;if(f&&e.skipSpaces(_)>=e.eMarks[l])return!1;if(u)return!0;const p=e.src.charCodeAt(_-1),x=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),h!==1&&(s.attrs=[["start",h]])):s=e.push("bullet_list_open","ul",1);const C=[l,0];s.map=C,s.markup=String.fromCharCode(p);let D=!1;const v=e.md.block.ruler.getRules("list"),m=e.parentType;for(e.parentType="list";l<n;){o=_,r=e.eMarks[l];const b=e.sCount[l]+_-(e.bMarks[l]+e.tShift[l]);let E=b;for(;o<r;){const q=e.src.charCodeAt(o);if(q===9)E+=4-(E+e.bsCount[l])%4;else if(q===32)E++;else break;o++}const y=o;let w;y>=r?w=1:w=E-b,w>4&&(w=1);const T=b+w;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const A=[l,0];s.map=A,d&&(s.info=e.src.slice(a,_-1));const B=e.tight,he=e.tShift[l],U=e.sCount[l],R=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[l]=y-e.bMarks[l],e.sCount[l]=E,y>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||D)&&(c=!1),D=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[l]=he,e.sCount[l]=U,e.tight=B,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),l=e.line,A[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let Q=!1;for(let q=0,ue=v.length;q<ue;q++)if(v[q](e,l,n,!0)){Q=!0;break}if(Q)break;if(d){if(_=Zi(e,l),_<0)break;a=e.bMarks[l]+e.tShift[l]}else if(_=Xi(e,l),_<0)break;if(p!==e.src.charCodeAt(_-1))break}return d?s=e.push("ordered_list_close","ol",-1):s=e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(p),C[1]=l,e.line=l,e.parentType=m,c&&B2(e,x),!0}function U2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function s(v){const m=e.lineMax;if(v>=m||e.isEmpty(v))return null;let b=!1;if(e.sCount[v]-e.blkIndent>3&&(b=!0),e.sCount[v]<0&&(b=!0),!b){const w=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let A=!1;for(let B=0,he=w.length;B<he;B++)if(w[B](e,v,m,!0)){A=!0;break}if(e.parentType=T,A)return null}const E=e.bMarks[v]+e.tShift[v],y=e.eMarks[v];return e.src.slice(E,y+1)}let l=e.src.slice(r,o+1);o=l.length;let c=-1;for(r=1;r<o;r++){const v=l.charCodeAt(r);if(v===91)return!1;if(v===93){c=r;break}else if(v===10){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}else if(v===92&&(r++,r<o&&l.charCodeAt(r)===10)){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}}if(c<0||l.charCodeAt(c+1)!==58)return!1;for(r=c+2;r<o;r++){const v=l.charCodeAt(r);if(v===10){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}else if(!ye(v))break}const f=e.md.helpers.parseLinkDestination(l,r,o);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const h=r,_=a,p=r;for(;r<o;r++){const v=l.charCodeAt(r);if(v===10){const m=s(a);m!==null&&(l+=m,o=l.length,a++)}else if(!ye(v))break}let x=e.md.helpers.parseLinkTitle(l,r,o);for(;x.can_continue;){const v=s(a);if(v===null)break;l+=v,r=o,o=l.length,a++,x=e.md.helpers.parseLinkTitle(l,r,o,x)}let C;for(r<o&&p!==r&&x.ok?(C=x.str,r=x.pos):(C="",r=h,a=_);r<o;){const v=l.charCodeAt(r);if(!ye(v))break;r++}if(r<o&&l.charCodeAt(r)!==10&&C)for(C="",r=h,a=_;r<o;){const v=l.charCodeAt(r);if(!ye(v))break;r++}if(r<o&&l.charCodeAt(r)!==10)return!1;const D=ku(l.slice(1,c));return D?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[D]>"u"&&(e.env.references[D]={title:C,href:d}),e.line=a),!0):!1}const z2=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],j2="[a-zA-Z_:][a-zA-Z0-9:._-]*",H2="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",Ki="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+j2+"(?:\\s*=\\s*"+H2+")?)")+"*\\s*\\/?>",Ji="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",q2="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",W2="<[?][\\s\\S]*?[?]>",Y2="<![A-Za-z][^>]*>",G2="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",X2=new RegExp("^(?:"+Ki+"|"+Ji+"|"+q2+"|"+W2+"|"+Y2+"|"+G2+")"),Z2=new RegExp("^(?:"+Ki+"|"+Ji+")"),pn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+z2.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Z2.source+"\\s*$"),/^$/,!1]];function K2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let a=e.src.slice(r,o),s=0;for(;s<pn.length&&!pn[s][0].test(a);s++);if(s===pn.length)return!1;if(u)return pn[s][2];let l=t+1;if(!pn[s][1].test(a)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(r=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(r,o),pn[s][1].test(a)){a.length!==0&&l++;break}}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0}function J2(e,t,n,u){let r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(r);if(a!==35||r>=o)return!1;let s=1;for(a=e.src.charCodeAt(++r);a===35&&r<o&&s<=6;)s++,a=e.src.charCodeAt(++r);if(s>6||r<o&&!ye(a))return!1;if(u)return!0;o=e.skipSpacesBack(o,r);const l=e.skipCharsBack(o,35,r);l>r&&ye(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,o).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function Q2(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let o=0,a,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let _=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(_<p&&(a=e.src.charCodeAt(_),(a===45||a===61)&&(_=e.skipChars(_,a),_=e.skipSpaces(_),_>=p))){o=a===61?1:2;break}}if(e.sCount[s]<0)continue;let h=!1;for(let _=0,p=u.length;_<p;_++)if(u[_](e,s,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(o),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(a),e.parentType=r,!0}function ep(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let c=!1;for(let f=0,d=u.length;f<d;f++)if(u[f](e,o,n,!0)){c=!0;break}if(c)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const s=e.push("paragraph_open","p",1);s.map=[t,e.line];const l=e.push("inline","",0);return l.content=a,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const Cu=[["table",F2,["paragraph","reference"]],["code",P2],["fence",M2,["paragraph","reference","blockquote","list"]],["blockquote",V2,["paragraph","reference","blockquote","list"]],["hr",R2,["paragraph","reference","blockquote","list"]],["list",$2,["paragraph","reference","blockquote"]],["reference",U2],["html_block",K2,["paragraph","reference","blockquote"]],["heading",J2,["paragraph","reference","blockquote"]],["lheading",Q2],["paragraph",ep]];function vu(){this.ruler=new Ge;for(let e=0;e<Cu.length;e++)this.ruler.push(Cu[e][0],Cu[e][1],{alt:(Cu[e][2]||[]).slice()})}vu.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),r=u.length,o=e.md.options.maxNesting;let a=t,s=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let c=!1;for(let f=0;f<r;f++)if(c=u[f](e,a,n,!1),c){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},vu.prototype.parse=function(e,t,n,u){if(!e)return;const r=new this.State(e,t,n,u);this.tokenize(r,r.line,r.lineMax)},vu.prototype.State=gt;function Rn(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Rn.prototype.pushPending=function(){const e=new ft("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Rn.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new ft(e,t,n);let r=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(r),u},Rn.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===u;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=Vn(r)||Mn(String.fromCharCode(r)),c=Vn(s)||Mn(String.fromCharCode(s)),f=Pn(r),d=Pn(s),h=!d&&(!c||f||l),_=!f&&(!l||d||c);return{can_open:h&&(t||!_||l),can_close:_&&(t||!h||c),length:a}},Rn.prototype.Token=ft;function tp(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function np(e,t){let n=e.pos;for(;n<e.posMax&&!tp(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const up=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function rp(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const r=e.pending.match(up);if(!r)return!1;const o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let s=a.url;if(s.length<=o.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(s);const d=e.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return e.pos+=s.length-o.length,!0}function op(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,r=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let o=u-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<r&&ye(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Ir=[];for(let e=0;e<256;e++)Ir.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Ir[e.charCodeAt(0)]=1});function ap(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(r=e.src.charCodeAt(n),!!ye(r));)n++;return e.pos=n,!0}let o=e.src[n];if(r>=55296&&r<=56319&&n+1<u){const s=e.src.charCodeAt(n+1);s>=56320&&s<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const s=e.push("text_special","",0);r<256&&Ir[r]!==0?s.content=o:s.content=a,s.markup=a,s.info="escape"}return e.pos=n+1,!0}function ip(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const r=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(r,n),s=a.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=a),e.pos+=s,!0;let l=n,c;for(;(c=e.src.indexOf("`",l))!==-1;){for(l=c+1;l<o&&e.src.charCodeAt(l)===96;)l++;const f=l-c;if(f===s){if(!t){const d=e.push("code_inline","code",0);d.markup=a,d.content=e.src.slice(n,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=c}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=s,!0}function sp(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const r=e.scanDelims(e.pos,!0);let o=r.length;const a=String.fromCharCode(u);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function Qi(e,t){let n;const u=[],r=t.length;for(let o=0;o<r;o++){const a=t[o];if(a.marker!==126||a.end===-1)continue;const s=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&u.push(s.token-1)}for(;u.length;){const o=u.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function lp(e){const t=e.tokens_meta,n=e.tokens_meta.length;Qi(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Qi(e,t[u].delimiters)}const es={tokenize:sp,postProcess:lp};function cp(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const r=e.scanDelims(e.pos,u===42);for(let o=0;o<r.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close})}return e.pos+=r.length,!0}function ts(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const r=t[u];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const o=t[r.end],a=u>0&&t[u-1].end===r.end+1&&t[u-1].marker===r.marker&&t[u-1].token===r.token-1&&t[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=a?"strong_open":"em_open",l.tag=a?"strong":"em",l.nesting=1,l.markup=a?s+s:s,l.content="";const c=e.tokens[o.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?s+s:s,c.content="",a&&(e.tokens[t[u-1].token].content="",e.tokens[t[r.end+1].token].content="",u--)}}function fp(e){const t=e.tokens_meta,n=e.tokens_meta.length;ts(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&ts(e,t[u].delimiters)}const ns={tokenize:cp,postProcess:fp};function dp(e,t){let n,u,r,o,a="",s="",l=e.pos,c=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,h=e.pos+1,_=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(_<0)return!1;let p=_+1;if(p<d&&e.src.charCodeAt(p)===40){for(c=!1,p++;p<d&&(n=e.src.charCodeAt(p),!(!ye(n)&&n!==10));p++);if(p>=d)return!1;if(l=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(a=e.md.normalizeLink(r.str),e.md.validateLink(a)?p=r.pos:a="",l=p;p<d&&(n=e.src.charCodeAt(p),!(!ye(n)&&n!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&r.ok)for(s=r.str,p=r.pos;p<d&&(n=e.src.charCodeAt(p),!(!ye(n)&&n!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(l=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?u=e.src.slice(l,p++):p=_+1):p=_+1,u||(u=e.src.slice(h,_)),o=e.env.references[ku(u)],!o)return e.pos=f,!1;a=o.href,s=o.title}if(!t){e.pos=h,e.posMax=_;const x=e.push("link_open","a",1),C=[["href",a]];x.attrs=C,s&&C.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}function hp(e,t){let n,u,r,o,a,s,l,c,f="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const _=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(o=p+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!ye(n)&&n!==10));o++);if(o>=h)return!1;for(c=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?o=s.pos:f=""),c=o;o<h&&(n=e.src.charCodeAt(o),!(!ye(n)&&n!==10));o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&c!==o&&s.ok)for(l=s.str,o=s.pos;o<h&&(n=e.src.charCodeAt(o),!(!ye(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(c=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?r=e.src.slice(c,o++):o=p+1):o=p+1,r||(r=e.src.slice(_,p)),a=e.env.references[ku(r)],!a)return e.pos=d,!1;f=a.href,l=a.title}if(!t){u=e.src.slice(_,p);const x=[];e.md.inline.parse(u,e.md,e.env,x);const C=e.push("image","img",0),D=[["src",f],["alt",""]];C.attrs=D,C.children=x,C.content=u,l&&D.push(["title",l])}return e.pos=o,e.posMax=h,!0}const mp=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,pp=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function _p(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(u+1,n);if(pp.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}if(mp.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",a]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=o.length+2,!0}return!1}function gp(e){return/^<a[>\s]/i.test(e)}function bp(e){return/^<\/a\s*>/i.test(e)}function Ep(e){const t=e|32;return t>=97&&t<=122}function yp(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const r=e.src.charCodeAt(u+1);if(r!==33&&r!==63&&r!==47&&!Ep(r))return!1;const o=e.src.slice(u).match(X2);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],gp(a.content)&&e.linkLevel++,bp(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const kp=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,xp=/^&([a-z][a-z0-9]{1,31});/i;function Cp(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(kp);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Nr(a)?yu(a):yu(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(xp);if(o){const a=Ui(o[0]);if(a!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=a,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function us(e){const t={},n=e.length;if(!n)return;let u=0,r=-2;const o=[];for(let a=0;a<n;a++){const s=e[a];if(o.push(0),(e[u].marker!==s.marker||r!==s.token-1)&&(u=a),r=s.token,s.length=s.length||0,!s.close)continue;t.hasOwnProperty(s.marker)||(t[s.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[s.marker][(s.open?3:0)+s.length%3];let c=u-o[u]-1,f=c;for(;c>l;c-=o[c]+1){const d=e[c];if(d.marker===s.marker&&d.open&&d.end<0){let h=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(h=!0),!h){const _=c>0&&!e[c-1].open?o[c-1]+1:0;o[a]=a-c+_,o[c]=_,s.open=!1,d.end=a,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function vp(e){const t=e.tokens_meta,n=e.tokens_meta.length;us(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&us(t[u].delimiters)}function wp(e){let t,n,u=0;const r=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)r[t].nesting<0&&u--,r[t].level=u,r[t].nesting>0&&u++,r[t].type==="text"&&t+1<o&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}const Sr=[["text",np],["linkify",rp],["newline",op],["escape",ap],["backticks",ip],["strikethrough",es.tokenize],["emphasis",ns.tokenize],["link",dp],["image",hp],["autolink",_p],["html_inline",yp],["entity",Cp]],Or=[["balance_pairs",vp],["strikethrough",es.postProcess],["emphasis",ns.postProcess],["fragments_join",wp]];function Bn(){this.ruler=new Ge;for(let e=0;e<Sr.length;e++)this.ruler.push(Sr[e][0],Sr[e][1]);this.ruler2=new Ge;for(let e=0;e<Or.length;e++)this.ruler2.push(Or[e][0],Or[e][1])}Bn.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,r=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<r){for(let s=0;s<u;s++)if(e.level++,a=n[s](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},Bn.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,r=e.md.options.maxNesting;for(;e.pos<u;){const o=e.pos;let a=!1;if(e.level<r){for(let s=0;s<n;s++)if(a=t[s](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Bn.prototype.parse=function(e,t,n,u){const r=new this.State(e,t,n,u);this.tokenize(r);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](r)},Bn.prototype.State=Rn;function Np(e){const t={};e=e||{},t.src_Any=Mi.source,t.src_Cc=Vi.source,t.src_Z=Bi.source,t.src_P=xr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Lr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function wu(e){return Object.prototype.toString.call(e)}function Dp(e){return wu(e)==="[object String]"}function Tp(e){return wu(e)==="[object Object]"}function Ap(e){return wu(e)==="[object RegExp]"}function rs(e){return wu(e)==="[object Function]"}function Ip(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const os={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Sp(e){return Object.keys(e||{}).reduce(function(t,n){return t||os.hasOwnProperty(n)},!1)}const Op={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},Lp="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Fp="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Pp(e){e.__index__=-1,e.__text_cache__=""}function Mp(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function as(){return function(e,t){t.normalize(e)}}function Nu(e){const t=e.re=Np(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(Lp),n.push(t.src_xn),t.src_tlds=n.join("|");function u(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function o(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const c={validate:null,link:null};if(e.__compiled__[s]=c,Tp(l)){Ap(l.validate)?c.validate=Mp(l.validate):rs(l.validate)?c.validate=l.validate:o(s,l),rs(l.normalize)?c.normalize=l.normalize:l.normalize?o(s,l):c.normalize=as();return}if(Dp(l)){r.push(s);return}o(s,l)}),r.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:as()};const a=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(Ip).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),Pp(e)}function Vp(e,t){const n=e.__index__,u=e.__last_index__,r=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=r,this.text=r,this.url=r}function Fr(e,t){const n=new Vp(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t||Sp(e)&&(t=e,e={}),this.__opts__=Lr({},os,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Lr({},Op,e),this.__compiled__={},this.__tlds__=Fp,this.__tlds_replaced__=!1,this.re={},Nu(this)}Ke.prototype.add=function(t,n){return this.__schemas__[t]=n,Nu(this),this},Ke.prototype.set=function(t){return this.__opts__=Lr(this.__opts__,t),this},Ke.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,r,o,a,s,l,c,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=t.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=u.index+u[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(r=t.match(this.re.email_fuzzy))!==null&&(a=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=s))),this.__index__>=0},Ke.prototype.pretest=function(t){return this.re.pretest.test(t)},Ke.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0},Ke.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Fr(this,u)),u=this.__last_index__);let r=u?t.slice(u):t;for(;this.test(r);)n.push(Fr(this,u)),r=r.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null},Ke.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,Fr(this,0)):null},Ke.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,r,o){return u!==o[r-1]}).reverse(),Nu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Nu(this),this)},Ke.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},Ke.prototype.onCompile=function(){};const _n=2147483647,bt=36,Pr=1,$n=26,Rp=38,Bp=700,is=72,ss=128,ls="-",$p=/^xn--/,Up=/[^\0-\x7F]/,zp=/[\x2E\u3002\uFF0E\uFF61]/g,jp={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Mr=bt-Pr,Et=Math.floor,Vr=String.fromCharCode;function Pt(e){throw new RangeError(jp[e])}function Hp(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function cs(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(zp,".");const r=e.split("."),o=Hp(r,t).join(".");return u+o}function fs(e){const t=[];let n=0;const u=e.length;for(;n<u;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<u){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const qp=e=>String.fromCodePoint(...e),Wp=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:bt},ds=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},hs=function(e,t,n){let u=0;for(e=n?Et(e/Bp):e>>1,e+=Et(e/t);e>Mr*$n>>1;u+=bt)e=Et(e/Mr);return Et(u+(Mr+1)*e/(e+Rp))},ms=function(e){const t=[],n=e.length;let u=0,r=ss,o=is,a=e.lastIndexOf(ls);a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&Pt("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const l=u;for(let f=1,d=bt;;d+=bt){s>=n&&Pt("invalid-input");const h=Wp(e.charCodeAt(s++));h>=bt&&Pt("invalid-input"),h>Et((_n-u)/f)&&Pt("overflow"),u+=h*f;const _=d<=o?Pr:d>=o+$n?$n:d-o;if(h<_)break;const p=bt-_;f>Et(_n/p)&&Pt("overflow"),f*=p}const c=t.length+1;o=hs(u-l,c,l==0),Et(u/c)>_n-r&&Pt("overflow"),r+=Et(u/c),u%=c,t.splice(u++,0,r)}return String.fromCodePoint(...t)},ps=function(e){const t=[];e=fs(e);const n=e.length;let u=ss,r=0,o=is;for(const l of e)l<128&&t.push(Vr(l));const a=t.length;let s=a;for(a&&t.push(ls);s<n;){let l=_n;for(const f of e)f>=u&&f<l&&(l=f);const c=s+1;l-u>Et((_n-r)/c)&&Pt("overflow"),r+=(l-u)*c,u=l;for(const f of e)if(f<u&&++r>_n&&Pt("overflow"),f===u){let d=r;for(let h=bt;;h+=bt){const _=h<=o?Pr:h>=o+$n?$n:h-o;if(d<_)break;const p=d-_,x=bt-_;t.push(Vr(ds(_+p%x,0))),d=Et(p/x)}t.push(Vr(ds(d,0))),o=hs(r,c,s===a),r=0,++s}++r,++u}return t.join("")},_s={version:"2.3.1",ucs2:{decode:fs,encode:qp},decode:ms,encode:ps,toASCII:function(e){return cs(e,function(t){return Up.test(t)?"xn--"+ps(t):t})},toUnicode:function(e){return cs(e,function(t){return $p.test(t)?ms(t.slice(4).toLowerCase()):t})}},Yp={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Gp=/^(vbscript|javascript|file|data):/,Xp=/^data:image\/(gif|png|jpeg|webp);/;function Zp(e){const t=e.trim().toLowerCase();return Gp.test(t)?Xp.test(t):!0}const gs=["http:","https:","mailto:"];function Kp(e){const t=kr(e,!0);if(t.hostname&&(!t.protocol||gs.indexOf(t.protocol)>=0))try{t.hostname=_s.toASCII(t.hostname)}catch{}return Fn(yr(t))}function Jp(e){const t=kr(e,!0);if(t.hostname&&(!t.protocol||gs.indexOf(t.protocol)>=0))try{t.hostname=_s.toUnicode(t.hostname)}catch{}return dn(yr(t),dn.defaultChars+"%")}function ut(e,t){if(!(this instanceof ut))return new ut(e,t);t||wr(e)||(t=e||{},e="default"),this.inline=new Bn,this.block=new vu,this.core=new Tr,this.renderer=new mn,this.linkify=new Ke,this.validateLink=Zp,this.normalizeLink=Kp,this.normalizeLinkText=Jp,this.utils=l2,this.helpers=Eu({},h2),this.options={},this.configure(e),t&&this.set(t)}ut.prototype.set=function(e){return Eu(this.options,e),this},ut.prototype.configure=function(e){const t=this;if(wr(e)){const n=e;if(e=Yp[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},ut.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this},ut.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(r){return n.indexOf(r)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this},ut.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},ut.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},ut.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},ut.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},ut.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Qp=["innerHTML"],e_={__name:"MarkdownViewer",props:{content:{type:String,default:`| 早餐 | | 午餐 |
49
- |------------|----------|----|
50
- | 热量:450kcal |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | 热量:450kcal |
51
- | 碳水:62.3g | | 碳水:62.3g |
52
- | 蛋白质:15.5g | | 蛋白质:15.5g |
53
- | 脂肪:12.5g | | 脂肪:12.5g |
54
-
55
- | 晚餐 | | 加餐 |
56
- |------------|---|------------|
57
- | | | |
58
- | 热量:450kcal | | 热量:450kcal |
59
- | 碳水:62.3g | | 碳水:62.3g |
60
- | 蛋白质:15.5g | | 蛋白质:15.5g |
61
- | 脂肪:12.5g | | 脂肪:12.5g |`}},setup(e){const t=new ut,n=e,u=i.computed(()=>t.render(n.content));return(r,o)=>(i.openBlock(),i.createElementBlock("div",{innerHTML:u.value},null,8,Qp))}},t_={},n_={width:"1em",height:"1em",viewBox:"0 0 44 44",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function u_(e,t){return i.openBlock(),i.createElementBlock("svg",n_,t[0]||(t[0]=[i.createElementVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[i.createElementVNode("g",{transform:"translate(44, 0) rotate(90)"},[i.createElementVNode("polyline",{stroke:"currentColor","stroke-width":"4","stroke-linecap":"round","stroke-linejoin":"round",points:"16 10 28 22 16 34"})])],-1)]))}const r_=ke(t_,[["render",u_]]),o_={class:"pup_header"},a_={class:"left"},i_={class:"title"},s_={class:"right"},l_={class:"pup_content",style:{height:"calc(height - 56px)"}},c_=ke({__name:"popup",props:{show:{type:Boolean,default:!1},height:{type:String,default:"50vh"},title:{type:String,default:""}},emits:["update:show","confirm","close"],setup(e,{emit:t}){const{t:n}=tn(),u=e,r=t,o=i.ref(!1),a=i.ref(`-${u.height}`),s=i.ref({delay:300,bottom:`-${u.height}`,opacity:0}),l=d=>{d?(s.value.bottom="0",s.value.opacity=.5):(s.value.bottom=`-${u.height}`,s.value.opacity=0)},c=()=>{r("confirm",{})};i.watch(()=>u.show,(d,h)=>{d?(a.value=`-${u.height}`,o.value=!0,setTimeout(()=>{l(!0)},0)):(l(!1),setTimeout(()=>{o.value=!1},300))});const f=()=>{r("update:show",!1),l(!1),setTimeout(()=>{o.value=!1},300)};return(d,h)=>o.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"pup_mask",style:i.normalizeStyle({backgroundColor:`rgba(0, 0, 0, ${s.value.opacity})`}),onClick:i.withModifiers(f,["stop"])},[i.createElementVNode("div",{class:"pup_wrap",style:i.normalizeStyle({height:e.height,bottom:s.value.bottom}),onClick:i.withModifiers(()=>{},["stop"])},[i.createElementVNode("div",o_,[i.createElementVNode("div",a_,[i.createElementVNode("div",{class:"icon_down",onClick:i.withModifiers(f,["stop"])},[i.createVNode(r_)])]),i.createElementVNode("div",i_,i.toDisplayString(e.title),1),i.createElementVNode("div",s_,[i.createElementVNode("div",{class:"btn",onClick:c},i.toDisplayString(i.unref(n)("common.confirm")),1)])]),i.createElementVNode("div",l_,[i.renderSlot(d.$slots,"default",{},void 0,!0)])],4)],4)):i.createCommentVNode("",!0)}},[["__scopeId","data-v-b2b0e400"]]);function f_(){}const dt=Object.assign,Rr=typeof window<"u",Un=e=>e!==null&&typeof e=="object",$e=e=>e!=null,Du=e=>typeof e=="function",bs=e=>Un(e)&&Du(e.then)&&Du(e.catch),Es=e=>typeof e=="number"||/^\d+(\.\d+)?$/.test(e),d_=()=>Rr?/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase()):!1;function ys(e,t){const n=t.split(".");let u=e;return n.forEach(r=>{var o;u=Un(u)&&(o=u[r])!=null?o:""}),u}function h_(e,t,n){return t.reduce((u,r)=>(u[r]=e[r],u),{})}const ks=e=>Array.isArray(e)?e:[e],Mt=null,Oe=[Number,String],Vt={type:Boolean,default:!0},m_=e=>({type:Number,default:e}),p_=e=>({type:Oe,default:e}),Re=e=>({type:String,default:e});var Br=typeof window<"u";function __(e){const t=i.inject(e,null);if(t){const n=i.getCurrentInstance(),{link:u,unlink:r,internalChildren:o}=t;u(n),i.onUnmounted(()=>r(n));const a=i.computed(()=>o.indexOf(n));return{parent:t,index:a}}return{parent:null,index:i.ref(-1)}}function xs(e){let t;i.onMounted(()=>{e(),i.nextTick(()=>{t=!0})}),i.onActivated(()=>{t&&e()})}function $r(e,t,n={}){if(!Br)return;const{target:u=window,passive:r=!1,capture:o=!1}=n;let a=!1,s;const l=d=>{if(a)return;const h=i.unref(d);h&&!s&&(h.addEventListener(e,t,{capture:o,passive:r}),s=!0)},c=d=>{if(a)return;const h=i.unref(d);h&&s&&(h.removeEventListener(e,t,o),s=!1)};i.onUnmounted(()=>c(u)),i.onDeactivated(()=>c(u)),xs(()=>l(u));let f;return i.isRef(u)&&(f=i.watch(u,(d,h)=>{c(h),l(d)})),()=>{f==null||f(),c(u),a=!0}}var Tu,Ur;function g_(){if(!Tu&&(Tu=i.ref(0),Ur=i.ref(0),Br)){const e=()=>{Tu.value=window.innerWidth,Ur.value=window.innerHeight};e(),window.addEventListener("resize",e,{passive:!0}),window.addEventListener("orientationchange",e,{passive:!0})}return{width:Tu,height:Ur}}var b_=/scroll|auto|overlay/i,E_=Br?window:void 0;function y_(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function k_(e,t=E_){let n=e;for(;n&&n!==t&&y_(n);){const{overflowY:u}=window.getComputedStyle(n);if(b_.test(u))return n;n=n.parentNode}return t}var x_=Symbol("van-field");function Cs(e,t){"scrollTop"in e?e.scrollTop=t:e.scrollTo(e.scrollX,t)}function vs(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function ws(e){Cs(window,e),Cs(document.body,e)}const C_=d_();function v_(){C_&&ws(vs())}const w_=e=>e.stopPropagation();function zn(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&w_(e)}g_();function Je(e){if($e(e))return Es(e)?`${e}px`:String(e)}function N_(e){if($e(e)){if(Array.isArray(e))return{width:Je(e[0]),height:Je(e[1])};const t=Je(e);return{width:t,height:t}}}function D_(e){const t={};return e!==void 0&&(t.zIndex=+e),t}const T_=/-(\w)/g,Ns=e=>e.replace(T_,(t,n)=>n.toUpperCase()),A_=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^-/,""),I_=(e,t,n)=>Math.min(Math.max(e,t),n);function Ds(e,t,n){const u=e.indexOf(t);return u===-1?e:t==="-"&&u!==0?e.slice(0,u):e.slice(0,u+1)+e.slice(u).replace(n,"")}function S_(e,t=!0,n=!0){t?e=Ds(e,".",/\./g):e=e.split(".")[0],n?e=Ds(e,"-",/-/g):e=e.replace(/-/,"");const u=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(u,"")}const{hasOwnProperty:O_}=Object.prototype;function L_(e,t,n){const u=t[n];$e(u)&&(!O_.call(e,n)||!Un(u)?e[n]=u:e[n]=Ts(Object(e[n]),u))}function Ts(e,t){return Object.keys(t).forEach(n=>{L_(e,t,n)}),e}var F_={name:"姓名",tel:"电话",save:"保存",clear:"清空",cancel:"取消",confirm:"确认",delete:"删除",loading:"加载中...",noCoupon:"暂无优惠券",nameEmpty:"请填写姓名",addContact:"添加联系人",telInvalid:"请填写正确的电话",vanCalendar:{end:"结束",start:"开始",title:"日期选择",weekdays:["日","一","二","三","四","五","六"],monthTitle:(e,t)=>`${e}年${t}月`,rangePrompt:e=>`最多选择 ${e} 天`},vanCascader:{select:"请选择"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无门槛",discount:e=>`${e}折`,condition:e=>`满${e}元可用`},vanCouponCell:{title:"优惠券",count:e=>`${e}张可用`},vanCouponList:{exchange:"兑换",close:"不使用",enable:"可用",disabled:"不可用",placeholder:"输入优惠码"},vanAddressEdit:{area:"地区",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",addressDetail:"详细地址",defaultAddress:"设为默认收货地址"},vanAddressList:{add:"新增地址"}};const As=i.ref("zh-CN"),Is=i.reactive({"zh-CN":F_});var P_={messages(){return Is[As.value]},use(e,t){As.value=e,this.add({[e]:t})},add(e={}){Ts(Is,e)}};function M_(e){const t=Ns(e)+".";return(n,...u)=>{const r=P_.messages(),o=ys(r,t+n)||ys(r,n);return Du(o)?o(...u):o}}function zr(e,t){return t?typeof t=="string"?` ${e}--${t}`:Array.isArray(t)?t.reduce((n,u)=>n+zr(e,u),""):Object.keys(t).reduce((n,u)=>n+(t[u]?zr(e,u):""),""):""}function V_(e){return(t,n)=>(t&&typeof t!="string"&&(n=t,t=""),t=t?`${e}__${t}`:e,`${t}${zr(t,n)}`)}function wt(e){const t=`van-${e}`;return[t,V_(t),M_(t)]}const R_="van-haptics-feedback",B_=Symbol("van-form"),Ss=5;function $_(e,{args:t=[],done:n,canceled:u,error:r}){if(e){const o=e.apply(null,t);bs(o)?o.then(a=>{a?n():u&&u()}).catch(r||f_):o?n():u&&u()}else n()}function Rt(e){return e.install=t=>{const{name:n}=e;n&&(t.component(n,e),t.component(Ns(`-${n}`),e))},e}const U_=Symbol();function jr(e){const t=i.getCurrentInstance();t&&dt(t.proxy,e)}const z_={to:[String,Object],url:String,replace:Boolean};function j_({to:e,url:t,replace:n,$router:u}){e&&u?u[n?"replace":"push"](e):t&&(n?location.replace(t):location.href=t)}function H_(){const e=i.getCurrentInstance().proxy;return()=>j_(e)}const[q_,Os]=wt("badge"),W_={dot:Boolean,max:Oe,tag:Re("div"),color:String,offset:Array,content:Oe,showZero:Vt,position:Re("top-right")};var Y_=i.defineComponent({name:q_,props:W_,setup(e,{slots:t}){const n=()=>{if(t.content)return!0;const{content:s,showZero:l}=e;return $e(s)&&s!==""&&(l||s!==0&&s!=="0")},u=()=>{const{dot:s,max:l,content:c}=e;if(!s&&n())return t.content?t.content():$e(l)&&Es(c)&&+c>+l?`${l}+`:c},r=s=>s.startsWith("-")?s.replace("-",""):`-${s}`,o=i.computed(()=>{const s={background:e.color};if(e.offset){const[l,c]=e.offset,{position:f}=e,[d,h]=f.split("-");t.default?(typeof c=="number"?s[d]=Je(d==="top"?c:-c):s[d]=d==="top"?Je(c):r(c),typeof l=="number"?s[h]=Je(h==="left"?l:-l):s[h]=h==="left"?Je(l):r(l)):(s.marginTop=Je(c),s.marginLeft=Je(l))}return s}),a=()=>{if(n()||e.dot)return i.createVNode("div",{class:Os([e.position,{dot:e.dot,fixed:!!t.default}]),style:o.value},[u()])};return()=>{if(t.default){const{tag:s}=e;return i.createVNode(s,{class:Os("wrapper")},{default:()=>[t.default(),a()]})}return a()}}});const G_=Rt(Y_);let Ls=2e3;const X_=()=>++Ls,Z_=e=>{Ls=e},[Fs,K_]=wt("config-provider"),Ps=Symbol(Fs),J_={tag:Re("div"),theme:Re("light"),zIndex:Number,themeVars:Object,themeVarsDark:Object,themeVarsLight:Object,themeVarsScope:Re("local"),iconPrefix:String};function Q_(e){return e.replace(/([a-zA-Z])(\d)/g,"$1-$2")}function eg(e){const t={};return Object.keys(e).forEach(n=>{const u=Q_(A_(n));t[`--van-${u}`]=e[n]}),t}function Au(e={},t={}){Object.keys(e).forEach(n=>{e[n]!==t[n]&&document.documentElement.style.setProperty(n,e[n])}),Object.keys(t).forEach(n=>{e[n]||document.documentElement.style.removeProperty(n)})}i.defineComponent({name:Fs,props:J_,setup(e,{slots:t}){const n=i.computed(()=>eg(dt({},e.themeVars,e.theme==="dark"?e.themeVarsDark:e.themeVarsLight)));if(Rr){const u=()=>{document.documentElement.classList.add(`van-theme-${e.theme}`)},r=(o=e.theme)=>{document.documentElement.classList.remove(`van-theme-${o}`)};i.watch(()=>e.theme,(o,a)=>{a&&r(a),u()},{immediate:!0}),i.onActivated(u),i.onDeactivated(r),i.onBeforeUnmount(r),i.watch(n,(o,a)=>{e.themeVarsScope==="global"&&Au(o,a)}),i.watch(()=>e.themeVarsScope,(o,a)=>{a==="global"&&Au({},n.value),o==="global"&&Au(n.value,{})}),e.themeVarsScope==="global"&&Au(n.value,{})}return i.provide(Ps,e),i.watchEffect(()=>{e.zIndex!==void 0&&Z_(e.zIndex)}),()=>i.createVNode(e.tag,{class:K_(),style:e.themeVarsScope==="local"?n.value:void 0},{default:()=>{var u;return[(u=t.default)==null?void 0:u.call(t)]}})}});const[tg,Ms]=wt("icon"),ng=e=>e==null?void 0:e.includes("/"),ug={dot:Boolean,tag:Re("i"),name:String,size:Oe,badge:Oe,color:String,badgeProps:Object,classPrefix:String};var rg=i.defineComponent({name:tg,props:ug,setup(e,{slots:t}){const n=i.inject(Ps,null),u=i.computed(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Ms());return()=>{const{tag:r,dot:o,name:a,size:s,badge:l,color:c}=e,f=ng(a);return i.createVNode(G_,i.mergeProps({dot:o,tag:r,class:[u.value,f?"":`${u.value}-${a}`],style:{color:c,fontSize:Je(s)},content:l},e.badgeProps),{default:()=>{var d;return[(d=t.default)==null?void 0:d.call(t),f&&i.createVNode("img",{class:Ms("image"),src:a},null)]}})}}});const Yt=Rt(rg),[og,jn]=wt("loading"),ag=Array(12).fill(null).map((e,t)=>i.createVNode("i",{class:jn("line",String(t+1))},null)),ig=i.createVNode("svg",{class:jn("circular"),viewBox:"25 25 50 50"},[i.createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),sg={size:Oe,type:Re("circular"),color:String,vertical:Boolean,textSize:Oe,textColor:String};var lg=i.defineComponent({name:og,props:sg,setup(e,{slots:t}){const n=i.computed(()=>dt({color:e.color},N_(e.size))),u=()=>{const o=e.type==="spinner"?ag:ig;return i.createVNode("span",{class:jn("spinner",e.type),style:n.value},[t.icon?t.icon():o])},r=()=>{var o;if(t.default)return i.createVNode("span",{class:jn("text"),style:{fontSize:Je(e.textSize),color:(o=e.textColor)!=null?o:e.color}},[t.default()])};return()=>{const{type:o,vertical:a}=e;return i.createVNode("div",{class:jn([o,{vertical:a}]),"aria-live":"polite","aria-busy":!0},[u(),r()])}}});const cg=Rt(lg),fg={show:Boolean,zIndex:Oe,overlay:Vt,duration:Oe,teleport:[String,Object],lockScroll:Vt,lazyRender:Vt,beforeClose:Function,overlayProps:Object,overlayStyle:Object,overlayClass:Mt,transitionAppear:Boolean,closeOnClickOverlay:Vt};function dg(e,t){return e>t?"horizontal":t>e?"vertical":""}function hg(){const e=i.ref(0),t=i.ref(0),n=i.ref(0),u=i.ref(0),r=i.ref(0),o=i.ref(0),a=i.ref(""),s=i.ref(!0),l=()=>a.value==="vertical",c=()=>a.value==="horizontal",f=()=>{n.value=0,u.value=0,r.value=0,o.value=0,a.value="",s.value=!0};return{move:_=>{const p=_.touches[0];n.value=(p.clientX<0?0:p.clientX)-e.value,u.value=p.clientY-t.value,r.value=Math.abs(n.value),o.value=Math.abs(u.value);const x=10;(!a.value||r.value<x&&o.value<x)&&(a.value=dg(r.value,o.value)),s.value&&(r.value>Ss||o.value>Ss)&&(s.value=!1)},start:_=>{f(),e.value=_.touches[0].clientX,t.value=_.touches[0].clientY},reset:f,startX:e,startY:t,deltaX:n,deltaY:u,offsetX:r,offsetY:o,direction:a,isVertical:l,isHorizontal:c,isTap:s}}let Hn=0;const Vs="van-overflow-hidden";function mg(e,t){const n=hg(),u="01",r="10",o=f=>{n.move(f);const d=n.deltaY.value>0?r:u,h=k_(f.target,e.value),{scrollHeight:_,offsetHeight:p,scrollTop:x}=h;let C="11";x===0?C=p>=_?"00":"01":x+p>=_&&(C="10"),C!=="11"&&n.isVertical()&&!(parseInt(C,2)&parseInt(d,2))&&zn(f,!0)},a=()=>{document.addEventListener("touchstart",n.start),document.addEventListener("touchmove",o,{passive:!1}),Hn||document.body.classList.add(Vs),Hn++},s=()=>{Hn&&(document.removeEventListener("touchstart",n.start),document.removeEventListener("touchmove",o),Hn--,Hn||document.body.classList.remove(Vs))},l=()=>t()&&a(),c=()=>t()&&s();xs(l),i.onDeactivated(c),i.onBeforeUnmount(c),i.watch(t,f=>{f?a():s()})}function Rs(e){const t=i.ref(!1);return i.watch(e,n=>{n&&(t.value=n)},{immediate:!0}),n=>()=>t.value?n():null}const Bs=()=>{var e;const{scopeId:t}=((e=i.getCurrentInstance())==null?void 0:e.vnode)||{};return t?{[t]:""}:null},[pg,_g]=wt("overlay"),gg={show:Boolean,zIndex:Oe,duration:Oe,className:Mt,lockScroll:Vt,lazyRender:Vt,customStyle:Object,teleport:[String,Object]};var bg=i.defineComponent({name:pg,inheritAttrs:!1,props:gg,setup(e,{attrs:t,slots:n}){const u=i.ref(),r=Rs(()=>e.show||!e.lazyRender),o=s=>{e.lockScroll&&zn(s,!0)},a=r(()=>{var s;const l=dt(D_(e.zIndex),e.customStyle);return $e(e.duration)&&(l.animationDuration=`${e.duration}s`),i.withDirectives(i.createVNode("div",i.mergeProps({ref:u,style:l,class:[_g(),e.className]},t),[(s=n.default)==null?void 0:s.call(n)]),[[i.vShow,e.show]])});return $r("touchmove",o,{target:u}),()=>{const s=i.createVNode(i.Transition,{name:"van-fade",appear:!0},{default:a});return e.teleport?i.createVNode(i.Teleport,{to:e.teleport},{default:()=>[s]}):s}}});const Eg=Rt(bg),yg=dt({},fg,{round:Boolean,position:Re("center"),closeIcon:Re("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:Re("top-right"),destroyOnClose:Boolean,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[kg,$s]=wt("popup");var xg=i.defineComponent({name:kg,inheritAttrs:!1,props:yg,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:t,attrs:n,slots:u}){let r,o;const a=i.ref(),s=i.ref(),l=Rs(()=>e.show||!e.lazyRender),c=i.computed(()=>{const y={zIndex:a.value};if($e(e.duration)){const w=e.position==="center"?"animationDuration":"transitionDuration";y[w]=`${e.duration}s`}return y}),f=()=>{r||(r=!0,a.value=e.zIndex!==void 0?+e.zIndex:X_(),t("open"))},d=()=>{r&&$_(e.beforeClose,{done(){r=!1,t("close"),t("update:show",!1)}})},h=y=>{t("clickOverlay",y),e.closeOnClickOverlay&&d()},_=()=>{if(e.overlay){const y=dt({show:e.show,class:e.overlayClass,zIndex:a.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},e.overlayProps);return i.createVNode(Eg,i.mergeProps(y,Bs(),{onClick:h}),{default:u["overlay-content"]})}},p=y=>{t("clickCloseIcon",y),d()},x=()=>{if(e.closeable)return i.createVNode(Yt,{role:"button",tabindex:0,name:e.closeIcon,class:[$s("close-icon",e.closeIconPosition),R_],classPrefix:e.iconPrefix,onClick:p},null)};let C;const D=()=>{C&&clearTimeout(C),C=setTimeout(()=>{t("opened")})},v=()=>t("closed"),m=y=>t("keydown",y),b=l(()=>{var y;const{destroyOnClose:w,round:T,position:A,safeAreaInsetTop:B,safeAreaInsetBottom:he,show:U}=e;if(!(!U&&w))return i.withDirectives(i.createVNode("div",i.mergeProps({ref:s,style:c.value,role:"dialog",tabindex:0,class:[$s({round:T,[A]:A}),{"van-safe-area-top":B,"van-safe-area-bottom":he}],onKeydown:m},n,Bs()),[(y=u.default)==null?void 0:y.call(u),x()]),[[i.vShow,U]])}),E=()=>{const{position:y,transition:w,transitionAppear:T}=e,A=y==="center"?"van-fade":`van-popup-slide-${y}`;return i.createVNode(i.Transition,{name:w||A,appear:T,onAfterEnter:D,onAfterLeave:v},{default:b})};return i.watch(()=>e.show,y=>{y&&!r&&(f(),n.tabindex===0&&i.nextTick(()=>{var w;(w=s.value)==null||w.focus()})),!y&&r&&(r=!1,t("close"))}),jr({popupRef:s}),mg(s,()=>e.show&&e.lockScroll),$r("popstate",()=>{e.closeOnPopstate&&(d(),o=!1)}),i.onMounted(()=>{e.show&&f()}),i.onActivated(()=>{o&&(t("update:show",!0),o=!1)}),i.onDeactivated(()=>{e.show&&e.teleport&&(d(),o=!0)}),i.provide(U_,()=>e.show),()=>e.teleport?i.createVNode(i.Teleport,{to:e.teleport},{default:()=>[_(),E()]}):i.createVNode(i.Fragment,null,[_(),E()])}});const Cg=Rt(xg);let vg=0;function wg(){const e=i.getCurrentInstance(),{name:t="unknown"}=(e==null?void 0:e.type)||{};return process.env.NODE_ENV==="test"?t:`${t}-${++vg}`}const[Ng,gn]=wt("cell"),Us={tag:Re("div"),icon:String,size:String,title:Oe,value:Oe,label:Oe,center:Boolean,isLink:Boolean,border:Vt,iconPrefix:String,valueClass:Mt,labelClass:Mt,titleClass:Mt,titleStyle:null,arrowDirection:String,required:{type:[Boolean,String],default:null},clickable:{type:Boolean,default:null}},Dg=dt({},Us,z_);var Tg=i.defineComponent({name:Ng,props:Dg,setup(e,{slots:t}){const n=H_(),u=()=>{if(t.label||$e(e.label))return i.createVNode("div",{class:[gn("label"),e.labelClass]},[t.label?t.label():e.label])},r=()=>{var l;if(t.title||$e(e.title)){const c=(l=t.title)==null?void 0:l.call(t);return Array.isArray(c)&&c.length===0?void 0:i.createVNode("div",{class:[gn("title"),e.titleClass],style:e.titleStyle},[c||i.createVNode("span",null,[e.title]),u()])}},o=()=>{const l=t.value||t.default;if(l||$e(e.value))return i.createVNode("div",{class:[gn("value"),e.valueClass]},[l?l():i.createVNode("span",null,[e.value])])},a=()=>{if(t.icon)return t.icon();if(e.icon)return i.createVNode(Yt,{name:e.icon,class:gn("left-icon"),classPrefix:e.iconPrefix},null)},s=()=>{if(t["right-icon"])return t["right-icon"]();if(e.isLink){const l=e.arrowDirection&&e.arrowDirection!=="right"?`arrow-${e.arrowDirection}`:"arrow";return i.createVNode(Yt,{name:l,class:gn("right-icon")},null)}};return()=>{var l;const{tag:c,size:f,center:d,border:h,isLink:_,required:p}=e,x=(l=e.clickable)!=null?l:_,C={center:d,required:!!p,clickable:x,borderless:!h};return f&&(C[f]=!!f),i.createVNode(c,{class:gn(C),role:x?"button":void 0,tabindex:x?0:void 0,onClick:n},{default:()=>{var D;return[a(),r(),o(),s(),(D=t.extra)==null?void 0:D.call(t)]}})}}});const Ag=Rt(Tg);function zs(e){return Array.isArray(e)?!e.length:e===0?!1:!e}function Ig(e,t){if(zs(e)){if(t.required)return!1;if(t.validateEmpty===!1)return!0}return!(t.pattern&&!t.pattern.test(String(e)))}function Sg(e,t){return new Promise(n=>{const u=t.validator(e,t);if(bs(u)){u.then(n);return}n(u)})}function js(e,t){const{message:n}=t;return Du(n)?n(e,t):n||""}function Og({target:e}){e.composing=!0}function Hs({target:e}){e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}function Lg(e,t){const n=vs();e.style.height="auto";let u=e.scrollHeight;if(Un(t)){const{maxHeight:r,minHeight:o}=t;r!==void 0&&(u=Math.min(u,r)),o!==void 0&&(u=Math.max(u,o))}u&&(e.style.height=`${u}px`,ws(n))}function Fg(e,t){return e==="number"&&(e="text",t??(t="decimal")),e==="digit"&&(e="tel",t??(t="numeric")),{type:e,inputmode:t}}function Nt(e){return[...e].length}function Hr(e,t){return[...e].slice(0,t).join("")}const[Pg,rt]=wt("field"),Mg={id:String,name:String,leftIcon:String,rightIcon:String,autofocus:Boolean,clearable:Boolean,maxlength:Oe,max:Number,min:Number,formatter:Function,clearIcon:Re("clear"),modelValue:p_(""),inputAlign:String,placeholder:String,autocomplete:String,autocapitalize:String,autocorrect:String,errorMessage:String,enterkeyhint:String,clearTrigger:Re("focus"),formatTrigger:Re("onChange"),spellcheck:{type:Boolean,default:null},error:{type:Boolean,default:null},disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},inputmode:String},Vg=dt({},Us,Mg,{rows:Oe,type:Re("text"),rules:Array,autosize:[Boolean,Object],labelWidth:Oe,labelClass:Mt,labelAlign:String,showWordLimit:Boolean,errorMessageAlign:String,colon:{type:Boolean,default:null}});var Rg=i.defineComponent({name:Pg,props:Vg,emits:["blur","focus","clear","keypress","clickInput","endValidate","startValidate","clickLeftIcon","clickRightIcon","update:modelValue"],setup(e,{emit:t,slots:n}){const u=wg(),r=i.reactive({status:"unvalidated",focused:!1,validateMessage:""}),o=i.ref(),a=i.ref(),s=i.ref(),{parent:l}=__(B_),c=()=>{var I;return String((I=e.modelValue)!=null?I:"")},f=I=>{if($e(e[I]))return e[I];if(l&&$e(l.props[I]))return l.props[I]},d=i.computed(()=>{const I=f("readonly");if(e.clearable&&!I){const Z=c()!=="",X=e.clearTrigger==="always"||e.clearTrigger==="focus"&&r.focused;return Z&&X}return!1}),h=i.computed(()=>s.value&&n.input?s.value():e.modelValue),_=i.computed(()=>{var I;const Z=f("required");return Z==="auto"?(I=e.rules)==null?void 0:I.some(X=>X.required):Z}),p=I=>I.reduce((Z,X)=>Z.then(()=>{if(r.status==="failed")return;let{value:se}=h;if(X.formatter&&(se=X.formatter(se,X)),!Ig(se,X)){r.status="failed",r.validateMessage=js(se,X);return}if(X.validator)return zs(se)&&X.validateEmpty===!1?void 0:Sg(se,X).then(ee=>{ee&&typeof ee=="string"?(r.status="failed",r.validateMessage=ee):ee===!1&&(r.status="failed",r.validateMessage=js(se,X))})}),Promise.resolve()),x=()=>{r.status="unvalidated",r.validateMessage=""},C=()=>t("endValidate",{status:r.status,message:r.validateMessage}),D=(I=e.rules)=>new Promise(Z=>{x(),I?(t("startValidate"),p(I).then(()=>{r.status==="failed"?(Z({name:e.name,message:r.validateMessage}),C()):(r.status="passed",Z(),C())})):Z()}),v=I=>{if(l&&e.rules){const{validateTrigger:Z}=l.props,X=ks(Z).includes(I),se=e.rules.filter(ee=>ee.trigger?ks(ee.trigger).includes(I):X);se.length&&D(se)}},m=I=>{var Z;const{maxlength:X}=e;if($e(X)&&Nt(I)>+X){const se=c();if(se&&Nt(se)===+X)return se;const ee=(Z=o.value)==null?void 0:Z.selectionEnd;if(r.focused&&ee){const Ae=[...I],qe=Ae.length-+X;return Ae.splice(ee-qe,qe),Ae.join("")}return Hr(I,+X)}return I},b=(I,Z="onChange")=>{var X,se;const ee=I;I=m(I);const Ae=Nt(ee)-Nt(I);if(e.type==="number"||e.type==="digit"){const O=e.type==="number";if(I=S_(I,O,O),Z==="onBlur"&&I!==""&&(e.min!==void 0||e.max!==void 0)){const z=I_(+I,(X=e.min)!=null?X:-1/0,(se=e.max)!=null?se:1/0);+I!==z&&(I=z.toString())}}let qe=0;if(e.formatter&&Z===e.formatTrigger){const{formatter:O,maxlength:z}=e;if(I=O(I),$e(z)&&Nt(I)>+z&&(I=Hr(I,+z)),o.value&&r.focused){const{selectionEnd:ot}=o.value,le=Hr(ee,ot);qe=Nt(O(le))-Nt(le)}}if(o.value&&o.value.value!==I)if(r.focused){let{selectionStart:O,selectionEnd:z}=o.value;if(o.value.value=I,$e(O)&&$e(z)){const ot=Nt(I);Ae?(O-=Ae,z-=Ae):qe&&(O+=qe,z+=qe),o.value.setSelectionRange(Math.min(O,ot),Math.min(z,ot))}}else o.value.value=I;I!==e.modelValue&&t("update:modelValue",I)},E=I=>{I.target.composing||b(I.target.value)},y=()=>{var I;return(I=o.value)==null?void 0:I.blur()},w=()=>{var I;return(I=o.value)==null?void 0:I.focus()},T=()=>{const I=o.value;e.type==="textarea"&&e.autosize&&I&&Lg(I,e.autosize)},A=I=>{r.focused=!0,t("focus",I),i.nextTick(T),f("readonly")&&y()},B=I=>{r.focused=!1,b(c(),"onBlur"),t("blur",I),!f("readonly")&&(v("onBlur"),i.nextTick(T),v_())},he=I=>t("clickInput",I),U=I=>t("clickLeftIcon",I),R=I=>t("clickRightIcon",I),Q=I=>{zn(I),t("update:modelValue",""),t("clear",I)},q=i.computed(()=>{if(typeof e.error=="boolean")return e.error;if(l&&l.props.showError&&r.status==="failed")return!0}),ue=i.computed(()=>{const I=f("labelWidth"),Z=f("labelAlign");if(I&&Z!=="top")return{width:Je(I)}}),Ue=I=>{I.keyCode===13&&(!(l&&l.props.submitOnEnter)&&e.type!=="textarea"&&zn(I),e.type==="search"&&y()),t("keypress",I)},M=()=>e.id||`${u}-input`,Y=()=>r.status,P=()=>{const I=rt("control",[f("inputAlign"),{error:q.value,custom:!!n.input,"min-height":e.type==="textarea"&&!e.autosize}]);if(n.input)return i.createVNode("div",{class:I,onClick:he},[n.input()]);const Z={id:M(),ref:o,name:e.name,rows:e.rows!==void 0?+e.rows:void 0,class:I,disabled:f("disabled"),readonly:f("readonly"),autofocus:e.autofocus,placeholder:e.placeholder,autocomplete:e.autocomplete,autocapitalize:e.autocapitalize,autocorrect:e.autocorrect,enterkeyhint:e.enterkeyhint,spellcheck:e.spellcheck,"aria-labelledby":e.label?`${u}-label`:void 0,"data-allow-mismatch":"attribute",onBlur:B,onFocus:A,onInput:E,onClick:he,onChange:Hs,onKeypress:Ue,onCompositionend:Hs,onCompositionstart:Og};return e.type==="textarea"?i.createVNode("textarea",i.mergeProps(Z,{inputmode:e.inputmode}),null):i.createVNode("input",i.mergeProps(Fg(e.type,e.inputmode),Z),null)},_e=()=>{const I=n["left-icon"];if(e.leftIcon||I)return i.createVNode("div",{class:rt("left-icon"),onClick:U},[I?I():i.createVNode(Yt,{name:e.leftIcon,classPrefix:e.iconPrefix},null)])},W=()=>{const I=n["right-icon"];if(e.rightIcon||I)return i.createVNode("div",{class:rt("right-icon"),onClick:R},[I?I():i.createVNode(Yt,{name:e.rightIcon,classPrefix:e.iconPrefix},null)])},Le=()=>{if(e.showWordLimit&&e.maxlength){const I=Nt(c());return i.createVNode("div",{class:rt("word-limit")},[i.createVNode("span",{class:rt("word-num")},[I]),i.createTextVNode("/"),e.maxlength])}},re=()=>{if(l&&l.props.showErrorMessage===!1)return;const I=e.errorMessage||r.validateMessage;if(I){const Z=n["error-message"],X=f("errorMessageAlign");return i.createVNode("div",{class:rt("error-message",X)},[Z?Z({message:I}):I])}},ht=()=>{const I=f("labelWidth"),Z=f("labelAlign"),X=f("colon")?":":"";if(n.label)return[n.label(),X];if(e.label)return i.createVNode("label",{id:`${u}-label`,for:n.input?void 0:M(),"data-allow-mismatch":"attribute",onClick:se=>{zn(se),w()},style:Z==="top"&&I?{width:Je(I)}:void 0},[e.label+X])},ie=()=>[i.createVNode("div",{class:rt("body")},[P(),d.value&&i.createVNode(Yt,{ref:a,name:e.clearIcon,class:rt("clear")},null),W(),n.button&&i.createVNode("div",{class:rt("button")},[n.button()])]),Le(),re()];return jr({blur:y,focus:w,validate:D,formValue:h,resetValidation:x,getValidationStatus:Y}),i.provide(x_,{customValue:s,resetValidation:x,validateWithTrigger:v}),i.watch(()=>e.modelValue,()=>{b(c()),x(),v("onChange"),i.nextTick(T)}),i.onMounted(()=>{b(c(),e.formatTrigger),i.nextTick(T)}),$r("touchstart",Q,{target:i.computed(()=>{var I;return(I=a.value)==null?void 0:I.$el})}),()=>{const I=f("disabled"),Z=f("labelAlign"),X=_e(),se=()=>{const ee=ht();return Z==="top"?[X,ee].filter(Boolean):ee||[]};return i.createVNode(Ag,{size:e.size,class:rt({error:q.value,disabled:I,[`label-${Z}`]:Z}),center:e.center,border:e.border,isLink:e.isLink,clickable:e.clickable,titleStyle:ue.value,valueClass:rt("value"),titleClass:[rt("label",[Z,{required:_.value}]),e.labelClass],arrowDirection:e.arrowDirection},{icon:X&&Z!=="top"?()=>X:null,title:se,value:ie,extra:n.extra})}}});const Bg=Rt(Rg);let qn=0;function $g(e){e?(qn||document.body.classList.add("van-toast--unclickable"),qn++):qn&&(qn--,qn||document.body.classList.remove("van-toast--unclickable"))}const[Ug,bn]=wt("toast"),zg=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"],jg={icon:String,show:Boolean,type:Re("text"),overlay:Boolean,message:Oe,iconSize:Oe,duration:m_(2e3),position:Re("middle"),teleport:[String,Object],wordBreak:String,className:Mt,iconPrefix:String,transition:Re("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:Mt,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:Oe};var qs=i.defineComponent({name:Ug,props:jg,emits:["update:show"],setup(e,{emit:t,slots:n}){let u,r=!1;const o=()=>{const d=e.show&&e.forbidClick;r!==d&&(r=d,$g(r))},a=d=>t("update:show",d),s=()=>{e.closeOnClick&&a(!1)},l=()=>clearTimeout(u),c=()=>{const{icon:d,type:h,iconSize:_,iconPrefix:p,loadingType:x}=e;if(d||h==="success"||h==="fail")return i.createVNode(Yt,{name:d||h,size:_,class:bn("icon"),classPrefix:p},null);if(h==="loading")return i.createVNode(cg,{class:bn("loading"),size:_,type:x},null)},f=()=>{const{type:d,message:h}=e;if(n.message)return i.createVNode("div",{class:bn("text")},[n.message()]);if($e(h)&&h!=="")return d==="html"?i.createVNode("div",{key:0,class:bn("text"),innerHTML:String(h)},null):i.createVNode("div",{class:bn("text")},[h])};return i.watch(()=>[e.show,e.forbidClick],o),i.watch(()=>[e.show,e.type,e.message,e.duration],()=>{l(),e.show&&e.duration>0&&(u=setTimeout(()=>{a(!1)},e.duration))}),i.onMounted(o),i.onUnmounted(o),()=>i.createVNode(Cg,i.mergeProps({class:[bn([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:s,onClosed:l,"onUpdate:show":a},h_(e,zg)),{default:()=>[c(),f()]})}});function Hg(){const e=i.reactive({show:!1}),t=r=>{e.show=r},n=r=>{dt(e,r,{transitionAppear:!0}),t(!0)},u=()=>t(!1);return jr({open:n,close:u,toggle:t}),{open:n,close:u,state:e,toggle:t}}function qg(e){const t=i.createApp(e),n=document.createElement("div");return document.body.appendChild(n),{instance:t.mount(n),unmount(){t.unmount(),document.body.removeChild(n)}}}const Wg={icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1};let Iu=[],Yg=!1,Ws=dt({},Wg);const Gg=new Map;function Xg(e){return Un(e)?e:{message:e}}function Zg(){const{instance:e}=qg({setup(){const t=i.ref(""),{open:n,state:u,close:r,toggle:o}=Hg(),a=()=>{},s=()=>{const l={onClosed:a,"onUpdate:show":o};return i.createVNode(qs,i.mergeProps(u,l),null)};return i.watch(t,l=>{u.message=l}),i.getCurrentInstance().render=s,{open:n,close:r,message:t}}});return e}function Kg(){if(!Iu.length||Yg){const e=Zg();Iu.push(e)}return Iu[Iu.length-1]}function Dt(e={}){if(!Rr)return{};const t=Kg(),n=Xg(e);return t.open(dt({},Ws,Gg.get(n.type||Ws.type),n)),t}Rt(qs);const Jg={class:"pf_wrap"},Qg={class:"pf_form"},eb=["onClick"],tb={key:0,class:"sex_wrap"},nb={key:1,class:"input_wrap"},ub={class:"unit"},rb={key:2,class:"sport_wrap"},ob=["onClick"],ab={class:"name"},ib={class:"sub"},sb={key:3,class:"taste_wrap"},lb={class:"box"},cb=["onClick"],fb={class:"box"},db=["onClick"],hb=ke({__name:"personalForm",props:{query:{type:String,default:""}},emits:["submit"],setup(e,{emit:t}){const{t:n,locale:u}=tn(),r=i.ref(!1),o=e,a=i.ref({key:"sex",sex:"",age:"",height:"",weight:"",sport:"",taste:[],taboo:[],title:"标题",unit:"",dialogHeight:"50vh",min:0,max:100,type:"digit"}),s=i.ref([{key:"rest",name:n("personal_form.sport_list.rest"),sub:n("personal_form.sport_list.rest_sub")},{key:"sedentary",name:n("personal_form.sport_list.sedentary"),sub:n("personal_form.sport_list.sedentary_sub")},{key:"light",name:n("personal_form.sport_list.light"),sub:n("personal_form.sport_list.light_sub")},{key:"medium",name:n("personal_form.sport_list.medium"),sub:n("personal_form.sport_list.medium_sub")},{key:"heavy",name:n("personal_form.sport_list.heavy"),sub:n("personal_form.sport_list.heavy_sub")}]),l=i.computed(()=>n("personal_form.taste_list")),c=i.computed(()=>n("personal_form.taboo_list")),f=i.ref([{key:"sex",label:n("personal_form.sex"),value:"",placeholder:n("personal_form.placeholder.sex"),required:!0},{key:"age",label:n("personal_form.age"),value:"",placeholder:n("personal_form.placeholder.age"),unit:n("personal_form.unit.age"),required:!0},{key:"height",label:n("personal_form.height"),value:"",placeholder:n("personal_form.placeholder.height"),unit:n("personal_form.unit.height"),required:!0},{key:"weight",label:n("personal_form.weight"),value:"",placeholder:n("personal_form.placeholder.weight"),unit:n("personal_form.unit.weight"),required:!0},{key:"sport",label:n("personal_form.sport"),value:"sedentary",placeholder:n("personal_form.placeholder.sport"),required:!0},{key:"taste",label:n("personal_form.taste"),value:"",taste:[],taboo:[],placeholder:n("personal_form.placeholder.taste"),required:!1}]),d=t;i.onMounted(()=>{const m=localStorage.getItem("personalInfo");if(m){const b=JSON.parse(m);for(let E=0;E<f.value.length;E++){const y=b.find(w=>w.key===f.value[E].key);y&&(f.value[E].value=y.value||"",y.taste&&(f.value[E].taste=y.taste),y.taboo&&(f.value[E].taboo=y.taboo))}}console.log("== xx ===",f.value)});const h=i.computed(()=>f.value.filter(m=>m.key!=="taste").every(m=>m.value!=="")),_=m=>{switch(a.value.key=m.key,m.key){case"sex":a.value.title=n("personal_form.dialog.sex"),a.value.dialogHeight="300px",a.value.sex=m.value;break;case"age":a.value.title=n("personal_form.dialog.age"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.age=m.value,a.value.min=6,a.value.max=100,a.value.type="number";break;case"height":a.value.title=n("personal_form.dialog.height"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.height=m.value,a.value.min=100,a.value.max=220,a.value.type="digit";break;case"weight":a.value.title=n("personal_form.dialog.weight"),a.value.dialogHeight="240px",a.value.unit=m.unit,a.value.weight=m.value,a.value.min=10,a.value.max=150,a.value.type="digit";break;case"sport":a.value.title=n("personal_form.dialog.sport"),a.value.dialogHeight="420px",a.value.unit="",a.value.sport=m.value;break;case"taste":a.value.title=n("personal_form.dialog.taste"),a.value.dialogHeight="500px",a.value.unit="",a.value.taste=[...m.taste],a.value.taboo=[...m.taboo];break}console.log(a.value,m),r.value=!0},p=()=>{switch(a.value.key){case"sex":if(!a.value.sex){Dt(n("personal_form.toast.select_sex"));return}f.value.find(m=>m.key==="sex").value=a.value.sex;break;case"age":if(!a.value.age){Dt(n("personal_form.toast.input_age"));return}f.value.find(m=>m.key==="age").value=a.value.age;break;case"height":if(!a.value.height){Dt(n("personal_form.toast.input_height"));return}f.value.find(m=>m.key==="height").value=a.value.height;break;case"weight":if(!a.value.weight){Dt(n("personal_form.toast.input_weight"));return}f.value.find(m=>m.key==="weight").value=a.value.weight;break;case"sport":if(!a.value.sport){Dt(n("personal_form.toast.select_sport"));return}f.value.find(m=>m.key==="sport").value=a.value.sport;break;case"taste":f.value.find(m=>m.key==="taste").taste=a.value.taste,f.value.find(m=>m.key==="taste").taboo=a.value.taboo,f.value.find(m=>m.key==="taste").value=[...a.value.taste,...a.value.taboo].join("、");break}r.value=!1},x=()=>{if(!h.value){Dt(n("personal_form.toast.fill_all"));return}const m=f.value.findIndex(T=>T.key==="age"),b=f.value.findIndex(T=>T.key==="height"),E=f.value.findIndex(T=>T.key==="weight");if(f.value[m].value<6||f.value[m].value>100){Dt(n("personal_form.toast.age_range"));return}if(f.value[b].value<100||f.value[b].value>220){Dt(n("personal_form.toast.height_range"));return}if(f.value[E].value<10||f.value[E].value>150){Dt(n("personal_form.toast.weight_range"));return}const y=f.value.map(T=>{const{value:A,taste:B,taboo:he}=T;return{key:T.key,value:A,taste:B,taboo:he}});localStorage.setItem("personalInfo",JSON.stringify(y));const w=`${o.query};
62
- ${n("personal_form.sex")}:${f.value.find(T=>T.key==="sex").value};
63
- ${n("personal_form.age")}:${f.value[m].value}${f.value[m].unit||""};
64
- ${n("personal_form.height")}:${f.value[b].value}${f.value[b].unit||""};
65
- ${n("personal_form.weight")}:${f.value[E].value}${f.value[E].unit||""};
66
- ${n("personal_form.sport")}:${n(`personal_form.sport_list.${f.value.find(T=>T.key==="sport").value}`)};
67
- ${n("personal_form.taste")}:${f.value.find(T=>T.key==="taste").value?f.value.find(T=>T.key==="taste").value:n("personal_form.no_taboo")};`;console.log(w),d("submit",[{content:w,text:w}])},C=(m,b)=>{a.value[b].includes(m)?a.value[b]=a.value[b].filter(E=>E!==m):a.value[b].push(m)},D=m=>{a.value.sport=m.key,p()},v=m=>{a.value.sex=m,p()};return(m,b)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Jg,[i.createElementVNode("div",Qg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(f.value,E=>(i.openBlock(),i.createElementBlock("div",{key:E.key,class:"pf_row"},[i.createElementVNode("div",{class:i.normalizeClass(["title",{is_required:E.required}])},i.toDisplayString(E.label),3),i.createElementVNode("div",{class:"content",onClick:y=>_(E)},[i.createElementVNode("span",{class:"text_row",style:i.normalizeStyle({color:E.value?"#000":"#75759d"})},i.toDisplayString(E.value?E.key==="sport"?i.unref(n)(`personal_form.sport_list.${E.value}`):`${E.value} ${E.unit||""}`:E.placeholder),5),i.createVNode(wi,{class:"arrow"})],8,eb)]))),128))]),i.createElementVNode("div",{class:i.normalizeClass(["pf_btn",{disabled:!h.value}]),onClick:i.withModifiers(x,["stop"])},i.toDisplayString(i.unref(n)("personal_form.button")),3)]),i.createVNode(c_,{show:r.value,"onUpdate:show":b[3]||(b[3]=E=>r.value=E),title:a.value.title,height:a.value.dialogHeight,onConfirm:p},{default:i.withCtx(()=>[a.value.key==="sex"?(i.openBlock(),i.createElementBlock("div",tb,[i.createElementVNode("div",{class:i.normalizeClass({sex:!0,selected:a.value.sex==="male"}),onClick:b[0]||(b[0]=i.withModifiers(E=>v("male"),["stop"]))},i.toDisplayString(i.unref(n)("personal_form.sex_options.male")),3),i.createElementVNode("div",{class:i.normalizeClass({sex:!0,selected:a.value.sex==="female"}),onClick:b[1]||(b[1]=i.withModifiers(E=>v("female"),["stop"]))},i.toDisplayString(i.unref(n)("personal_form.sex_options.female")),3)])):i.createCommentVNode("",!0),["age","height","weight"].includes(a.value.key)?(i.openBlock(),i.createElementBlock("div",nb,[i.createVNode(i.unref(Bg),{modelValue:a.value[a.value.key],"onUpdate:modelValue":b[2]||(b[2]=E=>a.value[a.value.key]=E),class:"input",type:a.value.type,min:a.value.min,max:a.value.max,onKeyup:i.withKeys(p,["enter"]),placeholder:"请输入"},null,8,["modelValue","type","min","max"]),i.createElementVNode("div",ub,i.toDisplayString(a.value.unit),1)])):i.createCommentVNode("",!0),a.value.key==="sport"?(i.openBlock(),i.createElementBlock("div",rb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,E=>(i.openBlock(),i.createElementBlock("div",{key:E.key,class:i.normalizeClass({row:!0,selected:a.value.sport===E.key}),onClick:i.withModifiers(y=>D(E),["stop"])},[i.createElementVNode("div",ab,i.toDisplayString(E.name),1),i.createElementVNode("div",ib,i.toDisplayString(E.sub),1)],10,ob))),128))])):i.createCommentVNode("",!0),a.value.key==="taste"?(i.openBlock(),i.createElementBlock("div",sb,[b[4]||(b[4]=i.createElementVNode("div",{class:"title"},"口味偏好",-1)),i.createElementVNode("div",lb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(l.value,E=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({tag:!0,selected:a.value.taste.includes(E)}),key:E,onClick:i.withModifiers(y=>C(E,"taste"),["stop"])},i.toDisplayString(E),11,cb))),128))]),b[5]||(b[5]=i.createElementVNode("div",{class:"line"},null,-1)),b[6]||(b[6]=i.createElementVNode("div",{class:"title"},"饮食禁忌",-1)),i.createElementVNode("div",fb,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.value,E=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass({tag:!0,selected:a.value.taboo.includes(E)}),key:E,onClick:i.withModifiers(y=>C(E,"taboo"),["stop"])},i.toDisplayString(E),11,db))),128))])])):i.createCommentVNode("",!0)]),_:1},8,["show","title","height"])],64))}},[["__scopeId","data-v-06b2822d"]]),mb={class:"cui_box"},pb={class:"cui_wrap"},_b={key:0,class:"cui_header"},gb={class:"name_box"},bb={class:"name"},Eb={key:0,class:"name_sub"},yb={class:"btn_group"},kb={style:{"font-size":"14px"}},xb={class:"btn"},Cb={class:"btn"},vb={class:"cui_content"},wb={key:0,style:{"text-align":"left","margin-top":"50px"}},Nb={style:{"text-align":"center"}},Db=["src"],Tb={class:"board_name"},Ab={class:"board_desc"},Ib={class:"flexcss"},Sb=["onClick"],Ob={key:0,class:"replay role_sys"},Lb={class:"replay_content"},Fb={class:"name"},Pb=["src"],Mb={class:"box"},Vb={key:0,class:"think_status"},Rb={key:1,class:"think_status"},Bb={class:"think_text"},$b={key:0},Ub={key:4},zb={key:1},jb={key:2,class:"loading_row"},Hb={key:1,class:"replay role_user"},qb={class:"replay_content"},Wb={class:"name"},Yb=["src"],Gb={class:"box"},Xb=["innerHTML"],Zb={key:0},Ys=ke({__name:"ChatUi",props:{logo:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/weis_logo.png"},avatar:{type:String,default:"https://prodstatic.weis1606.cn/api/smartFood/icon/def_gray.svg"},name:{type:String,default:"Weis Bot"},nameSub:{type:String,default:"nutribite.com"},botId:{type:String,required:!0},uid:{type:String,required:!0,default:"user"},channel:{type:String,default:"web"},token:{type:String,required:!0},postToken:{type:String,default:""},showHeader:{type:Boolean,default:!0},tagList:{type:Array,default:()=>[{name:"人工客服",value:"kefu",type:"chat",msg:"人工客服"},{name:"查看菜单",value:"menu",type:"call",msg:"查看菜单"},{name:"体检报告",value:"exam",type:"upload",msg:"体检报告"}]},defMsg:{type:Object,default:()=>({})},contentTye:{type:String,default:"text"},cardList:{type:Object,default:()=>({store:!0,dishes:!0,plan:!0,personalForm:!1})},storage:{type:String,default:"sessionStorage"},needLog:{type:Boolean,default:!1},firstMsg:{type:String,default:""},lang:{type:String,default:"zh-CN"}},emits:["call","log"],setup(e,{emit:t}){const{t:n}=tn(),u=i.computed(()=>({headers:{Authorization:`Bearer ${h.token}`,"Content-Type":"application/json"}})),r=i.ref(""),o=i.ref(!1),a=i.ref("00"),s=i.ref([]),l=i.ref(!1),c=i.ref(1),f={placeholder:n("msg_obj.placeholder"),fileText:n("msg_obj.fileText"),uploadingTips:n("msg_obj.uploadingTips"),matchText:n("msg_obj.matchText"),matchContent:n("msg_obj.matchContent"),energy:n("msg_obj.energy"),protein:n("msg_obj.protein"),fat:n("msg_obj.fat"),carbonwater:n("msg_obj.carbonwater"),newChat:n("msg_obj.newChat"),thinking:n("msg_obj.thinking"),thinkCompleted:n("msg_obj.thinkCompleted"),useSolution:n("msg_obj.useSolution"),aiTips:n("msg_obj.aiTips")},d={store:!0,dishes:!0,plan:!0,personalForm:!1},h=e,_=t;i.watch(()=>h.lang,M=>{N0.global.locale.value=M},{immediate:!0});const p=i.computed(()=>({...f,...h.defMsg})),x=i.computed(()=>({...d,...h.cardList})),C=i.ref(null),D=i.ref(""),v=i.ref({}),m={setItem:(M,Y)=>{h.storage==="sessionStorage"?sessionStorage.setItem(M,Y):localStorage.setItem(M,Y)},getItem:M=>h.storage==="sessionStorage"?sessionStorage.getItem(M):localStorage.getItem(M)};i.onMounted(async()=>{localStorage.setItem("postToken",h.postToken||""),m.getItem("conversationId")?(r.value=m.getItem("conversationId"),await T(),await w(),l.value=!1):(await E(),h.firstMsg&&await b()),q()});const b=async()=>{const M=[{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"2",weight:"50",height:"160"}},age:25,msg:`本食谱为均衡营养版${h.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
68
- 性别:女;
69
- 年龄:25岁;
70
- 身高:160cm;
71
- 体重:50kg;
72
- 日常运动水平:久坐;
73
- 口味偏好及饮食禁忌:无;
74
- 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"03",profileInfo:{birthday:"20010101",motion:"01",sex:"1",weight:"65",height:"170"}},age:25,msg:`本食谱为均衡营养版${h.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
75
- 性别:男;
76
- 年龄:25岁;
77
- 身高:170cm;
78
- 体重:65kg;
79
- 日常运动水平:久坐;
80
- 口味偏好及饮食禁忌:无;
81
- 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"2",weight:"65",height:"160"}},age:35,msg:`本食谱为控卡版${h.firstMsg}的食疗调养方案示例,依据以下女性常规身体数据制定:
82
- 性别:女;
83
- 年龄:35岁;
84
- 身高:160cm;
85
- 体重:65kg;
86
- 日常运动水平:久坐;
87
- 口味偏好及饮食禁忌:无;
88
- 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`},{params:{planType:"01",profileInfo:{birthday:"19910101",motion:"01",sex:"1",weight:"75",height:"170"}},age:35,msg:`本食谱为控卡版${h.firstMsg}的食疗调养方案示例,依据以下男性常规身体数据制定:
89
- 性别:男;
90
- 年龄:35岁;
91
- 身高:170cm;
92
- 体重:75kg;
93
- 日常运动水平:久坐;
94
- 口味偏好及饮食禁忌:无;
95
- 如需定制贴合个人情况的专属方案,请前往完善个人身体数据,获取个性化定制食谱。`}];let Y=localStorage.getItem("preset_point")||0;Y++,Y>=M.length&&(Y=0),localStorage.setItem("preset_point",Y);const P=M[Y],W=`帮我定制${h.firstMsg}的⻝疗调养⽅案`;s.value=[{conversation_id:"",bot_id:h.botId,role:"user",content:W,reasoning_content:"",status:"ended",extra:[]}];const Le=await uu("/api/cn.weis.api.Food/bdGeneralTemp",{method:"bdGeneralTemp",params:[{...P.params}],token:h.postToken});if(Le.errCode===0&&Le.obj){const re={};(Le.obj.planDetails||[]).forEach(ie=>{re[ie.category]={energy:`热量:${ie.totalKcal}kcal`,carbonWater:`碳水:${ie.carbohydrateTotal}g`,protein:`蛋白质:${ie.proteinTotal}g`,fat:`脂肪:${ie.fatTotal}g`}});const ht=`我将为您出通用的食谱建议,如您有定制化健康诉求,请点击下方“私人订制个性食谱”来让我结合您的个人情况制定个性化配餐计划
96
-
97
-
98
- | 早餐 | | 午餐 |
99
- |------------|----------|----|
100
- | ${re["01"].energy} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["02"].energy} |
101
- | ${re["01"].carbonWater} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["02"].carbonWater} |
102
- | ${re["01"].protein} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["02"].protein} |
103
- | ${re["01"].fat} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["02"].fat} |
104
-
105
- | 晚餐 | | 加餐 |
106
- |------------|----------|----|
107
- | ${re["03"].energy} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["04"].energy} |
108
- | ${re["03"].carbonWater} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["04"].carbonWater} |
109
- | ${re["03"].protein} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["04"].protein} |
110
- | ${re["03"].fat} |&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; | ${re["04"].fat} |`;s.value.push({conversation_id:"",bot_id:h.botId,role:"assistant",content:ht,reasoning_content:"",status:"ended",extra:[{...Le.obj,showType:"card"}]}),_("log",{turns:c.value,info:{...s.value[s.value.length-1],question:{content:W,role:"user"}}})}},E=async()=>{const M=await uu("https://api.coze.cn/v1/conversation/create",{bot_id:h.botId,connector_id:"999"},{...u.value});l.value=!0,c.value=0,console.log(M),M.code===0&&M.data&&(r.value=M.data.id||"",m.setItem("conversationId",r.value),s.value=[],await T())},y=async M=>{a.value="01";let Y=Array.isArray(M);const P=h.botId;if(!(!o.value&&(D.value||Y)))return;const _e=D.value;console.log("== user send ==",Y,M,_e),o.value=!0;const W=[],Le={conversation_id:r.value,bot_id:P,role:"user",content:"",reasoning_content:"",status:"ended",extra:[]},re=`chat_${new Date().getTime()};`;M.forEach(ee=>{ee.hasOwnProperty("content")&&ee.content&&(ee.hasOwnProperty("type")&&ee.type==="object_string"?(console.log("=== item ====",ee),W.push({content:JSON.stringify(ee.content.map(Ae=>({type:Ae.type,file_id:Ae.file_id}))),content_type:"object_string",role:"user",meta_data:{chat_group:re}}),Le.extra=ee.content.map(Ae=>({...Ae,showType:Ae.type}))):(Le.content=ee.text,W.push({content:ee.content,content_type:"text",role:"user",meta_data:{chat_group:re}})))}),s.value.push(Le),a.value="02";const ht=await fetch(`https://api.coze.cn/v3/chat?conversation_id=${r.value}`,{method:"POST",headers:{...u.value.headers},body:JSON.stringify({bot_id:P,user_id:h.uid,stream:!0,connector_id:"999",additional_messages:W,custom_variables:{uid:h.uid}}),credentials:"same-origin",mode:"cors",cache:"default"});a.value="03",s.value.push({conversation_id:"",bot_id:"",role:"assistant",content:"",reasoning_content:"",status:"answering",extra:[]}),q(),D.value="";const ie=s.value.length-1,I=ht.body.getReader(),Z=new TextDecoder("utf-8");let X="";const se=()=>{console.log("======= End ======",s.value,l.value),l.value&&(s.value[ie].extra.findIndex(ee=>ee.hasOwnProperty("showType"))===-1&&s.value[ie].extra.push({showType:"personalForm"}),l.value=!1,console.log("===============",s.value[ie]))};for(;;){const{done:ee,value:Ae}=await I.read();if(ee){console.log("Stream has ended."),o.value=!1,a.value="00",s.value[ie].status="ended",se(),h.needLog&&(_("log",{turns:c.value,info:{...s.value[ie],question:{...Le}}}),c.value+=1),q();break}const qe=Z.decode(Ae,{stream:!0});X+=qe;const O=X.split(`
111
- `);X=O.pop(),O.forEach(z=>{if(z.trim().length>0&&z.trim().startsWith("data:")){const ot=z.replace(/^data:\s*/,""),le=JSON.parse(ot);if(console.log("Received:",le),o.value=!0,a.value="04",!s.value[ie].bot_id&&le.bot_id&&(s.value[ie].bot_id=le.bot_id),!s.value[ie].conversation_id&&le.conversation_id&&(s.value[ie].conversation_id=le.conversation_id),le.hasOwnProperty("reasoning_content")&&le.reasoning_content&&le.type==="answer")s.value[ie].status="thinking",s.value[ie].reasoning_content+=le.reasoning_content,q();else if(le.hasOwnProperty("content")&&le.hasOwnProperty("content_type")&&le.content_type==="text"&&le.hasOwnProperty("type")&&le.type==="answer"&&!le.hasOwnProperty("created_at"))s.value[ie].status="answering",s.value[ie].content=A(s.value[ie].content+le.content),q();else if(le.hasOwnProperty("type")&&le.type==="tool_response"){const yt=JSON.parse(le.content);if(yt.hasOwnProperty("showType"))s.value[ie].extra.push({...yt});else if(yt.hasOwnProperty("response_for_model")){const En=JSON.parse(yt.response_for_model);En.hasOwnProperty("showType")&&s.value[ie].extra.push({...En})}q()}}})}console.log("====",s.value)},w=async()=>{const M=await uu(`https://api.coze.cn/v1/conversation/message/list?conversation_id=${r.value}`,{order:"asc"},{...u.value});if(M.code===0&&M.data&&M.data.length){s.value=[];const Y=[];M.data.forEach(P=>{if(P.hasOwnProperty("content_type")){if(P.content_type==="text")s.value.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,meta_data:P.meta_data,content:A(P.content),reasoning_content:P.reasoning_content,status:"ended",extra:[]});else if(P.content_type==="card"&&P.role==="assistant")try{const _e=JSON.parse(P.content);if(_e.hasOwnProperty("showType"))Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,extra:[{..._e}]});else if(_e.hasOwnProperty("response_for_model")){const W=JSON.parse(_e.response_for_model);W.hasOwnProperty("showType")&&Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,extra:[{...W}]})}}catch{console.log("== 解析错误 sys==")}else if(P.content_type==="object_string"&&P.role==="user")try{const _e=JSON.parse(P.content);Y.push({chat_id:P.chat_id,conversation_id:P.conversation_id,bot_id:P.bot_id,role:P.role,meta_data:P.meta_data,extra:_e.map(W=>({...W,showType:W.type}))})}catch{console.log("== 解析错误 user==")}}}),Y.forEach(P=>{const _e=P.role==="user"?s.value.findIndex(W=>W.meta_data.chat_group===P.meta_data.chat_group&&W.role===P.role):s.value.findIndex(W=>W.chat_id===P.chat_id&&W.role===P.role);_e>-1&&(s.value[_e].extra=[...P.extra])})}console.log("== history ==",s.value,x.value)},T=async()=>{const M=await R0(`https://api.coze.cn/v1/bot/get_online_info?bot_id=${h.botId}`,{...u.value});console.log(M),M.code===0&&M.data&&(v.value={...M.data})},A=M=>M,B=()=>{_("call",{type:"back"})},he=M=>{y([{content:M.content,text:M.text}])},U=M=>{switch(console.log(M),M.type){case"chat":y([{content:M.msg,text:M.msg}]);break;case"call":_("call",{...M});break;case"simulate":Ue(M);break}},R=({type:M},Y)=>{switch(M){case"change":y([{content:"換一套菜品",text:"換一套菜品"}]);break;case"match":y([{content:p.value.matchContent,text:p.value.matchText}]);break;case"personalForm":Ue({msg:"请为我生成一份个性化的健康的食谱",name:"用户信息",type:"simulate",value:"personalForm"});break;default:_("call",{type:M,info:Y})}},Q=M=>{switch(M.type){case"new_chat":E();break;default:_("call",M);break}},q=()=>{setTimeout(()=>{i.nextTick(()=>{C.value.scrollIntoView()})},100)};i.provide("triggerScrollToEnd",q);const ue=M=>/#全日總熱量:(\d*?)kcal/g.test(M),Ue=M=>{console.log("== simulateChat == ",M),s.value.push({conversation_id:"",bot_id:h.botId,role:"user",content:M.msg,reasoning_content:"",status:"ended",extra:[]});let Y={msg:"",extra:[]};switch(M.value){case"personalForm":Y.msg="请填写您的身体数据,维小饭将根据你的身体数据智能生成个性化食谱",Y.extra=[{showType:"personalForm"}];break;case"contactKF":Y.msg="联系专业营养师团队帮你快速实现科学配比的健康餐营养搭配。",Y.extra=[{showType:"contactKF"}];break}s.value.push({conversation_id:"",bot_id:h.botId,role:"assistant",content:Y.msg,reasoning_content:"",status:"ended",extra:[...Y.extra]}),c.value+=1,_("log",{turns:c.value,info:{...s.value[s.value.length-1],question:{content:M.msg,role:"user"}}}),q()};return(M,Y)=>(i.openBlock(),i.createElementBlock("div",mb,[i.createElementVNode("div",pb,[e.showHeader?(i.openBlock(),i.createElementBlock("div",_b,[i.createElementVNode("div",{class:"title",onClick:i.withModifiers(w,["stop"])},[i.createElementVNode("div",{class:"back",onClick:i.withModifiers(B,["stop"])},[i.createVNode(em)]),i.createElementVNode("div",gb,[i.createElementVNode("div",bb,i.toDisplayString(e.name),1),e.nameSub?(i.openBlock(),i.createElementBlock("div",Eb,i.toDisplayString(e.nameSub),1)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",yb,[i.createElementVNode("button",{class:"btn",onClick:i.withModifiers(E,["stop"])},[i.createVNode(Di,{class:"icon"}),i.createElementVNode("span",kb,i.toDisplayString(p.value.newChat),1)]),i.withDirectives(i.createElementVNode("template",null,[i.createElementVNode("button",xb,[i.createVNode(I0)]),i.createElementVNode("button",Cb,[i.createVNode(ka)])],512),[[i.vShow,!1]])])])):i.createCommentVNode("",!0),i.createElementVNode("div",vb,[v.value&&v.value.onboarding_info?(i.openBlock(),i.createElementBlock("div",wb,[i.createElementVNode("div",Nb,[i.createElementVNode("img",{src:v.value.icon_url,alt:"icon",width:"64",height:"64",style:{"border-radius":"15px"}},null,8,Db),i.createElementVNode("p",Tb,i.toDisplayString(v.value.name),1)]),i.createElementVNode("div",Ab,i.toDisplayString(v.value.onboarding_info.prologue),1),i.createElementVNode("div",Ib,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(v.value.onboarding_info.suggested_questions,(P,_e)=>(i.openBlock(),i.createElementBlock("span",{key:_e,class:"board_sug",onClick:i.withModifiers(W=>y([{content:P,text:P}]),["stop"])},i.toDisplayString(P),9,Sb))),128))])])):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(P,_e)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:_e},[P.role==="assistant"?(i.openBlock(),i.createElementBlock("div",Ob,[i.createElementVNode("div",Lb,[i.createElementVNode("div",Fb,[i.createElementVNode("img",{class:"avatar",src:e.logo,alt:"avatar"},null,8,Pb),i.createTextVNode(" "+i.toDisplayString(e.name),1)]),i.createElementVNode("div",Mb,[P.reasoning_content?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[P.status==="thinking"?(i.openBlock(),i.createElementBlock("div",Vb,[i.createVNode(fm,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(p.value.thinking),1)])):(i.openBlock(),i.createElementBlock("div",Rb,[i.createVNode(pm,{class:"icon"}),i.createTextVNode(" "+i.toDisplayString(p.value.thinkCompleted),1)])),i.createElementVNode("p",Bb,i.toDisplayString(P.reasoning_content),1)],64)):i.createCommentVNode("",!0),P.content?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[e.contentTye==="text"?(i.openBlock(),i.createBlock(bm,{key:0,content:P.content},null,8,["content"])):e.contentTye==="markdown"?(i.openBlock(),i.createBlock(e_,{key:1,content:P.content},null,8,["content"])):i.createCommentVNode("",!0),o.value?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[P.extra.length?(i.openBlock(),i.createElementBlock("div",$b,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(P.extra,(W,Le)=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:Le},[x.value.dishes&&W.showType==="card"?(i.openBlock(),i.createBlock(B1,{key:0,"sku-list":W.skuList,"is-mini":!e.showHeader,"def-msg":p.value,channel:e.channel,onSelect:re=>R(re,W)},null,8,["sku-list","is-mini","def-msg","channel","onSelect"])):i.createCommentVNode("",!0),x.value.plan&&W.showType==="plan"?(i.openBlock(),i.createBlock(uh,{key:1,info:W,"def-msg":p.value,onSelect:re=>R({type:"match"},W)},null,8,["info","def-msg","onSelect"])):i.createCommentVNode("",!0),x.value.store&&W.showType==="store"?(i.openBlock(),i.createBlock(Cm,{key:2,list:W.storeList,onSelect:he},null,8,["list"])):i.createCommentVNode("",!0),x.value.personalForm&&W.showType==="personalForm"?(i.openBlock(),i.createBlock(hb,{key:3,query:e.firstMsg,onSubmit:y},null,8,["query"])):i.createCommentVNode("",!0),W.showType==="contactKF"?(i.openBlock(),i.createElementBlock("div",Ub,Y[2]||(Y[2]=[i.createTextVNode(" 电话热线:"),i.createElementVNode("a",{href:"tel:4006681606"},"400 6681 606",-1),i.createElementVNode("img",{src:"https://prodstatic.weis1606.cn/api/smartFood/mealPlan/contact_kf.png",alt:"",width:"100%",style:{"margin-top":"10px"}},null,-1)]))):i.createCommentVNode("",!0)],64))),128))])):ue(P.content)?(i.openBlock(),i.createElementBlock("div",zb,[i.createElementVNode("div",{class:"cui_btn cui_btn_2",onClick:Y[0]||(Y[0]=i.withModifiers(W=>R({type:"match"},{}),["stop"]))},i.toDisplayString(p.value.useSolution),1)])):i.createCommentVNode("",!0)],64))],64)):i.createCommentVNode("",!0),o.value&&_e===s.value.length-1?(i.openBlock(),i.createElementBlock("div",jb,[Y[3]||(Y[3]=i.createTextVNode(" Ai努力生成中... ")),i.createVNode(rm)])):i.createCommentVNode("",!0)])])])):(i.openBlock(),i.createElementBlock("div",Hb,[i.createElementVNode("div",qb,[i.createElementVNode("div",Wb,[Y[4]||(Y[4]=i.createTextVNode(" 健康用户 ")),i.createElementVNode("img",{class:"avatar",src:e.avatar,alt:"avatar"},null,8,Yb)]),i.createElementVNode("div",Gb,[i.createElementVNode("p",{class:"text",innerHTML:P.content},null,8,Xb),P.extra.length?(i.openBlock(),i.createElementBlock("div",Zb,[i.createVNode(im,{list:P.extra},null,8,["list"])])):i.createCommentVNode("",!0)])])]))],64))),128)),i.createElementVNode("div",{ref_key:"endTarget",ref:C,style:{height:"100px"}},null,512)]),i.createVNode(Zh,{modelValue:D.value,"onUpdate:modelValue":Y[1]||(Y[1]=P=>D.value=P),"new-chat":!e.showHeader,token:e.token,"tag-list":e.tagList,"def-msg":p.value,"is-req":a.value,onSend:y,onTag:U,onCall:Q},null,8,["modelValue","new-chat","token","tag-list","def-msg","is-req"])])]))}},[["__scopeId","data-v-85614598"]]);ze.ChatUi=Ys,ze.default=Ys,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});