@squirrel-cloud/ui-vue 0.3.8 → 0.3.10

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.
@@ -4657,7 +4657,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4657
4657
  });
4658
4658
  wu(d, (S) => {
4659
4659
  const z = document.scrollingElement;
4660
- S ? (r = z.style.overflow, z.style.overflow = "hidden", s.value = e()) : (l.value = !1, f.value = !1, p.value = 0, h.value = { x: 0, y: 0 }, z.style.overflow = r);
4660
+ S ? (r = z.style.overflow, z.style.overflow = "hidden", s.value = e()) : (l.value = !1, f.value = !1, p.value = 0, h.value = { x: 0, y: 0 }, a.value = 1, z.style.overflow = r);
4661
4661
  });
4662
4662
  function _(S) {
4663
4663
  S.deltaY < 0 ? Z() : y();
@@ -4755,7 +4755,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4755
4755
  P(b(ru), {
4756
4756
  text: "",
4757
4757
  icon: b(mr),
4758
- disabled: a.value === i.maxScale,
4758
+ disabled: a.value >= i.maxScale,
4759
4759
  onClick: Z
4760
4760
  }, null, 8, ["icon", "disabled"])
4761
4761
  ]),
@@ -4766,7 +4766,7 @@ const Fi = ["disabled", "form", "type"], Si = "sq-button", ru = /* @__PURE__ */
4766
4766
  P(b(ru), {
4767
4767
  text: "",
4768
4768
  icon: b(vr),
4769
- disabled: a.value === i.minScale,
4769
+ disabled: a.value <= i.minScale,
4770
4770
  onClick: y
4771
4771
  }, null, 8, ["icon", "disabled"])
4772
4772
  ]),
@@ -46,4 +46,4 @@
46
46
  `:">",c},ge.prototype.renderInline=function(e,u,t){let o="";const r=this.rules;for(let c=0,i=e.length;c<i;c++){const s=e[c].type;typeof r[s]<"u"?o+=r[s](e,c,u,t,this):o+=this.renderToken(e,c,u)}return o},ge.prototype.renderInlineAsText=function(e,u,t){let o="";for(let r=0,c=e.length;r<c;r++)switch(e[r].type){case"text":o+=e[r].content;break;case"image":o+=this.renderInlineAsText(e[r].children,u,t);break;case"html_inline":case"html_block":o+=e[r].content;break;case"softbreak":case"hardbreak":o+=`
47
47
  `;break}return o},ge.prototype.render=function(e,u,t){let o="";const r=this.rules;for(let c=0,i=e.length;c<i;c++){const s=e[c].type;s==="inline"?o+=this.renderInline(e[c].children,u,t):typeof r[s]<"u"?o+=r[s](e,c,u,t,this):o+=this.renderToken(e,c,u,t)}return o};function j(){this.__rules__=[],this.__cache__=null}j.prototype.__find__=function(e){for(let u=0;u<this.__rules__.length;u++)if(this.__rules__[u].name===e)return u;return-1},j.prototype.__compile__=function(){const e=this,u=[""];e.__rules__.forEach(function(t){t.enabled&&t.alt.forEach(function(o){u.indexOf(o)<0&&u.push(o)})}),e.__cache__={},u.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(o){o.enabled&&(t&&o.alt.indexOf(t)<0||e.__cache__[t].push(o.fn))})})},j.prototype.at=function(e,u,t){const o=this.__find__(e),r=t||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__[o].fn=u,this.__rules__[o].alt=r.alt||[],this.__cache__=null},j.prototype.before=function(e,u,t,o){const r=this.__find__(e),c=o||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r,0,{name:u,enabled:!0,fn:t,alt:c.alt||[]}),this.__cache__=null},j.prototype.after=function(e,u,t,o){const r=this.__find__(e),c=o||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(r+1,0,{name:u,enabled:!0,fn:t,alt:c.alt||[]}),this.__cache__=null},j.prototype.push=function(e,u,t){const o=t||{};this.__rules__.push({name:e,enabled:!0,fn:u,alt:o.alt||[]}),this.__cache__=null},j.prototype.enable=function(e,u){Array.isArray(e)||(e=[e]);const t=[];return e.forEach(function(o){const r=this.__find__(o);if(r<0){if(u)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!0,t.push(o)},this),this.__cache__=null,t},j.prototype.enableOnly=function(e,u){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(t){t.enabled=!1}),this.enable(e,u)},j.prototype.disable=function(e,u){Array.isArray(e)||(e=[e]);const t=[];return e.forEach(function(o){const r=this.__find__(o);if(r<0){if(u)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[r].enabled=!1,t.push(o)},this),this.__cache__=null,t},j.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function rt(e,u,t){this.src=e,this.env=t,this.tokens=[],this.inlineMode=!1,this.md=u}rt.prototype.Token=W;const $o=/\r\n?|\n/g,To=/\0/g;function Ro(e){let u;u=e.src.replace($o,`
48
48
  `),u=u.replace(To,"�"),e.src=u}function Lo(e){let u;e.inlineMode?(u=new e.Token("inline","",0),u.content=e.src,u.map=[0,1],u.children=[],e.tokens.push(u)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Io(e){const u=e.tokens;for(let t=0,o=u.length;t<o;t++){const r=u[t];r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}function Vo(e){return/^<a[>\s]/i.test(e)}function Po(e){return/^<\/a\s*>/i.test(e)}function Oo(e){const u=e.tokens;if(e.md.options.linkify)for(let t=0,o=u.length;t<o;t++){if(u[t].type!=="inline"||!e.md.linkify.pretest(u[t].content))continue;let r=u[t].children,c=0;for(let i=r.length-1;i>=0;i--){const s=r[i];if(s.type==="link_close"){for(i--;r[i].level!==s.level&&r[i].type!=="link_open";)i--;continue}if(s.type==="html_inline"&&(Vo(s.content)&&c>0&&c--,Po(s.content)&&c++),!(c>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const a=s.content;let l=e.md.linkify.match(a);const f=[];let d=s.level,b=0;l.length>0&&l[0].index===0&&i>0&&r[i-1].type==="text_special"&&(l=l.slice(1));for(let h=0;h<l.length;h++){const p=l[h].url,m=e.md.normalizeLink(p);if(!e.md.validateLink(m))continue;let g=l[h].text;l[h].schema?l[h].schema==="mailto:"&&!/^mailto:/i.test(g)?g=e.md.normalizeLinkText("mailto:"+g).replace(/^mailto:/,""):g=e.md.normalizeLinkText(g):g=e.md.normalizeLinkText("http://"+g).replace(/^http:\/\//,"");const _=l[h].index;if(_>b){const w=new e.Token("text","",0);w.content=a.slice(b,_),w.level=d,f.push(w)}const k=new e.Token("link_open","a",1);k.attrs=[["href",m]],k.level=d++,k.markup="linkify",k.info="auto",f.push(k);const E=new e.Token("text","",0);E.content=g,E.level=d,f.push(E);const C=new e.Token("link_close","a",-1);C.level=--d,C.markup="linkify",C.info="auto",f.push(C),b=l[h].lastIndex}if(b<a.length){const h=new e.Token("text","",0);h.content=a.slice(b),h.level=d,f.push(h)}u[t].children=r=nt(r,i,f)}}}}const ct=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,vo=/\((c|tm|r)\)/i,jo=/\((c|tm|r)\)/ig,Zo={c:"©",r:"®",tm:"™"};function Ho(e,u){return Zo[u.toLowerCase()]}function Uo(e){let u=0;for(let t=e.length-1;t>=0;t--){const o=e[t];o.type==="text"&&!u&&(o.content=o.content.replace(jo,Ho)),o.type==="link_open"&&o.info==="auto"&&u--,o.type==="link_close"&&o.info==="auto"&&u++}}function Wo(e){let u=0;for(let t=e.length-1;t>=0;t--){const o=e[t];o.type==="text"&&!u&&ct.test(o.content)&&(o.content=o.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–")),o.type==="link_open"&&o.info==="auto"&&u--,o.type==="link_close"&&o.info==="auto"&&u++}}function Go(e){let u;if(e.md.options.typographer)for(u=e.tokens.length-1;u>=0;u--)e.tokens[u].type==="inline"&&(vo.test(e.tokens[u].content)&&Uo(e.tokens[u].children),ct.test(e.tokens[u].content)&&Wo(e.tokens[u].children))}const Xo=/['"]/,it=/['"]/g,st="’";function Oe(e,u,t){return e.slice(0,u)+t+e.slice(u+1)}function Yo(e,u){let t;const o=[];for(let r=0;r<e.length;r++){const c=e[r],i=e[r].level;for(t=o.length-1;t>=0&&!(o[t].level<=i);t--);if(o.length=t+1,c.type!=="text")continue;let s=c.content,a=0,l=s.length;e:for(;a<l;){it.lastIndex=a;const f=it.exec(s);if(!f)break;let d=!0,b=!0;a=f.index+1;const h=f[0]==="'";let p=32;if(f.index-1>=0)p=s.charCodeAt(f.index-1);else for(t=r-1;t>=0&&!(e[t].type==="softbreak"||e[t].type==="hardbreak");t--)if(e[t].content){p=e[t].content.charCodeAt(e[t].content.length-1);break}let m=32;if(a<l)m=s.charCodeAt(a);else for(t=r+1;t<e.length&&!(e[t].type==="softbreak"||e[t].type==="hardbreak");t++)if(e[t].content){m=e[t].content.charCodeAt(0);break}const g=Se(p)||Be(String.fromCharCode(p)),_=Se(m)||Be(String.fromCharCode(m)),k=Fe(p),E=Fe(m);if(E?d=!1:_&&(k||g||(d=!1)),k?b=!1:g&&(E||_||(b=!1)),m===34&&f[0]==='"'&&p>=48&&p<=57&&(b=d=!1),d&&b&&(d=g,b=_),!d&&!b){h&&(c.content=Oe(c.content,f.index,st));continue}if(b)for(t=o.length-1;t>=0;t--){let C=o[t];if(o[t].level<i)break;if(C.single===h&&o[t].level===i){C=o[t];let w,B;h?(w=u.md.options.quotes[2],B=u.md.options.quotes[3]):(w=u.md.options.quotes[0],B=u.md.options.quotes[1]),c.content=Oe(c.content,f.index,B),e[C.token].content=Oe(e[C.token].content,C.pos,w),a+=B.length-1,C.token===r&&(a+=w.length-1),s=c.content,l=s.length,o.length=t;continue e}}d?o.push({token:r,pos:f.index,single:h,level:i}):b&&h&&(c.content=Oe(c.content,f.index,st))}}}function Qo(e){if(e.md.options.typographer)for(let u=e.tokens.length-1;u>=0;u--)e.tokens[u].type!=="inline"||!Xo.test(e.tokens[u].content)||Yo(e.tokens[u].children,e)}function Ko(e){let u,t;const o=e.tokens,r=o.length;for(let c=0;c<r;c++){if(o[c].type!=="inline")continue;const i=o[c].children,s=i.length;for(u=0;u<s;u++)i[u].type==="text_special"&&(i[u].type="text");for(u=t=0;u<s;u++)i[u].type==="text"&&u+1<s&&i[u+1].type==="text"?i[u+1].content=i[u].content+i[u+1].content:(u!==t&&(i[t]=i[u]),t++);u!==t&&(i.length=t)}}const mu=[["normalize",Ro],["block",Lo],["inline",Io],["linkify",Oo],["replacements",Go],["smartquotes",Qo],["text_join",Ko]];function xu(){this.ruler=new j;for(let e=0;e<mu.length;e++)this.ruler.push(mu[e][0],mu[e][1])}xu.prototype.process=function(e){const u=this.ruler.getRules("");for(let t=0,o=u.length;t<o;t++)u[t](e)},xu.prototype.State=rt;function K(e,u,t,o){this.src=e,this.md=u,this.env=t,this.tokens=o,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 c=0,i=0,s=0,a=0,l=r.length,f=!1;i<l;i++){const d=r.charCodeAt(i);if(!f)if(R(d)){s++,d===9?a+=4-a%4:a++;continue}else f=!0;(d===10||i===l-1)&&(d!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(s),this.sCount.push(a),this.bsCount.push(0),f=!1,s=0,a=0,c=i+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}K.prototype.push=function(e,u,t){const o=new W(e,u,t);return o.block=!0,t<0&&this.level--,o.level=this.level,t>0&&this.level++,this.tokens.push(o),o},K.prototype.isEmpty=function(u){return this.bMarks[u]+this.tShift[u]>=this.eMarks[u]},K.prototype.skipEmptyLines=function(u){for(let t=this.lineMax;u<t&&!(this.bMarks[u]+this.tShift[u]<this.eMarks[u]);u++);return u},K.prototype.skipSpaces=function(u){for(let t=this.src.length;u<t;u++){const o=this.src.charCodeAt(u);if(!R(o))break}return u},K.prototype.skipSpacesBack=function(u,t){if(u<=t)return u;for(;u>t;)if(!R(this.src.charCodeAt(--u)))return u+1;return u},K.prototype.skipChars=function(u,t){for(let o=this.src.length;u<o&&this.src.charCodeAt(u)===t;u++);return u},K.prototype.skipCharsBack=function(u,t,o){if(u<=o)return u;for(;u>o;)if(t!==this.src.charCodeAt(--u))return u+1;return u},K.prototype.getLines=function(u,t,o,r){if(u>=t)return"";const c=new Array(t-u);for(let i=0,s=u;s<t;s++,i++){let a=0;const l=this.bMarks[s];let f=l,d;for(s+1<t||r?d=this.eMarks[s]+1:d=this.eMarks[s];f<d&&a<o;){const b=this.src.charCodeAt(f);if(R(b))b===9?a+=4-(a+this.bsCount[s])%4:a++;else if(f-l<this.tShift[s])a++;else break;f++}a>o?c[i]=new Array(a-o+1).join(" ")+this.src.slice(f,d):c[i]=this.src.slice(f,d)}return c.join("")},K.prototype.Token=W;const Jo=65536;function gu(e,u){const t=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];return e.src.slice(t,o)}function at(e){const u=[],t=e.length;let o=0,r=e.charCodeAt(o),c=!1,i=0,s="";for(;o<t;)r===124&&(c?(s+=e.substring(i,o-1),i=o):(u.push(s+e.substring(i,o)),s="",i=o+1)),c=r===92,o++,r=e.charCodeAt(o);return u.push(s+e.substring(i)),u}function er(e,u,t,o){if(u+2>t)return!1;let r=u+1;if(e.sCount[r]<e.blkIndent||e.sCount[r]-e.blkIndent>=4)return!1;let c=e.bMarks[r]+e.tShift[r];if(c>=e.eMarks[r])return!1;const i=e.src.charCodeAt(c++);if(i!==124&&i!==45&&i!==58||c>=e.eMarks[r])return!1;const s=e.src.charCodeAt(c++);if(s!==124&&s!==45&&s!==58&&!R(s)||i===45&&R(s))return!1;for(;c<e.eMarks[r];){const C=e.src.charCodeAt(c);if(C!==124&&C!==45&&C!==58&&!R(C))return!1;c++}let a=gu(e,u+1),l=a.split("|");const f=[];for(let C=0;C<l.length;C++){const w=l[C].trim();if(!w){if(C===0||C===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(w))return!1;w.charCodeAt(w.length-1)===58?f.push(w.charCodeAt(0)===58?"center":"right"):w.charCodeAt(0)===58?f.push("left"):f.push("")}if(a=gu(e,u).trim(),a.indexOf("|")===-1||e.sCount[u]-e.blkIndent>=4)return!1;l=at(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop();const d=l.length;if(d===0||d!==f.length)return!1;if(o)return!0;const b=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),m=[u,0];p.map=m;const g=e.push("thead_open","thead",1);g.map=[u,u+1];const _=e.push("tr_open","tr",1);_.map=[u,u+1];for(let C=0;C<l.length;C++){const w=e.push("th_open","th",1);f[C]&&(w.attrs=[["style","text-align:"+f[C]]]);const B=e.push("inline","",0);B.content=l[C].trim(),B.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let k,E=0;for(r=u+2;r<t&&!(e.sCount[r]<e.blkIndent);r++){let C=!1;for(let B=0,z=h.length;B<z;B++)if(h[B](e,r,t,!0)){C=!0;break}if(C||(a=gu(e,r).trim(),!a)||e.sCount[r]-e.blkIndent>=4||(l=at(a),l.length&&l[0]===""&&l.shift(),l.length&&l[l.length-1]===""&&l.pop(),E+=d-l.length,E>Jo))break;if(r===u+2){const B=e.push("tbody_open","tbody",1);B.map=k=[u+2,0]}const w=e.push("tr_open","tr",1);w.map=[r,r+1];for(let B=0;B<d;B++){const z=e.push("td_open","td",1);f[B]&&(z.attrs=[["style","text-align:"+f[B]]]);const T=e.push("inline","",0);T.content=l[B]?l[B].trim():"",T.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return k&&(e.push("tbody_close","tbody",-1),k[1]=r),e.push("table_close","table",-1),m[1]=r,e.parentType=b,e.line=r,!0}function ur(e,u,t){if(e.sCount[u]-e.blkIndent<4)return!1;let o=u+1,r=o;for(;o<t;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,r=o;continue}break}e.line=r;const c=e.push("code_block","code",0);return c.content=e.getLines(u,r,4+e.blkIndent,!1)+`
49
- `,c.map=[u,e.line],!0}function tr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||r+3>c)return!1;const i=e.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let s=r;r=e.skipChars(r,i);let a=r-s;if(a<3)return!1;const l=e.src.slice(s,r),f=e.src.slice(r,c);if(i===96&&f.indexOf(String.fromCharCode(i))>=0)return!1;if(o)return!0;let d=u,b=!1;for(;d++,!(d>=t||(r=s=e.bMarks[d]+e.tShift[d],c=e.eMarks[d],r<c&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===i&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,i),!(r-s<a)&&(r=e.skipSpaces(r),!(r<c)))){b=!0;break}a=e.sCount[u],e.line=d+(b?1:0);const h=e.push("fence","code",0);return h.info=f,h.content=e.getLines(u+1,d,a,!0),h.markup=l,h.map=[u,e.line],!0}function nr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];const i=e.lineMax;if(e.sCount[u]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(o)return!0;const s=[],a=[],l=[],f=[],d=e.md.block.ruler.getRules("blockquote"),b=e.parentType;e.parentType="blockquote";let h=!1,p;for(p=u;p<t;p++){const E=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],c=e.eMarks[p],r>=c)break;if(e.src.charCodeAt(r++)===62&&!E){let w=e.sCount[p]+1,B,z;e.src.charCodeAt(r)===32?(r++,w++,z=!1,B=!0):e.src.charCodeAt(r)===9?(B=!0,(e.bsCount[p]+w)%4===3?(r++,w++,z=!1):z=!0):B=!1;let T=w;for(s.push(e.bMarks[p]),e.bMarks[p]=r;r<c;){const y=e.src.charCodeAt(r);if(R(y))y===9?T+=4-(T+e.bsCount[p]+(z?1:0))%4:T++;else break;r++}h=r>=c,a.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(B?1:0),l.push(e.sCount[p]),e.sCount[p]=T-w,f.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(h)break;let C=!1;for(let w=0,B=d.length;w<B;w++)if(d[w](e,p,t,!0)){C=!0;break}if(C){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),a.push(e.bsCount[p]),f.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),a.push(e.bsCount[p]),f.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const _=[u,0];g.map=_,e.md.block.tokenize(e,u,p);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=i,e.parentType=b,_[1]=e.line;for(let E=0;E<f.length;E++)e.bMarks[E+u]=s[E],e.tShift[E+u]=f[E],e.sCount[E+u]=l[E],e.bsCount[E+u]=a[E];return e.blkIndent=m,!0}function or(e,u,t,o){const r=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4)return!1;let c=e.bMarks[u]+e.tShift[u];const i=e.src.charCodeAt(c++);if(i!==42&&i!==45&&i!==95)return!1;let s=1;for(;c<r;){const l=e.src.charCodeAt(c++);if(l!==i&&!R(l))return!1;l===i&&s++}if(s<3)return!1;if(o)return!0;e.line=u+1;const a=e.push("hr","hr",0);return a.map=[u,e.line],a.markup=Array(s+1).join(String.fromCharCode(i)),!0}function lt(e,u){const t=e.eMarks[u];let o=e.bMarks[u]+e.tShift[u];const r=e.src.charCodeAt(o++);if(r!==42&&r!==45&&r!==43)return-1;if(o<t){const c=e.src.charCodeAt(o);if(!R(c))return-1}return o}function ft(e,u){const t=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];let r=t;if(r+1>=o)return-1;let c=e.src.charCodeAt(r++);if(c<48||c>57)return-1;for(;;){if(r>=o)return-1;if(c=e.src.charCodeAt(r++),c>=48&&c<=57){if(r-t>=10)return-1;continue}if(c===41||c===46)break;return-1}return r<o&&(c=e.src.charCodeAt(r),!R(c))?-1:r}function rr(e,u){const t=e.level+2;for(let o=u+2,r=e.tokens.length-2;o<r;o++)e.tokens[o].level===t&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}function cr(e,u,t,o){let r,c,i,s,a=u,l=!0;if(e.sCount[a]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]<e.blkIndent)return!1;let f=!1;o&&e.parentType==="paragraph"&&e.sCount[a]>=e.blkIndent&&(f=!0);let d,b,h;if((h=ft(e,a))>=0){if(d=!0,i=e.bMarks[a]+e.tShift[a],b=Number(e.src.slice(i,h-1)),f&&b!==1)return!1}else if((h=lt(e,a))>=0)d=!1;else return!1;if(f&&e.skipSpaces(h)>=e.eMarks[a])return!1;if(o)return!0;const p=e.src.charCodeAt(h-1),m=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),b!==1&&(s.attrs=[["start",b]])):s=e.push("bullet_list_open","ul",1);const g=[a,0];s.map=g,s.markup=String.fromCharCode(p);let _=!1;const k=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";a<t;){c=h,r=e.eMarks[a];const C=e.sCount[a]+h-(e.bMarks[a]+e.tShift[a]);let w=C;for(;c<r;){const I=e.src.charCodeAt(c);if(I===9)w+=4-(w+e.bsCount[a])%4;else if(I===32)w++;else break;c++}const B=c;let z;B>=r?z=1:z=w-C,z>4&&(z=1);const T=C+z;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const y=[a,0];s.map=y,d&&(s.info=e.src.slice(i,h-1));const A=e.tight,x=e.tShift[a],M=e.sCount[a],N=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[a]=B-e.bMarks[a],e.sCount[a]=w,B>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,t):e.md.block.tokenize(e,a,t,!0),(!e.tight||_)&&(l=!1),_=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=N,e.tShift[a]=x,e.sCount[a]=M,e.tight=A,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),a=e.line,y[1]=a,a>=t||e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)break;let $=!1;for(let I=0,O=k.length;I<O;I++)if(k[I](e,a,t,!0)){$=!0;break}if($)break;if(d){if(h=ft(e,a),h<0)break;i=e.bMarks[a]+e.tShift[a]}else if(h=lt(e,a),h<0)break;if(p!==e.src.charCodeAt(h-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),g[1]=a,e.line=a,e.parentType=E,l&&rr(e,m),!0}function ir(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u],i=u+1;if(e.sCount[u]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function s(k){const E=e.lineMax;if(k>=E||e.isEmpty(k))return null;let C=!1;if(e.sCount[k]-e.blkIndent>3&&(C=!0),e.sCount[k]<0&&(C=!0),!C){const z=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let y=!1;for(let A=0,x=z.length;A<x;A++)if(z[A](e,k,E,!0)){y=!0;break}if(e.parentType=T,y)return null}const w=e.bMarks[k]+e.tShift[k],B=e.eMarks[k];return e.src.slice(w,B+1)}let a=e.src.slice(r,c+1);c=a.length;let l=-1;for(r=1;r<c;r++){const k=a.charCodeAt(r);if(k===91)return!1;if(k===93){l=r;break}else if(k===10){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}else if(k===92&&(r++,r<c&&a.charCodeAt(r)===10)){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}}if(l<0||a.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<c;r++){const k=a.charCodeAt(r);if(k===10){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}else if(!R(k))break}const f=e.md.helpers.parseLinkDestination(a,r,c);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const b=r,h=i,p=r;for(;r<c;r++){const k=a.charCodeAt(r);if(k===10){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}else if(!R(k))break}let m=e.md.helpers.parseLinkTitle(a,r,c);for(;m.can_continue;){const k=s(i);if(k===null)break;a+=k,r=c,c=a.length,i++,m=e.md.helpers.parseLinkTitle(a,r,c,m)}let g;for(r<c&&p!==r&&m.ok?(g=m.str,r=m.pos):(g="",r=b,i=h);r<c;){const k=a.charCodeAt(r);if(!R(k))break;r++}if(r<c&&a.charCodeAt(r)!==10&&g)for(g="",r=b,i=h;r<c;){const k=a.charCodeAt(r);if(!R(k))break;r++}if(r<c&&a.charCodeAt(r)!==10)return!1;const _=Pe(a.slice(1,l));return _?(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[_]>"u"&&(e.env.references[_]={title:g,href:d}),e.line=i),!0):!1}const sr=["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"],ar="[a-zA-Z_:][a-zA-Z0-9:._-]*",lr="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",dt="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+ar+"(?:\\s*=\\s*"+lr+")?)")+"*\\s*\\/?>",pt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",fr="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",dr="<[?][\\s\\S]*?[?]>",pr="<![A-Za-z][^>]*>",hr="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",br=new RegExp("^(?:"+dt+"|"+pt+"|"+fr+"|"+dr+"|"+pr+"|"+hr+")"),mr=new RegExp("^(?:"+dt+"|"+pt+")"),_e=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+sr.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(mr.source+"\\s*$"),/^$/,!1]];function xr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let i=e.src.slice(r,c),s=0;for(;s<_e.length&&!_e[s][0].test(i);s++);if(s===_e.length)return!1;if(o)return _e[s][2];let a=u+1;if(!_e[s][1].test(i)){for(;a<t&&!(e.sCount[a]<e.blkIndent);a++)if(r=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],i=e.src.slice(r,c),_e[s][1].test(i)){i.length!==0&&a++;break}}e.line=a;const l=e.push("html_block","",0);return l.map=[u,a],l.content=e.getLines(u,a,e.blkIndent,!0),!0}function gr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(r);if(i!==35||r>=c)return!1;let s=1;for(i=e.src.charCodeAt(++r);i===35&&r<c&&s<=6;)s++,i=e.src.charCodeAt(++r);if(s>6||r<c&&!R(i))return!1;if(o)return!0;c=e.skipSpacesBack(c,r);const a=e.skipCharsBack(c,35,r);a>r&&R(e.src.charCodeAt(a-1))&&(c=a),e.line=u+1;const l=e.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[u,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,c).trim(),f.map=[u,e.line],f.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function _r(e,u,t){const o=e.md.block.ruler.getRules("paragraph");if(e.sCount[u]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let c=0,i,s=u+1;for(;s<t&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let h=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(h<p&&(i=e.src.charCodeAt(h),(i===45||i===61)&&(h=e.skipChars(h,i),h=e.skipSpaces(h),h>=p))){c=i===61?1:2;break}}if(e.sCount[s]<0)continue;let b=!1;for(let h=0,p=o.length;h<p;h++)if(o[h](e,s,t,!0)){b=!0;break}if(b)break}if(!c)return!1;const a=e.getLines(u,s,e.blkIndent,!1).trim();e.line=s+1;const l=e.push("heading_open","h"+String(c),1);l.markup=String.fromCharCode(i),l.map=[u,e.line];const f=e.push("inline","",0);f.content=a,f.map=[u,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(c),-1);return d.markup=String.fromCharCode(i),e.parentType=r,!0}function kr(e,u,t){const o=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let c=u+1;for(e.parentType="paragraph";c<t&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)continue;let l=!1;for(let f=0,d=o.length;f<d;f++)if(o[f](e,c,t,!0)){l=!0;break}if(l)break}const i=e.getLines(u,c,e.blkIndent,!1).trim();e.line=c;const s=e.push("paragraph_open","p",1);s.map=[u,e.line];const a=e.push("inline","",0);return a.content=i,a.map=[u,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const ve=[["table",er,["paragraph","reference"]],["code",ur],["fence",tr,["paragraph","reference","blockquote","list"]],["blockquote",nr,["paragraph","reference","blockquote","list"]],["hr",or,["paragraph","reference","blockquote","list"]],["list",cr,["paragraph","reference","blockquote"]],["reference",ir],["html_block",xr,["paragraph","reference","blockquote"]],["heading",gr,["paragraph","reference","blockquote"]],["lheading",_r],["paragraph",kr]];function je(){this.ruler=new j;for(let e=0;e<ve.length;e++)this.ruler.push(ve[e][0],ve[e][1],{alt:(ve[e][2]||[]).slice()})}je.prototype.tokenize=function(e,u,t){const o=this.ruler.getRules(""),r=o.length,c=e.md.options.maxNesting;let i=u,s=!1;for(;i<t&&(e.line=i=e.skipEmptyLines(i),!(i>=t||e.sCount[i]<e.blkIndent));){if(e.level>=c){e.line=t;break}const a=e.line;let l=!1;for(let f=0;f<r;f++)if(l=o[f](e,i,t,!1),l){if(a>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<t&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},je.prototype.parse=function(e,u,t,o){if(!e)return;const r=new this.State(e,u,t,o);this.tokenize(r,r.line,r.lineMax)},je.prototype.State=K;function Me(e,u,t,o){this.src=e,this.env=t,this.md=u,this.tokens=o,this.tokens_meta=Array(o.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}Me.prototype.pushPending=function(){const e=new W("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Me.prototype.push=function(e,u,t){this.pending&&this.pushPending();const o=new W(e,u,t);let r=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o},Me.prototype.scanDelims=function(e,u){const t=this.posMax,o=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let c=e;for(;c<t&&this.src.charCodeAt(c)===o;)c++;const i=c-e,s=c<t?this.src.charCodeAt(c):32,a=Se(r)||Be(String.fromCharCode(r)),l=Se(s)||Be(String.fromCharCode(s)),f=Fe(r),d=Fe(s),b=!d&&(!l||f||a),h=!f&&(!a||d||l);return{can_open:b&&(u||!h||a),can_close:h&&(u||!b||l),length:i}},Me.prototype.Token=W;function yr(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 Cr(e,u){let t=e.pos;for(;t<e.posMax&&!yr(e.src.charCodeAt(t));)t++;return t===e.pos?!1:(u||(e.pending+=e.src.slice(e.pos,t)),e.pos=t,!0)}const Er=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function wr(e,u){if(!e.md.options.linkify||e.linkLevel>0)return!1;const t=e.pos,o=e.posMax;if(t+3>o||e.src.charCodeAt(t)!==58||e.src.charCodeAt(t+1)!==47||e.src.charCodeAt(t+2)!==47)return!1;const r=e.pending.match(Er);if(!r)return!1;const c=r[1],i=e.md.linkify.matchAtStart(e.src.slice(t-c.length));if(!i)return!1;let s=i.url;if(s.length<=c.length)return!1;s=s.replace(/\*+$/,"");const a=e.md.normalizeLink(s);if(!e.md.validateLink(a))return!1;if(!u){e.pending=e.pending.slice(0,-c.length);const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="linkify",l.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-c.length,!0}function Dr(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==10)return!1;const o=e.pending.length-1,r=e.posMax;if(!u)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){let c=o-1;for(;c>=1&&e.pending.charCodeAt(c-1)===32;)c--;e.pending=e.pending.slice(0,c),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(t++;t<r&&R(e.src.charCodeAt(t));)t++;return e.pos=t,!0}const _u=[];for(let e=0;e<256;e++)_u.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){_u[e.charCodeAt(0)]=1});function Ar(e,u){let t=e.pos;const o=e.posMax;if(e.src.charCodeAt(t)!==92||(t++,t>=o))return!1;let r=e.src.charCodeAt(t);if(r===10){for(u||e.push("hardbreak","br",0),t++;t<o&&(r=e.src.charCodeAt(t),!!R(r));)t++;return e.pos=t,!0}let c=e.src[t];if(r>=55296&&r<=56319&&t+1<o){const s=e.src.charCodeAt(t+1);s>=56320&&s<=57343&&(c+=e.src[t+1],t++)}const i="\\"+c;if(!u){const s=e.push("text_special","",0);r<256&&_u[r]!==0?s.content=c:s.content=i,s.markup=i,s.info="escape"}return e.pos=t+1,!0}function Fr(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==96)return!1;const r=t;t++;const c=e.posMax;for(;t<c&&e.src.charCodeAt(t)===96;)t++;const i=e.src.slice(r,t),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return u||(e.pending+=i),e.pos+=s,!0;let a=t,l;for(;(l=e.src.indexOf("`",a))!==-1;){for(a=l+1;a<c&&e.src.charCodeAt(a)===96;)a++;const f=a-l;if(f===s){if(!u){const d=e.push("code_inline","code",0);d.markup=i,d.content=e.src.slice(t,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[f]=l}return e.backticksScanned=!0,u||(e.pending+=i),e.pos+=s,!0}function Br(e,u){const t=e.pos,o=e.src.charCodeAt(t);if(u||o!==126)return!1;const r=e.scanDelims(e.pos,!0);let c=r.length;const i=String.fromCharCode(o);if(c<2)return!1;let s;c%2&&(s=e.push("text","",0),s.content=i,c--);for(let a=0;a<c;a+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function ht(e,u){let t;const o=[],r=u.length;for(let c=0;c<r;c++){const i=u[c];if(i.marker!==126||i.end===-1)continue;const s=u[i.end];t=e.tokens[i.token],t.type="s_open",t.tag="s",t.nesting=1,t.markup="~~",t.content="",t=e.tokens[s.token],t.type="s_close",t.tag="s",t.nesting=-1,t.markup="~~",t.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&o.push(s.token-1)}for(;o.length;){const c=o.pop();let i=c+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,c!==i&&(t=e.tokens[i],e.tokens[i]=e.tokens[c],e.tokens[c]=t)}}function Sr(e){const u=e.tokens_meta,t=e.tokens_meta.length;ht(e,e.delimiters);for(let o=0;o<t;o++)u[o]&&u[o].delimiters&&ht(e,u[o].delimiters)}const bt={tokenize:Br,postProcess:Sr};function Mr(e,u){const t=e.pos,o=e.src.charCodeAt(t);if(u||o!==95&&o!==42)return!1;const r=e.scanDelims(e.pos,o===42);for(let c=0;c<r.length;c++){const i=e.push("text","",0);i.content=String.fromCharCode(o),e.delimiters.push({marker:o,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 mt(e,u){const t=u.length;for(let o=t-1;o>=0;o--){const r=u[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const c=u[r.end],i=o>0&&u[o-1].end===r.end+1&&u[o-1].marker===r.marker&&u[o-1].token===r.token-1&&u[r.end+1].token===c.token+1,s=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?s+s:s,a.content="";const l=e.tokens[c.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?s+s:s,l.content="",i&&(e.tokens[u[o-1].token].content="",e.tokens[u[r.end+1].token].content="",o--)}}function qr(e){const u=e.tokens_meta,t=e.tokens_meta.length;mt(e,e.delimiters);for(let o=0;o<t;o++)u[o]&&u[o].delimiters&&mt(e,u[o].delimiters)}const xt={tokenize:Mr,postProcess:qr};function zr(e,u){let t,o,r,c,i="",s="",a=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,b=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let p=h+1;if(p<d&&e.src.charCodeAt(p)===40){for(l=!1,p++;p<d&&(t=e.src.charCodeAt(p),!(!R(t)&&t!==10));p++);if(p>=d)return!1;if(a=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?p=r.pos:i="",a=p;p<d&&(t=e.src.charCodeAt(p),!(!R(t)&&t!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&a!==p&&r.ok)for(s=r.str,p=r.pos;p<d&&(t=e.src.charCodeAt(p),!(!R(t)&&t!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(l=!0),p++}if(l){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(a=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?o=e.src.slice(a,p++):p=h+1):p=h+1,o||(o=e.src.slice(b,h)),c=e.env.references[Pe(o)],!c)return e.pos=f,!1;i=c.href,s=c.title}if(!u){e.pos=b,e.posMax=h;const m=e.push("link_open","a",1),g=[["href",i]];m.attrs=g,s&&g.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 Nr(e,u){let t,o,r,c,i,s,a,l,f="";const d=e.pos,b=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(c=p+1,c<b&&e.src.charCodeAt(c)===40){for(c++;c<b&&(t=e.src.charCodeAt(c),!(!R(t)&&t!==10));c++);if(c>=b)return!1;for(l=c,s=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?c=s.pos:f=""),l=c;c<b&&(t=e.src.charCodeAt(c),!(!R(t)&&t!==10));c++);if(s=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&l!==c&&s.ok)for(a=s.str,c=s.pos;c<b&&(t=e.src.charCodeAt(c),!(!R(t)&&t!==10));c++);else a="";if(c>=b||e.src.charCodeAt(c)!==41)return e.pos=d,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<b&&e.src.charCodeAt(c)===91?(l=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?r=e.src.slice(l,c++):c=p+1):c=p+1,r||(r=e.src.slice(h,p)),i=e.env.references[Pe(r)],!i)return e.pos=d,!1;f=i.href,a=i.title}if(!u){o=e.src.slice(h,p);const m=[];e.md.inline.parse(o,e.md,e.env,m);const g=e.push("image","img",0),_=[["src",f],["alt",""]];g.attrs=_,g.children=m,g.content=o,a&&_.push(["title",a])}return e.pos=c,e.posMax=b,!0}const $r=/^([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])?)*)$/,Tr=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Rr(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==60)return!1;const o=e.pos,r=e.posMax;for(;;){if(++t>=r)return!1;const i=e.src.charCodeAt(t);if(i===60)return!1;if(i===62)break}const c=e.src.slice(o+1,t);if(Tr.test(c)){const i=e.md.normalizeLink(c);if(!e.md.validateLink(i))return!1;if(!u){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(c);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=c.length+2,!0}if($r.test(c)){const i=e.md.normalizeLink("mailto:"+c);if(!e.md.validateLink(i))return!1;if(!u){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(c);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=c.length+2,!0}return!1}function Lr(e){return/^<a[>\s]/i.test(e)}function Ir(e){return/^<\/a\s*>/i.test(e)}function Vr(e){const u=e|32;return u>=97&&u<=122}function Pr(e,u){if(!e.md.options.html)return!1;const t=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=t)return!1;const r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!Vr(r))return!1;const c=e.src.slice(o).match(br);if(!c)return!1;if(!u){const i=e.push("html_inline","",0);i.content=c[0],Lr(i.content)&&e.linkLevel++,Ir(i.content)&&e.linkLevel--}return e.pos+=c[0].length,!0}const Or=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,vr=/^&([a-z][a-z0-9]{1,31});/i;function jr(e,u){const t=e.pos,o=e.posMax;if(e.src.charCodeAt(t)!==38||t+1>=o)return!1;if(e.src.charCodeAt(t+1)===35){const c=e.src.slice(t).match(Or);if(c){if(!u){const i=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),s=e.push("text_special","",0);s.content=bu(i)?Ve(i):Ve(65533),s.markup=c[0],s.info="entity"}return e.pos+=c[0].length,!0}}else{const c=e.src.slice(t).match(vr);if(c){const i=tt(c[0]);if(i!==c[0]){if(!u){const s=e.push("text_special","",0);s.content=i,s.markup=c[0],s.info="entity"}return e.pos+=c[0].length,!0}}}return!1}function gt(e){const u={},t=e.length;if(!t)return;let o=0,r=-2;const c=[];for(let i=0;i<t;i++){const s=e[i];if(c.push(0),(e[o].marker!==s.marker||r!==s.token-1)&&(o=i),r=s.token,s.length=s.length||0,!s.close)continue;u.hasOwnProperty(s.marker)||(u[s.marker]=[-1,-1,-1,-1,-1,-1]);const a=u[s.marker][(s.open?3:0)+s.length%3];let l=o-c[o]-1,f=l;for(;l>a;l-=c[l]+1){const d=e[l];if(d.marker===s.marker&&d.open&&d.end<0){let b=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(b=!0),!b){const h=l>0&&!e[l-1].open?c[l-1]+1:0;c[i]=i-l+h,c[l]=h,s.open=!1,d.end=i,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(u[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function Zr(e){const u=e.tokens_meta,t=e.tokens_meta.length;gt(e.delimiters);for(let o=0;o<t;o++)u[o]&&u[o].delimiters&&gt(u[o].delimiters)}function Hr(e){let u,t,o=0;const r=e.tokens,c=e.tokens.length;for(u=t=0;u<c;u++)r[u].nesting<0&&o--,r[u].level=o,r[u].nesting>0&&o++,r[u].type==="text"&&u+1<c&&r[u+1].type==="text"?r[u+1].content=r[u].content+r[u+1].content:(u!==t&&(r[t]=r[u]),t++);u!==t&&(r.length=t)}const ku=[["text",Cr],["linkify",wr],["newline",Dr],["escape",Ar],["backticks",Fr],["strikethrough",bt.tokenize],["emphasis",xt.tokenize],["link",zr],["image",Nr],["autolink",Rr],["html_inline",Pr],["entity",jr]],yu=[["balance_pairs",Zr],["strikethrough",bt.postProcess],["emphasis",xt.postProcess],["fragments_join",Hr]];function qe(){this.ruler=new j;for(let e=0;e<ku.length;e++)this.ruler.push(ku[e][0],ku[e][1]);this.ruler2=new j;for(let e=0;e<yu.length;e++)this.ruler2.push(yu[e][0],yu[e][1])}qe.prototype.skipToken=function(e){const u=e.pos,t=this.ruler.getRules(""),o=t.length,r=e.md.options.maxNesting,c=e.cache;if(typeof c[u]<"u"){e.pos=c[u];return}let i=!1;if(e.level<r){for(let s=0;s<o;s++)if(e.level++,i=t[s](e,!0),e.level--,i){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,c[u]=e.pos},qe.prototype.tokenize=function(e){const u=this.ruler.getRules(""),t=u.length,o=e.posMax,r=e.md.options.maxNesting;for(;e.pos<o;){const c=e.pos;let i=!1;if(e.level<r){for(let s=0;s<t;s++)if(i=u[s](e,!1),i){if(c>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},qe.prototype.parse=function(e,u,t,o){const r=new this.State(e,u,t,o);this.tokenize(r);const c=this.ruler2.getRules(""),i=c.length;for(let s=0;s<i;s++)c[s](r)},qe.prototype.State=Me;function Ur(e){const u={};e=e||{},u.src_Any=Qu.source,u.src_Cc=Ku.source,u.src_Z=et.source,u.src_P=fu.source,u.src_ZPCc=[u.src_Z,u.src_P,u.src_Cc].join("|"),u.src_ZCc=[u.src_Z,u.src_Cc].join("|");const t="[><|]";return u.src_pseudo_letter="(?:(?!"+t+"|"+u.src_ZPCc+")"+u.src_Any+")",u.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]?)",u.src_auth="(?:(?:(?!"+u.src_ZCc+"|[@/\\[\\]()]).)+@)?",u.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",u.src_host_terminator="(?=$|"+t+"|"+u.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+u.src_ZPCc+"))",u.src_path="(?:[/?#](?:(?!"+u.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+u.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+u.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+u.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+u.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+u.src_ZCc+"|[']).)+\\'|\\'(?="+u.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+u.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+u.src_ZCc+"|$)|;(?!"+u.src_ZCc+"|$)|\\!+(?!"+u.src_ZCc+"|[!]|$)|\\?(?!"+u.src_ZCc+"|[?]|$))+|\\/)?",u.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',u.src_xn="xn--[a-z0-9\\-]{1,59}",u.src_domain_root="(?:"+u.src_xn+"|"+u.src_pseudo_letter+"{1,63})",u.src_domain="(?:"+u.src_xn+"|(?:"+u.src_pseudo_letter+")|(?:"+u.src_pseudo_letter+"(?:-|"+u.src_pseudo_letter+"){0,61}"+u.src_pseudo_letter+"))",u.src_host="(?:(?:(?:(?:"+u.src_domain+")\\.)*"+u.src_domain+"))",u.tpl_host_fuzzy="(?:"+u.src_ip4+"|(?:(?:(?:"+u.src_domain+")\\.)+(?:%TLDS%)))",u.tpl_host_no_ip_fuzzy="(?:(?:(?:"+u.src_domain+")\\.)+(?:%TLDS%))",u.src_host_strict=u.src_host+u.src_host_terminator,u.tpl_host_fuzzy_strict=u.tpl_host_fuzzy+u.src_host_terminator,u.src_host_port_strict=u.src_host+u.src_port+u.src_host_terminator,u.tpl_host_port_fuzzy_strict=u.tpl_host_fuzzy+u.src_port+u.src_host_terminator,u.tpl_host_port_no_ip_fuzzy_strict=u.tpl_host_no_ip_fuzzy+u.src_port+u.src_host_terminator,u.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+u.src_ZPCc+"|>|$))",u.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+u.src_ZCc+")("+u.src_email_name+"@"+u.tpl_host_fuzzy_strict+")",u.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_fuzzy_strict+u.src_path+")",u.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_no_ip_fuzzy_strict+u.src_path+")",u}function Cu(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(o){e[o]=t[o]})}),e}function Ze(e){return Object.prototype.toString.call(e)}function Wr(e){return Ze(e)==="[object String]"}function Gr(e){return Ze(e)==="[object Object]"}function Xr(e){return Ze(e)==="[object RegExp]"}function _t(e){return Ze(e)==="[object Function]"}function Yr(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const kt={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Qr(e){return Object.keys(e||{}).reduce(function(u,t){return u||kt.hasOwnProperty(t)},!1)}const Kr={"http:":{validate:function(e,u,t){const o=e.slice(u);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(o)?o.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,u,t){const o=e.slice(u);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(o)?u>=3&&e[u-3]===":"||u>=3&&e[u-3]==="/"?0:o.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(e,u,t){const o=e.slice(u);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(o)?o.match(t.re.mailto)[0].length:0}}},Jr="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]",ec="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function uc(e){e.__index__=-1,e.__text_cache__=""}function tc(e){return function(u,t){const o=u.slice(t);return e.test(o)?o.match(e)[0].length:0}}function yt(){return function(e,u){u.normalize(e)}}function He(e){const u=e.re=Ur(e.__opts__),t=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||t.push(Jr),t.push(u.src_xn),u.src_tlds=t.join("|");function o(s){return s.replace("%TLDS%",u.src_tlds)}u.email_fuzzy=RegExp(o(u.tpl_email_fuzzy),"i"),u.link_fuzzy=RegExp(o(u.tpl_link_fuzzy),"i"),u.link_no_ip_fuzzy=RegExp(o(u.tpl_link_no_ip_fuzzy),"i"),u.host_fuzzy_test=RegExp(o(u.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function c(s,a){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+a)}Object.keys(e.__schemas__).forEach(function(s){const a=e.__schemas__[s];if(a===null)return;const l={validate:null,link:null};if(e.__compiled__[s]=l,Gr(a)){Xr(a.validate)?l.validate=tc(a.validate):_t(a.validate)?l.validate=a.validate:c(s,a),_t(a.normalize)?l.normalize=a.normalize:a.normalize?c(s,a):l.normalize=yt();return}if(Wr(a)){r.push(s);return}c(s,a)}),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:yt()};const i=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(Yr).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+i+")","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"),uc(e)}function nc(e,u){const t=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(t,o);this.schema=e.__schema__.toLowerCase(),this.index=t+u,this.lastIndex=o+u,this.raw=r,this.text=r,this.url=r}function Eu(e,u){const t=new nc(e,u);return e.__compiled__[t.schema].normalize(t,e),t}function H(e,u){if(!(this instanceof H))return new H(e,u);u||Qr(e)&&(u=e,e={}),this.__opts__=Cu({},kt,u),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Cu({},Kr,e),this.__compiled__={},this.__tlds__=ec,this.__tlds_replaced__=!1,this.re={},He(this)}H.prototype.add=function(u,t){return this.__schemas__[u]=t,He(this),this},H.prototype.set=function(u){return this.__opts__=Cu(this.__opts__,u),this},H.prototype.test=function(u){if(this.__text_cache__=u,this.__index__=-1,!u.length)return!1;let t,o,r,c,i,s,a,l,f;if(this.re.schema_test.test(u)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(u))!==null;)if(c=this.testSchemaAt(u,t[2],a.lastIndex),c){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=u.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(o=u.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=o.index+o[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=u.indexOf("@"),f>=0&&(r=u.match(this.re.email_fuzzy))!==null&&(i=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s))),this.__index__>=0},H.prototype.pretest=function(u){return this.re.pretest.test(u)},H.prototype.testSchemaAt=function(u,t,o){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(u,o,this):0},H.prototype.match=function(u){const t=[];let o=0;this.__index__>=0&&this.__text_cache__===u&&(t.push(Eu(this,o)),o=this.__last_index__);let r=o?u.slice(o):u;for(;this.test(r);)t.push(Eu(this,o)),r=r.slice(this.__last_index__),o+=this.__last_index__;return t.length?t:null},H.prototype.matchAtStart=function(u){if(this.__text_cache__=u,this.__index__=-1,!u.length)return null;const t=this.re.schema_at_start.exec(u);if(!t)return null;const o=this.testSchemaAt(u,t[2],t[0].length);return o?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o,Eu(this,0)):null},H.prototype.tlds=function(u,t){return u=Array.isArray(u)?u:[u],t?(this.__tlds__=this.__tlds__.concat(u).sort().filter(function(o,r,c){return o!==c[r-1]}).reverse(),He(this),this):(this.__tlds__=u.slice(),this.__tlds_replaced__=!0,He(this),this)},H.prototype.normalize=function(u){u.schema||(u.url="http://"+u.url),u.schema==="mailto:"&&!/^mailto:/i.test(u.url)&&(u.url="mailto:"+u.url)},H.prototype.onCompile=function(){};const ke=2147483647,J=36,wu=1,ze=26,oc=38,rc=700,Ct=72,Et=128,wt="-",cc=/^xn--/,ic=/[^\0-\x7F]/,sc=/[\x2E\u3002\uFF0E\uFF61]/g,ac={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Du=J-wu,ee=Math.floor,Au=String.fromCharCode;function se(e){throw new RangeError(ac[e])}function lc(e,u){const t=[];let o=e.length;for(;o--;)t[o]=u(e[o]);return t}function Dt(e,u){const t=e.split("@");let o="";t.length>1&&(o=t[0]+"@",e=t[1]),e=e.replace(sc,".");const r=e.split("."),c=lc(r,u).join(".");return o+c}function At(e){const u=[];let t=0;const o=e.length;for(;t<o;){const r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<o){const c=e.charCodeAt(t++);(c&64512)==56320?u.push(((r&1023)<<10)+(c&1023)+65536):(u.push(r),t--)}else u.push(r)}return u}const fc=e=>String.fromCodePoint(...e),dc=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:J},Ft=function(e,u){return e+22+75*(e<26)-((u!=0)<<5)},Bt=function(e,u,t){let o=0;for(e=t?ee(e/rc):e>>1,e+=ee(e/u);e>Du*ze>>1;o+=J)e=ee(e/Du);return ee(o+(Du+1)*e/(e+oc))},St=function(e){const u=[],t=e.length;let o=0,r=Et,c=Ct,i=e.lastIndexOf(wt);i<0&&(i=0);for(let s=0;s<i;++s)e.charCodeAt(s)>=128&&se("not-basic"),u.push(e.charCodeAt(s));for(let s=i>0?i+1:0;s<t;){const a=o;for(let f=1,d=J;;d+=J){s>=t&&se("invalid-input");const b=dc(e.charCodeAt(s++));b>=J&&se("invalid-input"),b>ee((ke-o)/f)&&se("overflow"),o+=b*f;const h=d<=c?wu:d>=c+ze?ze:d-c;if(b<h)break;const p=J-h;f>ee(ke/p)&&se("overflow"),f*=p}const l=u.length+1;c=Bt(o-a,l,a==0),ee(o/l)>ke-r&&se("overflow"),r+=ee(o/l),o%=l,u.splice(o++,0,r)}return String.fromCodePoint(...u)},Mt=function(e){const u=[];e=At(e);const t=e.length;let o=Et,r=0,c=Ct;for(const a of e)a<128&&u.push(Au(a));const i=u.length;let s=i;for(i&&u.push(wt);s<t;){let a=ke;for(const f of e)f>=o&&f<a&&(a=f);const l=s+1;a-o>ee((ke-r)/l)&&se("overflow"),r+=(a-o)*l,o=a;for(const f of e)if(f<o&&++r>ke&&se("overflow"),f===o){let d=r;for(let b=J;;b+=J){const h=b<=c?wu:b>=c+ze?ze:b-c;if(d<h)break;const p=d-h,m=J-h;u.push(Au(Ft(h+p%m,0))),d=ee(p/m)}u.push(Au(Ft(d,0))),c=Bt(r,l,s===i),r=0,++s}++r,++o}return u.join("")},qt={version:"2.3.1",ucs2:{decode:At,encode:fc},decode:St,encode:Mt,toASCII:function(e){return Dt(e,function(u){return ic.test(u)?"xn--"+Mt(u):u})},toUnicode:function(e){return Dt(e,function(u){return cc.test(u)?St(u.slice(4).toLowerCase()):u})}},pc={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"]}}}},hc=/^(vbscript|javascript|file|data):/,bc=/^data:image\/(gif|png|jpeg|webp);/;function mc(e){const u=e.trim().toLowerCase();return hc.test(u)?bc.test(u):!0}const zt=["http:","https:","mailto:"];function xc(e){const u=lu(e,!0);if(u.hostname&&(!u.protocol||zt.indexOf(u.protocol)>=0))try{u.hostname=qt.toASCII(u.hostname)}catch{}return Ae(au(u))}function gc(e){const u=lu(e,!0);if(u.hostname&&(!u.protocol||zt.indexOf(u.protocol)>=0))try{u.hostname=qt.toUnicode(u.hostname)}catch{}return me(au(u),me.defaultChars+"%")}function G(e,u){if(!(this instanceof G))return new G(e,u);u||hu(e)||(u=e||{},e="default"),this.inline=new qe,this.block=new je,this.core=new xu,this.renderer=new ge,this.linkify=new H,this.validateLink=mc,this.normalizeLink=xc,this.normalizeLinkText=gc,this.utils=So,this.helpers=Ie({},No),this.options={},this.configure(e),u&&this.set(u)}G.prototype.set=function(e){return Ie(this.options,e),this},G.prototype.configure=function(e){const u=this;if(hu(e)){const t=e;if(e=pc[t],!e)throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&u.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&u[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&u[t].ruler2.enableOnly(e.components[t].rules2)}),this},G.prototype.enable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(e,!0))},this),t=t.concat(this.inline.ruler2.enable(e,!0));const o=e.filter(function(r){return t.indexOf(r)<0});if(o.length&&!u)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},G.prototype.disable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(e,!0))},this),t=t.concat(this.inline.ruler2.disable(e,!0));const o=e.filter(function(r){return t.indexOf(r)<0});if(o.length&&!u)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},G.prototype.use=function(e){const u=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,u),this},G.prototype.parse=function(e,u){if(typeof e!="string")throw new Error("Input data should be a String");const t=new this.core.State(e,this,u);return this.core.process(t),t.tokens},G.prototype.render=function(e,u){return u=u||{},this.renderer.render(this.parse(e,u),this.options,u)},G.prototype.parseInline=function(e,u){const t=new this.core.State(e,this,u);return t.inlineMode=!0,this.core.process(t),t.tokens},G.prototype.renderInline=function(e,u){return u=u||{},this.renderer.render(this.parseInline(e,u),this.options,u)};function _c(){function e(r,c){const i=new G({html:!0,typographer:!0});return i.use(v0),c&&c.forEach(s=>i.use(s)),i.parse(r,"")}function u(r,c){const i=o(r,c)??[];return n.h("article",{class:"sq-article"},t(i))}function t(r,c=!1){if(!r)return;const i=r.map(s=>typeof s=="string"?c?{default:()=>s}:s:n.h(s.tag,s.attrs,t(s.children,typeof s.tag!="string")));return i.length>1?i:i[0]}function o(r,c){const i=[],s={children:[]};let a=s;return r.forEach(l=>{var g,_,k,E,C,w,B,z,T,y,A;const{type:f,children:d,content:b,attrs:h,tag:p,hidden:m}=l;switch(f){case"heading_open":case"paragraph_open":case"bullet_list_open":case"ordered_list_open":case"list_item_open":case"table_open":case"thead_open":case"tbody_open":case"tr_open":case"th_open":case"td_open":case"blockquote_open":case"strong_open":case"em_open":case"s_open":case"link_open":{if(m)break;const x={tag:(c==null?void 0:c[p])??p,children:[],attrs:h?Object.fromEntries(h):{}};if(f==="link_open"){const M=l.attrGet("href")??"",N=document.location.origin;M!=null&&M.startsWith("http")&&!M.includes(N)&&(x.attrs.target="_blank",x.attrs.rel="noopener noreferrer",x.attrs.dataOuter="",(g=x.children)==null||g.push({tag:y0}))}if(f==="table_open"){const M={tag:"div",children:[],attrs:{class:"sq-article-table"}};(_=a.children)==null||_.push(M),i.push(a),a=M}(k=a.children)==null||k.push(x),i.push(a),a=x;break}case"heading_close":case"paragraph_close":case"bullet_list_close":case"ordered_list_close":case"list_item_close":case"table_close":case"thead_close":case"tbody_close":case"tr_close":case"th_close":case"td_close":case"blockquote_close":case"strong_close":case"em_close":case"s_close":case"link_close":{if(m)break;a=i.pop();break}case"code_inline":{(E=a.children)==null||E.push({tag:(c==null?void 0:c[p])??p,children:[b],attrs:h?Object.fromEntries(h):{}});break}case"inline":{if(d){const x=o(d,c);(C=a.children)==null||C.push(...x??[])}else(w=a.children)==null||w.push(b);break}case"text":{(B=a.children)==null||B.push(b);break}case"image":{(z=a.children)==null||z.push({tag:(c==null?void 0:c[p])??p,children:[],attrs:h?Object.fromEntries(h):{}});break}case"hr":{(T=a.children)==null||T.push({tag:(c==null?void 0:c[p])??p});break}case"input":{const x=h?Object.fromEntries(h):{},M=x.type??"text",N=`${p}-${M}`;(y=a.children)==null||y.push({tag:(c==null?void 0:c[N])??p,children:[],attrs:x});break}case"html_inline":{if(b.startsWith("</"))a=i.pop();else{const x=b.replace("<","").replace(">",""),M={tag:(c==null?void 0:c[x])??x,children:[]};(A=a.children)==null||A.push(M),i.push(a),a=M}break}}}),s.children}return{md2tokens:e,tokens2vueh:u}}function kc(){function e(u,t=100){let o;return function(...r){o||(o=setTimeout(()=>{u.apply(this,r),o=void 0},t))}}return{throttle:e}}const{md2tokens:yc,tokens2vueh:Cc}=_c(),Ec=n.defineComponent({name:"sq-article",props:{text:{type:String,required:!0},md:{type:Boolean,default:!0},customNodeMap:{type:Object},plugins:{type:Object}},setup(e){const u=n.computed(()=>({hr:Ne,blur:Nt,img:Tt,"input-checkbox":Bu,...e.customNodeMap}));return()=>{if(!e.md)return n.h("article",{class:"sq-article",innerHTML:e.text});const t=yc(e.text,e.plugins);return Cc(t,u.value)}}}),wc=["src","alt"],Dc=["textContent"],Ac=n.defineComponent({name:"sq-avatar",__name:"avatar",props:{img:{},alt:{},randomColor:{type:Boolean,default:!0},round:{type:Boolean,default:!0},size:{default:"md"}},setup(e){const u=e,t=n.ref(!0),o=n.computed(()=>{const s=[];return u.size!=="md"&&s.push(`sq-avatar--${u.size}`),u.round&&s.push("is-round"),s}),r=n.computed(()=>{if(!u.randomColor)return;const{getRandomColor:s}=P0();return{"--avatar-bg-color":s()}}),c=n.computed(()=>u.alt.charAt(0).toUpperCase());function i(){t.value=!1}return(s,a)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-avatar",o.value]),style:n.normalizeStyle(r.value)},[u.img&&t.value?(n.openBlock(),n.createElementBlock("img",{key:0,src:u.img,alt:u.alt,onError:i},null,40,wc)):(n.openBlock(),n.createElementBlock("span",{key:1,textContent:n.toDisplayString(c.value)},null,8,Dc))],6))}}),Fc={class:"sq-backtop"},Bc=n.defineComponent({name:"sq-backtop",__name:"backtop",props:{progress:{type:Boolean,default:!0},icon:{default:En},transition:{default:"sq-rotate-in-left"},visibilityHeight:{default:100},target:{default:"#app"},progressProps:{}},setup(e){const{throttle:u}=kc(),t=u(a),o=new ResizeObserver(l),r=e,c=n.ref(100),i=n.ref(0),s=n.computed(()=>i.value>r.visibilityHeight);n.onMounted(()=>{var b;l(),t(),window.addEventListener("scroll",t);const d=document.querySelector(r.target)??document.body;o.observe(d),(b=window.visualViewport)==null||b.addEventListener("resize",l)}),n.onBeforeUnmount(()=>{var d;window.removeEventListener("scroll",t),o.disconnect(),(d=window.visualViewport)==null||d.removeEventListener("resize",l)});function a(){i.value=window.scrollY}function l(){const d=(document.scrollingElement??document.body).scrollHeight,b=window.innerHeight;c.value=d-b}function f(){window.scrollTo({top:0,behavior:"smooth"})}return(d,b)=>(n.openBlock(),n.createBlock(n.Transition,{name:r.transition},{default:n.withCtx(()=>{var h,p,m;return[n.withDirectives(n.createElementVNode("div",Fc,[n.createElementVNode("div",{class:"sq-backtop-wrap",onClick:f},[r.progress?(n.openBlock(),n.createBlock(n.unref(sn),{key:0,variant:"circle",label:!1,value:i.value,max:c.value,type:(h=r.progressProps)==null?void 0:h.type,stroke:(p=r.progressProps)==null?void 0:p.stroke,color:(m=r.progressProps)==null?void 0:m.color},null,8,["value","max","type","stroke","color"])):n.createCommentVNode("",!0),n.renderSlot(d.$slots,"default",{},()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(r.icon)))])])],512),[[n.vShow,s.value]])]}),_:3},8,["name"]))}}),Nt=n.defineComponent({name:"sq-blur",__name:"blur",setup(e){return(u,t)=>(n.openBlock(),n.createBlock(n.unref(fe),{class:"sq-blur"},{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3}))}});function Sc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Fu,void 0),r=n.computed(()=>n.unref(o)?void 0:e.text),c=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.size,e.size,(f=n.unref(t))==null?void 0:f.size,"md")}),i=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.type,e.type)}),s=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.round,e.round,(f=n.unref(t))==null?void 0:f.round)}),a=n.computed(()=>{var l,f,d;return u((l=n.unref(t))==null?void 0:l.disabled,(f=n.unref(t))==null?void 0:f.readonly,(d=n.unref(o))==null?void 0:d.disabled,e.disabled)});return{btnTextType:r,btnSize:c,btnType:i,btnRound:s,btnDisabled:a}}function Mc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Su,void 0),r=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.size,e.size,(f=n.unref(t))==null?void 0:f.size,"md")}),c=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.form,e.form)}),i=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.name,e.name)}),s=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.variant,e.variant)}),a=n.computed(()=>{var l,f,d;return u((l=n.unref(t))==null?void 0:l.disabled,(f=n.unref(t))==null?void 0:f.readonly,(d=n.unref(o))==null?void 0:d.disabled,e.disabled)});return{checkboxSize:r,checkboxForm:c,checkboxName:i,checkboxVariant:s,checkboxDisabled:a,groupContext:o}}function qc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Ue,void 0),r=n.computed(()=>{var a;return u(e.size,(a=n.unref(t))==null?void 0:a.size,"md")}),c=n.computed(()=>{var a;return u(e.round,(a=n.unref(t))==null?void 0:a.round)}),i=n.computed(()=>{var a;return u((a=n.unref(t))==null?void 0:a.disabled,e.disabled)}),s=n.computed(()=>{var a;return u((a=n.unref(t))==null?void 0:a.readonly,e.readonly)});return{inputSize:r,inputRound:c,inputDisabled:i,inputReadonly:s,id:o}}function zc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Iu,void 0),r=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.size,e.size,(f=n.unref(t))==null?void 0:f.size,"md")}),c=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.form,e.form)}),i=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.name,e.name)}),s=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.variant,e.variant)}),a=n.computed(()=>{var l,f,d;return u((l=n.unref(t))==null?void 0:l.disabled,(f=n.unref(t))==null?void 0:f.readonly,(d=n.unref(o))==null?void 0:d.disabled,e.disabled)});return{radioSize:r,radioForm:c,radioName:i,radioVariant:s,radioDisabled:a,groupContext:o}}function Nc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Ue,void 0),r=n.computed(()=>{var i;return u(e.size,(i=n.unref(t))==null?void 0:i.size,"md")}),c=n.computed(()=>{var i,s;return u((i=n.unref(t))==null?void 0:i.disabled,(s=n.unref(t))==null?void 0:s.readonly,e.disabled)});return{switchSize:r,switchDisabled:c,id:o}}const $c=["disabled","form","type"],Z=n.defineComponent({name:"sq-button",__name:"button",props:{type:{},round:{type:Boolean,default:void 0},text:{type:Boolean},icon:{},loading:{type:Boolean},form:{},bg:{type:Boolean},nativeType:{default:"button"},disabled:{type:Boolean,default:void 0},size:{}},emits:["click"],setup(e,{emit:u}){const t=u,o=e,{btnTextType:r,btnSize:c,btnType:i,btnRound:s,btnDisabled:a}=Sc(o),l=n.computed(()=>{const b=[],h=n.unref(c),p=n.unref(i),m=n.unref(s),g=n.unref(r);return h!=="md"&&b.push(`sq-button--${h}`),p&&b.push(`is-${p}`),m&&b.push("is-round"),g&&b.push("is-text"),g&&o.bg&&b.push("has-bg"),b}),f=n.computed(()=>o.loading?Re:o.icon),d=n.computed(()=>o.loading||n.unref(a));return(b,h)=>(n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["sq-button",l.value]),disabled:d.value,form:o.form,type:o.nativeType,onClick:h[0]||(h[0]=p=>t("click",p))},[n.createVNode(n.unref(fe),{size:n.unref(c)==="lg"?"md":n.unref(c)},{default:n.withCtx(()=>[f.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value),{key:0})):n.createCommentVNode("",!0),n.renderSlot(b.$slots,"default")]),_:3},8,["size"])],10,$c))}}),Tc={class:"sq-button-group"},Rc=n.defineComponent({name:"sq-button-group",__name:"button-group",props:{size:{},type:{},round:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},setup(e){const u=e;return n.provide(Fu,n.ref({size:n.toRef(u,"size"),type:n.toRef(u,"type"),round:n.toRef(u,"round"),disabled:n.toRef(u,"disabled")})),(t,o)=>(n.openBlock(),n.createElementBlock("div",Tc,[n.renderSlot(t.$slots,"default")]))}}),Fu=Symbol("button-group-context-keys"),Lc={class:"sq-card"},Ic={key:0,class:"sq-card-header"},Vc=["textContent"],Pc={key:1,class:"sq-card-footer"},Oc=n.defineComponent({name:"sq-card",__name:"card",props:{title:{},decorative:{type:Boolean,default:!1}},setup(e){const u=n.useSlots(),t=e;return(o,r)=>(n.openBlock(),n.createElementBlock("section",Lc,[t.title||n.unref(u).title?(n.openBlock(),n.createElementBlock("div",Ic,[n.createElementVNode("h2",{class:n.normalizeClass({"has-decorative":t.decorative}),textContent:n.toDisplayString(t.title)},null,10,Vc),n.renderSlot(o.$slots,"title")])):n.createCommentVNode("",!0),n.renderSlot(o.$slots,"default"),n.unref(u).footer?(n.openBlock(),n.createElementBlock("div",Pc,[n.renderSlot(o.$slots,"footer")])):n.createCommentVNode("",!0)]))}}),vc=["autofocus","name","form","value","disabled"],jc=["textContent"],Bu=n.defineComponent({name:"sq-checkbox",__name:"checkbox",props:n.mergeModels({form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},indeterminate:{type:Boolean},variant:{},autofocus:{type:Boolean},label:{}},{checked:{type:Boolean,default:!1},checkedModifiers:{}}),emits:n.mergeModels(["change"],["update:checked"]),setup(e,{emit:u}){const t=u,o=e,{checkboxSize:r,checkboxDisabled:c,checkboxForm:i,checkboxName:s,checkboxVariant:a,groupContext:l}=Mc(o),f=n.useModel(e,"checked"),d=n.computed(()=>{const h=[],p=n.unref(r),m=n.unref(c),g=n.unref(a);return p!=="md"&&h.push(`sq-selection--${p}`),b.value&&h.push("is-checked"),m&&h.push("is-disabled"),g&&h.push(`is-${g}`),h}),b=n.computed(()=>o.label&&l?n.unref(n.unref(l).list).includes(o.label):f.value);return n.watch(b,h=>{if(f.value!==h){f.value=h;return}}),n.watch(f,h=>{b.value!==h&&o.label&&l&&l.value.toggleItem(o.label)}),n.onMounted(()=>{f.value=b.value}),(h,p)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(["sq-selection sq-checkbox",d.value])},[n.withDirectives(n.createElementVNode("input",{type:"checkbox",autofocus:o.autofocus,name:n.unref(s),form:n.unref(i),value:o.label,disabled:n.unref(c),"onUpdate:modelValue":p[0]||(p[0]=m=>f.value=m),onChange:p[1]||(p[1]=m=>t("change",f.value))},null,40,vc),[[n.vModelCheckbox,f.value]]),n.unref(a)!=="solid"?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["sq-checkbox-box",{"is-indeterminate":o.indeterminate&&!b.value}])},[b.value?(n.openBlock(),n.createBlock(n.unref(Fn),{key:0,class:"sq-checkbox-inner"})):n.createCommentVNode("",!0)],2)):n.createCommentVNode("",!0),o.label?(n.openBlock(),n.createElementBlock("span",{key:1,class:"sq-selection-label",textContent:n.toDisplayString(o.label)},null,8,jc)):n.createCommentVNode("",!0)],2))}}),Zc={class:"sq-checkbox-group sq-selection-group"},$t=n.defineComponent({name:"sq-checkbox-group",__name:"checkbox-group",props:{items:{default:()=>[]},value:{},form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},variant:{}},emits:["change","update:value"],setup(e,{emit:u}){const{nextId:t}=iu(),o=u,r=e,c=n.ref(r.value??[]),i=n.computed(()=>r.name??`sq-checkbox-${t()}`);n.provide(Su,n.ref({form:n.toRef(r,"form"),name:i,disabled:n.toRef(r,"disabled"),size:n.toRef(r,"size"),variant:n.toRef(r,"variant"),list:c,toggleItem:s})),n.watch(()=>r.value,a=>{const l=a||[],f=[...new Set([...l,c.value])];f.length===l.length&&f.length===c.value.length||(c.value=l)});function s(a){c.value.includes(a)?c.value=c.value.filter(l=>l!==a):c.value.push(a),o("change",n.toRaw(c.value)),o("update:value",n.toRaw(c.value))}return(a,l)=>(n.openBlock(),n.createElementBlock("div",Zc,[n.renderSlot(a.$slots,"default",{},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.items,(f,d)=>(n.openBlock(),n.createBlock(n.unref(Bu),{key:d,label:f},null,8,["label"]))),128))])]))}}),Su=Symbol("checkbox-group-context-keys"),Ne=n.defineComponent({name:"sq-divider",__name:"divider",props:{direction:{default:"horizontal"},variant:{default:"solid"},orientation:{default:"left"},ellipsis:{type:[Boolean,Number]},size:{}},setup(e){const u=n.useSlots(),t=e,o=n.computed(()=>{const r=[];return["none","solid","dotted","dashed"].includes(t.variant)&&r.push("is-thin"),u.default&&t.direction!=="vertical"&&r.push(`text-${t.orientation}`),r.push(`sq-divider--${t.direction}`),r});return(r,c)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-divider",o.value]),style:n.normalizeStyle({"--divider-line-type":t.variant})},[n.unref(u).default&&t.direction!=="vertical"?(n.openBlock(),n.createBlock(n.unref(fe),{key:0,ellipsis:t.ellipsis,size:t.size},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},8,["ellipsis","size"])):n.createCommentVNode("",!0)],6))}}),Hc=["textContent","for"],Uc={class:"sq-form-item-content"},Wc=["textContent"],Gc=n.defineComponent({name:"sq-form-item",__name:"form-item",props:{label:{},labelWidth:{},isRequired:{type:Boolean},showLabel:{type:Boolean},type:{},errorMsg:{}},setup(e){const{nextId:u}=iu(),t=e,o=n.ref("");n.provide(Ue,o);const r=n.computed(()=>{const i=[];return t.isRequired&&i.push("is-required"),i}),c=n.computed(()=>["input","switch"].includes(t.type));return n.onMounted(()=>{c.value&&(o.value=`sq-form-item-${u()}`)}),(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:"sq-form-item",style:n.normalizeStyle({"--form-label-width":t.labelWidth})},[t.label||t.showLabel?(n.openBlock(),n.createElementBlock("label",{key:0,class:n.normalizeClass(["sq-form-item-label",r.value]),textContent:n.toDisplayString(t.label),for:t.type!=="custom"?o.value:void 0},null,10,Hc)):n.createCommentVNode("",!0),n.createElementVNode("div",Uc,[n.renderSlot(i.$slots,"default"),n.createVNode(n.Transition,{appear:"",name:"sq-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"sq-form-item-check",textContent:n.toDisplayString(t.errorMsg)},null,8,Wc),[[n.vShow,t.errorMsg]])]),_:1})])],4))}}),Xc=n.defineComponent({name:"sq-form",__name:"form",props:{round:{type:Boolean,default:void 0},layout:{default:"horizontal"},showStatusIcon:{type:Boolean},invalidStatus:{default:"error"},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},labelWidth:{},size:{default:"md"},step:{},hasFeedback:{type:Boolean,default:!0},requiredMark:{default:"default"},items:{},formData:{}},emits:["validate","update:formData"],setup(e,{expose:u,emit:t}){let o={};const r=t,c=e;n.provide(de,n.ref({size:n.toRef(c,"size"),round:n.toRef(c,"round"),disabled:n.toRef(c,"disabled"),readonly:n.toRef(c,"readonly")}));const i=n.ref({}),s=n.ref([]),a=n.ref({}),l=n.computed(()=>{const y=[];return c.size!=="md"&&y.push(`sq-form--${c.size}`),c.requiredMark!=="hidden"&&y.push(`required-${c.requiredMark}`),y.push(`is-${c.layout}`),y}),f=n.computed(()=>({"--form-label-width":c.labelWidth})),d=n.computed(()=>{const y=c.step;return y===void 0?c.items:c.items.filter(A=>A.step===void 0?A:Array.isArray(A.step)?A.step.includes(y):A.step===y)});n.onMounted(()=>{o=structuredClone(n.toRaw(c.formData))});function b(y){var A;return(A=y.rule)==null?void 0:A.required}function h(y){if(a.value[y])return Re;if(s.value.includes(y))return ou;if(i.value[y])return c.invalidStatus==="error"?ru:cu}async function p(y,A,x,M=!0){if(!x)return;const N=x.trigger??"change",$=Array.isArray(N)?"array":"string";if(A){if($==="array"&&!N.includes(A))return;if($==="string"&&N!==A)return}s.value=s.value.filter(F=>F!==y),B(y),a.value[y]=new AbortController,await n.nextTick();const I=c.formData[y];let O=!1;const D=x.validateType??"string";return x.validateFunc?O=await g(y,I,x,A):D==="string"?O=_(y,I,x):D==="boolean"?O=k(y,I,x):D==="list"&&(O=E(y,I,x)),M&&r("validate",y,O,n.toRaw(s.value)),a.value[y].signal.aborted||B(y),O}function m(y){if(i.value[y])return c.invalidStatus}async function g(y,A,x,M){const N=a.value[y].signal,$=await x.validateFunc(A,N,M);if($===void 0){s.value=s.value.filter(I=>I!==y),delete i.value[y];return}return $===!0?w(y):$===!1?C(y,"字段验证失败"):$?C(y,$):w(y),$===!0||typeof $=="string"&&!$}function _(y,A,x){return x.required&&!A?(C(y,x.requiredText??"字段必填"),!1):x.pattern&&A&&!x.pattern.test(A)?(C(y,x.patternText??"字段验证失败"),!1):(w(y),!0)}function k(y,A,x){return x.required&&A===void 0?(C(y,x.requiredText??"字段必填"),!1):(w(y),!0)}function E(y,A,x){return x.required&&(!A||!A.length)?(C(y,x.requiredText??"字段必填"),!1):x.pattern&&A&&A.map($=>$.toString()).map($=>x.pattern.test($)).includes(!1)?(C(y,x.patternText??"字段验证失败"),!1):(w(y),!0)}function C(y,A){s.value=s.value.filter(x=>x!==y),i.value[y]=A}function w(y){s.value.push(y),delete i.value[y]}function B(y){var A;(A=a.value[y])==null||A.abort(),delete a.value[y]}function z(){r("update:formData",structuredClone(o)),i.value={},s.value=[],r("validate","SQFORM",!1,n.toRaw(s.value))}function T(y=!0){const x=(y?c.items:d.value).filter(M=>M.type!=="custom"&&M.rule&&!s.value.includes(M.binding)).map(M=>{const N=M;return p(N.binding,void 0,N.rule,!1)});return Promise.all(x).then(M=>(r("validate","SQFORM",!M.includes(!1),n.toRaw(s.value)),M))}return u({resetFields:z,validate:T}),(y,A)=>(n.openBlock(),n.createElementBlock("form",{class:n.normalizeClass(["sq-form",l.value]),style:n.normalizeStyle(f.value),onSubmit:A[0]||(A[0]=n.withModifiers(()=>{},["prevent"]))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(x,M)=>(n.openBlock(),n.createBlock(Gc,{class:n.normalizeClass(x.itemClass),type:x.type,key:M,"label-width":x.labelWidth,label:x.label,"show-label":x.showLabel&&c.layout!=="vertical","is-required":b(x),"error-msg":c.hasFeedback?i.value[x.binding]:""},{default:n.withCtx(()=>[x.type==="input"?(n.openBlock(),n.createBlock(n.unref(Lt),n.mergeProps({key:0,ref_for:!0},x.props,{name:x.name,status:m(x.binding),"suffix-icon":h(x.binding),value:c.formData[x.binding],"onUpdate:value":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule),onInput:N=>p(x.binding,"input",x.rule),onBlur:N=>p(x.binding,"blur",x.rule)}),null,16,["name","status","suffix-icon","value","onUpdate:value","onChange","onInput","onBlur"])):x.type==="checkbox"?(n.openBlock(),n.createBlock(n.unref($t),n.mergeProps({key:1,ref_for:!0},x.props,{name:x.name,value:c.formData[x.binding],"onUpdate:value":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule)}),null,16,["name","value","onUpdate:value","onChange"])):x.type==="radio"?(n.openBlock(),n.createBlock(n.unref(ln),n.mergeProps({key:2,ref_for:!0},x.props,{name:x.name,value:c.formData[x.binding],"onUpdate:value":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule)}),null,16,["name","value","onUpdate:value","onChange"])):x.type==="switch"?(n.openBlock(),n.createBlock(n.unref(fn),n.mergeProps({key:3,ref_for:!0},x.props,{name:x.name,loading:!!a.value[x.binding],checked:c.formData[x.binding],"onUpdate:checked":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule)}),null,16,["name","loading","checked","onUpdate:checked","onChange"])):n.renderSlot(y.$slots,x.slot,{key:4})]),_:2},1032,["class","type","label-width","label","show-label","is-required","error-msg"]))),128))],38))}}),de=Symbol("form-context-keys"),Ue=Symbol("form-item-id-keys"),Yc={key:0,class:"sq-image-mask"},Qc={key:0,class:"sq-image-picture"},Kc=["srcset","media","type"],Jc=["crossorigin","alt","src"],ei={key:1,class:"sq-image-control"},ui={key:2,class:"sq-image-error"},Tt=n.defineComponent({name:"sq-image",__name:"image",props:{alt:{},crossorigin:{},objectFit:{default:"contain"},fallback:{},src:{},aspectRatio:{default:"16 / 9"},preview:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},source:{}},setup(e){const u=new IntersectionObserver(h),t=e,o=n.ref(!1),r=n.ref(t.src),c=n.ref(!1),i=n.ref(!1),s=n.ref(!1),a=n.shallowRef(null),l=n.computed(()=>o.value&&!c.value),f=n.computed(()=>({height:l.value?void 0:"var(--image-placeholder-height)",aspectRatio:l.value?void 0:t.aspectRatio}));n.onMounted(()=>{u.observe(a.value)}),n.onBeforeUnmount(()=>{u.disconnect()});function d(){o.value=!0}function b(){if(r.value!==t.fallback&&t.fallback){r.value=t.fallback;return}c.value=!0,o.value=!0}function h(m){m[0].isIntersecting&&(i.value=!0,u.disconnect())}function p(){s.value=!0}return(m,g)=>(n.openBlock(),n.createElementBlock("div",{class:"sq-image",style:n.normalizeStyle(f.value),ref_key:"imgRef",ref:a},[n.createVNode(n.Transition,{name:"sq-fade"},{default:n.withCtx(()=>[o.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Yc))]),_:1}),!c.value&&i.value?(n.openBlock(),n.createElementBlock("picture",Qc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.source,(_,k)=>(n.openBlock(),n.createElementBlock("source",{key:k,srcset:_.src,media:_.media,type:_.type},null,8,Kc))),128)),n.createElementVNode("img",{style:n.normalizeStyle({objectFit:t.objectFit}),crossorigin:t.crossorigin,alt:t.alt,src:r.value,onLoad:d,onError:b},null,44,Jc)])):n.createCommentVNode("",!0),!c.value&&i.value&&t.preview?(n.openBlock(),n.createElementBlock("div",ei,[n.createVNode(n.unref(Ou),{onClick:p})])):n.createCommentVNode("",!0),c.value?(n.openBlock(),n.createElementBlock("div",ui,[n.renderSlot(m.$slots,"error",{},()=>[g[1]||(g[1]=n.createElementVNode("span",null,"图片加载失败",-1))])])):n.createCommentVNode("",!0),n.createVNode(n.unref(Rt),{"src-list":[r.value],visible:s.value,"onUpdate:visible":g[0]||(g[0]=_=>s.value=_)},null,8,["src-list","visible"])],4))}}),ti=["src"],ni={key:0,class:"sq-image-viewer-toolbar"},Rt=n.defineComponent({name:"sq-image-viewer",__name:"image-viewer",props:n.mergeModels({srcList:{},toolbar:{type:Boolean,default:!0},minScale:{default:.5},maxScale:{default:10},scaleStep:{default:.5},moveable:{type:Boolean,default:!0}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(e){const{nextZIndex:u}=su(),t={},o={};let r,c=!1,i;const s=e,a=n.ref(0),l=n.ref(1),f=n.ref(!1),d=n.ref(!1),b=n.ref(0),h=n.ref({x:0,y:0}),p=n.useModel(e,"visible"),m=n.computed(()=>{const D=f.value?-1:1,F=d.value?-1:1;return{transform:[`scale(${l.value*D}, ${l.value*F})`,`rotate(${b.value}deg)`].join(" "),marginInlineStart:`${h.value.x}px`,marginBlockStart:`${h.value.y}px`}});n.watch(p,D=>{const F=document.scrollingElement;D?(r=F.style.overflow,F.style.overflow="hidden",a.value=u()):(f.value=!1,d.value=!1,b.value=0,h.value={x:0,y:0},F.style.overflow=r)});function g(D){D.deltaY<0?T():y()}function _(D){c=!0,t.x=D.x,t.y=D.y}function k(){c=!1}function E(D){if(!c||!s.moveable)return;const F=D.x-t.x,q=D.y-t.y;h.value.x+=F*2,h.value.y+=q*2,t.x=D.x,t.y=D.y}function C(D){D.touches.length===1?(c=!0,t.x=D.touches[0].screenX,t.y=D.touches[0].screenY):D.touches.length===2&&(i=z(D.touches[0],D.touches[1]))}function w(){c=!1,i=void 0}function B(D){if(D.touches.length===1){if(!c||!s.moveable)return;const F=D.touches[0],q=F.screenX-t.x,v=F.screenY-t.y;h.value.x+=q*2,h.value.y+=v*2,t.x=F.screenX,t.y=F.screenY}else if(D.touches.length===2){if(!i)return;const F=z(D.touches[0],D.touches[1]),q=F/i;let v=l.value*q;v=Math.min(s.maxScale,v),v=Math.max(s.minScale,v),l.value=v,i=F}}function z(D,F){const q=F.clientX-D.clientX,v=F.clientY-D.clientY;return Math.sqrt(q*q+v*v)}function T(){l.value>=s.maxScale||(l.value=Math.min(s.maxScale,l.value*(1+s.scaleStep)))}function y(){l.value<=s.minScale||(l.value=Math.max(s.minScale,l.value/(1+s.scaleStep)))}function A(){l.value=Math.min(o.x,o.y),h.value={x:0,y:0}}function x(){l.value=1,h.value={x:0,y:0}}function M(){f.value=!f.value}function N(){d.value=!d.value}function $(D){b.value+=D}function I(){p.value=!1}function O(D){const q=D.target.getBoundingClientRect(),v=window.innerWidth,Rs=window.innerHeight;o.x=v/q.width,o.y=Rs/q.height,l.value=Math.min(o.x,o.y,1)}return(D,F)=>(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"sq-fade"},{default:n.withCtx(()=>[p.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"sq-image-viewer-mask",style:n.normalizeStyle({zIndex:a.value}),onWheelPassive:g,onMousemove:E,onMouseup:k,onTouchmovePassive:B,onTouchend:w},[n.createElementVNode("img",{style:n.normalizeStyle(m.value),src:s.srcList[0],onLoad:O,onMousedown:n.withModifiers(_,["prevent"]),onTouchstartPassive:C},null,44,ti),n.createVNode(n.unref(Z),{class:"sq-image-viewer-close",round:"",icon:n.unref(Vu),onClick:I},null,8,["icon"]),s.toolbar?(n.openBlock(),n.createElementBlock("div",ni,[n.createVNode(n.unref(oe),{tip:"放大"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref($0),disabled:l.value===s.maxScale,onClick:T},null,8,["icon","disabled"])]),_:1}),n.createVNode(n.unref(oe),{tip:"缩小"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(I0),disabled:l.value===s.minScale,onClick:y},null,8,["icon","disabled"])]),_:1}),n.createVNode(n.unref(Ne),{direction:"vertical"}),n.createVNode(n.unref(oe),{tip:"水平翻转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(t0),onClick:M},null,8,["icon"])]),_:1}),n.createVNode(n.unref(oe),{tip:"垂直翻转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(c0),onClick:N},null,8,["icon"])]),_:1}),n.createVNode(n.unref(Ne),{direction:"vertical"}),n.createVNode(n.unref(oe),{tip:"顺时针旋转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref($n),onClick:F[0]||(F[0]=q=>$(90))},null,8,["icon"])]),_:1}),n.createVNode(n.unref(oe),{tip:"逆时针旋转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(Zn),onClick:F[1]||(F[1]=q=>$(-90))},null,8,["icon"])]),_:1}),n.createVNode(n.unref(Ne),{direction:"vertical"}),n.createVNode(n.unref(oe),{tip:"原始大小"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(Kn),onClick:x},null,8,["icon"])]),_:1}),n.createVNode(n.unref(oe),{tip:"全屏"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(l0),onClick:A},null,8,["icon"])]),_:1})])):n.createCommentVNode("",!0)],36)):n.createCommentVNode("",!0)]),_:1})]))}}),oi={key:0,class:"sq-input-prefix"},ri=["id","disabled","readonly","placeholder","type","maxlength","minlength","autocomplete","name","autofocus","form","inputmode"],ci=["id","disabled","readonly","placeholder","type","maxlength","minlength","autocomplete","name","autofocus","form","inputmode","rows","cols"],ii={class:"sq-input-suffix"},Lt=n.defineComponent({name:"sq-input",__name:"input",props:n.mergeModels({status:{},round:{type:Boolean,default:void 0},prefixIcon:{},suffixIcon:{},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},clearable:{type:Boolean},placeholder:{},maxlength:{},minlength:{},autocomplete:{default:"off"},name:{},form:{},loading:{type:Boolean},inputmode:{},autofocus:{type:Boolean},type:{default:"text"},size:{},resize:{default:"both"},rows:{default:2},cols:{default:30}},{value:{default:""},valueModifiers:{}}),emits:n.mergeModels(["focus","blur","input","change"],["update:value"]),setup(e,{expose:u,emit:t}){const o=n.useSlots(),r=t,c=e,{inputSize:i,inputRound:s,inputDisabled:a,inputReadonly:l,id:f}=qc(c),d=n.useModel(e,"value"),b=n.ref(!1),h=n.ref(!1),p=n.shallowRef(null),m=n.computed(()=>{const D=[],F=n.unref(i),q=n.unref(s),v=n.unref(T);return F!=="md"&&D.push(`sq-input--${F}`),c.status&&D.push(`is-${c.status}`),q&&D.push("is-round"),v&&D.push("is-disabled"),D}),g=n.computed(()=>n.unref(h)?h0:Ou),_=n.computed(()=>n.unref(h)?"text":c.type),k=n.computed(()=>o.prefix||c.prefixIcon),E=n.computed(()=>n.unref(b)&&n.unref(d).length),C=n.computed(()=>c.type==="password"&&n.unref(E)),w=n.computed(()=>c.clearable&&n.unref(E)),B=n.computed(()=>c.loading?Re:c.suffixIcon),z=n.computed(()=>n.unref(C)||n.unref(w)||n.unref(B)||o.suffix),T=n.computed(()=>c.loading||n.unref(a)),y=n.computed(()=>{if(c.type==="textarea")return n.unref(T)||n.unref(l)?"none":c.resize});function A(D){r("focus",D),!n.unref(l)&&(b.value=!0)}function x(D){r("blur",D),!n.unref(l)&&(b.value=!1)}function M(){setTimeout(I)}function N(){d.value=""}function $(){h.value=!h.value}function I(){var D;(D=p.value)==null||D.focus()}function O(){var D;b.value=!1,(D=p.value)==null||D.blur()}return u({focus:I,blur:O}),(D,F)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-input",m.value]),onMousedown:M},[k.value?(n.openBlock(),n.createElementBlock("span",oi,[n.renderSlot(D.$slots,"prefix",{},()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.prefixIcon)))])])):n.createCommentVNode("",!0),c.type!=="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,class:"sq-input-inner","onUpdate:modelValue":F[0]||(F[0]=q=>d.value=q),id:n.unref(f),disabled:T.value,readonly:n.unref(l),placeholder:c.placeholder,type:_.value,maxlength:c.maxlength,minlength:c.minlength,autocomplete:c.autocomplete,name:c.name,autofocus:c.autofocus,form:c.form,inputmode:c.inputmode,ref_key:"inputRef",ref:p,onFocus:A,onBlur:x,onInput:F[1]||(F[1]=q=>r("input",q)),onChange:F[2]||(F[2]=q=>r("change",q))},null,40,ri)),[[n.vModelDynamic,d.value]]):n.withDirectives((n.openBlock(),n.createElementBlock("textarea",{key:2,class:"sq-input-inner",style:n.normalizeStyle({resize:y.value}),"onUpdate:modelValue":F[3]||(F[3]=q=>d.value=q),id:n.unref(f),disabled:T.value,readonly:n.unref(l),placeholder:c.placeholder,type:_.value,maxlength:c.maxlength,minlength:c.minlength,autocomplete:c.autocomplete,name:c.name,autofocus:c.autofocus,form:c.form,inputmode:c.inputmode,rows:c.rows,cols:c.cols,ref_key:"inputRef",ref:p,onFocus:A,onBlur:x,onInput:F[4]||(F[4]=q=>r("input",q)),onChange:F[5]||(F[5]=q=>r("change",q))},null,44,ci)),[[n.vModelText,d.value]]),n.withDirectives(n.createElementVNode("span",ii,[C.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(g.value),{key:0,class:"sq-input-suffix-pwd",onMousedown:$},null,32)):n.createCommentVNode("",!0),w.value?(n.openBlock(),n.createBlock(n.unref(Vu),{key:1,class:"sq-input-suffix-clear",onMousedown:N})):n.createCommentVNode("",!0),n.renderSlot(D.$slots,"suffix",{},()=>[B.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(B.value),{key:0})):n.createCommentVNode("",!0)])],512),[[n.vShow,z.value]])],34))}}),si=["id"],ai=["textContent"],li=n.defineComponent({name:"sq-message",__name:"message",props:{message:{},type:{default:"info"},offsetTop:{},onDestroy:{},onClose:{},closeAfter:{default:3e3},id:{}},setup(e,{expose:u}){const t=e,o=n.ref(!0),r=n.computed(()=>{switch(t.type){case"primary":case"info":return Pu;case"success":return ou;case"warn":return cu;case"error":return ru;default:return}});n.onMounted(()=>{setTimeout(c,t.closeAfter)});function c(){o.value=!1}return u({close:c}),(i,s)=>(n.openBlock(),n.createBlock(n.Transition,{appear:"",name:"sq-zoom-top",onBeforeLeave:t.onClose,onAfterLeave:t.onDestroy},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["sq-message",`is-${t.type}`]),id:t.id,style:n.normalizeStyle({top:`${t.offsetTop}px`})},[n.createVNode(n.unref(fe),{class:"sq-message-main"},{default:n.withCtx(()=>[t.type&&r.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(r.value),{key:0,class:"sq-message-icon"})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"sq-message-content",textContent:n.toDisplayString(t.message)},null,8,ai)]),_:1}),s[0]||(s[0]=n.createElementVNode("div",{class:"sq-message-progress"},null,-1))],14,si),[[n.vShow,o.value]])]),_:1},8,["onBeforeLeave","onAfterLeave"]))}}),{nextZIndex:fi}=su(),ye=[],di=["primary","success","info","warn","error"],pi=document.documentElement,hi=getComputedStyle(pi),Mu=parseInt(hi.getPropertyValue("--sq-padding-md"));let bi=0;const qu=(e={})=>{const u=`sq-message-${bi++}`;let t=document.querySelector(".sq-message-wrap");t||(t=document.createElement("div"),t.classList.add("sq-message-wrap"),document.body.appendChild(t)),t.style.zIndex=fi().toString();let o=Mu;ye.forEach(l=>{var f;o+=(((f=l.vm.el)==null?void 0:f.offsetHeight)||0)+Mu});const r={type:"info",...e,offsetTop:o,id:u},c=document.createElement("div"),i=r.onClose;r.onClose=()=>{i==null||i();const l=ye.findIndex(h=>h.vm.component.props.id===a.component.props.id),d=ye.splice(l,1)[0].vm.el.offsetHeight;if(!(ye.length<1))for(const h of ye){let p=Number(parseInt(h.vm.el.style.top));p-=d,p-=Mu,h.vm.component.props.offsetTop=p}};const s=r.onDestroy;r.onDestroy=()=>{s==null||s(),n.render(null,c)};const a=n.createVNode(li,r);return n.render(a,c),ye.push({vm:a}),t.appendChild(c.firstElementChild),{close:()=>{var l,f;(f=(l=a.component)==null?void 0:l.exposed)==null||f.close()}}};di.forEach(e=>{qu[e]=(u={})=>(typeof u=="string"&&(u={message:u}),qu({...u,type:e}))});const mi=qu,xi=n.defineComponent({name:"sq-pagination-prev",__name:"pagination-prev",props:n.mergeModels({disabled:{type:Boolean},size:{},maxPage:{}},{current:{required:!0},currentModifiers:{}}),emits:["update:current"],setup(e){const u=e,t=n.useModel(e,"current"),o=r=>{t.value+=r};return(r,c)=>(n.openBlock(),n.createBlock(n.unref(Z),{icon:n.unref(bn),size:u.size,disabled:t.value===1||u.disabled,onClick:c[0]||(c[0]=i=>o(-1))},null,8,["icon","size","disabled"]))}}),gi=n.defineComponent({name:"sq-pagination-next",__name:"pagination-next",props:n.mergeModels({disabled:{type:Boolean},size:{},maxPage:{}},{current:{required:!0},currentModifiers:{}}),emits:["update:current"],setup(e){const u=e,t=n.useModel(e,"current"),o=r=>{t.value+=r};return(r,c)=>(n.openBlock(),n.createBlock(n.unref(Z),{icon:n.unref(_n),size:u.size,disabled:t.value===u.maxPage||u.disabled,onClick:c[0]||(c[0]=i=>o(1))},null,8,["icon","size","disabled"]))}}),_i={class:"sq-pagination-pager"},ki=n.defineComponent({name:"sq-pagination-pager",__name:"pagination-pager",props:n.mergeModels({disabled:{type:Boolean},size:{},list:{}},{current:{required:!0},currentModifiers:{}}),emits:["update:current"],setup(e){const u=e,t=n.useModel(e,"current"),o=r=>{t.value=r};return(r,c)=>(n.openBlock(),n.createElementBlock("div",_i,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.list,i=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:i},[i?(n.openBlock(),n.createBlock(n.unref(Z),{key:0,type:t.value===i?"primary":void 0,size:u.size,disabled:u.disabled,onClick:s=>o(i)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i),1)]),_:2},1032,["type","size","disabled","onClick"])):(n.openBlock(),n.createBlock(n.unref(Z),{key:1,icon:n.unref(Gn),size:u.size,disabled:""},null,8,["icon","size"]))],64))),128))]))}}),yi={class:"sq-pagination"},Ci=n.defineComponent({name:"sq-pagination",__name:"pagination",props:n.mergeModels({total:{default:0},disabled:{type:Boolean,default:!1},size:{},layout:{},pagerCount:{default:5}},{current:{default:1},currentModifiers:{},pageSize:{default:10},pageSizeModifiers:{}}),emits:["update:current","update:pageSize"],setup(e){const u=e,t=n.useModel(e,"current"),o=n.useModel(e,"pageSize"),r=n.computed(()=>Math.ceil(u.total/o.value)||1),c=n.computed(()=>{const s=[],a=Math.floor(u.pagerCount/2)-1;let l=t.value-a,f=t.value+a;l<2&&(l=2,f=l+a*2),f>r.value-1&&(f=r.value-1,l=f-a*2);for(let d=1;d<=r.value;d++)d===1||d===r.value||d>=l&&d<=f?s.push(d):(d===l-1||d===f+1)&&s.push(0);return s}),i=n.computed(()=>{const s=u.layout??["prev","pager","next"],a=[];for(const l of s)switch(l){case"prev":a.push(xi);break;case"pager":a.push(ki);break;case"next":a.push(gi);break}return a});return(s,a)=>(n.openBlock(),n.createElementBlock("div",yi,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.value,(l,f)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(l),{key:f,size:u.size,disabled:u.disabled,list:c.value,"max-page":r.value,current:t.value,"onUpdate:current":a[0]||(a[0]=d=>t.value=d)},null,40,["size","disabled","list","max-page","current"]))),128))]))}}),Ei=n.defineComponent({name:"sq-only-child",setup(e,{slots:u,attrs:t}){return()=>{var c;const o=(c=u.default)==null?void 0:c.call(u,t);if(!o)return null;const r=It(o);return r?n.cloneVNode(r,t):null}}});function It(e){if(!e)return null;for(const u of e){if(u!==null&&typeof u=="object")switch(u.type){case n.Comment:continue;case n.Text:case"svg":return Vt(u);case n.Fragment:return It(u.children);default:return u}return Vt(u)}}function Vt(e){return n.createVNode("span",null,[e])}const We=Math.min,pe=Math.max,Ge=Math.round,Xe=Math.floor,ue=e=>({x:e,y:e}),wi={left:"right",right:"left",bottom:"top",top:"bottom"},Di={start:"end",end:"start"};function Pt(e,u,t){return pe(e,We(u,t))}function Ye(e,u){return typeof e=="function"?e(u):e}function he(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function Ot(e){return e==="x"?"y":"x"}function vt(e){return e==="y"?"height":"width"}const Ai=new Set(["top","bottom"]);function ae(e){return Ai.has(he(e))?"y":"x"}function jt(e){return Ot(ae(e))}function Fi(e,u,t){t===void 0&&(t=!1);const o=Qe(e),r=jt(e),c=vt(r);let i=r==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return u.reference[c]>u.floating[c]&&(i=Ke(i)),[i,Ke(i)]}function Bi(e){const u=Ke(e);return[zu(e),u,zu(u)]}function zu(e){return e.replace(/start|end/g,u=>Di[u])}const Zt=["left","right"],Ht=["right","left"],Si=["top","bottom"],Mi=["bottom","top"];function qi(e,u,t){switch(e){case"top":case"bottom":return t?u?Ht:Zt:u?Zt:Ht;case"left":case"right":return u?Si:Mi;default:return[]}}function zi(e,u,t,o){const r=Qe(e);let c=qi(he(e),t==="start",o);return r&&(c=c.map(i=>i+"-"+r),u&&(c=c.concat(c.map(zu)))),c}function Ke(e){return e.replace(/left|right|bottom|top/g,u=>wi[u])}function Ni(e){return{top:0,right:0,bottom:0,left:0,...e}}function $i(e){return typeof e!="number"?Ni(e):{top:e,right:e,bottom:e,left:e}}function Je(e){const{x:u,y:t,width:o,height:r}=e;return{width:o,height:r,top:t,left:u,right:u+o,bottom:t+r,x:u,y:t}}function Ut(e,u,t){let{reference:o,floating:r}=e;const c=ae(u),i=jt(u),s=vt(i),a=he(u),l=c==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,b=o[s]/2-r[s]/2;let h;switch(a){case"top":h={x:f,y:o.y-r.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-r.width,y:d};break;default:h={x:o.x,y:o.y}}switch(Qe(u)){case"start":h[i]-=b*(t&&l?-1:1);break;case"end":h[i]+=b*(t&&l?-1:1);break}return h}const Ti=async(e,u,t)=>{const{placement:o="bottom",strategy:r="absolute",middleware:c=[],platform:i}=t,s=c.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(u));let l=await i.getElementRects({reference:e,floating:u,strategy:r}),{x:f,y:d}=Ut(l,o,a),b=o,h={},p=0;for(let m=0;m<s.length;m++){const{name:g,fn:_}=s[m],{x:k,y:E,data:C,reset:w}=await _({x:f,y:d,initialPlacement:o,placement:b,strategy:r,middlewareData:h,rects:l,platform:i,elements:{reference:e,floating:u}});f=k??f,d=E??d,h={...h,[g]:{...h[g],...C}},w&&p<=50&&(p++,typeof w=="object"&&(w.placement&&(b=w.placement),w.rects&&(l=w.rects===!0?await i.getElementRects({reference:e,floating:u,strategy:r}):w.rects),{x:f,y:d}=Ut(l,b,a)),m=-1)}return{x:f,y:d,placement:b,strategy:r,middlewareData:h}};async function Wt(e,u){var t;u===void 0&&(u={});const{x:o,y:r,platform:c,rects:i,elements:s,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:b=!1,padding:h=0}=Ye(u,e),p=$i(h),g=s[b?d==="floating"?"reference":"floating":d],_=Je(await c.getClippingRect({element:(t=await(c.isElement==null?void 0:c.isElement(g)))==null||t?g:g.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:a})),k=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(s.floating)),C=await(c.isElement==null?void 0:c.isElement(E))?await(c.getScale==null?void 0:c.getScale(E))||{x:1,y:1}:{x:1,y:1},w=Je(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:k,offsetParent:E,strategy:a}):k);return{top:(_.top-w.top+p.top)/C.y,bottom:(w.bottom-_.bottom+p.bottom)/C.y,left:(_.left-w.left+p.left)/C.x,right:(w.right-_.right+p.right)/C.x}}const Ri=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(u){var t,o;const{placement:r,middlewareData:c,rects:i,initialPlacement:s,platform:a,elements:l}=u,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:b,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=Ye(e,u);if((t=c.arrow)!=null&&t.alignmentOffset)return{};const _=he(r),k=ae(s),E=he(s)===s,C=await(a.isRTL==null?void 0:a.isRTL(l.floating)),w=b||(E||!m?[Ke(s)]:Bi(s)),B=p!=="none";!b&&B&&w.push(...zi(s,m,p,C));const z=[s,...w],T=await Wt(u,g),y=[];let A=((o=c.flip)==null?void 0:o.overflows)||[];if(f&&y.push(T[_]),d){const $=Fi(r,i,C);y.push(T[$[0]],T[$[1]])}if(A=[...A,{placement:r,overflows:y}],!y.every($=>$<=0)){var x,M;const $=(((x=c.flip)==null?void 0:x.index)||0)+1,I=z[$];if(I&&(!(d==="alignment"?k!==ae(I):!1)||A.every(F=>ae(F.placement)===k?F.overflows[0]>0:!0)))return{data:{index:$,overflows:A},reset:{placement:I}};let O=(M=A.filter(D=>D.overflows[0]<=0).sort((D,F)=>D.overflows[1]-F.overflows[1])[0])==null?void 0:M.placement;if(!O)switch(h){case"bestFit":{var N;const D=(N=A.filter(F=>{if(B){const q=ae(F.placement);return q===k||q==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(q=>q>0).reduce((q,v)=>q+v,0)]).sort((F,q)=>F[1]-q[1])[0])==null?void 0:N[0];D&&(O=D);break}case"initialPlacement":O=s;break}if(r!==O)return{reset:{placement:O}}}return{}}}},Li=new Set(["left","top"]);async function Ii(e,u){const{placement:t,platform:o,elements:r}=e,c=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=he(t),s=Qe(t),a=ae(t)==="y",l=Li.has(i)?-1:1,f=c&&a?-1:1,d=Ye(u,e);let{mainAxis:b,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),a?{x:h*f,y:b*l}:{x:b*l,y:h*f}}const Vi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(u){var t,o;const{x:r,y:c,placement:i,middlewareData:s}=u,a=await Ii(u,e);return i===((t=s.offset)==null?void 0:t.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:c+a.y,data:{...a,placement:i}}}}},Pi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(u){const{x:t,y:o,placement:r}=u,{mainAxis:c=!0,crossAxis:i=!1,limiter:s={fn:g=>{let{x:_,y:k}=g;return{x:_,y:k}}},...a}=Ye(e,u),l={x:t,y:o},f=await Wt(u,a),d=ae(he(r)),b=Ot(d);let h=l[b],p=l[d];if(c){const g=b==="y"?"top":"left",_=b==="y"?"bottom":"right",k=h+f[g],E=h-f[_];h=Pt(k,h,E)}if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",k=p+f[g],E=p-f[_];p=Pt(k,p,E)}const m=s.fn({...u,[b]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-o,enabled:{[b]:c,[d]:i}}}}}};function eu(){return typeof window<"u"}function Ce(e){return Gt(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var u;return(e==null||(u=e.ownerDocument)==null?void 0:u.defaultView)||window}function te(e){var u;return(u=(Gt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:u.documentElement}function Gt(e){return eu()?e instanceof Node||e instanceof U(e).Node:!1}function X(e){return eu()?e instanceof Element||e instanceof U(e).Element:!1}function ne(e){return eu()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Xt(e){return!eu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}const Oi=new Set(["inline","contents"]);function $e(e){const{overflow:u,overflowX:t,overflowY:o,display:r}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(u+o+t)&&!Oi.has(r)}const vi=new Set(["table","td","th"]);function ji(e){return vi.has(Ce(e))}const Zi=[":popover-open",":modal"];function uu(e){return Zi.some(u=>{try{return e.matches(u)}catch{return!1}})}const Hi=["transform","translate","scale","rotate","perspective"],Ui=["transform","translate","scale","rotate","perspective","filter"],Wi=["paint","layout","strict","content"];function Nu(e){const u=$u(),t=X(e)?Y(e):e;return Hi.some(o=>t[o]?t[o]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!u&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!u&&(t.filter?t.filter!=="none":!1)||Ui.some(o=>(t.willChange||"").includes(o))||Wi.some(o=>(t.contain||"").includes(o))}function Gi(e){let u=le(e);for(;ne(u)&&!Ee(u);){if(Nu(u))return u;if(uu(u))return null;u=le(u)}return null}function $u(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xi=new Set(["html","body","#document"]);function Ee(e){return Xi.has(Ce(e))}function Y(e){return U(e).getComputedStyle(e)}function tu(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function le(e){if(Ce(e)==="html")return e;const u=e.assignedSlot||e.parentNode||Xt(e)&&e.host||te(e);return Xt(u)?u.host:u}function Yt(e){const u=le(e);return Ee(u)?e.ownerDocument?e.ownerDocument.body:e.body:ne(u)&&$e(u)?u:Yt(u)}function Te(e,u,t){var o;u===void 0&&(u=[]),t===void 0&&(t=!0);const r=Yt(e),c=r===((o=e.ownerDocument)==null?void 0:o.body),i=U(r);if(c){const s=Tu(i);return u.concat(i,i.visualViewport||[],$e(r)?r:[],s&&t?Te(s):[])}return u.concat(r,Te(r,[],t))}function Tu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qt(e){const u=Y(e);let t=parseFloat(u.width)||0,o=parseFloat(u.height)||0;const r=ne(e),c=r?e.offsetWidth:t,i=r?e.offsetHeight:o,s=Ge(t)!==c||Ge(o)!==i;return s&&(t=c,o=i),{width:t,height:o,$:s}}function Ru(e){return X(e)?e:e.contextElement}function we(e){const u=Ru(e);if(!ne(u))return ue(1);const t=u.getBoundingClientRect(),{width:o,height:r,$:c}=Qt(u);let i=(c?Ge(t.width):t.width)/o,s=(c?Ge(t.height):t.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Yi=ue(0);function Kt(e){const u=U(e);return!$u()||!u.visualViewport?Yi:{x:u.visualViewport.offsetLeft,y:u.visualViewport.offsetTop}}function Qi(e,u,t){return u===void 0&&(u=!1),!t||u&&t!==U(e)?!1:u}function be(e,u,t,o){u===void 0&&(u=!1),t===void 0&&(t=!1);const r=e.getBoundingClientRect(),c=Ru(e);let i=ue(1);u&&(o?X(o)&&(i=we(o)):i=we(e));const s=Qi(c,t,o)?Kt(c):ue(0);let a=(r.left+s.x)/i.x,l=(r.top+s.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(c){const b=U(c),h=o&&X(o)?U(o):o;let p=b,m=Tu(p);for(;m&&o&&h!==p;){const g=we(m),_=m.getBoundingClientRect(),k=Y(m),E=_.left+(m.clientLeft+parseFloat(k.paddingLeft))*g.x,C=_.top+(m.clientTop+parseFloat(k.paddingTop))*g.y;a*=g.x,l*=g.y,f*=g.x,d*=g.y,a+=E,l+=C,p=U(m),m=Tu(p)}}return Je({width:f,height:d,x:a,y:l})}function nu(e,u){const t=tu(e).scrollLeft;return u?u.left+t:be(te(e)).left+t}function Jt(e,u){const t=e.getBoundingClientRect(),o=t.left+u.scrollLeft-nu(e,t),r=t.top+u.scrollTop;return{x:o,y:r}}function Ki(e){let{elements:u,rect:t,offsetParent:o,strategy:r}=e;const c=r==="fixed",i=te(o),s=u?uu(u.floating):!1;if(o===i||s&&c)return t;let a={scrollLeft:0,scrollTop:0},l=ue(1);const f=ue(0),d=ne(o);if((d||!d&&!c)&&((Ce(o)!=="body"||$e(i))&&(a=tu(o)),ne(o))){const h=be(o);l=we(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const b=i&&!d&&!c?Jt(i,a):ue(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+f.x+b.x,y:t.y*l.y-a.scrollTop*l.y+f.y+b.y}}function Ji(e){return Array.from(e.getClientRects())}function es(e){const u=te(e),t=tu(e),o=e.ownerDocument.body,r=pe(u.scrollWidth,u.clientWidth,o.scrollWidth,o.clientWidth),c=pe(u.scrollHeight,u.clientHeight,o.scrollHeight,o.clientHeight);let i=-t.scrollLeft+nu(e);const s=-t.scrollTop;return Y(o).direction==="rtl"&&(i+=pe(u.clientWidth,o.clientWidth)-r),{width:r,height:c,x:i,y:s}}const en=25;function us(e,u){const t=U(e),o=te(e),r=t.visualViewport;let c=o.clientWidth,i=o.clientHeight,s=0,a=0;if(r){c=r.width,i=r.height;const f=$u();(!f||f&&u==="fixed")&&(s=r.offsetLeft,a=r.offsetTop)}const l=nu(o);if(l<=0){const f=o.ownerDocument,d=f.body,b=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,p=Math.abs(o.clientWidth-d.clientWidth-h);p<=en&&(c-=p)}else l<=en&&(c+=l);return{width:c,height:i,x:s,y:a}}const ts=new Set(["absolute","fixed"]);function ns(e,u){const t=be(e,!0,u==="fixed"),o=t.top+e.clientTop,r=t.left+e.clientLeft,c=ne(e)?we(e):ue(1),i=e.clientWidth*c.x,s=e.clientHeight*c.y,a=r*c.x,l=o*c.y;return{width:i,height:s,x:a,y:l}}function un(e,u,t){let o;if(u==="viewport")o=us(e,t);else if(u==="document")o=es(te(e));else if(X(u))o=ns(u,t);else{const r=Kt(e);o={x:u.x-r.x,y:u.y-r.y,width:u.width,height:u.height}}return Je(o)}function tn(e,u){const t=le(e);return t===u||!X(t)||Ee(t)?!1:Y(t).position==="fixed"||tn(t,u)}function os(e,u){const t=u.get(e);if(t)return t;let o=Te(e,[],!1).filter(s=>X(s)&&Ce(s)!=="body"),r=null;const c=Y(e).position==="fixed";let i=c?le(e):e;for(;X(i)&&!Ee(i);){const s=Y(i),a=Nu(i);!a&&s.position==="fixed"&&(r=null),(c?!a&&!r:!a&&s.position==="static"&&!!r&&ts.has(r.position)||$e(i)&&!a&&tn(e,i))?o=o.filter(f=>f!==i):r=s,i=le(i)}return u.set(e,o),o}function rs(e){let{element:u,boundary:t,rootBoundary:o,strategy:r}=e;const i=[...t==="clippingAncestors"?uu(u)?[]:os(u,this._c):[].concat(t),o],s=i[0],a=i.reduce((l,f)=>{const d=un(u,f,r);return l.top=pe(d.top,l.top),l.right=We(d.right,l.right),l.bottom=We(d.bottom,l.bottom),l.left=pe(d.left,l.left),l},un(u,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function cs(e){const{width:u,height:t}=Qt(e);return{width:u,height:t}}function is(e,u,t){const o=ne(u),r=te(u),c=t==="fixed",i=be(e,!0,c,u);let s={scrollLeft:0,scrollTop:0};const a=ue(0);function l(){a.x=nu(r)}if(o||!o&&!c)if((Ce(u)!=="body"||$e(r))&&(s=tu(u)),o){const h=be(u,!0,c,u);a.x=h.x+u.clientLeft,a.y=h.y+u.clientTop}else r&&l();c&&!o&&r&&l();const f=r&&!o&&!c?Jt(r,s):ue(0),d=i.left+s.scrollLeft-a.x-f.x,b=i.top+s.scrollTop-a.y-f.y;return{x:d,y:b,width:i.width,height:i.height}}function Lu(e){return Y(e).position==="static"}function nn(e,u){if(!ne(e)||Y(e).position==="fixed")return null;if(u)return u(e);let t=e.offsetParent;return te(e)===t&&(t=t.ownerDocument.body),t}function on(e,u){const t=U(e);if(uu(e))return t;if(!ne(e)){let r=le(e);for(;r&&!Ee(r);){if(X(r)&&!Lu(r))return r;r=le(r)}return t}let o=nn(e,u);for(;o&&ji(o)&&Lu(o);)o=nn(o,u);return o&&Ee(o)&&Lu(o)&&!Nu(o)?t:o||Gi(e)||t}const ss=async function(e){const u=this.getOffsetParent||on,t=this.getDimensions,o=await t(e.floating);return{reference:is(e.reference,await u(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function as(e){return Y(e).direction==="rtl"}const ls={convertOffsetParentRelativeRectToViewportRelativeRect:Ki,getDocumentElement:te,getClippingRect:rs,getOffsetParent:on,getElementRects:ss,getClientRects:Ji,getDimensions:cs,getScale:we,isElement:X,isRTL:as};function rn(e,u){return e.x===u.x&&e.y===u.y&&e.width===u.width&&e.height===u.height}function fs(e,u){let t=null,o;const r=te(e);function c(){var s;clearTimeout(o),(s=t)==null||s.disconnect(),t=null}function i(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),c();const l=e.getBoundingClientRect(),{left:f,top:d,width:b,height:h}=l;if(s||u(),!b||!h)return;const p=Xe(d),m=Xe(r.clientWidth-(f+b)),g=Xe(r.clientHeight-(d+h)),_=Xe(f),E={rootMargin:-p+"px "+-m+"px "+-g+"px "+-_+"px",threshold:pe(0,We(1,a))||1};let C=!0;function w(B){const z=B[0].intersectionRatio;if(z!==a){if(!C)return i();z?i(!1,z):o=setTimeout(()=>{i(!1,1e-7)},1e3)}z===1&&!rn(l,e.getBoundingClientRect())&&i(),C=!1}try{t=new IntersectionObserver(w,{...E,root:r.ownerDocument})}catch{t=new IntersectionObserver(w,E)}t.observe(e)}return i(!0),c}function ds(e,u,t,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:c=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,l=Ru(e),f=r||c?[...l?Te(l):[],...Te(u)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),c&&_.addEventListener("resize",t)});const d=l&&s?fs(l,t):null;let b=-1,h=null;i&&(h=new ResizeObserver(_=>{let[k]=_;k&&k.target===l&&h&&(h.unobserve(u),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(u)})),t()}),l&&!a&&h.observe(l),h.observe(u));let p,m=a?be(e):null;a&&g();function g(){const _=be(e);m&&!rn(m,_)&&t(),m=_,p=requestAnimationFrame(g)}return t(),()=>{var _;f.forEach(k=>{r&&k.removeEventListener("scroll",t),c&&k.removeEventListener("resize",t)}),d==null||d(),(_=h)==null||_.disconnect(),h=null,a&&cancelAnimationFrame(p)}}const ps=Vi,hs=Pi,bs=Ri,ms=(e,u,t)=>{const o=new Map,r={platform:ls,...t},c={...r.platform,_c:o};return Ti(e,u,{...r,platform:c})},cn=n.defineComponent({name:"sq-popover",__name:"popover",props:n.mergeModels({placement:{default:"top"},offset:{default:10},teleported:{type:Boolean,default:!0},trigger:{default:"hover"},showAfter:{default:0},hideAfter:{default:300},disabled:{type:Boolean},transition:{default:"sq-fade"},popoverClass:{}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(e){const{nextZIndex:u}=su();let t,o;const r=e,c=n.useModel(e,"visible"),i=n.ref(0),s=n.ref({}),a=n.shallowRef(null),l=n.shallowRef(null);n.watch(c,_=>{_?(i.value=u(),m(),o=ds(a.value.$el,l.value,m)):o==null||o()}),n.onMounted(()=>{m()}),n.onBeforeUnmount(()=>{g(),document.removeEventListener("click",p)});function f(){r.trigger!=="hover"||r.disabled||(g(),t=setTimeout(()=>{h(!1)},r.showAfter))}function d(){r.trigger==="hover"&&(g(),t=setTimeout(()=>{p()},r.hideAfter))}function b(_){r.trigger==="click"&&!r.disabled&&!c.value&&(_.stopPropagation(),h())}function h(_=!0){c.value=!0,_&&document.addEventListener("click",p)}function p(){c.value=!1,document.removeEventListener("click",p)}async function m(){var y,A;const _=typeof((y=a.value)==null?void 0:y.$el.getBoundingClientRect),k=typeof((A=l.value)==null?void 0:A.getBoundingClientRect),E=document.documentElement,C=getComputedStyle(E).getPropertyValue("--sq-padding-md").trim(),w=parseInt(C);if(_!=="function"||k!=="function")return;const B=await ms(a.value.$el,l.value,{placement:r.placement,middleware:[ps(r.offset),bs(),hs({padding:w})]}),{x:z,y:T}=B;s.value={left:`${z}px`,top:`${T}px`}}function g(){t&&(clearTimeout(t),t=void 0)}return(_,k)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(n.unref(Ei),{class:n.normalizeClass(["sq-popover-trigger",_.$attrs.class]),style:n.normalizeStyle(_.$attrs.style),ref_key:"triggerRef",ref:a,onMouseenter:f,onMouseleave:d,onClick:b},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"reference")]),_:3},8,["class","style"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body",disabled:!r.teleported},[n.createVNode(n.Transition,{name:r.transition},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["sq-popover",_.popoverClass]),style:n.normalizeStyle({...s.value,zIndex:i.value}),ref_key:"popverRef",ref:l,onClick:k[0]||(k[0]=n.withModifiers(()=>{},["stop"]))},[n.renderSlot(_.$slots,"default")],6),[[n.vShow,c.value]])]),_:3},8,["name"])],8,["disabled"]))],64))}}),xs={key:0,class:"sq-progress-label"},gs=["textContent"],sn=n.defineComponent({name:"sq-progress",__name:"progress",props:{value:{},min:{default:0},max:{default:100},stroke:{default:4},color:{},type:{default:"primary"},variant:{},label:{type:Boolean,default:!0}},setup(e){const u=new ResizeObserver(l),t=e,o=n.ref(100),r=n.shallowRef(null),c=n.computed(()=>{const f=[];return t.color||f.push(`is-${t.type}`),t.variant&&f.push(`is-${t.variant}`),f}),i=n.computed(()=>{const f=t.max-t.min;return(t.value-t.min)*100/f}),s=n.computed(()=>`${Math.round(i.value*10)/10} %`),a=n.computed(()=>{const f={};if(f["--progress-stroke"]=`${t.stroke}px`,!t.variant)f["--progress-value"]=`${i.value}%`;else if(r.value){const d=100/o.value*t.stroke,b=(100-d)/2,h=Math.PI*b*2,p=i.value/100;f["--progress-circle-r"]=`${b}px`,f["--progress-circle-l"]=`${h}px`,f["--progress-circle-stroke"]=`${d}px`,f["--progress-value"]=`${h*p}`,i.value===0&&(f["--progress-circle-opaciry"]="0")}if(t.color){const b=typeof t.color=="string"?t.color:t.color(i.value);f["--progress-color"]=b}return f});n.onMounted(()=>{u.observe(r.value)}),n.onBeforeUnmount(()=>{u.disconnect()});function l(){o.value=r.value.getBoundingClientRect().width}return(f,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-progress",c.value]),ref_key:"progressRef",ref:r,style:n.normalizeStyle(a.value)},[t.variant==="circle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[d[0]||(d[0]=n.createElementVNode("svg",{viewBox:"0 0 100 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("circle",{class:"sq-progress-track",cx:"50",cy:"50"}),n.createElementVNode("circle",{class:"sq-progress-path",cx:"50",cy:"50"})],-1)),t.label?(n.openBlock(),n.createElementBlock("div",xs,[n.renderSlot(f.$slots,"default",{percentage:i.value},()=>[n.createElementVNode("span",{textContent:n.toDisplayString(s.value)},null,8,gs)])])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],6))}}),_s=["autofocus","name","form","value","disabled"],ks={key:0,class:"sq-radio-box"},ys=["textContent"],an=n.defineComponent({name:"sq-radio",__name:"radio",props:n.mergeModels({form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},variant:{},autofocus:{type:Boolean},label:{}},{checked:{type:Boolean,default:!1},checkedModifiers:{}}),emits:n.mergeModels(["change"],["update:checked"]),setup(e,{emit:u}){const t=u,o=e,{radioSize:r,radioDisabled:c,radioForm:i,radioName:s,radioVariant:a,groupContext:l}=zc(o),f=n.ref(),d=n.useModel(e,"checked"),b=n.computed(()=>{const p=[],m=n.unref(r),g=n.unref(c),_=n.unref(a);return m!=="md"&&p.push(`sq-selection--${m}`),h.value&&p.push("is-checked"),g&&p.push("is-disabled"),_&&p.push(`is-${_}`),p}),h=n.computed(()=>o.label&&l?n.unref(n.unref(l)).checked===o.label:d.value);return n.watch(f,p=>{o.label?d.value=p===o.label:d.value=p==="on"}),n.watch(h,p=>{if(p?f.value=o.label??"on":f.value=void 0,d.value!==p){d.value=p;return}}),n.watch(d,p=>{h.value!==p&&o.label&&l&&l.value.toggleItem(o.label)}),n.onMounted(()=>{d.value=h.value,f.value=d.value?o.label??"on":void 0}),(p,m)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(["sq-selection sq-radio",b.value])},[n.withDirectives(n.createElementVNode("input",{type:"radio",autofocus:o.autofocus,name:n.unref(s),form:n.unref(i),value:o.label,disabled:n.unref(c),"onUpdate:modelValue":m[0]||(m[0]=g=>f.value=g),onChange:m[1]||(m[1]=g=>t("change",h.value))},null,40,_s),[[n.vModelRadio,f.value]]),n.unref(a)!=="solid"?(n.openBlock(),n.createElementBlock("span",ks)):n.createCommentVNode("",!0),o.label?(n.openBlock(),n.createElementBlock("span",{key:1,class:"sq-selection-label",textContent:n.toDisplayString(o.label)},null,8,ys)):n.createCommentVNode("",!0)],2))}}),Cs={class:"sq-radio-group sq-selection-group"},ln=n.defineComponent({name:"sq-radio-group",__name:"radio-group",props:{items:{default:()=>[]},value:{},form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},variant:{}},emits:["change","update:value"],setup(e,{emit:u}){const{nextId:t}=iu(),o=u,r=e,c=n.ref(r.value),i=n.computed(()=>r.name??`sq-radio-${t()}`);n.provide(Iu,n.ref({form:n.toRef(r,"form"),name:i,disabled:n.toRef(r,"disabled"),size:n.toRef(r,"size"),variant:n.toRef(r,"variant"),checked:c,toggleItem:s})),n.watch(()=>r.value,a=>{a!==c.value&&(c.value=a)});function s(a){c.value=a,o("change",c.value),o("update:value",c.value)}return(a,l)=>(n.openBlock(),n.createElementBlock("div",Cs,[n.renderSlot(a.$slots,"default",{},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.items,(f,d)=>(n.openBlock(),n.createBlock(n.unref(an),{key:d,label:f},null,8,["label"]))),128))])]))}}),Iu=Symbol("radio-group-context-keys"),Es=["id","autofocus","name","form","disabled"],ws={class:"sq-switch-track"},Ds={class:"sq-switch-thumb"},fn=n.defineComponent({name:"sq-switch",__name:"switch",props:n.mergeModels({form:{},name:{},disabled:{type:Boolean},size:{},variant:{},autofocus:{type:Boolean},loading:{type:Boolean}},{checked:{type:Boolean,default:!1},checkedModifiers:{}}),emits:n.mergeModels(["change","click"],["update:checked"]),setup(e,{emit:u}){const t=u,o=e,{switchSize:r,switchDisabled:c,id:i}=Nc(o),s=n.useModel(e,"checked"),a=n.computed(()=>{const l=[],f=n.unref(r),d=n.unref(c);return f!=="md"&&l.push(`sq-switch--${f}`),s.value&&l.push("is-checked"),(d||o.loading)&&l.push("is-disabled"),o.variant&&l.push(`is-${o.variant}`),l});return(l,f)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(["sq-switch",a.value])},[n.withDirectives(n.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":f[0]||(f[0]=d=>s.value=d),id:n.unref(i),autofocus:o.autofocus,name:o.name,form:o.form,disabled:n.unref(c)||o.loading,onChange:f[1]||(f[1]=d=>t("change",s.value,d)),onClick:f[2]||(f[2]=d=>t("click",s.value,d))},null,40,Es),[[n.vModelCheckbox,s.value]]),n.createElementVNode("span",ws,[n.createElementVNode("span",Ds,[o.loading?(n.openBlock(),n.createBlock(n.unref(Re),{key:0})):n.createCommentVNode("",!0)])])],2))}}),As=n.defineComponent({name:"sq-tag",__name:"tag",props:{type:{},variant:{},round:{type:Boolean},size:{default:"md"}},setup(e){const u=e,t=n.computed(()=>{const r=[];return u.size!=="md"&&r.push(`sq-tag--${u.size}`),u.variant&&u.type&&r.push(`is-${u.variant}`),u.type&&r.push(`is-${u.type}`),u.round&&r.push("is-round"),r}),o=n.computed(()=>u.size==="lg"?"md":"sm");return(r,c)=>(n.openBlock(),n.createBlock(n.unref(fe),{class:n.normalizeClass(["sq-tag",t.value]),size:o.value},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},8,["class","size"]))}}),Fs=n.defineComponent({name:"sq-check-tag",__name:"check-tag",props:{checked:{type:Boolean,default:!1},type:{},round:{type:Boolean},size:{default:"md"}},emits:["change"],setup(e,{emit:u}){const t=u,o=e,r=n.computed(()=>{const i=[];return o.size!=="md"&&i.push(`sq-tag--${o.size}`),o.type&&i.push(`is-${o.type}`),o.round&&i.push("is-round"),o.checked&&i.push("is-checked"),i}),c=n.computed(()=>o.size==="lg"?"md":"sm");return(i,s)=>(n.openBlock(),n.createBlock(n.unref(fe),{class:n.normalizeClass(["sq-check-tag",r.value]),size:c.value,onClick:s[0]||(s[0]=a=>t("change",!o.checked))},{default:n.withCtx(()=>[n.renderSlot(i.$slots,"default")]),_:3},8,["class","size"]))}}),fe=n.defineComponent({name:"sq-text",__name:"text",props:{ellipsis:{type:[Boolean,Number],default:!1},size:{default:"md"}},setup(e){const u=e,t=n.computed(()=>{const c=[];return u.size!=="md"&&c.push(`sq-text--${u.size}`),u.ellipsis!==void 0&&u.ellipsis!==!1&&c.push(o.value>1?"multi-line":"single-line"),c}),o=n.computed(()=>typeof u.ellipsis=="number"?Number(Math.max(u.ellipsis,1).toFixed(0)):1),r=n.computed(()=>u.ellipsis?`--row-num: ${o.value}`:"");return(c,i)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["sq-text",t.value]),style:n.normalizeStyle(r.value)},[n.renderSlot(c.$slots,"default")],6))}}),Bs=n.defineComponent({name:"sq-timeline",__name:"timeline",props:{align:{default:"left"},variant:{}},setup(e){const u=e,t=n.computed(()=>{const o=[];return u.variant&&o.push(`is-${u.variant}`),o.push(`align-${u.align}`),o});return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-timeline",t.value])},[n.renderSlot(o.$slots,"default")],2))}}),Ss={class:"sq-timeline-dot"},Ms={class:"sq-timeline-content"},qs=["textContent"],zs=["textContent"],Ns={class:"content-info"},$s=n.defineComponent({name:"sq-timeline-item",__name:"timeline-item",props:{color:{},type:{},icon:{},hollow:{type:Boolean},timestamp:{},title:{}},setup(e){const u=e,t=n.computed(()=>{const r=[];return u.type&&r.push(`is-${u.type}`),u.hollow&&r.push("is-hollow"),r}),o=n.computed(()=>{const r={};return u.color&&(r["--timeline-dot-color"]=u.color),r});return(r,c)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-timeline-item",t.value]),style:n.normalizeStyle(o.value)},[n.createElementVNode("span",Ss,[u.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u.icon),{key:0})):n.createCommentVNode("",!0)]),n.createElementVNode("div",Ms,[u.title?(n.openBlock(),n.createElementBlock("h2",{key:0,class:"content-title",textContent:n.toDisplayString(u.title)},null,8,qs)):n.createCommentVNode("",!0),u.timestamp?(n.openBlock(),n.createElementBlock("span",{key:1,class:"content-time",textContent:n.toDisplayString(u.timestamp)},null,8,zs)):n.createCommentVNode("",!0),n.createElementVNode("div",Ns,[n.renderSlot(r.$slots,"default")])])],6))}}),Ts=["textContent"],oe=n.defineComponent({name:"sq-tooltip",__name:"tooltip",props:{placement:{},teleported:{type:Boolean,default:!0},disabled:{type:Boolean},transition:{},tip:{},popoverClass:{}},setup(e){const u=e,t=n.computed(()=>{const o=["sq-tooltip"],r=u.popoverClass;return Array.isArray(r)?o.push(...r):typeof r=="string"&&o.push(r),o});return(o,r)=>(n.openBlock(),n.createBlock(n.unref(cn),{placement:u.placement,disabled:u.disabled,"show-after":300,"hide-after":0,"popover-class":t.value,teleported:u.teleported,transition:u.transition},{reference:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("span",{textContent:n.toDisplayString(u.tip)},null,8,Ts)]),_:3},8,["placement","disabled","popover-class","teleported","transition"]))}});S.ButtonGroupContextKeys=Fu,S.CheckboxGroupContextKeys=Su,S.FormContextKeys=de,S.FormItemIdKeys=Ue,S.RadioGroupContextKeys=Iu,S.SqAlert=V0,S.SqArticle=Ec,S.SqAvatar=Ac,S.SqBacktop=Bc,S.SqBlur=Nt,S.SqButton=Z,S.SqButtonGroup=Rc,S.SqCard=Oc,S.SqCheckTag=Fs,S.SqCheckbox=Bu,S.SqCheckboxGroup=$t,S.SqDivider=Ne,S.SqForm=Xc,S.SqImage=Tt,S.SqImageViewer=Rt,S.SqInput=Lt,S.SqMessage=mi,S.SqPagination=Ci,S.SqPopover=cn,S.SqProgress=sn,S.SqRadio=an,S.SqRadioGroup=ln,S.SqSwitch=fn,S.SqTag=As,S.SqText=fe,S.SqTimeline=Bs,S.SqTimelineItem=$s,S.SqTooltip=oe,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
49
+ `,c.map=[u,e.line],!0}function tr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||r+3>c)return!1;const i=e.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let s=r;r=e.skipChars(r,i);let a=r-s;if(a<3)return!1;const l=e.src.slice(s,r),f=e.src.slice(r,c);if(i===96&&f.indexOf(String.fromCharCode(i))>=0)return!1;if(o)return!0;let d=u,b=!1;for(;d++,!(d>=t||(r=s=e.bMarks[d]+e.tShift[d],c=e.eMarks[d],r<c&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(r)===i&&!(e.sCount[d]-e.blkIndent>=4)&&(r=e.skipChars(r,i),!(r-s<a)&&(r=e.skipSpaces(r),!(r<c)))){b=!0;break}a=e.sCount[u],e.line=d+(b?1:0);const h=e.push("fence","code",0);return h.info=f,h.content=e.getLines(u+1,d,a,!0),h.markup=l,h.map=[u,e.line],!0}function nr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];const i=e.lineMax;if(e.sCount[u]-e.blkIndent>=4||e.src.charCodeAt(r)!==62)return!1;if(o)return!0;const s=[],a=[],l=[],f=[],d=e.md.block.ruler.getRules("blockquote"),b=e.parentType;e.parentType="blockquote";let h=!1,p;for(p=u;p<t;p++){const E=e.sCount[p]<e.blkIndent;if(r=e.bMarks[p]+e.tShift[p],c=e.eMarks[p],r>=c)break;if(e.src.charCodeAt(r++)===62&&!E){let w=e.sCount[p]+1,B,z;e.src.charCodeAt(r)===32?(r++,w++,z=!1,B=!0):e.src.charCodeAt(r)===9?(B=!0,(e.bsCount[p]+w)%4===3?(r++,w++,z=!1):z=!0):B=!1;let T=w;for(s.push(e.bMarks[p]),e.bMarks[p]=r;r<c;){const y=e.src.charCodeAt(r);if(R(y))y===9?T+=4-(T+e.bsCount[p]+(z?1:0))%4:T++;else break;r++}h=r>=c,a.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(B?1:0),l.push(e.sCount[p]),e.sCount[p]=T-w,f.push(e.tShift[p]),e.tShift[p]=r-e.bMarks[p];continue}if(h)break;let C=!1;for(let w=0,B=d.length;w<B;w++)if(d[w](e,p,t,!0)){C=!0;break}if(C){e.lineMax=p,e.blkIndent!==0&&(s.push(e.bMarks[p]),a.push(e.bsCount[p]),f.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),a.push(e.bsCount[p]),f.push(e.tShift[p]),l.push(e.sCount[p]),e.sCount[p]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const _=[u,0];g.map=_,e.md.block.tokenize(e,u,p);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=i,e.parentType=b,_[1]=e.line;for(let E=0;E<f.length;E++)e.bMarks[E+u]=s[E],e.tShift[E+u]=f[E],e.sCount[E+u]=l[E],e.bsCount[E+u]=a[E];return e.blkIndent=m,!0}function or(e,u,t,o){const r=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4)return!1;let c=e.bMarks[u]+e.tShift[u];const i=e.src.charCodeAt(c++);if(i!==42&&i!==45&&i!==95)return!1;let s=1;for(;c<r;){const l=e.src.charCodeAt(c++);if(l!==i&&!R(l))return!1;l===i&&s++}if(s<3)return!1;if(o)return!0;e.line=u+1;const a=e.push("hr","hr",0);return a.map=[u,e.line],a.markup=Array(s+1).join(String.fromCharCode(i)),!0}function lt(e,u){const t=e.eMarks[u];let o=e.bMarks[u]+e.tShift[u];const r=e.src.charCodeAt(o++);if(r!==42&&r!==45&&r!==43)return-1;if(o<t){const c=e.src.charCodeAt(o);if(!R(c))return-1}return o}function ft(e,u){const t=e.bMarks[u]+e.tShift[u],o=e.eMarks[u];let r=t;if(r+1>=o)return-1;let c=e.src.charCodeAt(r++);if(c<48||c>57)return-1;for(;;){if(r>=o)return-1;if(c=e.src.charCodeAt(r++),c>=48&&c<=57){if(r-t>=10)return-1;continue}if(c===41||c===46)break;return-1}return r<o&&(c=e.src.charCodeAt(r),!R(c))?-1:r}function rr(e,u){const t=e.level+2;for(let o=u+2,r=e.tokens.length-2;o<r;o++)e.tokens[o].level===t&&e.tokens[o].type==="paragraph_open"&&(e.tokens[o+2].hidden=!0,e.tokens[o].hidden=!0,o+=2)}function cr(e,u,t,o){let r,c,i,s,a=u,l=!0;if(e.sCount[a]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[a]-e.listIndent>=4&&e.sCount[a]<e.blkIndent)return!1;let f=!1;o&&e.parentType==="paragraph"&&e.sCount[a]>=e.blkIndent&&(f=!0);let d,b,h;if((h=ft(e,a))>=0){if(d=!0,i=e.bMarks[a]+e.tShift[a],b=Number(e.src.slice(i,h-1)),f&&b!==1)return!1}else if((h=lt(e,a))>=0)d=!1;else return!1;if(f&&e.skipSpaces(h)>=e.eMarks[a])return!1;if(o)return!0;const p=e.src.charCodeAt(h-1),m=e.tokens.length;d?(s=e.push("ordered_list_open","ol",1),b!==1&&(s.attrs=[["start",b]])):s=e.push("bullet_list_open","ul",1);const g=[a,0];s.map=g,s.markup=String.fromCharCode(p);let _=!1;const k=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";a<t;){c=h,r=e.eMarks[a];const C=e.sCount[a]+h-(e.bMarks[a]+e.tShift[a]);let w=C;for(;c<r;){const I=e.src.charCodeAt(c);if(I===9)w+=4-(w+e.bsCount[a])%4;else if(I===32)w++;else break;c++}const B=c;let z;B>=r?z=1:z=w-C,z>4&&(z=1);const T=C+z;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(p);const y=[a,0];s.map=y,d&&(s.info=e.src.slice(i,h-1));const A=e.tight,x=e.tShift[a],M=e.sCount[a],N=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=T,e.tight=!0,e.tShift[a]=B-e.bMarks[a],e.sCount[a]=w,B>=r&&e.isEmpty(a+1)?e.line=Math.min(e.line+2,t):e.md.block.tokenize(e,a,t,!0),(!e.tight||_)&&(l=!1),_=e.line-a>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=N,e.tShift[a]=x,e.sCount[a]=M,e.tight=A,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(p),a=e.line,y[1]=a,a>=t||e.sCount[a]<e.blkIndent||e.sCount[a]-e.blkIndent>=4)break;let $=!1;for(let I=0,O=k.length;I<O;I++)if(k[I](e,a,t,!0)){$=!0;break}if($)break;if(d){if(h=ft(e,a),h<0)break;i=e.bMarks[a]+e.tShift[a]}else if(h=lt(e,a),h<0)break;if(p!==e.src.charCodeAt(h-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),g[1]=a,e.line=a,e.parentType=E,l&&rr(e,m),!0}function ir(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u],i=u+1;if(e.sCount[u]-e.blkIndent>=4||e.src.charCodeAt(r)!==91)return!1;function s(k){const E=e.lineMax;if(k>=E||e.isEmpty(k))return null;let C=!1;if(e.sCount[k]-e.blkIndent>3&&(C=!0),e.sCount[k]<0&&(C=!0),!C){const z=e.md.block.ruler.getRules("reference"),T=e.parentType;e.parentType="reference";let y=!1;for(let A=0,x=z.length;A<x;A++)if(z[A](e,k,E,!0)){y=!0;break}if(e.parentType=T,y)return null}const w=e.bMarks[k]+e.tShift[k],B=e.eMarks[k];return e.src.slice(w,B+1)}let a=e.src.slice(r,c+1);c=a.length;let l=-1;for(r=1;r<c;r++){const k=a.charCodeAt(r);if(k===91)return!1;if(k===93){l=r;break}else if(k===10){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}else if(k===92&&(r++,r<c&&a.charCodeAt(r)===10)){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}}if(l<0||a.charCodeAt(l+1)!==58)return!1;for(r=l+2;r<c;r++){const k=a.charCodeAt(r);if(k===10){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}else if(!R(k))break}const f=e.md.helpers.parseLinkDestination(a,r,c);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;r=f.pos;const b=r,h=i,p=r;for(;r<c;r++){const k=a.charCodeAt(r);if(k===10){const E=s(i);E!==null&&(a+=E,c=a.length,i++)}else if(!R(k))break}let m=e.md.helpers.parseLinkTitle(a,r,c);for(;m.can_continue;){const k=s(i);if(k===null)break;a+=k,r=c,c=a.length,i++,m=e.md.helpers.parseLinkTitle(a,r,c,m)}let g;for(r<c&&p!==r&&m.ok?(g=m.str,r=m.pos):(g="",r=b,i=h);r<c;){const k=a.charCodeAt(r);if(!R(k))break;r++}if(r<c&&a.charCodeAt(r)!==10&&g)for(g="",r=b,i=h;r<c;){const k=a.charCodeAt(r);if(!R(k))break;r++}if(r<c&&a.charCodeAt(r)!==10)return!1;const _=Pe(a.slice(1,l));return _?(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[_]>"u"&&(e.env.references[_]={title:g,href:d}),e.line=i),!0):!1}const sr=["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"],ar="[a-zA-Z_:][a-zA-Z0-9:._-]*",lr="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",dt="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+ar+"(?:\\s*=\\s*"+lr+")?)")+"*\\s*\\/?>",pt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",fr="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",dr="<[?][\\s\\S]*?[?]>",pr="<![A-Za-z][^>]*>",hr="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",br=new RegExp("^(?:"+dt+"|"+pt+"|"+fr+"|"+dr+"|"+pr+"|"+hr+")"),mr=new RegExp("^(?:"+dt+"|"+pt+")"),_e=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+sr.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(mr.source+"\\s*$"),/^$/,!1]];function xr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let i=e.src.slice(r,c),s=0;for(;s<_e.length&&!_e[s][0].test(i);s++);if(s===_e.length)return!1;if(o)return _e[s][2];let a=u+1;if(!_e[s][1].test(i)){for(;a<t&&!(e.sCount[a]<e.blkIndent);a++)if(r=e.bMarks[a]+e.tShift[a],c=e.eMarks[a],i=e.src.slice(r,c),_e[s][1].test(i)){i.length!==0&&a++;break}}e.line=a;const l=e.push("html_block","",0);return l.map=[u,a],l.content=e.getLines(u,a,e.blkIndent,!0),!0}function gr(e,u,t,o){let r=e.bMarks[u]+e.tShift[u],c=e.eMarks[u];if(e.sCount[u]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(r);if(i!==35||r>=c)return!1;let s=1;for(i=e.src.charCodeAt(++r);i===35&&r<c&&s<=6;)s++,i=e.src.charCodeAt(++r);if(s>6||r<c&&!R(i))return!1;if(o)return!0;c=e.skipSpacesBack(c,r);const a=e.skipCharsBack(c,35,r);a>r&&R(e.src.charCodeAt(a-1))&&(c=a),e.line=u+1;const l=e.push("heading_open","h"+String(s),1);l.markup="########".slice(0,s),l.map=[u,e.line];const f=e.push("inline","",0);f.content=e.src.slice(r,c).trim(),f.map=[u,e.line],f.children=[];const d=e.push("heading_close","h"+String(s),-1);return d.markup="########".slice(0,s),!0}function _r(e,u,t){const o=e.md.block.ruler.getRules("paragraph");if(e.sCount[u]-e.blkIndent>=4)return!1;const r=e.parentType;e.parentType="paragraph";let c=0,i,s=u+1;for(;s<t&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let h=e.bMarks[s]+e.tShift[s];const p=e.eMarks[s];if(h<p&&(i=e.src.charCodeAt(h),(i===45||i===61)&&(h=e.skipChars(h,i),h=e.skipSpaces(h),h>=p))){c=i===61?1:2;break}}if(e.sCount[s]<0)continue;let b=!1;for(let h=0,p=o.length;h<p;h++)if(o[h](e,s,t,!0)){b=!0;break}if(b)break}if(!c)return!1;const a=e.getLines(u,s,e.blkIndent,!1).trim();e.line=s+1;const l=e.push("heading_open","h"+String(c),1);l.markup=String.fromCharCode(i),l.map=[u,e.line];const f=e.push("inline","",0);f.content=a,f.map=[u,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(c),-1);return d.markup=String.fromCharCode(i),e.parentType=r,!0}function kr(e,u,t){const o=e.md.block.ruler.getRules("paragraph"),r=e.parentType;let c=u+1;for(e.parentType="paragraph";c<t&&!e.isEmpty(c);c++){if(e.sCount[c]-e.blkIndent>3||e.sCount[c]<0)continue;let l=!1;for(let f=0,d=o.length;f<d;f++)if(o[f](e,c,t,!0)){l=!0;break}if(l)break}const i=e.getLines(u,c,e.blkIndent,!1).trim();e.line=c;const s=e.push("paragraph_open","p",1);s.map=[u,e.line];const a=e.push("inline","",0);return a.content=i,a.map=[u,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=r,!0}const ve=[["table",er,["paragraph","reference"]],["code",ur],["fence",tr,["paragraph","reference","blockquote","list"]],["blockquote",nr,["paragraph","reference","blockquote","list"]],["hr",or,["paragraph","reference","blockquote","list"]],["list",cr,["paragraph","reference","blockquote"]],["reference",ir],["html_block",xr,["paragraph","reference","blockquote"]],["heading",gr,["paragraph","reference","blockquote"]],["lheading",_r],["paragraph",kr]];function je(){this.ruler=new j;for(let e=0;e<ve.length;e++)this.ruler.push(ve[e][0],ve[e][1],{alt:(ve[e][2]||[]).slice()})}je.prototype.tokenize=function(e,u,t){const o=this.ruler.getRules(""),r=o.length,c=e.md.options.maxNesting;let i=u,s=!1;for(;i<t&&(e.line=i=e.skipEmptyLines(i),!(i>=t||e.sCount[i]<e.blkIndent));){if(e.level>=c){e.line=t;break}const a=e.line;let l=!1;for(let f=0;f<r;f++)if(l=o[f](e,i,t,!1),l){if(a>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<t&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},je.prototype.parse=function(e,u,t,o){if(!e)return;const r=new this.State(e,u,t,o);this.tokenize(r,r.line,r.lineMax)},je.prototype.State=K;function Me(e,u,t,o){this.src=e,this.env=t,this.md=u,this.tokens=o,this.tokens_meta=Array(o.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}Me.prototype.pushPending=function(){const e=new W("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Me.prototype.push=function(e,u,t){this.pending&&this.pushPending();const o=new W(e,u,t);let r=null;return t<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),o.level=this.level,t>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o},Me.prototype.scanDelims=function(e,u){const t=this.posMax,o=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32;let c=e;for(;c<t&&this.src.charCodeAt(c)===o;)c++;const i=c-e,s=c<t?this.src.charCodeAt(c):32,a=Se(r)||Be(String.fromCharCode(r)),l=Se(s)||Be(String.fromCharCode(s)),f=Fe(r),d=Fe(s),b=!d&&(!l||f||a),h=!f&&(!a||d||l);return{can_open:b&&(u||!h||a),can_close:h&&(u||!b||l),length:i}},Me.prototype.Token=W;function yr(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 Cr(e,u){let t=e.pos;for(;t<e.posMax&&!yr(e.src.charCodeAt(t));)t++;return t===e.pos?!1:(u||(e.pending+=e.src.slice(e.pos,t)),e.pos=t,!0)}const Er=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function wr(e,u){if(!e.md.options.linkify||e.linkLevel>0)return!1;const t=e.pos,o=e.posMax;if(t+3>o||e.src.charCodeAt(t)!==58||e.src.charCodeAt(t+1)!==47||e.src.charCodeAt(t+2)!==47)return!1;const r=e.pending.match(Er);if(!r)return!1;const c=r[1],i=e.md.linkify.matchAtStart(e.src.slice(t-c.length));if(!i)return!1;let s=i.url;if(s.length<=c.length)return!1;s=s.replace(/\*+$/,"");const a=e.md.normalizeLink(s);if(!e.md.validateLink(a))return!1;if(!u){e.pending=e.pending.slice(0,-c.length);const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="linkify",l.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-c.length,!0}function Dr(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==10)return!1;const o=e.pending.length-1,r=e.posMax;if(!u)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){let c=o-1;for(;c>=1&&e.pending.charCodeAt(c-1)===32;)c--;e.pending=e.pending.slice(0,c),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(t++;t<r&&R(e.src.charCodeAt(t));)t++;return e.pos=t,!0}const _u=[];for(let e=0;e<256;e++)_u.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){_u[e.charCodeAt(0)]=1});function Ar(e,u){let t=e.pos;const o=e.posMax;if(e.src.charCodeAt(t)!==92||(t++,t>=o))return!1;let r=e.src.charCodeAt(t);if(r===10){for(u||e.push("hardbreak","br",0),t++;t<o&&(r=e.src.charCodeAt(t),!!R(r));)t++;return e.pos=t,!0}let c=e.src[t];if(r>=55296&&r<=56319&&t+1<o){const s=e.src.charCodeAt(t+1);s>=56320&&s<=57343&&(c+=e.src[t+1],t++)}const i="\\"+c;if(!u){const s=e.push("text_special","",0);r<256&&_u[r]!==0?s.content=c:s.content=i,s.markup=i,s.info="escape"}return e.pos=t+1,!0}function Fr(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==96)return!1;const r=t;t++;const c=e.posMax;for(;t<c&&e.src.charCodeAt(t)===96;)t++;const i=e.src.slice(r,t),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return u||(e.pending+=i),e.pos+=s,!0;let a=t,l;for(;(l=e.src.indexOf("`",a))!==-1;){for(a=l+1;a<c&&e.src.charCodeAt(a)===96;)a++;const f=a-l;if(f===s){if(!u){const d=e.push("code_inline","code",0);d.markup=i,d.content=e.src.slice(t,l).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=a,!0}e.backticks[f]=l}return e.backticksScanned=!0,u||(e.pending+=i),e.pos+=s,!0}function Br(e,u){const t=e.pos,o=e.src.charCodeAt(t);if(u||o!==126)return!1;const r=e.scanDelims(e.pos,!0);let c=r.length;const i=String.fromCharCode(o);if(c<2)return!1;let s;c%2&&(s=e.push("text","",0),s.content=i,c--);for(let a=0;a<c;a+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:o,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0}function ht(e,u){let t;const o=[],r=u.length;for(let c=0;c<r;c++){const i=u[c];if(i.marker!==126||i.end===-1)continue;const s=u[i.end];t=e.tokens[i.token],t.type="s_open",t.tag="s",t.nesting=1,t.markup="~~",t.content="",t=e.tokens[s.token],t.type="s_close",t.tag="s",t.nesting=-1,t.markup="~~",t.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&o.push(s.token-1)}for(;o.length;){const c=o.pop();let i=c+1;for(;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,c!==i&&(t=e.tokens[i],e.tokens[i]=e.tokens[c],e.tokens[c]=t)}}function Sr(e){const u=e.tokens_meta,t=e.tokens_meta.length;ht(e,e.delimiters);for(let o=0;o<t;o++)u[o]&&u[o].delimiters&&ht(e,u[o].delimiters)}const bt={tokenize:Br,postProcess:Sr};function Mr(e,u){const t=e.pos,o=e.src.charCodeAt(t);if(u||o!==95&&o!==42)return!1;const r=e.scanDelims(e.pos,o===42);for(let c=0;c<r.length;c++){const i=e.push("text","",0);i.content=String.fromCharCode(o),e.delimiters.push({marker:o,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 mt(e,u){const t=u.length;for(let o=t-1;o>=0;o--){const r=u[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;const c=u[r.end],i=o>0&&u[o-1].end===r.end+1&&u[o-1].marker===r.marker&&u[o-1].token===r.token-1&&u[r.end+1].token===c.token+1,s=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?s+s:s,a.content="";const l=e.tokens[c.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?s+s:s,l.content="",i&&(e.tokens[u[o-1].token].content="",e.tokens[u[r.end+1].token].content="",o--)}}function qr(e){const u=e.tokens_meta,t=e.tokens_meta.length;mt(e,e.delimiters);for(let o=0;o<t;o++)u[o]&&u[o].delimiters&&mt(e,u[o].delimiters)}const xt={tokenize:Mr,postProcess:qr};function zr(e,u){let t,o,r,c,i="",s="",a=e.pos,l=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,b=e.pos+1,h=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(h<0)return!1;let p=h+1;if(p<d&&e.src.charCodeAt(p)===40){for(l=!1,p++;p<d&&(t=e.src.charCodeAt(p),!(!R(t)&&t!==10));p++);if(p>=d)return!1;if(a=p,r=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?p=r.pos:i="",a=p;p<d&&(t=e.src.charCodeAt(p),!(!R(t)&&t!==10));p++);if(r=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&a!==p&&r.ok)for(s=r.str,p=r.pos;p<d&&(t=e.src.charCodeAt(p),!(!R(t)&&t!==10));p++);}(p>=d||e.src.charCodeAt(p)!==41)&&(l=!0),p++}if(l){if(typeof e.env.references>"u")return!1;if(p<d&&e.src.charCodeAt(p)===91?(a=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?o=e.src.slice(a,p++):p=h+1):p=h+1,o||(o=e.src.slice(b,h)),c=e.env.references[Pe(o)],!c)return e.pos=f,!1;i=c.href,s=c.title}if(!u){e.pos=b,e.posMax=h;const m=e.push("link_open","a",1),g=[["href",i]];m.attrs=g,s&&g.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 Nr(e,u){let t,o,r,c,i,s,a,l,f="";const d=e.pos,b=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(c=p+1,c<b&&e.src.charCodeAt(c)===40){for(c++;c<b&&(t=e.src.charCodeAt(c),!(!R(t)&&t!==10));c++);if(c>=b)return!1;for(l=c,s=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),s.ok&&(f=e.md.normalizeLink(s.str),e.md.validateLink(f)?c=s.pos:f=""),l=c;c<b&&(t=e.src.charCodeAt(c),!(!R(t)&&t!==10));c++);if(s=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<b&&l!==c&&s.ok)for(a=s.str,c=s.pos;c<b&&(t=e.src.charCodeAt(c),!(!R(t)&&t!==10));c++);else a="";if(c>=b||e.src.charCodeAt(c)!==41)return e.pos=d,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<b&&e.src.charCodeAt(c)===91?(l=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?r=e.src.slice(l,c++):c=p+1):c=p+1,r||(r=e.src.slice(h,p)),i=e.env.references[Pe(r)],!i)return e.pos=d,!1;f=i.href,a=i.title}if(!u){o=e.src.slice(h,p);const m=[];e.md.inline.parse(o,e.md,e.env,m);const g=e.push("image","img",0),_=[["src",f],["alt",""]];g.attrs=_,g.children=m,g.content=o,a&&_.push(["title",a])}return e.pos=c,e.posMax=b,!0}const $r=/^([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])?)*)$/,Tr=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Rr(e,u){let t=e.pos;if(e.src.charCodeAt(t)!==60)return!1;const o=e.pos,r=e.posMax;for(;;){if(++t>=r)return!1;const i=e.src.charCodeAt(t);if(i===60)return!1;if(i===62)break}const c=e.src.slice(o+1,t);if(Tr.test(c)){const i=e.md.normalizeLink(c);if(!e.md.validateLink(i))return!1;if(!u){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(c);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=c.length+2,!0}if($r.test(c)){const i=e.md.normalizeLink("mailto:"+c);if(!e.md.validateLink(i))return!1;if(!u){const s=e.push("link_open","a",1);s.attrs=[["href",i]],s.markup="autolink",s.info="auto";const a=e.push("text","",0);a.content=e.md.normalizeLinkText(c);const l=e.push("link_close","a",-1);l.markup="autolink",l.info="auto"}return e.pos+=c.length+2,!0}return!1}function Lr(e){return/^<a[>\s]/i.test(e)}function Ir(e){return/^<\/a\s*>/i.test(e)}function Vr(e){const u=e|32;return u>=97&&u<=122}function Pr(e,u){if(!e.md.options.html)return!1;const t=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=t)return!1;const r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!Vr(r))return!1;const c=e.src.slice(o).match(br);if(!c)return!1;if(!u){const i=e.push("html_inline","",0);i.content=c[0],Lr(i.content)&&e.linkLevel++,Ir(i.content)&&e.linkLevel--}return e.pos+=c[0].length,!0}const Or=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,vr=/^&([a-z][a-z0-9]{1,31});/i;function jr(e,u){const t=e.pos,o=e.posMax;if(e.src.charCodeAt(t)!==38||t+1>=o)return!1;if(e.src.charCodeAt(t+1)===35){const c=e.src.slice(t).match(Or);if(c){if(!u){const i=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),s=e.push("text_special","",0);s.content=bu(i)?Ve(i):Ve(65533),s.markup=c[0],s.info="entity"}return e.pos+=c[0].length,!0}}else{const c=e.src.slice(t).match(vr);if(c){const i=tt(c[0]);if(i!==c[0]){if(!u){const s=e.push("text_special","",0);s.content=i,s.markup=c[0],s.info="entity"}return e.pos+=c[0].length,!0}}}return!1}function gt(e){const u={},t=e.length;if(!t)return;let o=0,r=-2;const c=[];for(let i=0;i<t;i++){const s=e[i];if(c.push(0),(e[o].marker!==s.marker||r!==s.token-1)&&(o=i),r=s.token,s.length=s.length||0,!s.close)continue;u.hasOwnProperty(s.marker)||(u[s.marker]=[-1,-1,-1,-1,-1,-1]);const a=u[s.marker][(s.open?3:0)+s.length%3];let l=o-c[o]-1,f=l;for(;l>a;l-=c[l]+1){const d=e[l];if(d.marker===s.marker&&d.open&&d.end<0){let b=!1;if((d.close||s.open)&&(d.length+s.length)%3===0&&(d.length%3!==0||s.length%3!==0)&&(b=!0),!b){const h=l>0&&!e[l-1].open?c[l-1]+1:0;c[i]=i-l+h,c[l]=h,s.open=!1,d.end=i,d.close=!1,f=-1,r=-2;break}}}f!==-1&&(u[s.marker][(s.open?3:0)+(s.length||0)%3]=f)}}function Zr(e){const u=e.tokens_meta,t=e.tokens_meta.length;gt(e.delimiters);for(let o=0;o<t;o++)u[o]&&u[o].delimiters&&gt(u[o].delimiters)}function Hr(e){let u,t,o=0;const r=e.tokens,c=e.tokens.length;for(u=t=0;u<c;u++)r[u].nesting<0&&o--,r[u].level=o,r[u].nesting>0&&o++,r[u].type==="text"&&u+1<c&&r[u+1].type==="text"?r[u+1].content=r[u].content+r[u+1].content:(u!==t&&(r[t]=r[u]),t++);u!==t&&(r.length=t)}const ku=[["text",Cr],["linkify",wr],["newline",Dr],["escape",Ar],["backticks",Fr],["strikethrough",bt.tokenize],["emphasis",xt.tokenize],["link",zr],["image",Nr],["autolink",Rr],["html_inline",Pr],["entity",jr]],yu=[["balance_pairs",Zr],["strikethrough",bt.postProcess],["emphasis",xt.postProcess],["fragments_join",Hr]];function qe(){this.ruler=new j;for(let e=0;e<ku.length;e++)this.ruler.push(ku[e][0],ku[e][1]);this.ruler2=new j;for(let e=0;e<yu.length;e++)this.ruler2.push(yu[e][0],yu[e][1])}qe.prototype.skipToken=function(e){const u=e.pos,t=this.ruler.getRules(""),o=t.length,r=e.md.options.maxNesting,c=e.cache;if(typeof c[u]<"u"){e.pos=c[u];return}let i=!1;if(e.level<r){for(let s=0;s<o;s++)if(e.level++,i=t[s](e,!0),e.level--,i){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,c[u]=e.pos},qe.prototype.tokenize=function(e){const u=this.ruler.getRules(""),t=u.length,o=e.posMax,r=e.md.options.maxNesting;for(;e.pos<o;){const c=e.pos;let i=!1;if(e.level<r){for(let s=0;s<t;s++)if(i=u[s](e,!1),i){if(c>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},qe.prototype.parse=function(e,u,t,o){const r=new this.State(e,u,t,o);this.tokenize(r);const c=this.ruler2.getRules(""),i=c.length;for(let s=0;s<i;s++)c[s](r)},qe.prototype.State=Me;function Ur(e){const u={};e=e||{},u.src_Any=Qu.source,u.src_Cc=Ku.source,u.src_Z=et.source,u.src_P=fu.source,u.src_ZPCc=[u.src_Z,u.src_P,u.src_Cc].join("|"),u.src_ZCc=[u.src_Z,u.src_Cc].join("|");const t="[><|]";return u.src_pseudo_letter="(?:(?!"+t+"|"+u.src_ZPCc+")"+u.src_Any+")",u.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]?)",u.src_auth="(?:(?:(?!"+u.src_ZCc+"|[@/\\[\\]()]).)+@)?",u.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",u.src_host_terminator="(?=$|"+t+"|"+u.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+u.src_ZPCc+"))",u.src_path="(?:[/?#](?:(?!"+u.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+u.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+u.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+u.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+u.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+u.src_ZCc+"|[']).)+\\'|\\'(?="+u.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+u.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+u.src_ZCc+"|$)|;(?!"+u.src_ZCc+"|$)|\\!+(?!"+u.src_ZCc+"|[!]|$)|\\?(?!"+u.src_ZCc+"|[?]|$))+|\\/)?",u.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',u.src_xn="xn--[a-z0-9\\-]{1,59}",u.src_domain_root="(?:"+u.src_xn+"|"+u.src_pseudo_letter+"{1,63})",u.src_domain="(?:"+u.src_xn+"|(?:"+u.src_pseudo_letter+")|(?:"+u.src_pseudo_letter+"(?:-|"+u.src_pseudo_letter+"){0,61}"+u.src_pseudo_letter+"))",u.src_host="(?:(?:(?:(?:"+u.src_domain+")\\.)*"+u.src_domain+"))",u.tpl_host_fuzzy="(?:"+u.src_ip4+"|(?:(?:(?:"+u.src_domain+")\\.)+(?:%TLDS%)))",u.tpl_host_no_ip_fuzzy="(?:(?:(?:"+u.src_domain+")\\.)+(?:%TLDS%))",u.src_host_strict=u.src_host+u.src_host_terminator,u.tpl_host_fuzzy_strict=u.tpl_host_fuzzy+u.src_host_terminator,u.src_host_port_strict=u.src_host+u.src_port+u.src_host_terminator,u.tpl_host_port_fuzzy_strict=u.tpl_host_fuzzy+u.src_port+u.src_host_terminator,u.tpl_host_port_no_ip_fuzzy_strict=u.tpl_host_no_ip_fuzzy+u.src_port+u.src_host_terminator,u.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+u.src_ZPCc+"|>|$))",u.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+u.src_ZCc+")("+u.src_email_name+"@"+u.tpl_host_fuzzy_strict+")",u.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_fuzzy_strict+u.src_path+")",u.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+u.src_ZPCc+"))((?![$+<=>^`||])"+u.tpl_host_port_no_ip_fuzzy_strict+u.src_path+")",u}function Cu(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(o){e[o]=t[o]})}),e}function Ze(e){return Object.prototype.toString.call(e)}function Wr(e){return Ze(e)==="[object String]"}function Gr(e){return Ze(e)==="[object Object]"}function Xr(e){return Ze(e)==="[object RegExp]"}function _t(e){return Ze(e)==="[object Function]"}function Yr(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const kt={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Qr(e){return Object.keys(e||{}).reduce(function(u,t){return u||kt.hasOwnProperty(t)},!1)}const Kr={"http:":{validate:function(e,u,t){const o=e.slice(u);return t.re.http||(t.re.http=new RegExp("^\\/\\/"+t.re.src_auth+t.re.src_host_port_strict+t.re.src_path,"i")),t.re.http.test(o)?o.match(t.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,u,t){const o=e.slice(u);return t.re.no_http||(t.re.no_http=new RegExp("^"+t.re.src_auth+"(?:localhost|(?:(?:"+t.re.src_domain+")\\.)+"+t.re.src_domain_root+")"+t.re.src_port+t.re.src_host_terminator+t.re.src_path,"i")),t.re.no_http.test(o)?u>=3&&e[u-3]===":"||u>=3&&e[u-3]==="/"?0:o.match(t.re.no_http)[0].length:0}},"mailto:":{validate:function(e,u,t){const o=e.slice(u);return t.re.mailto||(t.re.mailto=new RegExp("^"+t.re.src_email_name+"@"+t.re.src_host_strict,"i")),t.re.mailto.test(o)?o.match(t.re.mailto)[0].length:0}}},Jr="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]",ec="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function uc(e){e.__index__=-1,e.__text_cache__=""}function tc(e){return function(u,t){const o=u.slice(t);return e.test(o)?o.match(e)[0].length:0}}function yt(){return function(e,u){u.normalize(e)}}function He(e){const u=e.re=Ur(e.__opts__),t=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||t.push(Jr),t.push(u.src_xn),u.src_tlds=t.join("|");function o(s){return s.replace("%TLDS%",u.src_tlds)}u.email_fuzzy=RegExp(o(u.tpl_email_fuzzy),"i"),u.link_fuzzy=RegExp(o(u.tpl_link_fuzzy),"i"),u.link_no_ip_fuzzy=RegExp(o(u.tpl_link_no_ip_fuzzy),"i"),u.host_fuzzy_test=RegExp(o(u.tpl_host_fuzzy_test),"i");const r=[];e.__compiled__={};function c(s,a){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+a)}Object.keys(e.__schemas__).forEach(function(s){const a=e.__schemas__[s];if(a===null)return;const l={validate:null,link:null};if(e.__compiled__[s]=l,Gr(a)){Xr(a.validate)?l.validate=tc(a.validate):_t(a.validate)?l.validate=a.validate:c(s,a),_t(a.normalize)?l.normalize=a.normalize:a.normalize?c(s,a):l.normalize=yt();return}if(Wr(a)){r.push(s);return}c(s,a)}),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:yt()};const i=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(Yr).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+u.src_ZPCc+"))("+i+")","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"),uc(e)}function nc(e,u){const t=e.__index__,o=e.__last_index__,r=e.__text_cache__.slice(t,o);this.schema=e.__schema__.toLowerCase(),this.index=t+u,this.lastIndex=o+u,this.raw=r,this.text=r,this.url=r}function Eu(e,u){const t=new nc(e,u);return e.__compiled__[t.schema].normalize(t,e),t}function H(e,u){if(!(this instanceof H))return new H(e,u);u||Qr(e)&&(u=e,e={}),this.__opts__=Cu({},kt,u),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Cu({},Kr,e),this.__compiled__={},this.__tlds__=ec,this.__tlds_replaced__=!1,this.re={},He(this)}H.prototype.add=function(u,t){return this.__schemas__[u]=t,He(this),this},H.prototype.set=function(u){return this.__opts__=Cu(this.__opts__,u),this},H.prototype.test=function(u){if(this.__text_cache__=u,this.__index__=-1,!u.length)return!1;let t,o,r,c,i,s,a,l,f;if(this.re.schema_test.test(u)){for(a=this.re.schema_search,a.lastIndex=0;(t=a.exec(u))!==null;)if(c=this.testSchemaAt(u,t[2],a.lastIndex),c){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=u.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(o=u.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=o.index+o[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=o.index+o[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=u.indexOf("@"),f>=0&&(r=u.match(this.re.email_fuzzy))!==null&&(i=r.index+r[1].length,s=r.index+r[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&s>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s))),this.__index__>=0},H.prototype.pretest=function(u){return this.re.pretest.test(u)},H.prototype.testSchemaAt=function(u,t,o){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(u,o,this):0},H.prototype.match=function(u){const t=[];let o=0;this.__index__>=0&&this.__text_cache__===u&&(t.push(Eu(this,o)),o=this.__last_index__);let r=o?u.slice(o):u;for(;this.test(r);)t.push(Eu(this,o)),r=r.slice(this.__last_index__),o+=this.__last_index__;return t.length?t:null},H.prototype.matchAtStart=function(u){if(this.__text_cache__=u,this.__index__=-1,!u.length)return null;const t=this.re.schema_at_start.exec(u);if(!t)return null;const o=this.testSchemaAt(u,t[2],t[0].length);return o?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o,Eu(this,0)):null},H.prototype.tlds=function(u,t){return u=Array.isArray(u)?u:[u],t?(this.__tlds__=this.__tlds__.concat(u).sort().filter(function(o,r,c){return o!==c[r-1]}).reverse(),He(this),this):(this.__tlds__=u.slice(),this.__tlds_replaced__=!0,He(this),this)},H.prototype.normalize=function(u){u.schema||(u.url="http://"+u.url),u.schema==="mailto:"&&!/^mailto:/i.test(u.url)&&(u.url="mailto:"+u.url)},H.prototype.onCompile=function(){};const ke=2147483647,J=36,wu=1,ze=26,oc=38,rc=700,Ct=72,Et=128,wt="-",cc=/^xn--/,ic=/[^\0-\x7F]/,sc=/[\x2E\u3002\uFF0E\uFF61]/g,ac={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Du=J-wu,ee=Math.floor,Au=String.fromCharCode;function se(e){throw new RangeError(ac[e])}function lc(e,u){const t=[];let o=e.length;for(;o--;)t[o]=u(e[o]);return t}function Dt(e,u){const t=e.split("@");let o="";t.length>1&&(o=t[0]+"@",e=t[1]),e=e.replace(sc,".");const r=e.split("."),c=lc(r,u).join(".");return o+c}function At(e){const u=[];let t=0;const o=e.length;for(;t<o;){const r=e.charCodeAt(t++);if(r>=55296&&r<=56319&&t<o){const c=e.charCodeAt(t++);(c&64512)==56320?u.push(((r&1023)<<10)+(c&1023)+65536):(u.push(r),t--)}else u.push(r)}return u}const fc=e=>String.fromCodePoint(...e),dc=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:J},Ft=function(e,u){return e+22+75*(e<26)-((u!=0)<<5)},Bt=function(e,u,t){let o=0;for(e=t?ee(e/rc):e>>1,e+=ee(e/u);e>Du*ze>>1;o+=J)e=ee(e/Du);return ee(o+(Du+1)*e/(e+oc))},St=function(e){const u=[],t=e.length;let o=0,r=Et,c=Ct,i=e.lastIndexOf(wt);i<0&&(i=0);for(let s=0;s<i;++s)e.charCodeAt(s)>=128&&se("not-basic"),u.push(e.charCodeAt(s));for(let s=i>0?i+1:0;s<t;){const a=o;for(let f=1,d=J;;d+=J){s>=t&&se("invalid-input");const b=dc(e.charCodeAt(s++));b>=J&&se("invalid-input"),b>ee((ke-o)/f)&&se("overflow"),o+=b*f;const h=d<=c?wu:d>=c+ze?ze:d-c;if(b<h)break;const p=J-h;f>ee(ke/p)&&se("overflow"),f*=p}const l=u.length+1;c=Bt(o-a,l,a==0),ee(o/l)>ke-r&&se("overflow"),r+=ee(o/l),o%=l,u.splice(o++,0,r)}return String.fromCodePoint(...u)},Mt=function(e){const u=[];e=At(e);const t=e.length;let o=Et,r=0,c=Ct;for(const a of e)a<128&&u.push(Au(a));const i=u.length;let s=i;for(i&&u.push(wt);s<t;){let a=ke;for(const f of e)f>=o&&f<a&&(a=f);const l=s+1;a-o>ee((ke-r)/l)&&se("overflow"),r+=(a-o)*l,o=a;for(const f of e)if(f<o&&++r>ke&&se("overflow"),f===o){let d=r;for(let b=J;;b+=J){const h=b<=c?wu:b>=c+ze?ze:b-c;if(d<h)break;const p=d-h,m=J-h;u.push(Au(Ft(h+p%m,0))),d=ee(p/m)}u.push(Au(Ft(d,0))),c=Bt(r,l,s===i),r=0,++s}++r,++o}return u.join("")},qt={version:"2.3.1",ucs2:{decode:At,encode:fc},decode:St,encode:Mt,toASCII:function(e){return Dt(e,function(u){return ic.test(u)?"xn--"+Mt(u):u})},toUnicode:function(e){return Dt(e,function(u){return cc.test(u)?St(u.slice(4).toLowerCase()):u})}},pc={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"]}}}},hc=/^(vbscript|javascript|file|data):/,bc=/^data:image\/(gif|png|jpeg|webp);/;function mc(e){const u=e.trim().toLowerCase();return hc.test(u)?bc.test(u):!0}const zt=["http:","https:","mailto:"];function xc(e){const u=lu(e,!0);if(u.hostname&&(!u.protocol||zt.indexOf(u.protocol)>=0))try{u.hostname=qt.toASCII(u.hostname)}catch{}return Ae(au(u))}function gc(e){const u=lu(e,!0);if(u.hostname&&(!u.protocol||zt.indexOf(u.protocol)>=0))try{u.hostname=qt.toUnicode(u.hostname)}catch{}return me(au(u),me.defaultChars+"%")}function G(e,u){if(!(this instanceof G))return new G(e,u);u||hu(e)||(u=e||{},e="default"),this.inline=new qe,this.block=new je,this.core=new xu,this.renderer=new ge,this.linkify=new H,this.validateLink=mc,this.normalizeLink=xc,this.normalizeLinkText=gc,this.utils=So,this.helpers=Ie({},No),this.options={},this.configure(e),u&&this.set(u)}G.prototype.set=function(e){return Ie(this.options,e),this},G.prototype.configure=function(e){const u=this;if(hu(e)){const t=e;if(e=pc[t],!e)throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&u.set(e.options),e.components&&Object.keys(e.components).forEach(function(t){e.components[t].rules&&u[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&u[t].ruler2.enableOnly(e.components[t].rules2)}),this},G.prototype.enable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.enable(e,!0))},this),t=t.concat(this.inline.ruler2.enable(e,!0));const o=e.filter(function(r){return t.indexOf(r)<0});if(o.length&&!u)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this},G.prototype.disable=function(e,u){let t=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){t=t.concat(this[r].ruler.disable(e,!0))},this),t=t.concat(this.inline.ruler2.disable(e,!0));const o=e.filter(function(r){return t.indexOf(r)<0});if(o.length&&!u)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this},G.prototype.use=function(e){const u=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,u),this},G.prototype.parse=function(e,u){if(typeof e!="string")throw new Error("Input data should be a String");const t=new this.core.State(e,this,u);return this.core.process(t),t.tokens},G.prototype.render=function(e,u){return u=u||{},this.renderer.render(this.parse(e,u),this.options,u)},G.prototype.parseInline=function(e,u){const t=new this.core.State(e,this,u);return t.inlineMode=!0,this.core.process(t),t.tokens},G.prototype.renderInline=function(e,u){return u=u||{},this.renderer.render(this.parseInline(e,u),this.options,u)};function _c(){function e(r,c){const i=new G({html:!0,typographer:!0});return i.use(v0),c&&c.forEach(s=>i.use(s)),i.parse(r,"")}function u(r,c){const i=o(r,c)??[];return n.h("article",{class:"sq-article"},t(i))}function t(r,c=!1){if(!r)return;const i=r.map(s=>typeof s=="string"?c?{default:()=>s}:s:n.h(s.tag,s.attrs,t(s.children,typeof s.tag!="string")));return i.length>1?i:i[0]}function o(r,c){const i=[],s={children:[]};let a=s;return r.forEach(l=>{var g,_,k,E,C,w,B,z,T,y,A;const{type:f,children:d,content:b,attrs:h,tag:p,hidden:m}=l;switch(f){case"heading_open":case"paragraph_open":case"bullet_list_open":case"ordered_list_open":case"list_item_open":case"table_open":case"thead_open":case"tbody_open":case"tr_open":case"th_open":case"td_open":case"blockquote_open":case"strong_open":case"em_open":case"s_open":case"link_open":{if(m)break;const x={tag:(c==null?void 0:c[p])??p,children:[],attrs:h?Object.fromEntries(h):{}};if(f==="link_open"){const M=l.attrGet("href")??"",N=document.location.origin;M!=null&&M.startsWith("http")&&!M.includes(N)&&(x.attrs.target="_blank",x.attrs.rel="noopener noreferrer",x.attrs.dataOuter="",(g=x.children)==null||g.push({tag:y0}))}if(f==="table_open"){const M={tag:"div",children:[],attrs:{class:"sq-article-table"}};(_=a.children)==null||_.push(M),i.push(a),a=M}(k=a.children)==null||k.push(x),i.push(a),a=x;break}case"heading_close":case"paragraph_close":case"bullet_list_close":case"ordered_list_close":case"list_item_close":case"table_close":case"thead_close":case"tbody_close":case"tr_close":case"th_close":case"td_close":case"blockquote_close":case"strong_close":case"em_close":case"s_close":case"link_close":{if(m)break;a=i.pop();break}case"code_inline":{(E=a.children)==null||E.push({tag:(c==null?void 0:c[p])??p,children:[b],attrs:h?Object.fromEntries(h):{}});break}case"inline":{if(d){const x=o(d,c);(C=a.children)==null||C.push(...x??[])}else(w=a.children)==null||w.push(b);break}case"text":{(B=a.children)==null||B.push(b);break}case"image":{(z=a.children)==null||z.push({tag:(c==null?void 0:c[p])??p,children:[],attrs:h?Object.fromEntries(h):{}});break}case"hr":{(T=a.children)==null||T.push({tag:(c==null?void 0:c[p])??p});break}case"input":{const x=h?Object.fromEntries(h):{},M=x.type??"text",N=`${p}-${M}`;(y=a.children)==null||y.push({tag:(c==null?void 0:c[N])??p,children:[],attrs:x});break}case"html_inline":{if(b.startsWith("</"))a=i.pop();else{const x=b.replace("<","").replace(">",""),M={tag:(c==null?void 0:c[x])??x,children:[]};(A=a.children)==null||A.push(M),i.push(a),a=M}break}}}),s.children}return{md2tokens:e,tokens2vueh:u}}function kc(){function e(u,t=100){let o;return function(...r){o||(o=setTimeout(()=>{u.apply(this,r),o=void 0},t))}}return{throttle:e}}const{md2tokens:yc,tokens2vueh:Cc}=_c(),Ec=n.defineComponent({name:"sq-article",props:{text:{type:String,required:!0},md:{type:Boolean,default:!0},customNodeMap:{type:Object},plugins:{type:Object}},setup(e){const u=n.computed(()=>({hr:Ne,blur:Nt,img:Tt,"input-checkbox":Bu,...e.customNodeMap}));return()=>{if(!e.md)return n.h("article",{class:"sq-article",innerHTML:e.text});const t=yc(e.text,e.plugins);return Cc(t,u.value)}}}),wc=["src","alt"],Dc=["textContent"],Ac=n.defineComponent({name:"sq-avatar",__name:"avatar",props:{img:{},alt:{},randomColor:{type:Boolean,default:!0},round:{type:Boolean,default:!0},size:{default:"md"}},setup(e){const u=e,t=n.ref(!0),o=n.computed(()=>{const s=[];return u.size!=="md"&&s.push(`sq-avatar--${u.size}`),u.round&&s.push("is-round"),s}),r=n.computed(()=>{if(!u.randomColor)return;const{getRandomColor:s}=P0();return{"--avatar-bg-color":s()}}),c=n.computed(()=>u.alt.charAt(0).toUpperCase());function i(){t.value=!1}return(s,a)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-avatar",o.value]),style:n.normalizeStyle(r.value)},[u.img&&t.value?(n.openBlock(),n.createElementBlock("img",{key:0,src:u.img,alt:u.alt,onError:i},null,40,wc)):(n.openBlock(),n.createElementBlock("span",{key:1,textContent:n.toDisplayString(c.value)},null,8,Dc))],6))}}),Fc={class:"sq-backtop"},Bc=n.defineComponent({name:"sq-backtop",__name:"backtop",props:{progress:{type:Boolean,default:!0},icon:{default:En},transition:{default:"sq-rotate-in-left"},visibilityHeight:{default:100},target:{default:"#app"},progressProps:{}},setup(e){const{throttle:u}=kc(),t=u(a),o=new ResizeObserver(l),r=e,c=n.ref(100),i=n.ref(0),s=n.computed(()=>i.value>r.visibilityHeight);n.onMounted(()=>{var b;l(),t(),window.addEventListener("scroll",t);const d=document.querySelector(r.target)??document.body;o.observe(d),(b=window.visualViewport)==null||b.addEventListener("resize",l)}),n.onBeforeUnmount(()=>{var d;window.removeEventListener("scroll",t),o.disconnect(),(d=window.visualViewport)==null||d.removeEventListener("resize",l)});function a(){i.value=window.scrollY}function l(){const d=(document.scrollingElement??document.body).scrollHeight,b=window.innerHeight;c.value=d-b}function f(){window.scrollTo({top:0,behavior:"smooth"})}return(d,b)=>(n.openBlock(),n.createBlock(n.Transition,{name:r.transition},{default:n.withCtx(()=>{var h,p,m;return[n.withDirectives(n.createElementVNode("div",Fc,[n.createElementVNode("div",{class:"sq-backtop-wrap",onClick:f},[r.progress?(n.openBlock(),n.createBlock(n.unref(sn),{key:0,variant:"circle",label:!1,value:i.value,max:c.value,type:(h=r.progressProps)==null?void 0:h.type,stroke:(p=r.progressProps)==null?void 0:p.stroke,color:(m=r.progressProps)==null?void 0:m.color},null,8,["value","max","type","stroke","color"])):n.createCommentVNode("",!0),n.renderSlot(d.$slots,"default",{},()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(r.icon)))])])],512),[[n.vShow,s.value]])]}),_:3},8,["name"]))}}),Nt=n.defineComponent({name:"sq-blur",__name:"blur",setup(e){return(u,t)=>(n.openBlock(),n.createBlock(n.unref(fe),{class:"sq-blur"},{default:n.withCtx(()=>[n.renderSlot(u.$slots,"default")]),_:3}))}});function Sc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Fu,void 0),r=n.computed(()=>n.unref(o)?void 0:e.text),c=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.size,e.size,(f=n.unref(t))==null?void 0:f.size,"md")}),i=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.type,e.type)}),s=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.round,e.round,(f=n.unref(t))==null?void 0:f.round)}),a=n.computed(()=>{var l,f,d;return u((l=n.unref(t))==null?void 0:l.disabled,(f=n.unref(t))==null?void 0:f.readonly,(d=n.unref(o))==null?void 0:d.disabled,e.disabled)});return{btnTextType:r,btnSize:c,btnType:i,btnRound:s,btnDisabled:a}}function Mc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Su,void 0),r=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.size,e.size,(f=n.unref(t))==null?void 0:f.size,"md")}),c=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.form,e.form)}),i=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.name,e.name)}),s=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.variant,e.variant)}),a=n.computed(()=>{var l,f,d;return u((l=n.unref(t))==null?void 0:l.disabled,(f=n.unref(t))==null?void 0:f.readonly,(d=n.unref(o))==null?void 0:d.disabled,e.disabled)});return{checkboxSize:r,checkboxForm:c,checkboxName:i,checkboxVariant:s,checkboxDisabled:a,groupContext:o}}function qc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Ue,void 0),r=n.computed(()=>{var a;return u(e.size,(a=n.unref(t))==null?void 0:a.size,"md")}),c=n.computed(()=>{var a;return u(e.round,(a=n.unref(t))==null?void 0:a.round)}),i=n.computed(()=>{var a;return u((a=n.unref(t))==null?void 0:a.disabled,e.disabled)}),s=n.computed(()=>{var a;return u((a=n.unref(t))==null?void 0:a.readonly,e.readonly)});return{inputSize:r,inputRound:c,inputDisabled:i,inputReadonly:s,id:o}}function zc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Iu,void 0),r=n.computed(()=>{var l,f;return u((l=n.unref(o))==null?void 0:l.size,e.size,(f=n.unref(t))==null?void 0:f.size,"md")}),c=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.form,e.form)}),i=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.name,e.name)}),s=n.computed(()=>{var l;return u((l=n.unref(o))==null?void 0:l.variant,e.variant)}),a=n.computed(()=>{var l,f,d;return u((l=n.unref(t))==null?void 0:l.disabled,(f=n.unref(t))==null?void 0:f.readonly,(d=n.unref(o))==null?void 0:d.disabled,e.disabled)});return{radioSize:r,radioForm:c,radioName:i,radioVariant:s,radioDisabled:a,groupContext:o}}function Nc(e){const{getOption:u}=De(),t=n.inject(de,void 0),o=n.inject(Ue,void 0),r=n.computed(()=>{var i;return u(e.size,(i=n.unref(t))==null?void 0:i.size,"md")}),c=n.computed(()=>{var i,s;return u((i=n.unref(t))==null?void 0:i.disabled,(s=n.unref(t))==null?void 0:s.readonly,e.disabled)});return{switchSize:r,switchDisabled:c,id:o}}const $c=["disabled","form","type"],Z=n.defineComponent({name:"sq-button",__name:"button",props:{type:{},round:{type:Boolean,default:void 0},text:{type:Boolean},icon:{},loading:{type:Boolean},form:{},bg:{type:Boolean},nativeType:{default:"button"},disabled:{type:Boolean,default:void 0},size:{}},emits:["click"],setup(e,{emit:u}){const t=u,o=e,{btnTextType:r,btnSize:c,btnType:i,btnRound:s,btnDisabled:a}=Sc(o),l=n.computed(()=>{const b=[],h=n.unref(c),p=n.unref(i),m=n.unref(s),g=n.unref(r);return h!=="md"&&b.push(`sq-button--${h}`),p&&b.push(`is-${p}`),m&&b.push("is-round"),g&&b.push("is-text"),g&&o.bg&&b.push("has-bg"),b}),f=n.computed(()=>o.loading?Re:o.icon),d=n.computed(()=>o.loading||n.unref(a));return(b,h)=>(n.openBlock(),n.createElementBlock("button",{class:n.normalizeClass(["sq-button",l.value]),disabled:d.value,form:o.form,type:o.nativeType,onClick:h[0]||(h[0]=p=>t("click",p))},[n.createVNode(n.unref(fe),{size:n.unref(c)==="lg"?"md":n.unref(c)},{default:n.withCtx(()=>[f.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f.value),{key:0})):n.createCommentVNode("",!0),n.renderSlot(b.$slots,"default")]),_:3},8,["size"])],10,$c))}}),Tc={class:"sq-button-group"},Rc=n.defineComponent({name:"sq-button-group",__name:"button-group",props:{size:{},type:{},round:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0}},setup(e){const u=e;return n.provide(Fu,n.ref({size:n.toRef(u,"size"),type:n.toRef(u,"type"),round:n.toRef(u,"round"),disabled:n.toRef(u,"disabled")})),(t,o)=>(n.openBlock(),n.createElementBlock("div",Tc,[n.renderSlot(t.$slots,"default")]))}}),Fu=Symbol("button-group-context-keys"),Lc={class:"sq-card"},Ic={key:0,class:"sq-card-header"},Vc=["textContent"],Pc={key:1,class:"sq-card-footer"},Oc=n.defineComponent({name:"sq-card",__name:"card",props:{title:{},decorative:{type:Boolean,default:!1}},setup(e){const u=n.useSlots(),t=e;return(o,r)=>(n.openBlock(),n.createElementBlock("section",Lc,[t.title||n.unref(u).title?(n.openBlock(),n.createElementBlock("div",Ic,[n.createElementVNode("h2",{class:n.normalizeClass({"has-decorative":t.decorative}),textContent:n.toDisplayString(t.title)},null,10,Vc),n.renderSlot(o.$slots,"title")])):n.createCommentVNode("",!0),n.renderSlot(o.$slots,"default"),n.unref(u).footer?(n.openBlock(),n.createElementBlock("div",Pc,[n.renderSlot(o.$slots,"footer")])):n.createCommentVNode("",!0)]))}}),vc=["autofocus","name","form","value","disabled"],jc=["textContent"],Bu=n.defineComponent({name:"sq-checkbox",__name:"checkbox",props:n.mergeModels({form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},indeterminate:{type:Boolean},variant:{},autofocus:{type:Boolean},label:{}},{checked:{type:Boolean,default:!1},checkedModifiers:{}}),emits:n.mergeModels(["change"],["update:checked"]),setup(e,{emit:u}){const t=u,o=e,{checkboxSize:r,checkboxDisabled:c,checkboxForm:i,checkboxName:s,checkboxVariant:a,groupContext:l}=Mc(o),f=n.useModel(e,"checked"),d=n.computed(()=>{const h=[],p=n.unref(r),m=n.unref(c),g=n.unref(a);return p!=="md"&&h.push(`sq-selection--${p}`),b.value&&h.push("is-checked"),m&&h.push("is-disabled"),g&&h.push(`is-${g}`),h}),b=n.computed(()=>o.label&&l?n.unref(n.unref(l).list).includes(o.label):f.value);return n.watch(b,h=>{if(f.value!==h){f.value=h;return}}),n.watch(f,h=>{b.value!==h&&o.label&&l&&l.value.toggleItem(o.label)}),n.onMounted(()=>{f.value=b.value}),(h,p)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(["sq-selection sq-checkbox",d.value])},[n.withDirectives(n.createElementVNode("input",{type:"checkbox",autofocus:o.autofocus,name:n.unref(s),form:n.unref(i),value:o.label,disabled:n.unref(c),"onUpdate:modelValue":p[0]||(p[0]=m=>f.value=m),onChange:p[1]||(p[1]=m=>t("change",f.value))},null,40,vc),[[n.vModelCheckbox,f.value]]),n.unref(a)!=="solid"?(n.openBlock(),n.createElementBlock("span",{key:0,class:n.normalizeClass(["sq-checkbox-box",{"is-indeterminate":o.indeterminate&&!b.value}])},[b.value?(n.openBlock(),n.createBlock(n.unref(Fn),{key:0,class:"sq-checkbox-inner"})):n.createCommentVNode("",!0)],2)):n.createCommentVNode("",!0),o.label?(n.openBlock(),n.createElementBlock("span",{key:1,class:"sq-selection-label",textContent:n.toDisplayString(o.label)},null,8,jc)):n.createCommentVNode("",!0)],2))}}),Zc={class:"sq-checkbox-group sq-selection-group"},$t=n.defineComponent({name:"sq-checkbox-group",__name:"checkbox-group",props:{items:{default:()=>[]},value:{},form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},variant:{}},emits:["change","update:value"],setup(e,{emit:u}){const{nextId:t}=iu(),o=u,r=e,c=n.ref(r.value??[]),i=n.computed(()=>r.name??`sq-checkbox-${t()}`);n.provide(Su,n.ref({form:n.toRef(r,"form"),name:i,disabled:n.toRef(r,"disabled"),size:n.toRef(r,"size"),variant:n.toRef(r,"variant"),list:c,toggleItem:s})),n.watch(()=>r.value,a=>{const l=a||[],f=[...new Set([...l,c.value])];f.length===l.length&&f.length===c.value.length||(c.value=l)});function s(a){c.value.includes(a)?c.value=c.value.filter(l=>l!==a):c.value.push(a),o("change",n.toRaw(c.value)),o("update:value",n.toRaw(c.value))}return(a,l)=>(n.openBlock(),n.createElementBlock("div",Zc,[n.renderSlot(a.$slots,"default",{},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.items,(f,d)=>(n.openBlock(),n.createBlock(n.unref(Bu),{key:d,label:f},null,8,["label"]))),128))])]))}}),Su=Symbol("checkbox-group-context-keys"),Ne=n.defineComponent({name:"sq-divider",__name:"divider",props:{direction:{default:"horizontal"},variant:{default:"solid"},orientation:{default:"left"},ellipsis:{type:[Boolean,Number]},size:{}},setup(e){const u=n.useSlots(),t=e,o=n.computed(()=>{const r=[];return["none","solid","dotted","dashed"].includes(t.variant)&&r.push("is-thin"),u.default&&t.direction!=="vertical"&&r.push(`text-${t.orientation}`),r.push(`sq-divider--${t.direction}`),r});return(r,c)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-divider",o.value]),style:n.normalizeStyle({"--divider-line-type":t.variant})},[n.unref(u).default&&t.direction!=="vertical"?(n.openBlock(),n.createBlock(n.unref(fe),{key:0,ellipsis:t.ellipsis,size:t.size},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},8,["ellipsis","size"])):n.createCommentVNode("",!0)],6))}}),Hc=["textContent","for"],Uc={class:"sq-form-item-content"},Wc=["textContent"],Gc=n.defineComponent({name:"sq-form-item",__name:"form-item",props:{label:{},labelWidth:{},isRequired:{type:Boolean},showLabel:{type:Boolean},type:{},errorMsg:{}},setup(e){const{nextId:u}=iu(),t=e,o=n.ref("");n.provide(Ue,o);const r=n.computed(()=>{const i=[];return t.isRequired&&i.push("is-required"),i}),c=n.computed(()=>["input","switch"].includes(t.type));return n.onMounted(()=>{c.value&&(o.value=`sq-form-item-${u()}`)}),(i,s)=>(n.openBlock(),n.createElementBlock("div",{class:"sq-form-item",style:n.normalizeStyle({"--form-label-width":t.labelWidth})},[t.label||t.showLabel?(n.openBlock(),n.createElementBlock("label",{key:0,class:n.normalizeClass(["sq-form-item-label",r.value]),textContent:n.toDisplayString(t.label),for:t.type!=="custom"?o.value:void 0},null,10,Hc)):n.createCommentVNode("",!0),n.createElementVNode("div",Uc,[n.renderSlot(i.$slots,"default"),n.createVNode(n.Transition,{appear:"",name:"sq-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("span",{class:"sq-form-item-check",textContent:n.toDisplayString(t.errorMsg)},null,8,Wc),[[n.vShow,t.errorMsg]])]),_:1})])],4))}}),Xc=n.defineComponent({name:"sq-form",__name:"form",props:{round:{type:Boolean,default:void 0},layout:{default:"horizontal"},showStatusIcon:{type:Boolean},invalidStatus:{default:"error"},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},labelWidth:{},size:{default:"md"},step:{},hasFeedback:{type:Boolean,default:!0},requiredMark:{default:"default"},items:{},formData:{}},emits:["validate","update:formData"],setup(e,{expose:u,emit:t}){let o={};const r=t,c=e;n.provide(de,n.ref({size:n.toRef(c,"size"),round:n.toRef(c,"round"),disabled:n.toRef(c,"disabled"),readonly:n.toRef(c,"readonly")}));const i=n.ref({}),s=n.ref([]),a=n.ref({}),l=n.computed(()=>{const y=[];return c.size!=="md"&&y.push(`sq-form--${c.size}`),c.requiredMark!=="hidden"&&y.push(`required-${c.requiredMark}`),y.push(`is-${c.layout}`),y}),f=n.computed(()=>({"--form-label-width":c.labelWidth})),d=n.computed(()=>{const y=c.step;return y===void 0?c.items:c.items.filter(A=>A.step===void 0?A:Array.isArray(A.step)?A.step.includes(y):A.step===y)});n.onMounted(()=>{o=structuredClone(n.toRaw(c.formData))});function b(y){var A;return(A=y.rule)==null?void 0:A.required}function h(y){if(a.value[y])return Re;if(s.value.includes(y))return ou;if(i.value[y])return c.invalidStatus==="error"?ru:cu}async function p(y,A,x,M=!0){if(!x)return;const N=x.trigger??"change",$=Array.isArray(N)?"array":"string";if(A){if($==="array"&&!N.includes(A))return;if($==="string"&&N!==A)return}s.value=s.value.filter(F=>F!==y),B(y),a.value[y]=new AbortController,await n.nextTick();const I=c.formData[y];let O=!1;const D=x.validateType??"string";return x.validateFunc?O=await g(y,I,x,A):D==="string"?O=_(y,I,x):D==="boolean"?O=k(y,I,x):D==="list"&&(O=E(y,I,x)),M&&r("validate",y,O,n.toRaw(s.value)),a.value[y].signal.aborted||B(y),O}function m(y){if(i.value[y])return c.invalidStatus}async function g(y,A,x,M){const N=a.value[y].signal,$=await x.validateFunc(A,N,M);if($===void 0){s.value=s.value.filter(I=>I!==y),delete i.value[y];return}return $===!0?w(y):$===!1?C(y,"字段验证失败"):$?C(y,$):w(y),$===!0||typeof $=="string"&&!$}function _(y,A,x){return x.required&&!A?(C(y,x.requiredText??"字段必填"),!1):x.pattern&&A&&!x.pattern.test(A)?(C(y,x.patternText??"字段验证失败"),!1):(w(y),!0)}function k(y,A,x){return x.required&&A===void 0?(C(y,x.requiredText??"字段必填"),!1):(w(y),!0)}function E(y,A,x){return x.required&&(!A||!A.length)?(C(y,x.requiredText??"字段必填"),!1):x.pattern&&A&&A.map($=>$.toString()).map($=>x.pattern.test($)).includes(!1)?(C(y,x.patternText??"字段验证失败"),!1):(w(y),!0)}function C(y,A){s.value=s.value.filter(x=>x!==y),i.value[y]=A}function w(y){s.value.push(y),delete i.value[y]}function B(y){var A;(A=a.value[y])==null||A.abort(),delete a.value[y]}function z(){r("update:formData",structuredClone(o)),i.value={},s.value=[],r("validate","SQFORM",!1,n.toRaw(s.value))}function T(y=!0){const x=(y?c.items:d.value).filter(M=>M.type!=="custom"&&M.rule&&!s.value.includes(M.binding)).map(M=>{const N=M;return p(N.binding,void 0,N.rule,!1)});return Promise.all(x).then(M=>(r("validate","SQFORM",!M.includes(!1),n.toRaw(s.value)),M))}return u({resetFields:z,validate:T}),(y,A)=>(n.openBlock(),n.createElementBlock("form",{class:n.normalizeClass(["sq-form",l.value]),style:n.normalizeStyle(f.value),onSubmit:A[0]||(A[0]=n.withModifiers(()=>{},["prevent"]))},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(d.value,(x,M)=>(n.openBlock(),n.createBlock(Gc,{class:n.normalizeClass(x.itemClass),type:x.type,key:M,"label-width":x.labelWidth,label:x.label,"show-label":x.showLabel&&c.layout!=="vertical","is-required":b(x),"error-msg":c.hasFeedback?i.value[x.binding]:""},{default:n.withCtx(()=>[x.type==="input"?(n.openBlock(),n.createBlock(n.unref(Lt),n.mergeProps({key:0,ref_for:!0},x.props,{name:x.name,status:m(x.binding),"suffix-icon":h(x.binding),value:c.formData[x.binding],"onUpdate:value":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule),onInput:N=>p(x.binding,"input",x.rule),onBlur:N=>p(x.binding,"blur",x.rule)}),null,16,["name","status","suffix-icon","value","onUpdate:value","onChange","onInput","onBlur"])):x.type==="checkbox"?(n.openBlock(),n.createBlock(n.unref($t),n.mergeProps({key:1,ref_for:!0},x.props,{name:x.name,value:c.formData[x.binding],"onUpdate:value":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule)}),null,16,["name","value","onUpdate:value","onChange"])):x.type==="radio"?(n.openBlock(),n.createBlock(n.unref(ln),n.mergeProps({key:2,ref_for:!0},x.props,{name:x.name,value:c.formData[x.binding],"onUpdate:value":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule)}),null,16,["name","value","onUpdate:value","onChange"])):x.type==="switch"?(n.openBlock(),n.createBlock(n.unref(fn),n.mergeProps({key:3,ref_for:!0},x.props,{name:x.name,loading:!!a.value[x.binding],checked:c.formData[x.binding],"onUpdate:checked":N=>c.formData[x.binding]=N,onChange:N=>p(x.binding,"change",x.rule)}),null,16,["name","loading","checked","onUpdate:checked","onChange"])):n.renderSlot(y.$slots,x.slot,{key:4})]),_:2},1032,["class","type","label-width","label","show-label","is-required","error-msg"]))),128))],38))}}),de=Symbol("form-context-keys"),Ue=Symbol("form-item-id-keys"),Yc={key:0,class:"sq-image-mask"},Qc={key:0,class:"sq-image-picture"},Kc=["srcset","media","type"],Jc=["crossorigin","alt","src"],ei={key:1,class:"sq-image-control"},ui={key:2,class:"sq-image-error"},Tt=n.defineComponent({name:"sq-image",__name:"image",props:{alt:{},crossorigin:{},objectFit:{default:"contain"},fallback:{},src:{},aspectRatio:{default:"16 / 9"},preview:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},source:{}},setup(e){const u=new IntersectionObserver(h),t=e,o=n.ref(!1),r=n.ref(t.src),c=n.ref(!1),i=n.ref(!1),s=n.ref(!1),a=n.shallowRef(null),l=n.computed(()=>o.value&&!c.value),f=n.computed(()=>({height:l.value?void 0:"var(--image-placeholder-height)",aspectRatio:l.value?void 0:t.aspectRatio}));n.onMounted(()=>{u.observe(a.value)}),n.onBeforeUnmount(()=>{u.disconnect()});function d(){o.value=!0}function b(){if(r.value!==t.fallback&&t.fallback){r.value=t.fallback;return}c.value=!0,o.value=!0}function h(m){m[0].isIntersecting&&(i.value=!0,u.disconnect())}function p(){s.value=!0}return(m,g)=>(n.openBlock(),n.createElementBlock("div",{class:"sq-image",style:n.normalizeStyle(f.value),ref_key:"imgRef",ref:a},[n.createVNode(n.Transition,{name:"sq-fade"},{default:n.withCtx(()=>[o.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",Yc))]),_:1}),!c.value&&i.value?(n.openBlock(),n.createElementBlock("picture",Qc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.source,(_,k)=>(n.openBlock(),n.createElementBlock("source",{key:k,srcset:_.src,media:_.media,type:_.type},null,8,Kc))),128)),n.createElementVNode("img",{style:n.normalizeStyle({objectFit:t.objectFit}),crossorigin:t.crossorigin,alt:t.alt,src:r.value,onLoad:d,onError:b},null,44,Jc)])):n.createCommentVNode("",!0),!c.value&&i.value&&t.preview?(n.openBlock(),n.createElementBlock("div",ei,[n.createVNode(n.unref(Ou),{onClick:p})])):n.createCommentVNode("",!0),c.value?(n.openBlock(),n.createElementBlock("div",ui,[n.renderSlot(m.$slots,"error",{},()=>[g[1]||(g[1]=n.createElementVNode("span",null,"图片加载失败",-1))])])):n.createCommentVNode("",!0),n.createVNode(n.unref(Rt),{"src-list":[r.value],visible:s.value,"onUpdate:visible":g[0]||(g[0]=_=>s.value=_)},null,8,["src-list","visible"])],4))}}),ti=["src"],ni={key:0,class:"sq-image-viewer-toolbar"},Rt=n.defineComponent({name:"sq-image-viewer",__name:"image-viewer",props:n.mergeModels({srcList:{},toolbar:{type:Boolean,default:!0},minScale:{default:.5},maxScale:{default:10},scaleStep:{default:.5},moveable:{type:Boolean,default:!0}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(e){const{nextZIndex:u}=su(),t={},o={};let r,c=!1,i;const s=e,a=n.ref(0),l=n.ref(1),f=n.ref(!1),d=n.ref(!1),b=n.ref(0),h=n.ref({x:0,y:0}),p=n.useModel(e,"visible"),m=n.computed(()=>{const D=f.value?-1:1,F=d.value?-1:1;return{transform:[`scale(${l.value*D}, ${l.value*F})`,`rotate(${b.value}deg)`].join(" "),marginInlineStart:`${h.value.x}px`,marginBlockStart:`${h.value.y}px`}});n.watch(p,D=>{const F=document.scrollingElement;D?(r=F.style.overflow,F.style.overflow="hidden",a.value=u()):(f.value=!1,d.value=!1,b.value=0,h.value={x:0,y:0},l.value=1,F.style.overflow=r)});function g(D){D.deltaY<0?T():y()}function _(D){c=!0,t.x=D.x,t.y=D.y}function k(){c=!1}function E(D){if(!c||!s.moveable)return;const F=D.x-t.x,q=D.y-t.y;h.value.x+=F*2,h.value.y+=q*2,t.x=D.x,t.y=D.y}function C(D){D.touches.length===1?(c=!0,t.x=D.touches[0].screenX,t.y=D.touches[0].screenY):D.touches.length===2&&(i=z(D.touches[0],D.touches[1]))}function w(){c=!1,i=void 0}function B(D){if(D.touches.length===1){if(!c||!s.moveable)return;const F=D.touches[0],q=F.screenX-t.x,v=F.screenY-t.y;h.value.x+=q*2,h.value.y+=v*2,t.x=F.screenX,t.y=F.screenY}else if(D.touches.length===2){if(!i)return;const F=z(D.touches[0],D.touches[1]),q=F/i;let v=l.value*q;v=Math.min(s.maxScale,v),v=Math.max(s.minScale,v),l.value=v,i=F}}function z(D,F){const q=F.clientX-D.clientX,v=F.clientY-D.clientY;return Math.sqrt(q*q+v*v)}function T(){l.value>=s.maxScale||(l.value=Math.min(s.maxScale,l.value*(1+s.scaleStep)))}function y(){l.value<=s.minScale||(l.value=Math.max(s.minScale,l.value/(1+s.scaleStep)))}function A(){l.value=Math.min(o.x,o.y),h.value={x:0,y:0}}function x(){l.value=1,h.value={x:0,y:0}}function M(){f.value=!f.value}function N(){d.value=!d.value}function $(D){b.value+=D}function I(){p.value=!1}function O(D){const q=D.target.getBoundingClientRect(),v=window.innerWidth,Rs=window.innerHeight;o.x=v/q.width,o.y=Rs/q.height,l.value=Math.min(o.x,o.y,1)}return(D,F)=>(n.openBlock(),n.createBlock(n.Teleport,{to:"body"},[n.createVNode(n.Transition,{name:"sq-fade"},{default:n.withCtx(()=>[p.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"sq-image-viewer-mask",style:n.normalizeStyle({zIndex:a.value}),onWheelPassive:g,onMousemove:E,onMouseup:k,onTouchmovePassive:B,onTouchend:w},[n.createElementVNode("img",{style:n.normalizeStyle(m.value),src:s.srcList[0],onLoad:O,onMousedown:n.withModifiers(_,["prevent"]),onTouchstartPassive:C},null,44,ti),n.createVNode(n.unref(Z),{class:"sq-image-viewer-close",round:"",icon:n.unref(Vu),onClick:I},null,8,["icon"]),s.toolbar?(n.openBlock(),n.createElementBlock("div",ni,[n.createVNode(n.unref(oe),{tip:"放大"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref($0),disabled:l.value>=s.maxScale,onClick:T},null,8,["icon","disabled"])]),_:1}),n.createVNode(n.unref(oe),{tip:"缩小"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(I0),disabled:l.value<=s.minScale,onClick:y},null,8,["icon","disabled"])]),_:1}),n.createVNode(n.unref(Ne),{direction:"vertical"}),n.createVNode(n.unref(oe),{tip:"水平翻转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(t0),onClick:M},null,8,["icon"])]),_:1}),n.createVNode(n.unref(oe),{tip:"垂直翻转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(c0),onClick:N},null,8,["icon"])]),_:1}),n.createVNode(n.unref(Ne),{direction:"vertical"}),n.createVNode(n.unref(oe),{tip:"顺时针旋转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref($n),onClick:F[0]||(F[0]=q=>$(90))},null,8,["icon"])]),_:1}),n.createVNode(n.unref(oe),{tip:"逆时针旋转"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(Zn),onClick:F[1]||(F[1]=q=>$(-90))},null,8,["icon"])]),_:1}),n.createVNode(n.unref(Ne),{direction:"vertical"}),n.createVNode(n.unref(oe),{tip:"原始大小"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(Kn),onClick:x},null,8,["icon"])]),_:1}),n.createVNode(n.unref(oe),{tip:"全屏"},{default:n.withCtx(()=>[n.createVNode(n.unref(Z),{text:"",icon:n.unref(l0),onClick:A},null,8,["icon"])]),_:1})])):n.createCommentVNode("",!0)],36)):n.createCommentVNode("",!0)]),_:1})]))}}),oi={key:0,class:"sq-input-prefix"},ri=["id","disabled","readonly","placeholder","type","maxlength","minlength","autocomplete","name","autofocus","form","inputmode"],ci=["id","disabled","readonly","placeholder","type","maxlength","minlength","autocomplete","name","autofocus","form","inputmode","rows","cols"],ii={class:"sq-input-suffix"},Lt=n.defineComponent({name:"sq-input",__name:"input",props:n.mergeModels({status:{},round:{type:Boolean,default:void 0},prefixIcon:{},suffixIcon:{},disabled:{type:Boolean,default:void 0},readonly:{type:Boolean,default:void 0},clearable:{type:Boolean},placeholder:{},maxlength:{},minlength:{},autocomplete:{default:"off"},name:{},form:{},loading:{type:Boolean},inputmode:{},autofocus:{type:Boolean},type:{default:"text"},size:{},resize:{default:"both"},rows:{default:2},cols:{default:30}},{value:{default:""},valueModifiers:{}}),emits:n.mergeModels(["focus","blur","input","change"],["update:value"]),setup(e,{expose:u,emit:t}){const o=n.useSlots(),r=t,c=e,{inputSize:i,inputRound:s,inputDisabled:a,inputReadonly:l,id:f}=qc(c),d=n.useModel(e,"value"),b=n.ref(!1),h=n.ref(!1),p=n.shallowRef(null),m=n.computed(()=>{const D=[],F=n.unref(i),q=n.unref(s),v=n.unref(T);return F!=="md"&&D.push(`sq-input--${F}`),c.status&&D.push(`is-${c.status}`),q&&D.push("is-round"),v&&D.push("is-disabled"),D}),g=n.computed(()=>n.unref(h)?h0:Ou),_=n.computed(()=>n.unref(h)?"text":c.type),k=n.computed(()=>o.prefix||c.prefixIcon),E=n.computed(()=>n.unref(b)&&n.unref(d).length),C=n.computed(()=>c.type==="password"&&n.unref(E)),w=n.computed(()=>c.clearable&&n.unref(E)),B=n.computed(()=>c.loading?Re:c.suffixIcon),z=n.computed(()=>n.unref(C)||n.unref(w)||n.unref(B)||o.suffix),T=n.computed(()=>c.loading||n.unref(a)),y=n.computed(()=>{if(c.type==="textarea")return n.unref(T)||n.unref(l)?"none":c.resize});function A(D){r("focus",D),!n.unref(l)&&(b.value=!0)}function x(D){r("blur",D),!n.unref(l)&&(b.value=!1)}function M(){setTimeout(I)}function N(){d.value=""}function $(){h.value=!h.value}function I(){var D;(D=p.value)==null||D.focus()}function O(){var D;b.value=!1,(D=p.value)==null||D.blur()}return u({focus:I,blur:O}),(D,F)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-input",m.value]),onMousedown:M},[k.value?(n.openBlock(),n.createElementBlock("span",oi,[n.renderSlot(D.$slots,"prefix",{},()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.prefixIcon)))])])):n.createCommentVNode("",!0),c.type!=="textarea"?n.withDirectives((n.openBlock(),n.createElementBlock("input",{key:1,class:"sq-input-inner","onUpdate:modelValue":F[0]||(F[0]=q=>d.value=q),id:n.unref(f),disabled:T.value,readonly:n.unref(l),placeholder:c.placeholder,type:_.value,maxlength:c.maxlength,minlength:c.minlength,autocomplete:c.autocomplete,name:c.name,autofocus:c.autofocus,form:c.form,inputmode:c.inputmode,ref_key:"inputRef",ref:p,onFocus:A,onBlur:x,onInput:F[1]||(F[1]=q=>r("input",q)),onChange:F[2]||(F[2]=q=>r("change",q))},null,40,ri)),[[n.vModelDynamic,d.value]]):n.withDirectives((n.openBlock(),n.createElementBlock("textarea",{key:2,class:"sq-input-inner",style:n.normalizeStyle({resize:y.value}),"onUpdate:modelValue":F[3]||(F[3]=q=>d.value=q),id:n.unref(f),disabled:T.value,readonly:n.unref(l),placeholder:c.placeholder,type:_.value,maxlength:c.maxlength,minlength:c.minlength,autocomplete:c.autocomplete,name:c.name,autofocus:c.autofocus,form:c.form,inputmode:c.inputmode,rows:c.rows,cols:c.cols,ref_key:"inputRef",ref:p,onFocus:A,onBlur:x,onInput:F[4]||(F[4]=q=>r("input",q)),onChange:F[5]||(F[5]=q=>r("change",q))},null,44,ci)),[[n.vModelText,d.value]]),n.withDirectives(n.createElementVNode("span",ii,[C.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(g.value),{key:0,class:"sq-input-suffix-pwd",onMousedown:$},null,32)):n.createCommentVNode("",!0),w.value?(n.openBlock(),n.createBlock(n.unref(Vu),{key:1,class:"sq-input-suffix-clear",onMousedown:N})):n.createCommentVNode("",!0),n.renderSlot(D.$slots,"suffix",{},()=>[B.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(B.value),{key:0})):n.createCommentVNode("",!0)])],512),[[n.vShow,z.value]])],34))}}),si=["id"],ai=["textContent"],li=n.defineComponent({name:"sq-message",__name:"message",props:{message:{},type:{default:"info"},offsetTop:{},onDestroy:{},onClose:{},closeAfter:{default:3e3},id:{}},setup(e,{expose:u}){const t=e,o=n.ref(!0),r=n.computed(()=>{switch(t.type){case"primary":case"info":return Pu;case"success":return ou;case"warn":return cu;case"error":return ru;default:return}});n.onMounted(()=>{setTimeout(c,t.closeAfter)});function c(){o.value=!1}return u({close:c}),(i,s)=>(n.openBlock(),n.createBlock(n.Transition,{appear:"",name:"sq-zoom-top",onBeforeLeave:t.onClose,onAfterLeave:t.onDestroy},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["sq-message",`is-${t.type}`]),id:t.id,style:n.normalizeStyle({top:`${t.offsetTop}px`})},[n.createVNode(n.unref(fe),{class:"sq-message-main"},{default:n.withCtx(()=>[t.type&&r.value?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(r.value),{key:0,class:"sq-message-icon"})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"sq-message-content",textContent:n.toDisplayString(t.message)},null,8,ai)]),_:1}),s[0]||(s[0]=n.createElementVNode("div",{class:"sq-message-progress"},null,-1))],14,si),[[n.vShow,o.value]])]),_:1},8,["onBeforeLeave","onAfterLeave"]))}}),{nextZIndex:fi}=su(),ye=[],di=["primary","success","info","warn","error"],pi=document.documentElement,hi=getComputedStyle(pi),Mu=parseInt(hi.getPropertyValue("--sq-padding-md"));let bi=0;const qu=(e={})=>{const u=`sq-message-${bi++}`;let t=document.querySelector(".sq-message-wrap");t||(t=document.createElement("div"),t.classList.add("sq-message-wrap"),document.body.appendChild(t)),t.style.zIndex=fi().toString();let o=Mu;ye.forEach(l=>{var f;o+=(((f=l.vm.el)==null?void 0:f.offsetHeight)||0)+Mu});const r={type:"info",...e,offsetTop:o,id:u},c=document.createElement("div"),i=r.onClose;r.onClose=()=>{i==null||i();const l=ye.findIndex(h=>h.vm.component.props.id===a.component.props.id),d=ye.splice(l,1)[0].vm.el.offsetHeight;if(!(ye.length<1))for(const h of ye){let p=Number(parseInt(h.vm.el.style.top));p-=d,p-=Mu,h.vm.component.props.offsetTop=p}};const s=r.onDestroy;r.onDestroy=()=>{s==null||s(),n.render(null,c)};const a=n.createVNode(li,r);return n.render(a,c),ye.push({vm:a}),t.appendChild(c.firstElementChild),{close:()=>{var l,f;(f=(l=a.component)==null?void 0:l.exposed)==null||f.close()}}};di.forEach(e=>{qu[e]=(u={})=>(typeof u=="string"&&(u={message:u}),qu({...u,type:e}))});const mi=qu,xi=n.defineComponent({name:"sq-pagination-prev",__name:"pagination-prev",props:n.mergeModels({disabled:{type:Boolean},size:{},maxPage:{}},{current:{required:!0},currentModifiers:{}}),emits:["update:current"],setup(e){const u=e,t=n.useModel(e,"current"),o=r=>{t.value+=r};return(r,c)=>(n.openBlock(),n.createBlock(n.unref(Z),{icon:n.unref(bn),size:u.size,disabled:t.value===1||u.disabled,onClick:c[0]||(c[0]=i=>o(-1))},null,8,["icon","size","disabled"]))}}),gi=n.defineComponent({name:"sq-pagination-next",__name:"pagination-next",props:n.mergeModels({disabled:{type:Boolean},size:{},maxPage:{}},{current:{required:!0},currentModifiers:{}}),emits:["update:current"],setup(e){const u=e,t=n.useModel(e,"current"),o=r=>{t.value+=r};return(r,c)=>(n.openBlock(),n.createBlock(n.unref(Z),{icon:n.unref(_n),size:u.size,disabled:t.value===u.maxPage||u.disabled,onClick:c[0]||(c[0]=i=>o(1))},null,8,["icon","size","disabled"]))}}),_i={class:"sq-pagination-pager"},ki=n.defineComponent({name:"sq-pagination-pager",__name:"pagination-pager",props:n.mergeModels({disabled:{type:Boolean},size:{},list:{}},{current:{required:!0},currentModifiers:{}}),emits:["update:current"],setup(e){const u=e,t=n.useModel(e,"current"),o=r=>{t.value=r};return(r,c)=>(n.openBlock(),n.createElementBlock("div",_i,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.list,i=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:i},[i?(n.openBlock(),n.createBlock(n.unref(Z),{key:0,type:t.value===i?"primary":void 0,size:u.size,disabled:u.disabled,onClick:s=>o(i)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(i),1)]),_:2},1032,["type","size","disabled","onClick"])):(n.openBlock(),n.createBlock(n.unref(Z),{key:1,icon:n.unref(Gn),size:u.size,disabled:""},null,8,["icon","size"]))],64))),128))]))}}),yi={class:"sq-pagination"},Ci=n.defineComponent({name:"sq-pagination",__name:"pagination",props:n.mergeModels({total:{default:0},disabled:{type:Boolean,default:!1},size:{},layout:{},pagerCount:{default:5}},{current:{default:1},currentModifiers:{},pageSize:{default:10},pageSizeModifiers:{}}),emits:["update:current","update:pageSize"],setup(e){const u=e,t=n.useModel(e,"current"),o=n.useModel(e,"pageSize"),r=n.computed(()=>Math.ceil(u.total/o.value)||1),c=n.computed(()=>{const s=[],a=Math.floor(u.pagerCount/2)-1;let l=t.value-a,f=t.value+a;l<2&&(l=2,f=l+a*2),f>r.value-1&&(f=r.value-1,l=f-a*2);for(let d=1;d<=r.value;d++)d===1||d===r.value||d>=l&&d<=f?s.push(d):(d===l-1||d===f+1)&&s.push(0);return s}),i=n.computed(()=>{const s=u.layout??["prev","pager","next"],a=[];for(const l of s)switch(l){case"prev":a.push(xi);break;case"pager":a.push(ki);break;case"next":a.push(gi);break}return a});return(s,a)=>(n.openBlock(),n.createElementBlock("div",yi,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.value,(l,f)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(l),{key:f,size:u.size,disabled:u.disabled,list:c.value,"max-page":r.value,current:t.value,"onUpdate:current":a[0]||(a[0]=d=>t.value=d)},null,40,["size","disabled","list","max-page","current"]))),128))]))}}),Ei=n.defineComponent({name:"sq-only-child",setup(e,{slots:u,attrs:t}){return()=>{var c;const o=(c=u.default)==null?void 0:c.call(u,t);if(!o)return null;const r=It(o);return r?n.cloneVNode(r,t):null}}});function It(e){if(!e)return null;for(const u of e){if(u!==null&&typeof u=="object")switch(u.type){case n.Comment:continue;case n.Text:case"svg":return Vt(u);case n.Fragment:return It(u.children);default:return u}return Vt(u)}}function Vt(e){return n.createVNode("span",null,[e])}const We=Math.min,pe=Math.max,Ge=Math.round,Xe=Math.floor,ue=e=>({x:e,y:e}),wi={left:"right",right:"left",bottom:"top",top:"bottom"},Di={start:"end",end:"start"};function Pt(e,u,t){return pe(e,We(u,t))}function Ye(e,u){return typeof e=="function"?e(u):e}function he(e){return e.split("-")[0]}function Qe(e){return e.split("-")[1]}function Ot(e){return e==="x"?"y":"x"}function vt(e){return e==="y"?"height":"width"}const Ai=new Set(["top","bottom"]);function ae(e){return Ai.has(he(e))?"y":"x"}function jt(e){return Ot(ae(e))}function Fi(e,u,t){t===void 0&&(t=!1);const o=Qe(e),r=jt(e),c=vt(r);let i=r==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return u.reference[c]>u.floating[c]&&(i=Ke(i)),[i,Ke(i)]}function Bi(e){const u=Ke(e);return[zu(e),u,zu(u)]}function zu(e){return e.replace(/start|end/g,u=>Di[u])}const Zt=["left","right"],Ht=["right","left"],Si=["top","bottom"],Mi=["bottom","top"];function qi(e,u,t){switch(e){case"top":case"bottom":return t?u?Ht:Zt:u?Zt:Ht;case"left":case"right":return u?Si:Mi;default:return[]}}function zi(e,u,t,o){const r=Qe(e);let c=qi(he(e),t==="start",o);return r&&(c=c.map(i=>i+"-"+r),u&&(c=c.concat(c.map(zu)))),c}function Ke(e){return e.replace(/left|right|bottom|top/g,u=>wi[u])}function Ni(e){return{top:0,right:0,bottom:0,left:0,...e}}function $i(e){return typeof e!="number"?Ni(e):{top:e,right:e,bottom:e,left:e}}function Je(e){const{x:u,y:t,width:o,height:r}=e;return{width:o,height:r,top:t,left:u,right:u+o,bottom:t+r,x:u,y:t}}function Ut(e,u,t){let{reference:o,floating:r}=e;const c=ae(u),i=jt(u),s=vt(i),a=he(u),l=c==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,b=o[s]/2-r[s]/2;let h;switch(a){case"top":h={x:f,y:o.y-r.height};break;case"bottom":h={x:f,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-r.width,y:d};break;default:h={x:o.x,y:o.y}}switch(Qe(u)){case"start":h[i]-=b*(t&&l?-1:1);break;case"end":h[i]+=b*(t&&l?-1:1);break}return h}const Ti=async(e,u,t)=>{const{placement:o="bottom",strategy:r="absolute",middleware:c=[],platform:i}=t,s=c.filter(Boolean),a=await(i.isRTL==null?void 0:i.isRTL(u));let l=await i.getElementRects({reference:e,floating:u,strategy:r}),{x:f,y:d}=Ut(l,o,a),b=o,h={},p=0;for(let m=0;m<s.length;m++){const{name:g,fn:_}=s[m],{x:k,y:E,data:C,reset:w}=await _({x:f,y:d,initialPlacement:o,placement:b,strategy:r,middlewareData:h,rects:l,platform:i,elements:{reference:e,floating:u}});f=k??f,d=E??d,h={...h,[g]:{...h[g],...C}},w&&p<=50&&(p++,typeof w=="object"&&(w.placement&&(b=w.placement),w.rects&&(l=w.rects===!0?await i.getElementRects({reference:e,floating:u,strategy:r}):w.rects),{x:f,y:d}=Ut(l,b,a)),m=-1)}return{x:f,y:d,placement:b,strategy:r,middlewareData:h}};async function Wt(e,u){var t;u===void 0&&(u={});const{x:o,y:r,platform:c,rects:i,elements:s,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:b=!1,padding:h=0}=Ye(u,e),p=$i(h),g=s[b?d==="floating"?"reference":"floating":d],_=Je(await c.getClippingRect({element:(t=await(c.isElement==null?void 0:c.isElement(g)))==null||t?g:g.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:a})),k=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(s.floating)),C=await(c.isElement==null?void 0:c.isElement(E))?await(c.getScale==null?void 0:c.getScale(E))||{x:1,y:1}:{x:1,y:1},w=Je(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:k,offsetParent:E,strategy:a}):k);return{top:(_.top-w.top+p.top)/C.y,bottom:(w.bottom-_.bottom+p.bottom)/C.y,left:(_.left-w.left+p.left)/C.x,right:(w.right-_.right+p.right)/C.x}}const Ri=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(u){var t,o;const{placement:r,middlewareData:c,rects:i,initialPlacement:s,platform:a,elements:l}=u,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:b,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=Ye(e,u);if((t=c.arrow)!=null&&t.alignmentOffset)return{};const _=he(r),k=ae(s),E=he(s)===s,C=await(a.isRTL==null?void 0:a.isRTL(l.floating)),w=b||(E||!m?[Ke(s)]:Bi(s)),B=p!=="none";!b&&B&&w.push(...zi(s,m,p,C));const z=[s,...w],T=await Wt(u,g),y=[];let A=((o=c.flip)==null?void 0:o.overflows)||[];if(f&&y.push(T[_]),d){const $=Fi(r,i,C);y.push(T[$[0]],T[$[1]])}if(A=[...A,{placement:r,overflows:y}],!y.every($=>$<=0)){var x,M;const $=(((x=c.flip)==null?void 0:x.index)||0)+1,I=z[$];if(I&&(!(d==="alignment"?k!==ae(I):!1)||A.every(F=>ae(F.placement)===k?F.overflows[0]>0:!0)))return{data:{index:$,overflows:A},reset:{placement:I}};let O=(M=A.filter(D=>D.overflows[0]<=0).sort((D,F)=>D.overflows[1]-F.overflows[1])[0])==null?void 0:M.placement;if(!O)switch(h){case"bestFit":{var N;const D=(N=A.filter(F=>{if(B){const q=ae(F.placement);return q===k||q==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(q=>q>0).reduce((q,v)=>q+v,0)]).sort((F,q)=>F[1]-q[1])[0])==null?void 0:N[0];D&&(O=D);break}case"initialPlacement":O=s;break}if(r!==O)return{reset:{placement:O}}}return{}}}},Li=new Set(["left","top"]);async function Ii(e,u){const{placement:t,platform:o,elements:r}=e,c=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=he(t),s=Qe(t),a=ae(t)==="y",l=Li.has(i)?-1:1,f=c&&a?-1:1,d=Ye(u,e);let{mainAxis:b,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),a?{x:h*f,y:b*l}:{x:b*l,y:h*f}}const Vi=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(u){var t,o;const{x:r,y:c,placement:i,middlewareData:s}=u,a=await Ii(u,e);return i===((t=s.offset)==null?void 0:t.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:c+a.y,data:{...a,placement:i}}}}},Pi=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(u){const{x:t,y:o,placement:r}=u,{mainAxis:c=!0,crossAxis:i=!1,limiter:s={fn:g=>{let{x:_,y:k}=g;return{x:_,y:k}}},...a}=Ye(e,u),l={x:t,y:o},f=await Wt(u,a),d=ae(he(r)),b=Ot(d);let h=l[b],p=l[d];if(c){const g=b==="y"?"top":"left",_=b==="y"?"bottom":"right",k=h+f[g],E=h-f[_];h=Pt(k,h,E)}if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",k=p+f[g],E=p-f[_];p=Pt(k,p,E)}const m=s.fn({...u,[b]:h,[d]:p});return{...m,data:{x:m.x-t,y:m.y-o,enabled:{[b]:c,[d]:i}}}}}};function eu(){return typeof window<"u"}function Ce(e){return Gt(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var u;return(e==null||(u=e.ownerDocument)==null?void 0:u.defaultView)||window}function te(e){var u;return(u=(Gt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:u.documentElement}function Gt(e){return eu()?e instanceof Node||e instanceof U(e).Node:!1}function X(e){return eu()?e instanceof Element||e instanceof U(e).Element:!1}function ne(e){return eu()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function Xt(e){return!eu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}const Oi=new Set(["inline","contents"]);function $e(e){const{overflow:u,overflowX:t,overflowY:o,display:r}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(u+o+t)&&!Oi.has(r)}const vi=new Set(["table","td","th"]);function ji(e){return vi.has(Ce(e))}const Zi=[":popover-open",":modal"];function uu(e){return Zi.some(u=>{try{return e.matches(u)}catch{return!1}})}const Hi=["transform","translate","scale","rotate","perspective"],Ui=["transform","translate","scale","rotate","perspective","filter"],Wi=["paint","layout","strict","content"];function Nu(e){const u=$u(),t=X(e)?Y(e):e;return Hi.some(o=>t[o]?t[o]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!u&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!u&&(t.filter?t.filter!=="none":!1)||Ui.some(o=>(t.willChange||"").includes(o))||Wi.some(o=>(t.contain||"").includes(o))}function Gi(e){let u=le(e);for(;ne(u)&&!Ee(u);){if(Nu(u))return u;if(uu(u))return null;u=le(u)}return null}function $u(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xi=new Set(["html","body","#document"]);function Ee(e){return Xi.has(Ce(e))}function Y(e){return U(e).getComputedStyle(e)}function tu(e){return X(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function le(e){if(Ce(e)==="html")return e;const u=e.assignedSlot||e.parentNode||Xt(e)&&e.host||te(e);return Xt(u)?u.host:u}function Yt(e){const u=le(e);return Ee(u)?e.ownerDocument?e.ownerDocument.body:e.body:ne(u)&&$e(u)?u:Yt(u)}function Te(e,u,t){var o;u===void 0&&(u=[]),t===void 0&&(t=!0);const r=Yt(e),c=r===((o=e.ownerDocument)==null?void 0:o.body),i=U(r);if(c){const s=Tu(i);return u.concat(i,i.visualViewport||[],$e(r)?r:[],s&&t?Te(s):[])}return u.concat(r,Te(r,[],t))}function Tu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qt(e){const u=Y(e);let t=parseFloat(u.width)||0,o=parseFloat(u.height)||0;const r=ne(e),c=r?e.offsetWidth:t,i=r?e.offsetHeight:o,s=Ge(t)!==c||Ge(o)!==i;return s&&(t=c,o=i),{width:t,height:o,$:s}}function Ru(e){return X(e)?e:e.contextElement}function we(e){const u=Ru(e);if(!ne(u))return ue(1);const t=u.getBoundingClientRect(),{width:o,height:r,$:c}=Qt(u);let i=(c?Ge(t.width):t.width)/o,s=(c?Ge(t.height):t.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const Yi=ue(0);function Kt(e){const u=U(e);return!$u()||!u.visualViewport?Yi:{x:u.visualViewport.offsetLeft,y:u.visualViewport.offsetTop}}function Qi(e,u,t){return u===void 0&&(u=!1),!t||u&&t!==U(e)?!1:u}function be(e,u,t,o){u===void 0&&(u=!1),t===void 0&&(t=!1);const r=e.getBoundingClientRect(),c=Ru(e);let i=ue(1);u&&(o?X(o)&&(i=we(o)):i=we(e));const s=Qi(c,t,o)?Kt(c):ue(0);let a=(r.left+s.x)/i.x,l=(r.top+s.y)/i.y,f=r.width/i.x,d=r.height/i.y;if(c){const b=U(c),h=o&&X(o)?U(o):o;let p=b,m=Tu(p);for(;m&&o&&h!==p;){const g=we(m),_=m.getBoundingClientRect(),k=Y(m),E=_.left+(m.clientLeft+parseFloat(k.paddingLeft))*g.x,C=_.top+(m.clientTop+parseFloat(k.paddingTop))*g.y;a*=g.x,l*=g.y,f*=g.x,d*=g.y,a+=E,l+=C,p=U(m),m=Tu(p)}}return Je({width:f,height:d,x:a,y:l})}function nu(e,u){const t=tu(e).scrollLeft;return u?u.left+t:be(te(e)).left+t}function Jt(e,u){const t=e.getBoundingClientRect(),o=t.left+u.scrollLeft-nu(e,t),r=t.top+u.scrollTop;return{x:o,y:r}}function Ki(e){let{elements:u,rect:t,offsetParent:o,strategy:r}=e;const c=r==="fixed",i=te(o),s=u?uu(u.floating):!1;if(o===i||s&&c)return t;let a={scrollLeft:0,scrollTop:0},l=ue(1);const f=ue(0),d=ne(o);if((d||!d&&!c)&&((Ce(o)!=="body"||$e(i))&&(a=tu(o)),ne(o))){const h=be(o);l=we(o),f.x=h.x+o.clientLeft,f.y=h.y+o.clientTop}const b=i&&!d&&!c?Jt(i,a):ue(0);return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-a.scrollLeft*l.x+f.x+b.x,y:t.y*l.y-a.scrollTop*l.y+f.y+b.y}}function Ji(e){return Array.from(e.getClientRects())}function es(e){const u=te(e),t=tu(e),o=e.ownerDocument.body,r=pe(u.scrollWidth,u.clientWidth,o.scrollWidth,o.clientWidth),c=pe(u.scrollHeight,u.clientHeight,o.scrollHeight,o.clientHeight);let i=-t.scrollLeft+nu(e);const s=-t.scrollTop;return Y(o).direction==="rtl"&&(i+=pe(u.clientWidth,o.clientWidth)-r),{width:r,height:c,x:i,y:s}}const en=25;function us(e,u){const t=U(e),o=te(e),r=t.visualViewport;let c=o.clientWidth,i=o.clientHeight,s=0,a=0;if(r){c=r.width,i=r.height;const f=$u();(!f||f&&u==="fixed")&&(s=r.offsetLeft,a=r.offsetTop)}const l=nu(o);if(l<=0){const f=o.ownerDocument,d=f.body,b=getComputedStyle(d),h=f.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,p=Math.abs(o.clientWidth-d.clientWidth-h);p<=en&&(c-=p)}else l<=en&&(c+=l);return{width:c,height:i,x:s,y:a}}const ts=new Set(["absolute","fixed"]);function ns(e,u){const t=be(e,!0,u==="fixed"),o=t.top+e.clientTop,r=t.left+e.clientLeft,c=ne(e)?we(e):ue(1),i=e.clientWidth*c.x,s=e.clientHeight*c.y,a=r*c.x,l=o*c.y;return{width:i,height:s,x:a,y:l}}function un(e,u,t){let o;if(u==="viewport")o=us(e,t);else if(u==="document")o=es(te(e));else if(X(u))o=ns(u,t);else{const r=Kt(e);o={x:u.x-r.x,y:u.y-r.y,width:u.width,height:u.height}}return Je(o)}function tn(e,u){const t=le(e);return t===u||!X(t)||Ee(t)?!1:Y(t).position==="fixed"||tn(t,u)}function os(e,u){const t=u.get(e);if(t)return t;let o=Te(e,[],!1).filter(s=>X(s)&&Ce(s)!=="body"),r=null;const c=Y(e).position==="fixed";let i=c?le(e):e;for(;X(i)&&!Ee(i);){const s=Y(i),a=Nu(i);!a&&s.position==="fixed"&&(r=null),(c?!a&&!r:!a&&s.position==="static"&&!!r&&ts.has(r.position)||$e(i)&&!a&&tn(e,i))?o=o.filter(f=>f!==i):r=s,i=le(i)}return u.set(e,o),o}function rs(e){let{element:u,boundary:t,rootBoundary:o,strategy:r}=e;const i=[...t==="clippingAncestors"?uu(u)?[]:os(u,this._c):[].concat(t),o],s=i[0],a=i.reduce((l,f)=>{const d=un(u,f,r);return l.top=pe(d.top,l.top),l.right=We(d.right,l.right),l.bottom=We(d.bottom,l.bottom),l.left=pe(d.left,l.left),l},un(u,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function cs(e){const{width:u,height:t}=Qt(e);return{width:u,height:t}}function is(e,u,t){const o=ne(u),r=te(u),c=t==="fixed",i=be(e,!0,c,u);let s={scrollLeft:0,scrollTop:0};const a=ue(0);function l(){a.x=nu(r)}if(o||!o&&!c)if((Ce(u)!=="body"||$e(r))&&(s=tu(u)),o){const h=be(u,!0,c,u);a.x=h.x+u.clientLeft,a.y=h.y+u.clientTop}else r&&l();c&&!o&&r&&l();const f=r&&!o&&!c?Jt(r,s):ue(0),d=i.left+s.scrollLeft-a.x-f.x,b=i.top+s.scrollTop-a.y-f.y;return{x:d,y:b,width:i.width,height:i.height}}function Lu(e){return Y(e).position==="static"}function nn(e,u){if(!ne(e)||Y(e).position==="fixed")return null;if(u)return u(e);let t=e.offsetParent;return te(e)===t&&(t=t.ownerDocument.body),t}function on(e,u){const t=U(e);if(uu(e))return t;if(!ne(e)){let r=le(e);for(;r&&!Ee(r);){if(X(r)&&!Lu(r))return r;r=le(r)}return t}let o=nn(e,u);for(;o&&ji(o)&&Lu(o);)o=nn(o,u);return o&&Ee(o)&&Lu(o)&&!Nu(o)?t:o||Gi(e)||t}const ss=async function(e){const u=this.getOffsetParent||on,t=this.getDimensions,o=await t(e.floating);return{reference:is(e.reference,await u(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function as(e){return Y(e).direction==="rtl"}const ls={convertOffsetParentRelativeRectToViewportRelativeRect:Ki,getDocumentElement:te,getClippingRect:rs,getOffsetParent:on,getElementRects:ss,getClientRects:Ji,getDimensions:cs,getScale:we,isElement:X,isRTL:as};function rn(e,u){return e.x===u.x&&e.y===u.y&&e.width===u.width&&e.height===u.height}function fs(e,u){let t=null,o;const r=te(e);function c(){var s;clearTimeout(o),(s=t)==null||s.disconnect(),t=null}function i(s,a){s===void 0&&(s=!1),a===void 0&&(a=1),c();const l=e.getBoundingClientRect(),{left:f,top:d,width:b,height:h}=l;if(s||u(),!b||!h)return;const p=Xe(d),m=Xe(r.clientWidth-(f+b)),g=Xe(r.clientHeight-(d+h)),_=Xe(f),E={rootMargin:-p+"px "+-m+"px "+-g+"px "+-_+"px",threshold:pe(0,We(1,a))||1};let C=!0;function w(B){const z=B[0].intersectionRatio;if(z!==a){if(!C)return i();z?i(!1,z):o=setTimeout(()=>{i(!1,1e-7)},1e3)}z===1&&!rn(l,e.getBoundingClientRect())&&i(),C=!1}try{t=new IntersectionObserver(w,{...E,root:r.ownerDocument})}catch{t=new IntersectionObserver(w,E)}t.observe(e)}return i(!0),c}function ds(e,u,t,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:c=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,l=Ru(e),f=r||c?[...l?Te(l):[],...Te(u)]:[];f.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),c&&_.addEventListener("resize",t)});const d=l&&s?fs(l,t):null;let b=-1,h=null;i&&(h=new ResizeObserver(_=>{let[k]=_;k&&k.target===l&&h&&(h.unobserve(u),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(u)})),t()}),l&&!a&&h.observe(l),h.observe(u));let p,m=a?be(e):null;a&&g();function g(){const _=be(e);m&&!rn(m,_)&&t(),m=_,p=requestAnimationFrame(g)}return t(),()=>{var _;f.forEach(k=>{r&&k.removeEventListener("scroll",t),c&&k.removeEventListener("resize",t)}),d==null||d(),(_=h)==null||_.disconnect(),h=null,a&&cancelAnimationFrame(p)}}const ps=Vi,hs=Pi,bs=Ri,ms=(e,u,t)=>{const o=new Map,r={platform:ls,...t},c={...r.platform,_c:o};return Ti(e,u,{...r,platform:c})},cn=n.defineComponent({name:"sq-popover",__name:"popover",props:n.mergeModels({placement:{default:"top"},offset:{default:10},teleported:{type:Boolean,default:!0},trigger:{default:"hover"},showAfter:{default:0},hideAfter:{default:300},disabled:{type:Boolean},transition:{default:"sq-fade"},popoverClass:{}},{visible:{type:Boolean,default:!1},visibleModifiers:{}}),emits:["update:visible"],setup(e){const{nextZIndex:u}=su();let t,o;const r=e,c=n.useModel(e,"visible"),i=n.ref(0),s=n.ref({}),a=n.shallowRef(null),l=n.shallowRef(null);n.watch(c,_=>{_?(i.value=u(),m(),o=ds(a.value.$el,l.value,m)):o==null||o()}),n.onMounted(()=>{m()}),n.onBeforeUnmount(()=>{g(),document.removeEventListener("click",p)});function f(){r.trigger!=="hover"||r.disabled||(g(),t=setTimeout(()=>{h(!1)},r.showAfter))}function d(){r.trigger==="hover"&&(g(),t=setTimeout(()=>{p()},r.hideAfter))}function b(_){r.trigger==="click"&&!r.disabled&&!c.value&&(_.stopPropagation(),h())}function h(_=!0){c.value=!0,_&&document.addEventListener("click",p)}function p(){c.value=!1,document.removeEventListener("click",p)}async function m(){var y,A;const _=typeof((y=a.value)==null?void 0:y.$el.getBoundingClientRect),k=typeof((A=l.value)==null?void 0:A.getBoundingClientRect),E=document.documentElement,C=getComputedStyle(E).getPropertyValue("--sq-padding-md").trim(),w=parseInt(C);if(_!=="function"||k!=="function")return;const B=await ms(a.value.$el,l.value,{placement:r.placement,middleware:[ps(r.offset),bs(),hs({padding:w})]}),{x:z,y:T}=B;s.value={left:`${z}px`,top:`${T}px`}}function g(){t&&(clearTimeout(t),t=void 0)}return(_,k)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createVNode(n.unref(Ei),{class:n.normalizeClass(["sq-popover-trigger",_.$attrs.class]),style:n.normalizeStyle(_.$attrs.style),ref_key:"triggerRef",ref:a,onMouseenter:f,onMouseleave:d,onClick:b},{default:n.withCtx(()=>[n.renderSlot(_.$slots,"reference")]),_:3},8,["class","style"]),(n.openBlock(),n.createBlock(n.Teleport,{to:"body",disabled:!r.teleported},[n.createVNode(n.Transition,{name:r.transition},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{class:n.normalizeClass(["sq-popover",_.popoverClass]),style:n.normalizeStyle({...s.value,zIndex:i.value}),ref_key:"popverRef",ref:l,onClick:k[0]||(k[0]=n.withModifiers(()=>{},["stop"]))},[n.renderSlot(_.$slots,"default")],6),[[n.vShow,c.value]])]),_:3},8,["name"])],8,["disabled"]))],64))}}),xs={key:0,class:"sq-progress-label"},gs=["textContent"],sn=n.defineComponent({name:"sq-progress",__name:"progress",props:{value:{},min:{default:0},max:{default:100},stroke:{default:4},color:{},type:{default:"primary"},variant:{},label:{type:Boolean,default:!0}},setup(e){const u=new ResizeObserver(l),t=e,o=n.ref(100),r=n.shallowRef(null),c=n.computed(()=>{const f=[];return t.color||f.push(`is-${t.type}`),t.variant&&f.push(`is-${t.variant}`),f}),i=n.computed(()=>{const f=t.max-t.min;return(t.value-t.min)*100/f}),s=n.computed(()=>`${Math.round(i.value*10)/10} %`),a=n.computed(()=>{const f={};if(f["--progress-stroke"]=`${t.stroke}px`,!t.variant)f["--progress-value"]=`${i.value}%`;else if(r.value){const d=100/o.value*t.stroke,b=(100-d)/2,h=Math.PI*b*2,p=i.value/100;f["--progress-circle-r"]=`${b}px`,f["--progress-circle-l"]=`${h}px`,f["--progress-circle-stroke"]=`${d}px`,f["--progress-value"]=`${h*p}`,i.value===0&&(f["--progress-circle-opaciry"]="0")}if(t.color){const b=typeof t.color=="string"?t.color:t.color(i.value);f["--progress-color"]=b}return f});n.onMounted(()=>{u.observe(r.value)}),n.onBeforeUnmount(()=>{u.disconnect()});function l(){o.value=r.value.getBoundingClientRect().width}return(f,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-progress",c.value]),ref_key:"progressRef",ref:r,style:n.normalizeStyle(a.value)},[t.variant==="circle"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[d[0]||(d[0]=n.createElementVNode("svg",{viewBox:"0 0 100 100",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("circle",{class:"sq-progress-track",cx:"50",cy:"50"}),n.createElementVNode("circle",{class:"sq-progress-path",cx:"50",cy:"50"})],-1)),t.label?(n.openBlock(),n.createElementBlock("div",xs,[n.renderSlot(f.$slots,"default",{percentage:i.value},()=>[n.createElementVNode("span",{textContent:n.toDisplayString(s.value)},null,8,gs)])])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],6))}}),_s=["autofocus","name","form","value","disabled"],ks={key:0,class:"sq-radio-box"},ys=["textContent"],an=n.defineComponent({name:"sq-radio",__name:"radio",props:n.mergeModels({form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},variant:{},autofocus:{type:Boolean},label:{}},{checked:{type:Boolean,default:!1},checkedModifiers:{}}),emits:n.mergeModels(["change"],["update:checked"]),setup(e,{emit:u}){const t=u,o=e,{radioSize:r,radioDisabled:c,radioForm:i,radioName:s,radioVariant:a,groupContext:l}=zc(o),f=n.ref(),d=n.useModel(e,"checked"),b=n.computed(()=>{const p=[],m=n.unref(r),g=n.unref(c),_=n.unref(a);return m!=="md"&&p.push(`sq-selection--${m}`),h.value&&p.push("is-checked"),g&&p.push("is-disabled"),_&&p.push(`is-${_}`),p}),h=n.computed(()=>o.label&&l?n.unref(n.unref(l)).checked===o.label:d.value);return n.watch(f,p=>{o.label?d.value=p===o.label:d.value=p==="on"}),n.watch(h,p=>{if(p?f.value=o.label??"on":f.value=void 0,d.value!==p){d.value=p;return}}),n.watch(d,p=>{h.value!==p&&o.label&&l&&l.value.toggleItem(o.label)}),n.onMounted(()=>{d.value=h.value,f.value=d.value?o.label??"on":void 0}),(p,m)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(["sq-selection sq-radio",b.value])},[n.withDirectives(n.createElementVNode("input",{type:"radio",autofocus:o.autofocus,name:n.unref(s),form:n.unref(i),value:o.label,disabled:n.unref(c),"onUpdate:modelValue":m[0]||(m[0]=g=>f.value=g),onChange:m[1]||(m[1]=g=>t("change",h.value))},null,40,_s),[[n.vModelRadio,f.value]]),n.unref(a)!=="solid"?(n.openBlock(),n.createElementBlock("span",ks)):n.createCommentVNode("",!0),o.label?(n.openBlock(),n.createElementBlock("span",{key:1,class:"sq-selection-label",textContent:n.toDisplayString(o.label)},null,8,ys)):n.createCommentVNode("",!0)],2))}}),Cs={class:"sq-radio-group sq-selection-group"},ln=n.defineComponent({name:"sq-radio-group",__name:"radio-group",props:{items:{default:()=>[]},value:{},form:{},name:{},disabled:{type:Boolean,default:void 0},size:{},variant:{}},emits:["change","update:value"],setup(e,{emit:u}){const{nextId:t}=iu(),o=u,r=e,c=n.ref(r.value),i=n.computed(()=>r.name??`sq-radio-${t()}`);n.provide(Iu,n.ref({form:n.toRef(r,"form"),name:i,disabled:n.toRef(r,"disabled"),size:n.toRef(r,"size"),variant:n.toRef(r,"variant"),checked:c,toggleItem:s})),n.watch(()=>r.value,a=>{a!==c.value&&(c.value=a)});function s(a){c.value=a,o("change",c.value),o("update:value",c.value)}return(a,l)=>(n.openBlock(),n.createElementBlock("div",Cs,[n.renderSlot(a.$slots,"default",{},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.items,(f,d)=>(n.openBlock(),n.createBlock(n.unref(an),{key:d,label:f},null,8,["label"]))),128))])]))}}),Iu=Symbol("radio-group-context-keys"),Es=["id","autofocus","name","form","disabled"],ws={class:"sq-switch-track"},Ds={class:"sq-switch-thumb"},fn=n.defineComponent({name:"sq-switch",__name:"switch",props:n.mergeModels({form:{},name:{},disabled:{type:Boolean},size:{},variant:{},autofocus:{type:Boolean},loading:{type:Boolean}},{checked:{type:Boolean,default:!1},checkedModifiers:{}}),emits:n.mergeModels(["change","click"],["update:checked"]),setup(e,{emit:u}){const t=u,o=e,{switchSize:r,switchDisabled:c,id:i}=Nc(o),s=n.useModel(e,"checked"),a=n.computed(()=>{const l=[],f=n.unref(r),d=n.unref(c);return f!=="md"&&l.push(`sq-switch--${f}`),s.value&&l.push("is-checked"),(d||o.loading)&&l.push("is-disabled"),o.variant&&l.push(`is-${o.variant}`),l});return(l,f)=>(n.openBlock(),n.createElementBlock("label",{class:n.normalizeClass(["sq-switch",a.value])},[n.withDirectives(n.createElementVNode("input",{type:"checkbox","onUpdate:modelValue":f[0]||(f[0]=d=>s.value=d),id:n.unref(i),autofocus:o.autofocus,name:o.name,form:o.form,disabled:n.unref(c)||o.loading,onChange:f[1]||(f[1]=d=>t("change",s.value,d)),onClick:f[2]||(f[2]=d=>t("click",s.value,d))},null,40,Es),[[n.vModelCheckbox,s.value]]),n.createElementVNode("span",ws,[n.createElementVNode("span",Ds,[o.loading?(n.openBlock(),n.createBlock(n.unref(Re),{key:0})):n.createCommentVNode("",!0)])])],2))}}),As=n.defineComponent({name:"sq-tag",__name:"tag",props:{type:{},variant:{},round:{type:Boolean},size:{default:"md"}},setup(e){const u=e,t=n.computed(()=>{const r=[];return u.size!=="md"&&r.push(`sq-tag--${u.size}`),u.variant&&u.type&&r.push(`is-${u.variant}`),u.type&&r.push(`is-${u.type}`),u.round&&r.push("is-round"),r}),o=n.computed(()=>u.size==="lg"?"md":"sm");return(r,c)=>(n.openBlock(),n.createBlock(n.unref(fe),{class:n.normalizeClass(["sq-tag",t.value]),size:o.value},{default:n.withCtx(()=>[n.renderSlot(r.$slots,"default")]),_:3},8,["class","size"]))}}),Fs=n.defineComponent({name:"sq-check-tag",__name:"check-tag",props:{checked:{type:Boolean,default:!1},type:{},round:{type:Boolean},size:{default:"md"}},emits:["change"],setup(e,{emit:u}){const t=u,o=e,r=n.computed(()=>{const i=[];return o.size!=="md"&&i.push(`sq-tag--${o.size}`),o.type&&i.push(`is-${o.type}`),o.round&&i.push("is-round"),o.checked&&i.push("is-checked"),i}),c=n.computed(()=>o.size==="lg"?"md":"sm");return(i,s)=>(n.openBlock(),n.createBlock(n.unref(fe),{class:n.normalizeClass(["sq-check-tag",r.value]),size:c.value,onClick:s[0]||(s[0]=a=>t("change",!o.checked))},{default:n.withCtx(()=>[n.renderSlot(i.$slots,"default")]),_:3},8,["class","size"]))}}),fe=n.defineComponent({name:"sq-text",__name:"text",props:{ellipsis:{type:[Boolean,Number],default:!1},size:{default:"md"}},setup(e){const u=e,t=n.computed(()=>{const c=[];return u.size!=="md"&&c.push(`sq-text--${u.size}`),u.ellipsis!==void 0&&u.ellipsis!==!1&&c.push(o.value>1?"multi-line":"single-line"),c}),o=n.computed(()=>typeof u.ellipsis=="number"?Number(Math.max(u.ellipsis,1).toFixed(0)):1),r=n.computed(()=>u.ellipsis?`--row-num: ${o.value}`:"");return(c,i)=>(n.openBlock(),n.createElementBlock("span",{class:n.normalizeClass(["sq-text",t.value]),style:n.normalizeStyle(r.value)},[n.renderSlot(c.$slots,"default")],6))}}),Bs=n.defineComponent({name:"sq-timeline",__name:"timeline",props:{align:{default:"left"},variant:{}},setup(e){const u=e,t=n.computed(()=>{const o=[];return u.variant&&o.push(`is-${u.variant}`),o.push(`align-${u.align}`),o});return(o,r)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-timeline",t.value])},[n.renderSlot(o.$slots,"default")],2))}}),Ss={class:"sq-timeline-dot"},Ms={class:"sq-timeline-content"},qs=["textContent"],zs=["textContent"],Ns={class:"content-info"},$s=n.defineComponent({name:"sq-timeline-item",__name:"timeline-item",props:{color:{},type:{},icon:{},hollow:{type:Boolean},timestamp:{},title:{}},setup(e){const u=e,t=n.computed(()=>{const r=[];return u.type&&r.push(`is-${u.type}`),u.hollow&&r.push("is-hollow"),r}),o=n.computed(()=>{const r={};return u.color&&(r["--timeline-dot-color"]=u.color),r});return(r,c)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["sq-timeline-item",t.value]),style:n.normalizeStyle(o.value)},[n.createElementVNode("span",Ss,[u.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u.icon),{key:0})):n.createCommentVNode("",!0)]),n.createElementVNode("div",Ms,[u.title?(n.openBlock(),n.createElementBlock("h2",{key:0,class:"content-title",textContent:n.toDisplayString(u.title)},null,8,qs)):n.createCommentVNode("",!0),u.timestamp?(n.openBlock(),n.createElementBlock("span",{key:1,class:"content-time",textContent:n.toDisplayString(u.timestamp)},null,8,zs)):n.createCommentVNode("",!0),n.createElementVNode("div",Ns,[n.renderSlot(r.$slots,"default")])])],6))}}),Ts=["textContent"],oe=n.defineComponent({name:"sq-tooltip",__name:"tooltip",props:{placement:{},teleported:{type:Boolean,default:!0},disabled:{type:Boolean},transition:{},tip:{},popoverClass:{}},setup(e){const u=e,t=n.computed(()=>{const o=["sq-tooltip"],r=u.popoverClass;return Array.isArray(r)?o.push(...r):typeof r=="string"&&o.push(r),o});return(o,r)=>(n.openBlock(),n.createBlock(n.unref(cn),{placement:u.placement,disabled:u.disabled,"show-after":300,"hide-after":0,"popover-class":t.value,teleported:u.teleported,transition:u.transition},{reference:n.withCtx(()=>[n.renderSlot(o.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("span",{textContent:n.toDisplayString(u.tip)},null,8,Ts)]),_:3},8,["placement","disabled","popover-class","teleported","transition"]))}});S.ButtonGroupContextKeys=Fu,S.CheckboxGroupContextKeys=Su,S.FormContextKeys=de,S.FormItemIdKeys=Ue,S.RadioGroupContextKeys=Iu,S.SqAlert=V0,S.SqArticle=Ec,S.SqAvatar=Ac,S.SqBacktop=Bc,S.SqBlur=Nt,S.SqButton=Z,S.SqButtonGroup=Rc,S.SqCard=Oc,S.SqCheckTag=Fs,S.SqCheckbox=Bu,S.SqCheckboxGroup=$t,S.SqDivider=Ne,S.SqForm=Xc,S.SqImage=Tt,S.SqImageViewer=Rt,S.SqInput=Lt,S.SqMessage=mi,S.SqPagination=Ci,S.SqPopover=cn,S.SqProgress=sn,S.SqRadio=an,S.SqRadioGroup=ln,S.SqSwitch=fn,S.SqTag=As,S.SqText=fe,S.SqTimeline=Bs,S.SqTimelineItem=$s,S.SqTooltip=oe,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @layer theme,component,type,custom;@layer theme{:root{color-scheme:light;--sq-bg-color: oklch(.98 .0034 248);--sq-bg-color-dark: oklch(from var(--sq-bg-color) .96 c h);--sq-component-bg-color: #fff;--sq-projection-dark: oklch(.96 .02 259);--sq-projection-light: #fff;--sq-text-color: oklch(.27 .03 257);--sq-text-color-secondary: oklch(from var(--sq-text-color) .45 c h);--sq-text-color-placeholder: oklch(from var(--sq-text-color) .65 c h);--sq-border-color: oklch(.94 0 253);--sq-border-color-light: oklch(from var(--sq-border-color) .96 c h);--sq-border-color-lighter: oklch(from var(--sq-border-color) .98 c h);--sq-color-primary: oklch(.75 .18 48);--sq-color-primary-light-5: oklch(from var(--sq-color-primary) l c h / .08);--sq-color-primary-light-4: oklch(from var(--sq-color-primary) l c h / .2);--sq-color-primary-light-3: oklch(from var(--sq-color-primary) l c h / .4);--sq-color-primary-light-2: oklch(from var(--sq-color-primary) l c h / .6);--sq-color-primary-light-1: oklch(from var(--sq-color-primary) l c h / .8);--sq-color-primary-dark-1: oklch(from var(--sq-color-primary) .65 c h);--sq-color-success: oklch(.75 .22 151);--sq-color-success-light-5: oklch(from var(--sq-color-success) l c h / .08);--sq-color-success-light-4: oklch(from var(--sq-color-success) l c h / .2);--sq-color-success-light-3: oklch(from var(--sq-color-success) l c h / .4);--sq-color-success-light-2: oklch(from var(--sq-color-success) l c h / .6);--sq-color-success-light-1: oklch(from var(--sq-color-success) l c h / .8);--sq-color-success-dark-1: oklch(from var(--sq-color-success) .65 c h);--sq-color-info: oklch(.75 .14 230);--sq-color-info-light-5: oklch(from var(--sq-color-info) l c h / .08);--sq-color-info-light-4: oklch(from var(--sq-color-info) l c h / .2);--sq-color-info-light-3: oklch(from var(--sq-color-info) l c h / .4);--sq-color-info-light-2: oklch(from var(--sq-color-info) l c h / .6);--sq-color-info-light-1: oklch(from var(--sq-color-info) l c h / .8);--sq-color-info-dark-1: oklch(from var(--sq-color-info) .65 c h);--sq-color-warn: oklch(.75 .14 76);--sq-color-warn-light-5: oklch(from var(--sq-color-warn) l c h / .08);--sq-color-warn-light-4: oklch(from var(--sq-color-warn) l c h / .2);--sq-color-warn-light-3: oklch(from var(--sq-color-warn) l c h / .4);--sq-color-warn-light-2: oklch(from var(--sq-color-warn) l c h / .6);--sq-color-warn-light-1: oklch(from var(--sq-color-warn) l c h / .8);--sq-color-warn-dark-1: oklch(from var(--sq-color-warn) .65 c h);--sq-color-error: oklch(.75 .25 29);--sq-color-error-light-5: oklch(from var(--sq-color-error) l c h / .08);--sq-color-error-light-4: oklch(from var(--sq-color-error) l c h / .2);--sq-color-error-light-3: oklch(from var(--sq-color-error) l c h / .4);--sq-color-error-light-2: oklch(from var(--sq-color-error) l c h / .6);--sq-color-error-light-1: oklch(from var(--sq-color-error) l c h / .8);--sq-color-error-dark-1: oklch(from var(--sq-color-error) .65 c h);--sq-font-family: Microsoft YaHei, Pingfang SC, sans-serif;--sq-font-size-sm: 12px;--sq-font-size-md: 14px;--sq-font-size-lg: 16px;--sq-radius-xs: 4px;--sq-radius-sm: 6px;--sq-radius-md: 8px;--sq-radius-lg: 12px;--sq-radius-full: calc(infinity * 1px);--sq-opacity-80: .8;--sq-opacity-20: .2;--sq-padding-xs: 8px;--sq-padding-sm: 12px;--sq-padding-md: 24px;--sq-padding-lg: 36px;--sq-padding-xl: 48px;--sq-blur-sm: 4px;--sq-blur-md: 10px;--sq-blur-lg: 50px;--sq-component-size-xs: 28px;--sq-component-size-sm: 32px;--sq-component-size-md: 36px;--sq-component-size-lg: 40px;--sq-line-height-single: 1;--sq-line-height-base: 1.6;--sq-transition-base: .3s ease;--sq-transition-linear: .3s linear;--sq-shadow-xs-dark: 2px 2px 3px;--sq-shadow-xs-light: -2px -2px 3px;--sq-shadow-sm-dark: 4px 4px 6px;--sq-shadow-sm-light: -4px -4px 6px;--sq-shadow-md-dark: 6px 6px 9px;--sq-shadow-md-light: -6px -6px 9px;--sq-shadow-lg-dark: 8px 8px 12px;--sq-shadow-lg-light: -8px -8px 12px;--sq-text-shadow: 1px 1px 1px rgb(0 0 0 / var(--sq-opacity-20))}:root.dark{color-scheme:dark}@media (max-width: 768px){:root{--sq-radius-xs: 2px;--sq-radius-sm: 4px;--sq-radius-md: 6px;--sq-radius-lg: 8px;--sq-padding-xs: 6px;--sq-padding-sm: 10px;--sq-padding-md: 16px;--sq-padding-lg: 24px;--sq-padding-xl: 32px}}}@layer theme{.sq-fade-enter-active{animation:fade var(--sq-transition-base)}.sq-fade-leave-active{animation:reverse fade var(--sq-transition-base)}.sq-slide-up-enter-active{animation:slide-up var(--sq-transition-base)}.sq-slide-up-leave-active{animation:reverse slide-up var(--sq-transition-base)}.sq-card-insert-enter-active,.sq-card-insert-leave-active{transform-origin:right}.sq-card-insert-enter-active{animation:card-insert var(--sq-transition-base)}.sq-card-insert-leave-active{animation:reverse card-insert var(--sq-transition-base)}.sq-rotate-in-left-enter-active{animation:rotate-in-left var(--sq-transition-base)}.sq-rotate-in-left-leave-active{animation:reverse rotate-in-left var(--sq-transition-base)}.sq-rotate-in-right-enter-active{animation:rotate-in-right var(--sq-transition-base)}.sq-rotate-in-right-leave-active{animation:reverse rotate-in-right var(--sq-transition-base)}.sq-zoom-top-enter-active,.sq-zoom-top-leave-active{transform-origin:top}.sq-zoom-top-enter-active{animation:zoom var(--sq-transition-base)}.sq-zoom-top-leave-active{animation:reverse zoom var(--sq-transition-base)}.sq-zoom-bottom-enter-active,.sq-zoom-bottom-leave-active{transform-origin:bottom}.sq-zoom-bottom-enter-active{animation:zoom var(--sq-transition-base)}.sq-zoom-bottom-leave-active{animation:reverse zoom var(--sq-transition-base)}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{transform:translateY(var(--sq-padding-lg));opacity:0}to{transform:none;opacity:1}}@keyframes card-insert{0%{transform:translateY(-50%) rotate(30deg);opacity:0}60%{transform:translateY(10%);opacity:1}to{transform:none;opacity:1}}@keyframes rotate-in-left{0%{transform:translate(200%) rotate(180deg);opacity:0}to{transform:none;opacity:1}}@keyframes rotate-in-right{0%{transform:translate(-200%) rotate(180deg);opacity:0}to{transform:none;opacity:1}}@keyframes zoom{0%{transform:scaleY(0);opacity:0}to{transform:none;opacity:1}}@keyframes skeleton{0%{background-position:-60% 0}to{background-position:160% 0}}}@layer component{@keyframes loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dashoffset:70}50%{stroke-dashoffset:125}to{stroke-dashoffset:70}}.sq-icon{display:inline-flex}.sq-icon>svg{width:1em;height:1em;fill:currentColor}.sq-icon.is-loading>svg{transform-origin:center;animation:loading 1s linear infinite}.sq-icon[data-icon=loading] circle{fill:none;stroke:currentColor;stroke-width:4;stroke-dasharray:130;stroke-linecap:round;animation:dash 2s ease-in-out infinite}}@layer component{.sq-alert{--alert-color: var(--sq-color-primary);--alert-bg-color: var(--sq-color-primary-light-5);--alert-selection-color: var(--sq-color-primary);border-radius:var(--sq-radius-md);padding:var(--sq-padding-sm);background:var(--alert-bg-color)}.sq-alert.sq-text{color:var(--alert-color)}.sq-alert.sq-text::selection{background-color:var(--alert-selection-color)}}@layer type{.sq-alert.is-success{--alert-color: var(--sq-color-success);--alert-bg-color: var(--sq-color-success-light-5);--alert-selection-color: var(--sq-color-success)}.sq-alert.is-info{--alert-color: var(--sq-color-info);--alert-bg-color: var(--sq-color-info-light-5);--alert-selection-color: var(--sq-color-info)}.sq-alert.is-warn{--alert-color: var(--sq-color-warn);--alert-bg-color: var(--sq-color-warn-light-5);--alert-selection-color: var(--sq-color-warn)}.sq-alert.is-error{--alert-color: var(--sq-color-error);--alert-bg-color: var(--sq-color-error-light-5);--alert-selection-color: var(--sq-color-error)}}@layer component{.sq-article{line-height:var(--sq-line-height-base);display:flex;flex-direction:column;color:currentColor;font-size:var(--sq-font-size-md);row-gap:var(--sq-padding-sm);font-family:var(--sq-font-family)}.sq-article::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-article p,.sq-article h1,.sq-article h2,.sq-article h3,.sq-article h4,.sq-article h5,.sq-article h6{margin:0}.sq-article p:has(>img),.sq-article p:has(>.sq-image){display:flex}.sq-article h1,.sq-article h2,.sq-article h3,.sq-article h4,.sq-article h5,.sq-article h6{color:var(--sq-text-color)}.sq-article ul,.sq-article ol{margin:0;padding:0;list-style-type:none}.sq-article ul>li,.sq-article ol>li{position:relative;padding-inline-start:var(--sq-padding-md)}.sq-article ul>li:before,.sq-article ol>li:before{position:absolute;left:0}.sq-article ul>li:before{content:"";background-color:currentColor;aspect-ratio:1;width:4px;border-radius:var(--sq-radius-full);top:calc(.8em - 2px)}.sq-article ol{counter-reset:section}.sq-article ol>li{counter-increment:section}.sq-article ol>li:before{content:counter(section) ".";top:0}.sq-article a{text-decoration:none;color:var(--sq-color-primary);border-block-end:1px solid transparent;word-break:break-all}.sq-article a:hover{border-block-end-color:var(--sq-color-primary)}.sq-article a .sq-icon{vertical-align:middle;margin-inline-end:.2em;transform:translateY(-1px)}.sq-article .sq-checkbox{height:auto}.sq-article .sq-image{max-width:100%}.sq-article>img{max-width:100%;border-radius:var(--sq-radius-md)}.sq-article code{word-break:break-all;border-radius:var(--sq-radius-sm);background-color:var(--sq-color-primary-light-5);color:var(--sq-color-primary);padding:.1em .4em;font-family:var(--sq-font-family)}.sq-article blockquote{margin:0;padding:var(--sq-padding-sm);border-radius:var(--sq-radius-md);border-inline-start:4px solid var(--sq-color-primary);background-color:var(--sq-color-primary-light-5)}.sq-article-table{border:1px solid var(--sq-border-color);border-radius:var(--sq-radius-md);overflow:hidden}.sq-article-table table{border-collapse:collapse;width:100%}.sq-article-table table thead{color:var(--sq-text-color);background-color:var(--sq-bg-color)}.sq-article-table table tbody{color:var(--sq-text-color-secondary)}.sq-article-table table th,.sq-article-table table td{padding:var(--sq-padding-xs) var(--sq-padding-sm)}.sq-article-table table th{position:relative}.sq-article-table table th:not(:last-child):after{content:"";position:absolute;z-index:1;right:0;top:calc(50% - .5em);border:1px solid var(--sq-border-color);height:1em}.sq-article-table table tr:nth-child(2n){background-color:var(--sq-bg-color)}ul>li.sq-article-task-list-item{display:flex;align-items:center;column-gap:var(--sq-padding-xs);padding-inline-start:0}ul>li.sq-article-task-list-item:before{content:none}}@layer component{.sq-avatar{--avatar-size: var(--sq-component-size-md);--avatar-bg-color: var(--sq-color-primary);width:var(--avatar-size);aspect-ratio:1;border-radius:var(--sq-radius-md);font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);box-sizing:border-box;border:1px solid var(--sq-border-color-light);overflow:hidden;-webkit-user-select:none;user-select:none;box-shadow:var(--sq-shadow-sm-dark) var(--sq-projection-dark),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-avatar.sq-avatar--sm{--avatar-size: var(--sq-component-size-sm);font-size:var(--sq-font-size-sm)}.sq-avatar.sq-avatar--lg{--avatar-size: var(--sq-component-size-lg);font-size:var(--sq-font-size-lg)}.sq-avatar.is-round{border-radius:var(--sq-radius-full)}.sq-avatar:has(>span){border:none;background:var(--avatar-bg-color)}.sq-avatar img{width:100%;height:100%;object-fit:cover}.sq-avatar span{width:100%;height:100%;color:#fff;display:flex;align-items:center;justify-content:center;line-height:var(--sq-line-height-single)}}@layer component{.sq-backtop{--backtop-margin-right: var(--sq-padding-md);--backtop-margin-bottom: var(--sq-padding-md);--backtop-size: 48px;position:fixed;width:var(--backtop-size);height:var(--backtop-size);inset-block-end:var(--backtop-margin-right);inset-inline-end:var(--backtop-margin-bottom);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-full);cursor:pointer;font-size:var(--sq-font-size-md);color:var(--sq-text-color-secondary);z-index:1999;box-shadow:var(--sq-shadow-md-dark) var(--sq-projection-dark),var(--sq-shadow-md-light) var(--sq-projection-light);transition:color var(--sq-transition-base)}.sq-backtop:not(:has(.sq-progress)){border:1px solid var(--sq-border-color-light)}.sq-backtop:hover{color:var(--sq-color-primary)}.sq-backtop-wrap{position:relative;display:flex;align-items:center;justify-content:center;height:100%}.sq-backtop-wrap .sq-progress{width:100%;position:absolute}.sq-backtop-wrap .sq-icon{position:absolute;font-size:1.5em}}@layer component{.sq-blur{border-radius:var(--sq-radius-sm);filter:blur(var(--sq-blur-sm));-webkit-user-select:none;user-select:none;transition:filter var(--sq-transition-base)}.sq-blur.sq-text{display:inline-flex}.sq-blur:hover{filter:none}}@layer component{.sq-button{--button-color: var(--sq-text-color);--button-color-hover: var(--sq-text-color-secondary);--button-color-disabled: var(--sq-text-color-placeholder);--button-bg-color: var(--sq-component-bg-color);--button-bg-color-hover: var(--sq-component-bg-color);--button-bg-color-disabled: var(--sq-bg-color);--button-border-color: var(--sq-border-color-light);--button-shadow-color: var(--sq-projection-dark);--button-padding: var(--sq-padding-sm);cursor:pointer;height:var(--sq-component-size-md);padding:0 var(--button-padding);color:var(--button-color);background-color:var(--button-bg-color);border:1px solid;border-color:var(--button-border-color);border-radius:var(--sq-radius-md);-webkit-user-select:none;user-select:none;box-sizing:border-box;transition:all var(--sq-transition-base)}.sq-button.sq-button--sm{height:var(--sq-component-size-sm)}.sq-button.sq-button--lg{height:var(--sq-component-size-lg)}.sq-button:not(.is-text){box-shadow:var(--sq-shadow-sm-dark) var(--button-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-button.is-round{border-radius:var(--sq-radius-full);padding-inline:calc(var(--button-padding) + .2em)}.sq-button:disabled{cursor:not-allowed;color:var(--button-color-disabled);background-color:var(--button-bg-color-disabled)}.sq-button:hover:not(:disabled){color:var(--button-color-hover);background-color:var(--button-bg-color-hover)}.sq-button:active:not(:disabled){box-shadow:var(--sq-shadow-xs-dark) var(--button-shadow-color),var(--sq-shadow-xs-light) var(--sq-projection-light)}.sq-button .sq-text{line-height:var(--sq-line-height-single);justify-content:center}.sq-button .sq-text::selection{text-shadow:none}}@layer type{.sq-button.is-primary{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-primary);--button-bg-color-hover: var(--sq-color-primary-dark-1);--button-bg-color-disabled: var(--sq-color-primary-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-primary-light-4)}.sq-button.is-success{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-success);--button-bg-color-hover: var(--sq-color-success-dark-1);--button-bg-color-disabled: var(--sq-color-success-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-success-light-4)}.sq-button.is-info{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-info);--button-bg-color-hover: var(--sq-color-info-dark-1);--button-bg-color-disabled: var(--sq-color-info-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-info-light-4)}.sq-button.is-warn{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-warn);--button-bg-color-hover: var(--sq-color-warn-dark-1);--button-bg-color-disabled: var(--sq-color-warn-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-warn-light-4)}.sq-button.is-error{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-error);--button-bg-color-hover: var(--sq-color-error-dark-1);--button-bg-color-disabled: var(--sq-color-error-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-error-light-4)}.sq-button.is-text{--button-color: var(--sq-text-color);--button-color-hover: var(--sq-text-color-secondary);--button-color-disabled: var(--sq-text-color-placeholder);--button-bg-color: transparent;--button-bg-color-hover: var(--sq-bg-color);--button-bg-color-disabled: transparent;--button-border-color: transparent}.sq-button.is-text:active:not(:disabled){box-shadow:none}.sq-button.is-text.is-primary{--button-color: var(--sq-color-primary);--button-color-hover: var(--sq-color-primary-dark-1);--button-color-disabled: var(--sq-color-primary-light-3);--button-bg-color-hover: var(--sq-color-primary-light-5)}.sq-button.is-text.is-success{--button-color: var(--sq-color-success);--button-color-hover: var(--sq-color-success-dark-1);--button-color-disabled: var(--sq-color-success-light-3);--button-bg-color-hover: var(--sq-color-success-light-5)}.sq-button.is-text.is-info{--button-color: var(--sq-color-info);--button-color-hover: var(--sq-color-info-dark-1);--button-color-disabled: var(--sq-color-info-light-3);--button-bg-color-hover: var(--sq-color-info-light-5)}.sq-button.is-text.is-warn{--button-color: var(--sq-color-warn);--button-color-hover: var(--sq-color-warn-dark-1);--button-color-disabled: var(--sq-color-warn-light-3);--button-bg-color-hover: var(--sq-color-warn-light-5)}.sq-button.is-text.is-error{--button-color: var(--sq-color-error);--button-color-hover: var(--sq-color-error-dark-1);--button-color-disabled: var(--sq-color-error-light-3);--button-bg-color-hover: var(--sq-color-error-light-5)}.sq-button.is-text.has-bg{--button-bg-color: var(--sq-bg-color);--button-bg-color-hover: var(--sq-bg-color-dark);--button-bg-color-disabled: var(--sq-bg-color)}.sq-button.is-text.has-bg.is-primary{--button-bg-color: var(--sq-color-primary-light-5);--button-bg-color-hover: var(--sq-color-primary-light-4);--button-bg-color-disabled: var(--sq-color-primary-light-5)}.sq-button.is-text.has-bg.is-success{--button-bg-color: var(--sq-color-success-light-5);--button-bg-color-hover: var(--sq-color-success-light-4);--button-bg-color-disabled: var(--sq-color-success-light-5)}.sq-button.is-text.has-bg.is-info{--button-bg-color: var(--sq-color-info-light-5);--button-bg-color-hover: var(--sq-color-info-light-4);--button-bg-color-disabled: var(--sq-color-info-light-5)}.sq-button.is-text.has-bg.is-warn{--button-bg-color: var(--sq-color-warn-light-5);--button-bg-color-hover: var(--sq-color-warn-light-4);--button-bg-color-disabled: var(--sq-color-warn-light-5)}.sq-button.is-text.has-bg.is-error{--button-bg-color: var(--sq-color-error-light-5);--button-bg-color-hover: var(--sq-color-error-light-4);--button-bg-color-disabled: var(--sq-color-error-light-5)}}@layer component{.sq-button-group{--button-group-shadow-color: var(--sq-projection-dark);border-radius:var(--sq-radius-md);box-shadow:var(--sq-shadow-sm-dark) var(--button-group-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-button-group:has(>.is-round){border-radius:var(--sq-radius-full)}.sq-button-group .sq-button{box-shadow:none}.sq-button-group .sq-button:active{box-shadow:none}.sq-button-group .sq-button:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;border-inline-start:none}.sq-button-group .sq-button:not(:first-child).is-round{padding-inline-start:var(--button-padding)}.sq-button-group .sq-button:not(:last-child){border-start-end-radius:0;border-end-end-radius:0;border-inline-end-color:var(--sq-border-color-light)}.sq-button-group .sq-button:not(:last-child).is-round{padding-inline-end:var(--button-padding)}}@layer type{.sq-button-group:has(>.is-primary){--button-group-shadow-color: var(--sq-color-primary-light-4)}.sq-button-group:has(>.is-success){--button-group-shadow-color: var(--sq-color-success-light-4)}.sq-button-group:has(>.is-info){--button-group-shadow-color: var(--sq-color-info-light-4)}.sq-button-group:has(>.is-warn){--button-group-shadow-color: var(--sq-color-warn-light-4)}.sq-button-group:has(>.is-error){--button-group-shadow-color: var(--sq-color-error-light-4)}}@layer component{.sq-card{padding:var(--sq-padding-md);border-radius:var(--sq-radius-lg);border:1px solid var(--sq-border-color-light);background-color:var(--sq-component-bg-color);color:var(--sq-text-color-secondary);font-size:var(--sq-font-size-md);line-height:var(--sq-line-height-base);font-family:var(--sq-font-family);box-shadow:var(--sq-shadow-lg-dark) var(--sq-projection-dark),var(--sq-shadow-lg-light) var(--sq-projection-light)}.sq-card::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-card .sq-card-header{margin-block-end:var(--sq-padding-md);line-height:var(--sq-line-height-single);display:flex;align-items:center;justify-content:space-between}.sq-card .sq-card-header h2{color:var(--sq-text-color);font-weight:700;font-size:var(--sq-font-size-lg);margin:0;padding:0}.sq-card .sq-card-header h2.has-decorative{position:relative;padding-inline-start:var(--sq-padding-sm)}.sq-card .sq-card-header h2.has-decorative:before{content:"";position:absolute;height:1em;width:4px;top:50%;left:0;border-radius:var(--sq-radius-full);background-color:var(--sq-color-primary);transform:translateY(-50%)}.sq-card .sq-card-footer{display:flex;align-items:center;margin-block-start:var(--sq-padding-md)}}@layer component{.sq-selection{--selection-color: var(--sq-text-color);--selection-color-hover: var(--sq-text-color);--selection-color-disabled: var(--sq-text-color-placeholder);--selection-color-checked: var(--sq-text-color);--selection-bg-color: var(--sq-component-bg-color);--selection-border-color: var(--sq-border-color-light);--selection-inner-color: #fff;--selection-shadow-color: var(--sq-projection-dark);display:inline-flex;align-items:center;column-gap:var(--sq-padding-xs);font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);color:var(--selection-color);cursor:pointer;box-sizing:border-box;border-radius:var(--sq-radius-sm);height:var(--sq-component-size-md);transition:color var(--sq-transition-base)}.sq-selection.sq-selection--sm{font-size:var(--sq-font-size-sm);height:var(--sq-component-size-sm)}.sq-selection.sq-selection--lg{height:var(--sq-component-size-lg)}.sq-selection input[type=radio],.sq-selection input[type=checkbox]{opacity:0;position:absolute;width:0;height:0;margin:0}.sq-selection .sq-selection-label{-webkit-user-select:none;user-select:none;line-height:var(--sq-line-height-single);transition:color var(--sq-transition-base)}.sq-selection.is-checked{--selection-bg-color: var(--sq-color-primary);--selection-border-color: var(--sq-color-primary);--selection-shadow-color: var(--sq-color-primary-light-4);color:var(--selection-color-checked)}.sq-selection:hover{--selection-border-color: var(--sq-color-primary);color:var(--selection-color-hover)}.sq-selection.is-disabled{--selection-border-color: var(--sq-border-color-light);--selection-bg-color: var(--sq-bg-color);--selection-inner-color: var(--sq-text-color-placeholder);--selection-shadow-color: var(--sq-projection-dark);color:var(--selection-color-disabled);cursor:not-allowed}}@layer type{.sq-selection.is-outline,.sq-selection.is-solid{--selection-color-hover: var(--sq-color-primary);border:1px solid var(--selection-border-color);padding-inline:var(--sq-padding-sm);box-shadow:var(--sq-shadow-sm-dark) var(--selection-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}.sq-selection.is-outline{--selection-color-checked: var(--sq-color-primary)}.sq-selection.is-solid{--selection-color-checked: #fff;background-color:var(--selection-bg-color)}.sq-selection.is-solid.is-checked{--selection-color: #fff;--selection-color-hover: #fff;--selection-color-disabled: #fff;--selection-border-color: transparent}.sq-selection.is-solid.is-checked:hover{--selection-bg-color: var(--sq-color-primary-dark-1)}.sq-selection.is-solid.is-checked.is-disabled{--selection-bg-color: var(--sq-color-primary-light-3);--selection-shadow-color: var(--sq-color-primary-light-4)}}@layer component{.sq-checkbox{--checkbox-indeterminate-color: var(--sq-color-primary)}.sq-checkbox.is-disabled{--checkbox-indeterminate-color: var(--sq-text-color-placeholder)}.sq-checkbox-box{display:flex;aspect-ratio:1;width:1em;align-items:center;justify-content:center;border:1px solid var(--selection-border-color);border-radius:var(--sq-radius-xs);background-color:var(--selection-bg-color);position:relative;box-shadow:var(--sq-shadow-xs-dark) var(--selection-shadow-color),var(--sq-shadow-xs-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}.sq-checkbox-inner{aspect-ratio:1;position:absolute;color:var(--selection-inner-color);width:1em;transform:scale(.9)}}@layer type{.sq-checkbox.is-outline .sq-checkbox-box{box-shadow:none}.sq-checkbox-box.is-indeterminate:before{content:"";aspect-ratio:1;position:absolute;display:block;width:calc(1em - 6px);background-color:var(--checkbox-indeterminate-color)}}@layer component{.sq-selection-group{--selection-group-shadow-color: var(--sq-color-primary-light-4);display:flex;align-items:center;border-radius:var(--sq-radius-md)}.sq-selection-group:has(>.is-solid){box-shadow:var(--sq-shadow-sm-dark) var(--selection-group-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-selection-group:not(:has(>.is-solid)){column-gap:var(--sq-padding-md)}.sq-selection-group:has(>:not(.is-checked)){--selection-group-shadow-color: var(--sq-projection-dark)}}@layer type{.sq-selection-group .is-solid{box-shadow:none}.sq-selection-group .is-solid:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;border-inline-start-color:var(--sq-border-color-light)}.sq-selection-group .is-solid:not(:last-child){border-start-end-radius:0;border-end-end-radius:0;border-inline-end:none}.sq-selection-group .is-solid:hover:not(.is-checked){border-inline-start-color:var(--sq-color-primary)}.sq-selection-group .is-solid:hover:not(.is-checked)+.sq-selection{border-inline-start-color:var(--sq-color-primary)}}@layer component{.sq-divider{--divider-width: 1px}.sq-divider:not(.is-thin){--divider-width: 4px}.sq-divider.sq-divider--vertical{height:1em;border-inline-start:var(--divider-width) var(--divider-line-type) var(--sq-border-color)}.sq-divider.sq-divider--horizontal{width:100%}.sq-divider.sq-divider--horizontal:has(>.sq-text){display:flex;color:var(--sq-text-color);align-items:center;column-gap:var(--sq-padding-sm)}.sq-divider.sq-divider--horizontal:has(>.sq-text):before,.sq-divider.sq-divider--horizontal:has(>.sq-text):after{content:"";flex:1;border-block-start:var(--divider-width) var(--divider-line-type) var(--sq-border-color)}.sq-divider.sq-divider--horizontal:has(>.sq-text).text-left:before{width:var(--sq-padding-lg);flex:none}.sq-divider.sq-divider--horizontal:has(>.sq-text).text-right:after{width:var(--sq-padding-lg);flex:none}.sq-divider.sq-divider--horizontal:has(>.sq-text) .sq-text{flex-shrink:0;max-width:60%}.sq-divider.sq-divider--horizontal:not(:has(>.sq-text)){border-block-start:var(--divider-width) var(--divider-line-type) var(--sq-border-color)}}@layer component{.sq-form{--form-label-width: auto;--form-label-height: var(--sq-component-size-md);display:flex;flex-direction:column;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);color:var(--sq-text-color)}.sq-form.sq-form--sm{--form-label-height: var(--sq-component-size-sm);font-size:var(--sq-font-size-sm)}.sq-form.sq-form--lg{--form-label-height: var(--sq-component-size-lg)}.sq-form.required-default .is-required:before{content:"*";color:var(--sq-color-error)}.sq-form.required-optional .sq-form-item-label:not(.is-required):not(:empty):after{content:"(可选项)";color:var(--sq-text-color-placeholder)}.sq-form.is-vertical .sq-form-item{flex-direction:column;row-gap:var(--sq-padding-xs)}.sq-form.is-vertical .sq-form-item .sq-form-item-label{min-height:0;line-height:var(--sq-line-height-base)}.sq-form-item{display:flex;align-items:flex-start;column-gap:var(--sq-padding-sm);padding-block-end:calc(var(--sq-font-size-sm) * 2)}.sq-form-item::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-form-item-label{display:inline-flex;align-items:center;column-gap:.2em;flex-shrink:0;min-height:var(--form-label-height);width:var(--form-label-width)}.sq-form-item-content{position:relative;width:100%}.sq-form-item-content .sq-icon[data-icon=check-filled]{color:var(--sq-color-success)}.sq-form-item-content .sq-icon[data-icon=warning-filled]{color:var(--sq-color-warn)}.sq-form-item-content .sq-icon[data-icon=close-filled]{color:var(--sq-color-error)}.sq-form-item-check{position:absolute;top:100%;left:0;line-height:var(--sq-line-height-base);color:var(--sq-color-error);font-size:var(--sq-font-size-sm)}}@layer component{.sq-image{--image-placeholder-height: 180px;display:inline-block;border-radius:var(--sq-radius-md);overflow:hidden;position:relative;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family)}.sq-image:hover>.sq-image-control{opacity:1}:scope::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-image-mask{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;background-color:var(--sq-bg-color)}.sq-image-mask:after{content:"";width:100%;height:100%;background-image:linear-gradient(to right,transparent,var(--sq-bg-color-dark) 60%,transparent);background-repeat:no-repeat;background-size:40%;animation:skeleton 2s ease infinite}.sq-image-picture{position:relative;z-index:1;display:block;width:100%;height:100%}.sq-image-picture img{display:block;width:100%;height:100%}.sq-image-control{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;z-index:2;font-size:var(--sq-font-size-lg);color:var(--sq-text-color);background-color:oklch(from var(--sq-bg-color) .96 c h / .6);-webkit-backdrop-filter:blur(var(--sq-blur-md));backdrop-filter:blur(var(--sq-blur-md));transition:opacity var(--sq-transition-base)}.sq-image-control .sq-icon{cursor:pointer}.sq-image-error{width:100%;height:100%;display:flex;justify-content:center;align-items:center;line-height:var(--sq-line-height-single);background-color:var(--sq-bg-color);color:var(--sq-text-color-placeholder)}}@layer component{.sq-image-viewer-mask{--image-viewer-component-size: 48px;display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;font-size:var(--sq-font-size-md);color:var(--sq-text-color);overflow:hidden;background-color:oklch(from var(--sq-bg-color) .96 c h / .6);-webkit-backdrop-filter:blur(var(--sq-blur-md));backdrop-filter:blur(var(--sq-blur-md));touch-action:none;-webkit-user-select:none;user-select:none}.sq-image-viewer-mask img{transition:transform var(--sq-transition-base);touch-action:none}.sq-image-viewer-mask .sq-button .sq-icon{font-size:1.5em}.sq-button.sq-image-viewer-close{position:absolute;inset-block-start:var(--sq-padding-md);inset-inline-end:var(--sq-padding-md);height:var(--image-viewer-component-size);aspect-ratio:1;padding-inline:0}.sq-image-viewer-toolbar{display:flex;align-items:center;position:absolute;inset-block-end:var(--sq-padding-md);height:var(--image-viewer-component-size);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-full);padding-inline:var(--sq-padding-sm);column-gap:var(--sq-padding-sm);border:1px solid var(--sq-border-color-light);box-shadow:var(--sq-shadow-sm-dark) var(--sq-projection-dark),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-image-viewer-toolbar .sq-button.is-text{padding-inline:0;aspect-ratio:1}@media (max-width: 768px){.sq-image-viewer-toolbar{column-gap:var(--sq-padding-xs)}}}@layer type{.sq-image-viewer-toolbar>.sq-button{--button-bg-color-hover: transparent}}@layer component{.sq-input{--input-bg-color: var(--sq-component-bg-color);--input-bg-color-disabled: var(--sq-bg-color);--input-border-color: var(--sq-border-color-light);--input-border-color-active: var(--sq-color-primary);--input-border-color-disabled: var(--sq-border-color-light);--input-shadow-color: var(--sq-projection-dark);--input-selection-color: var(--sq-color-primary);padding:0;display:flex;align-items:center;font-size:var(--sq-font-size-md);background-color:var(--input-bg-color);border:1px solid;border-color:var(--input-border-color);border-radius:var(--sq-radius-md);box-sizing:border-box;cursor:text;overflow:hidden;box-shadow:inset var(--sq-shadow-xs-dark) var(--input-shadow-color),inset var(--sq-shadow-xs-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}.sq-input.sq-input--sm{font-size:var(--sq-font-size-sm)}.sq-input:has(>input){width:100%;height:var(--sq-component-size-md)}.sq-input:has(>input).sq-input--sm{height:var(--sq-component-size-sm)}.sq-input:has(>input).sq-input--lg{height:var(--sq-component-size-lg)}.sq-input:has(>input).is-round{padding-inline:.2em;border-radius:var(--sq-radius-full)}.sq-input:has(>textarea).is-round{padding-inline:.2em;border-radius:calc(var(--sq-component-size-md) / 2)}.sq-input:has(>textarea).is-round.sq-input--sm{border-radius:calc(var(--sq-component-size-sm) / 2)}.sq-input:has(>textarea).is-round.sq-input--lg{border-radius:calc(var(--sq-component-size-lg) / 2)}.sq-input::selection{background-color:var(--input-selection-color);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-input .sq-input-prefix,.sq-input .sq-input-suffix{display:flex;align-items:center;-webkit-user-select:none;user-select:none}.sq-input .sq-input-prefix{margin-inline-start:var(--sq-padding-sm);color:var(--sq-text-color-placeholder)}.sq-input .sq-input-inner{height:100%;caret-color:var(--input-selection-color);color:var(--sq-text-color);font-size:inherit;background:transparent;border:none;outline:none;line-height:var(--sq-line-height-base);box-sizing:border-box;font-family:var(--sq-font-family);transition:color var(--sq-transition-base)}.sq-input .sq-input-inner:read-only{color:var(--sq-text-color-placeholder)}.sq-input input.sq-input-inner{padding:0 var(--sq-padding-sm);width:0;flex:1}.sq-input textarea.sq-input-inner{padding:var(--sq-padding-xs) var(--sq-padding-sm);width:100%}.sq-input .sq-input-suffix{column-gap:var(--sq-padding-xs);margin-inline-end:var(--sq-padding-sm);color:var(--sq-text-color-placeholder)}.sq-input .sq-input-suffix-pwd,.sq-input .sq-input-suffix-clear{cursor:pointer}.sq-input.is-disabled{cursor:not-allowed;border-color:var(--input-border-color-disabled);background-color:var(--input-bg-color-disabled)}.sq-input.is-disabled .sq-input-inner{cursor:not-allowed;color:var(--sq-text-color-placeholder)}.sq-input:active:not(.is-disabled),.sq-input:focus-within:not(.is-disabled){--input-border-color: var(--input-border-color-active);box-shadow:none}}@layer type{.sq-input.is-warn{--input-border-color: var(--sq-color-warn);--input-border-color-active: var(--sq-color-warn);--input-border-color-disabled: var(--sq-color-warn-light-3);--input-shadow-color: var(--sq-color-warn-light-4);--input-selection-color: var(--sq-color-warn)}.sq-input.is-error{--input-border-color: var(--sq-color-error);--input-border-color-active: var(--sq-color-error);--input-border-color-disabled: var(--sq-color-error-light-3);--input-shadow-color: var(--sq-color-error-light-4);--input-selection-color: var(--sq-color-error)}}@layer component{.sq-message-wrap{width:100%;position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center}.sq-message{max-width:90vw;background-color:var(--sq-component-bg-color);color:var(--sq-text-color);box-shadow:var(--sq-shadow-md-dark) var(--sq-projection-dark),var(--sq-shadow-md-light) var(--sq-projection-light);position:absolute;border-radius:var(--sq-radius-md);border:1px solid var(--sq-border-color-light);display:flex;flex-direction:column;overflow:hidden;transition:top var(--sq-transition-base);font-size:var(--sq-font-size-md);line-height:var(--sq-line-height-single)}.sq-message-main{padding:var(--sq-padding-sm);display:flex;column-gap:var(--sq-padding-sm);align-items:center}.sq-message-icon{font-size:var(--sq-font-size-lg);color:var(--message-icon-color)}}@layer type{.sq-message.is-primary{--message-icon-color: var(--sq-color-primary)}.sq-message.is-success{--message-icon-color: var(--sq-color-success)}.sq-message.is-info{--message-icon-color: var(--sq-color-info)}.sq-message.is-warn{--message-icon-color: var(--sq-color-warn)}.sq-message.is-error{--message-icon-color: var(--sq-color-error)}}@layer component{.sq-pagination,.sq-pagination-pager{display:flex;align-items:center;column-gap:var(--sq-padding-sm)}}@layer component{.sq-popover{position:absolute;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-md);border:1px solid var(--sq-border-color-light);padding:var(--sq-padding-sm);line-height:var(--sq-line-height-base);color:var(--sq-text-color);box-shadow:var(--sq-shadow-sm-dark) var(--sq-projection-dark),var(--sq-shadow-sm-light) var(--sq-projection-light)}}@layer component{.sq-progress{display:flex;align-items:center;justify-content:center;height:var(--progress-stroke);background-color:var(--sq-border-color);border-radius:var(--sq-radius-full);font-family:var(--sq-font-family);position:relative}.sq-progress:after{content:"";position:absolute;height:100%;width:var(--progress-value);border-radius:var(--sq-radius-full);top:0;left:0;background:var(--progress-color);z-index:1;transition:width var(--sq-transition-linear)}.sq-progress.is-circle{border-radius:0;aspect-ratio:1;height:auto;background-color:transparent}.sq-progress.is-circle:after{content:none}.sq-progress.is-circle circle{r:var(--progress-circle-r);stroke-width:var(--progress-circle-stroke);fill:transparent}.sq-progress-track{stroke:var(--sq-border-color)}.sq-progress-path{stroke-linecap:round;stroke:var(--progress-color);stroke-dasharray:var(--progress-value),var(--progress-circle-l);transform:rotate(-90deg);transform-origin:center;transition:stroke-dasharray var(--sq-transition-linear),stroke var(--sq-transition-base),opacity var(--sq-transition-linear);opacity:var(--progress-circle-opaciry, 1)}.sq-progress-label{position:absolute;font-size:var(--sq-font-size-lg);color:var(--sq-text-color-secondary);line-height:var(--sq-line-height-base);-webkit-user-select:none;user-select:none}}@layer type{.sq-progress.is-primary{--progress-color: var(--sq-color-primary)}.sq-progress.is-success{--progress-color: var(--sq-color-success)}.sq-progress.is-info{--progress-color: var(--sq-color-info)}.sq-progress.is-warn{--progress-color: var(--sq-color-warn)}.sq-progress.is-error{--progress-color: var(--sq-color-error)}}@layer component{.sq-radio.is-checked .sq-radio-box:after{content:"";aspect-ratio:1;position:absolute;border-radius:var(--sq-radius-full);background-color:var(--selection-inner-color);width:6px}.sq-radio .sq-radio-box{display:flex;aspect-ratio:1;width:1em;align-items:center;justify-content:center;border:1px solid var(--selection-border-color);border-radius:var(--sq-radius-full);background-color:var(--selection-bg-color);position:relative;box-shadow:var(--sq-shadow-xs-dark) var(--selection-shadow-color),var(--sq-shadow-xs-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}}@layer type{.sq-radio.is-outline .sq-radio-box{box-shadow:none}}@layer component{.sq-switch{--switch-width: 44px;--switch-height: calc(1em + 8px) ;--switch-track-bg: var(--sq-border-color);--switch-track-disabled-bg: var(--sq-border-color-light);--switch-track-shadow: var(--sq-shadow-xs-dark) var(--switch-shadow-color), var(--sq-shadow-xs-light) var(--sq-projection-light);--switch-thumb-gap-v: 2px;--switch-thumb-gap-h: 2px;--switch-thumb-size: calc(var(--switch-height) - 4px);--switch-thumb-border: none;--switch-thumb-shadow: none;--switch-shadow-color: var(--sq-projection-dark);display:inline-flex;align-items:center;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);cursor:pointer;box-sizing:border-box;height:var(--sq-component-size-md)}.sq-switch.sq-switch--sm{--switch-width: 40px;font-size:var(--sq-font-size-sm);height:var(--sq-component-size-sm)}.sq-switch.sq-switch--lg{height:var(--sq-component-size-lg)}.sq-switch input[type=checkbox]{opacity:0;position:absolute;width:0;height:0;margin:0}.sq-switch .sq-switch-track{border-radius:var(--sq-radius-full);background-color:var(--switch-track-bg);height:var(--switch-height);width:var(--switch-width);position:relative;box-shadow:var(--switch-track-shadow);transition:background-color var(--sq-transition-base)}.sq-switch .sq-switch-thumb{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--sq-text-color-placeholder);border-radius:var(--sq-radius-full);width:var(--switch-thumb-size);aspect-ratio:1;top:var(--switch-thumb-gap-v);left:var(--switch-thumb-gap-h);background-color:#fff;box-sizing:border-box;border:var(--switch-thumb-border);box-shadow:var(--switch-thumb-shadow);transition:left var(--sq-transition-base)}.sq-switch.is-disabled{cursor:not-allowed}.sq-switch.is-disabled .sq-switch-track{background-color:var(--switch-track-disabled-bg)}.sq-switch.is-checked{--switch-track-bg: var(--sq-color-primary);--switch-track-disabled-bg: var(--sq-color-primary-light-3);--switch-shadow-color: var(--sq-color-primary-light-4)}.sq-switch.is-checked .sq-switch-thumb{left:calc(100% - var(--switch-thumb-gap-h) - var(--switch-thumb-size))}}@layer type{.sq-switch.is-slim{--switch-height: 1em;--switch-track-shadow: none;--switch-thumb-gap-v: -4px;--switch-thumb-gap-h: 0px;--switch-thumb-size: calc(1em + 8px) ;--switch-thumb-border: 1px solid var(--sq-border-color-light);--switch-thumb-shadow: var(--sq-shadow-xs-dark) var(--sq-projection-dark)}}@layer component{.sq-tag{--tag-color: var(--sq-text-color);--tag-bg-color: var(--sq-component-bg-color);--tag-border-color: var(--sq-border-color-light);--tag-shadow-color: var(--sq-projection-dark);--tag-padding: var(--sq-padding-sm);border-radius:var(--sq-radius-sm);height:var(--sq-component-size-sm);padding:0 var(--tag-padding);background:var(--tag-bg-color);border:1px solid var(--tag-border-color);box-sizing:border-box;box-shadow:inset var(--sq-shadow-xs-dark) var(--tag-shadow-color),inset var(--sq-shadow-xs-light) var(--sq-projection-light);-webkit-user-select:none;user-select:none}.sq-tag.sq-text{color:var(--tag-color)}.sq-tag.sq-text::selection{text-shadow:none}.sq-tag.sq-tag--sm{height:var(--sq-component-size-xs)}.sq-tag.sq-tag--lg{height:var(--sq-component-size-md)}.sq-tag.is-round{border-radius:var(--sq-radius-full);padding-inline:calc(var(--sq-padding-sm) + .2em)}}@layer type{.sq-tag.is-primary,.sq-tag.is-success,.sq-tag.is-info,.sq-tag.is-warn,.sq-tag.is-error{--tag-bg-color: transparent;box-shadow:none}.sq-tag.is-primary{--tag-color: var(--sq-color-primary);--tag-border-color: var(--sq-color-primary-light-1)}.sq-tag.is-success{--tag-color: var(--sq-color-success);--tag-border-color: var(--sq-color-success-light-1)}.sq-tag.is-info{--tag-color: var(--sq-color-info);--tag-border-color: var(--sq-color-info-light-1)}.sq-tag.is-warn{--tag-color: var(--sq-color-warn);--tag-border-color: var(--sq-color-warn-light-1)}.sq-tag.is-error{--tag-color: var(--sq-color-error);--tag-border-color: var(--sq-color-error-light-1)}.sq-tag.is-solid{--tag-color: #fff;--tag-border-color: transparent}.sq-tag.is-solid.is-primary{--tag-bg-color: var(--sq-color-primary)}.sq-tag.is-solid.is-success{--tag-bg-color: var(--sq-color-success)}.sq-tag.is-solid.is-info{--tag-bg-color: var(--sq-color-info)}.sq-tag.is-solid.is-warn{--tag-bg-color: var(--sq-color-warn)}.sq-tag.is-solid.is-error{--tag-bg-color: var(--sq-color-error)}.sq-tag.is-tint{--tag-border-color: transparent}.sq-tag.is-tint.is-primary{--tag-color: var(--sq-color-primary);--tag-bg-color: var(--sq-color-primary-light-5)}.sq-tag.is-tint.is-success{--tag-color: var(--sq-color-success);--tag-bg-color: var(--sq-color-success-light-5)}.sq-tag.is-tint.is-info{--tag-color: var(--sq-color-info);--tag-bg-color: var(--sq-color-info-light-5)}.sq-tag.is-tint.is-warn{--tag-color: var(--sq-color-warn);--tag-bg-color: var(--sq-color-warn-light-5)}.sq-tag.is-tint.is-error{--tag-color: var(--sq-color-error);--tag-bg-color: var(--sq-color-error-light-5)}}@layer component{.sq-check-tag{--tag-color: var(--sq-text-color);--tag-color-hover: var(--sq-color-primary);--tag-bg-color: var(--sq-bg-color);--tag-bg-color-hover: var(--sq-bg-color-dark);--tag-bg-color-checked: var(--sq-color-primary);--tag-bg-color-checked-hover: var(--sq-color-primary-dark-1);--tag-padding: var(--sq-padding-sm);border-radius:var(--sq-radius-sm);height:var(--sq-component-size-sm);padding:0 var(--tag-padding);background:var(--tag-bg-color);box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all var(--sq-transition-base)}.sq-check-tag.sq-text{color:var(--tag-color)}.sq-check-tag.sq-text::selection{text-shadow:none}.sq-check-tag.sq-tag--sm{--tag-padding: var(--sq-padding-xs);height:var(--sq-component-size-xs)}.sq-check-tag.sq-tag--lg{height:var(--sq-component-size-md)}.sq-check-tag.is-round{border-radius:var(--sq-radius-full);padding-inline:calc(var(--sq-padding-sm) + .2em)}.sq-check-tag:hover{color:var(--tag-color-hover);background:var(--tag-bg-color-hover)}.sq-check-tag.is-checked{color:#fff;background:var(--tag-bg-color-checked);border-color:transparent}.sq-check-tag.is-checked:hover{background:var(--tag-bg-color-checked-hover)}}@layer type{.sq-check-tag.is-primary{--tag-color: var(--sq-color-primary);--tag-color-hover: var(--sq-color-primary-dark-1);--tag-bg-color: var(--sq-color-primary-light-5);--tag-bg-color-hover: var(--sq-color-primary-light-4);--tag-bg-color-checked: var(--sq-color-primary);--tag-bg-color-checked-hover: var(--sq-color-primary-dark-1)}.sq-check-tag.is-success{--tag-color: var(--sq-color-success);--tag-color-hover: var(--sq-color-success-dark-1);--tag-bg-color: var(--sq-color-success-light-5);--tag-bg-color-hover: var(--sq-color-success-light-4);--tag-bg-color-checked: var(--sq-color-success);--tag-bg-color-checked-hover: var(--sq-color-success-dark-1)}.sq-check-tag.is-info{--tag-color: var(--sq-color-info);--tag-color-hover: var(--sq-color-info-dark-1);--tag-bg-color: var(--sq-color-info-light-5);--tag-bg-color-hover: var(--sq-color-info-light-4);--tag-bg-color-checked: var(--sq-color-info);--tag-bg-color-checked-hover: var(--sq-color-info-dark-1)}.sq-check-tag.is-warn{--tag-color: var(--sq-color-warn);--tag-color-hover: var(--sq-color-warn-dark-1);--tag-bg-color: var(--sq-color-warn-light-5);--tag-bg-color-hover: var(--sq-color-warn-light-4);--tag-bg-color-checked: var(--sq-color-warn);--tag-bg-color-checked-hover: var(--sq-color-warn-dark-1)}.sq-check-tag.is-error{--tag-color: var(--sq-color-error);--tag-color-hover: var(--sq-color-error-dark-1);--tag-bg-color: var(--sq-color-error-light-5);--tag-bg-color-hover: var(--sq-color-error-light-4);--tag-bg-color-checked: var(--sq-color-error);--tag-bg-color-checked-hover: var(--sq-color-error-dark-1)}}@layer component{.sq-text{color:currentColor;display:flex;flex-grow:0;align-items:center;column-gap:.5em;font-family:var(--sq-font-family);font-size:var(--sq-font-size-md);line-height:var(--sq-line-height-base)}.sq-text::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-text.sq-text--sm{font-size:var(--sq-font-size-sm)}.sq-text.sq-text--lg{font-size:var(--sq-font-size-lg)}.sq-text.multi-line,.sq-text.single-line{display:block;overflow:hidden;text-overflow:ellipsis}.sq-text.single-line{white-space:nowrap}.sq-text.multi-line{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--row-num);line-clamp:var(--row-num)}}@layer component{.sq-timeline{--timeline-dot-size: 16px;--timeline-dot-color: var(--sq-border-color);--timeline-dot-mask: none;--timeline-content-gap: var(--sq-padding-sm);--timeline-line-type: solid;--timeline-line-color: var(--sq-border-color);container:sq-timeline / inline-size;display:flex;flex-direction:column;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family)}.sq-timeline::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-timeline.is-card .sq-timeline-content{padding:var(--sq-padding-md);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-lg);border:1px solid var(--sq-border-color-light);box-shadow:inset var(--sq-shadow-sm-dark) var(--sq-projection-dark),inset var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-timeline.is-card .sq-timeline-content .content-info{margin-block-start:var(--sq-padding-sm)}.sq-timeline-item{display:flex;position:relative;width:100%;box-sizing:border-box;overflow:hidden;padding-inline:var(--timeline-dot-size) 0}.sq-timeline-item:not(:last-child){padding-block-end:var(--sq-padding-md)}.sq-timeline-item:before{content:"";position:absolute;z-index:1;border-inline-start:2px var(--timeline-line-type);border-inline-start-color:var(--timeline-line-color);height:100%;left:calc(var(--timeline-dot-size) / 2 - 1px);top:var(--timeline-dot-size)}.sq-timeline-item.is-hollow{--timeline-dot-mask: radial-gradient( circle, transparent calc(var(--timeline-dot-size) / 2 - 4px), black calc(var(--timeline-dot-size) / 2 - 3px) )}.sq-timeline-dot{aspect-ratio:1;position:absolute;z-index:2;width:var(--timeline-dot-size);border-radius:var(--sq-radius-full);background:var(--timeline-dot-color);box-sizing:border-box;padding:2px;top:0;left:0;mask:var(--timeline-dot-mask);font-size:calc(var(--timeline-dot-size) - 4px);display:flex}.sq-timeline-dot>*{aspect-ratio:1;width:100%}.sq-timeline-content{display:flex;flex-direction:column;margin-inline:var(--timeline-content-gap) 0;width:100%;color:var(--sq-text-color-secondary);box-sizing:border-box;line-height:var(--sq-line-height-base)}.sq-timeline-content .content-title{margin-block:0;line-height:var(--sq-line-height-single);color:var(--sq-text-color);font-size:var(--sq-font-size-lg)}.sq-timeline-content .content-time{display:block;color:var(--sq-text-color-placeholder);margin-block-start:var(--sq-padding-xs)}.sq-timeline-content .content-info{margin-block-start:var(--sq-padding-xs)}@media (max-width: 768px){.sq-timeline{--timeline-dot-size: 12px}}}@layer type{.sq-timeline.align-right .sq-timeline-item{padding-inline:0 var(--timeline-dot-size)}.sq-timeline.align-right .sq-timeline-item:before{left:auto;right:calc(var(--timeline-dot-size) / 2 - 1px)}.sq-timeline.align-right .sq-timeline-item .sq-timeline-dot{left:auto;right:0}.sq-timeline.align-right .sq-timeline-item .sq-timeline-content{margin-inline:0 var(--timeline-content-gap)}.sq-timeline:not(.is-card) .sq-timeline-content .content-title,.sq-timeline:not(.is-card) .sq-timeline-content .content-time,.sq-timeline:not(.is-card) .sq-timeline-content .content-info{align-self:flex-end}.sq-timeline-item.is-primary{--timeline-dot-color: var(--sq-color-primary)}.sq-timeline-item.is-success{--timeline-dot-color: var(--sq-color-success)}.sq-timeline-item.is-info{--timeline-dot-color: var(--sq-color-info)}.sq-timeline-item.is-warn{--timeline-dot-color: var(--sq-color-warn)}.sq-timeline-item.is-error{--timeline-dot-color: var(--sq-color-error)}@container sq-timeline (min-width: 800px){.sq-timeline.align-center .sq-timeline-item{padding-inline:0}.sq-timeline.align-center .sq-timeline-item:before{left:calc(50% - 1px)}.sq-timeline.align-center .sq-timeline-item:nth-child(2n){justify-content:flex-end}.sq-timeline.align-center .sq-timeline-item .sq-timeline-dot{left:calc(50% - var(--timeline-dot-size) / 2)}.sq-timeline.align-center .sq-timeline-item .sq-timeline-content{margin:0;width:calc(50% - var(--timeline-dot-size) / 2 - var(--timeline-content-gap))}.sq-timeline:not(.is-card) .sq-timeline-item:nth-child(odd) .content-title,.sq-timeline:not(.is-card) .sq-timeline-item:nth-child(odd) .content-time,.sq-timeline:not(.is-card) .sq-timeline-item:nth-child(odd) .content-info{align-self:flex-end}}}@layer component{.sq-tooltip{padding-block:var(--sq-padding-xs)}}
1
+ @layer theme,component,type,custom;@layer theme{:root{color-scheme:light;--sq-bg-color: oklch(.98 .0034 248);--sq-bg-color-dark: oklch(from var(--sq-bg-color) .96 c h);--sq-component-bg-color: #fff;--sq-projection-dark: oklch(.96 .02 259);--sq-projection-light: #fff;--sq-text-color: oklch(.27 .03 257);--sq-text-color-secondary: oklch(from var(--sq-text-color) .45 c h);--sq-text-color-placeholder: oklch(from var(--sq-text-color) .65 c h);--sq-border-color: oklch(.94 0 253);--sq-border-color-light: oklch(from var(--sq-border-color) .96 c h);--sq-border-color-lighter: oklch(from var(--sq-border-color) .98 c h);--sq-color-primary: oklch(.75 .18 48);--sq-color-primary-light-5: oklch(from var(--sq-color-primary) l c h / .08);--sq-color-primary-light-4: oklch(from var(--sq-color-primary) l c h / .2);--sq-color-primary-light-3: oklch(from var(--sq-color-primary) l c h / .4);--sq-color-primary-light-2: oklch(from var(--sq-color-primary) l c h / .6);--sq-color-primary-light-1: oklch(from var(--sq-color-primary) l c h / .8);--sq-color-primary-dark-1: oklch(from var(--sq-color-primary) .65 c h);--sq-color-success: oklch(.75 .22 151);--sq-color-success-light-5: oklch(from var(--sq-color-success) l c h / .08);--sq-color-success-light-4: oklch(from var(--sq-color-success) l c h / .2);--sq-color-success-light-3: oklch(from var(--sq-color-success) l c h / .4);--sq-color-success-light-2: oklch(from var(--sq-color-success) l c h / .6);--sq-color-success-light-1: oklch(from var(--sq-color-success) l c h / .8);--sq-color-success-dark-1: oklch(from var(--sq-color-success) .65 c h);--sq-color-info: oklch(.75 .14 230);--sq-color-info-light-5: oklch(from var(--sq-color-info) l c h / .08);--sq-color-info-light-4: oklch(from var(--sq-color-info) l c h / .2);--sq-color-info-light-3: oklch(from var(--sq-color-info) l c h / .4);--sq-color-info-light-2: oklch(from var(--sq-color-info) l c h / .6);--sq-color-info-light-1: oklch(from var(--sq-color-info) l c h / .8);--sq-color-info-dark-1: oklch(from var(--sq-color-info) .65 c h);--sq-color-warn: oklch(.75 .14 76);--sq-color-warn-light-5: oklch(from var(--sq-color-warn) l c h / .08);--sq-color-warn-light-4: oklch(from var(--sq-color-warn) l c h / .2);--sq-color-warn-light-3: oklch(from var(--sq-color-warn) l c h / .4);--sq-color-warn-light-2: oklch(from var(--sq-color-warn) l c h / .6);--sq-color-warn-light-1: oklch(from var(--sq-color-warn) l c h / .8);--sq-color-warn-dark-1: oklch(from var(--sq-color-warn) .65 c h);--sq-color-error: oklch(.75 .25 29);--sq-color-error-light-5: oklch(from var(--sq-color-error) l c h / .08);--sq-color-error-light-4: oklch(from var(--sq-color-error) l c h / .2);--sq-color-error-light-3: oklch(from var(--sq-color-error) l c h / .4);--sq-color-error-light-2: oklch(from var(--sq-color-error) l c h / .6);--sq-color-error-light-1: oklch(from var(--sq-color-error) l c h / .8);--sq-color-error-dark-1: oklch(from var(--sq-color-error) .65 c h);--sq-font-family: Microsoft YaHei, Pingfang SC, sans-serif;--sq-font-size-sm: 12px;--sq-font-size-md: 14px;--sq-font-size-lg: 16px;--sq-radius-xs: 4px;--sq-radius-sm: 6px;--sq-radius-md: 8px;--sq-radius-lg: 12px;--sq-radius-full: calc(infinity * 1px);--sq-opacity-80: .8;--sq-opacity-20: .2;--sq-padding-xs: 8px;--sq-padding-sm: 12px;--sq-padding-md: 24px;--sq-padding-lg: 36px;--sq-padding-xl: 48px;--sq-blur-sm: 4px;--sq-blur-md: 10px;--sq-blur-lg: 50px;--sq-component-size-xs: 28px;--sq-component-size-sm: 32px;--sq-component-size-md: 36px;--sq-component-size-lg: 40px;--sq-line-height-single: 1;--sq-line-height-base: 1.6;--sq-transition-base: .3s ease;--sq-transition-linear: .3s linear;--sq-shadow-xs-dark: 2px 2px 3px;--sq-shadow-xs-light: -2px -2px 3px;--sq-shadow-sm-dark: 4px 4px 6px;--sq-shadow-sm-light: -4px -4px 6px;--sq-shadow-md-dark: 6px 6px 9px;--sq-shadow-md-light: -6px -6px 9px;--sq-shadow-lg-dark: 8px 8px 12px;--sq-shadow-lg-light: -8px -8px 12px;--sq-text-shadow: 1px 1px 1px rgb(0 0 0 / var(--sq-opacity-20))}:root.dark{color-scheme:dark}@media (max-width: 768px){:root{--sq-radius-xs: 2px;--sq-radius-sm: 4px;--sq-radius-md: 6px;--sq-radius-lg: 8px;--sq-padding-xs: 6px;--sq-padding-sm: 10px;--sq-padding-md: 16px;--sq-padding-lg: 24px;--sq-padding-xl: 32px}}}@layer theme{.sq-fade-enter-active{animation:fade var(--sq-transition-base)}.sq-fade-leave-active{animation:reverse fade var(--sq-transition-base)}.sq-slide-up-enter-active{animation:slide-up var(--sq-transition-base)}.sq-slide-up-leave-active{animation:reverse slide-up var(--sq-transition-base)}.sq-card-insert-enter-active,.sq-card-insert-leave-active{transform-origin:right}.sq-card-insert-enter-active{animation:card-insert var(--sq-transition-base)}.sq-card-insert-leave-active{animation:reverse card-insert var(--sq-transition-base)}.sq-rotate-in-left-enter-active{animation:rotate-in-left var(--sq-transition-base)}.sq-rotate-in-left-leave-active{animation:reverse rotate-in-left var(--sq-transition-base)}.sq-rotate-in-right-enter-active{animation:rotate-in-right var(--sq-transition-base)}.sq-rotate-in-right-leave-active{animation:reverse rotate-in-right var(--sq-transition-base)}.sq-zoom-top-enter-active,.sq-zoom-top-leave-active{transform-origin:top}.sq-zoom-top-enter-active{animation:zoom var(--sq-transition-base)}.sq-zoom-top-leave-active{animation:reverse zoom var(--sq-transition-base)}.sq-zoom-bottom-enter-active,.sq-zoom-bottom-leave-active{transform-origin:bottom}.sq-zoom-bottom-enter-active{animation:zoom var(--sq-transition-base)}.sq-zoom-bottom-leave-active{animation:reverse zoom var(--sq-transition-base)}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{transform:translateY(var(--sq-padding-lg));opacity:0}to{transform:none;opacity:1}}@keyframes card-insert{0%{transform:translateY(-50%) rotate(30deg);opacity:0}60%{transform:translateY(10%);opacity:1}to{transform:none;opacity:1}}@keyframes rotate-in-left{0%{transform:translate(200%) rotate(180deg);opacity:0}to{transform:none;opacity:1}}@keyframes rotate-in-right{0%{transform:translate(-200%) rotate(180deg);opacity:0}to{transform:none;opacity:1}}@keyframes zoom{0%{transform:scaleY(0);opacity:0}to{transform:none;opacity:1}}@keyframes skeleton{0%{background-position:-60% 0}to{background-position:160% 0}}}@layer component{@keyframes loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dashoffset:70}50%{stroke-dashoffset:125}to{stroke-dashoffset:70}}.sq-icon{display:inline-flex}.sq-icon>svg{width:1em;height:1em;fill:currentColor}.sq-icon.is-loading>svg{transform-origin:center;animation:loading 1s linear infinite}.sq-icon[data-icon=loading] circle{fill:none;stroke:currentColor;stroke-width:4;stroke-dasharray:130;stroke-linecap:round;animation:dash 2s ease-in-out infinite}}@layer component{.sq-alert{--alert-color: var(--sq-color-primary);--alert-bg-color: var(--sq-color-primary-light-5);--alert-selection-color: var(--sq-color-primary);border-radius:var(--sq-radius-md);padding:var(--sq-padding-sm);background:var(--alert-bg-color)}.sq-alert.sq-text{color:var(--alert-color)}.sq-alert.sq-text::selection{background-color:var(--alert-selection-color)}}@layer type{.sq-alert.is-success{--alert-color: var(--sq-color-success);--alert-bg-color: var(--sq-color-success-light-5);--alert-selection-color: var(--sq-color-success)}.sq-alert.is-info{--alert-color: var(--sq-color-info);--alert-bg-color: var(--sq-color-info-light-5);--alert-selection-color: var(--sq-color-info)}.sq-alert.is-warn{--alert-color: var(--sq-color-warn);--alert-bg-color: var(--sq-color-warn-light-5);--alert-selection-color: var(--sq-color-warn)}.sq-alert.is-error{--alert-color: var(--sq-color-error);--alert-bg-color: var(--sq-color-error-light-5);--alert-selection-color: var(--sq-color-error)}}@layer component{.sq-article{line-height:var(--sq-line-height-base);display:flex;flex-direction:column;color:currentColor;font-size:var(--sq-font-size-md);row-gap:var(--sq-padding-sm);font-family:var(--sq-font-family)}.sq-article::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-article p,.sq-article h1,.sq-article h2,.sq-article h3,.sq-article h4,.sq-article h5,.sq-article h6{margin:0}.sq-article p:has(>img),.sq-article p:has(>.sq-image){display:flex}.sq-article h1,.sq-article h2,.sq-article h3,.sq-article h4,.sq-article h5,.sq-article h6{color:var(--sq-text-color)}.sq-article ul,.sq-article ol{margin:0;padding:0;list-style-type:none}.sq-article ul>li,.sq-article ol>li{position:relative;padding-inline-start:var(--sq-padding-md)}.sq-article ul>li:before,.sq-article ol>li:before{position:absolute;left:0}.sq-article ul>li:before{content:"";background-color:currentColor;aspect-ratio:1;width:4px;border-radius:var(--sq-radius-full);top:calc(.8em - 2px)}.sq-article ol{counter-reset:section}.sq-article ol>li{counter-increment:section}.sq-article ol>li:before{content:counter(section) ".";top:0}.sq-article a{text-decoration:none;color:var(--sq-color-primary);border-block-end:1px solid transparent;word-break:break-all}.sq-article a:hover{border-block-end-color:var(--sq-color-primary)}.sq-article a .sq-icon{vertical-align:middle;margin-inline-end:.2em;transform:translateY(-1px)}.sq-article .sq-checkbox{height:auto}.sq-article .sq-image{max-width:100%}.sq-article>img{max-width:100%;border-radius:var(--sq-radius-md)}.sq-article code{word-break:break-all;border-radius:var(--sq-radius-sm);background-color:var(--sq-color-primary-light-5);color:var(--sq-color-primary);padding:.1em .4em;font-family:var(--sq-font-family)}.sq-article blockquote{margin:0;padding:var(--sq-padding-sm);border-radius:var(--sq-radius-md);border-inline-start:4px solid var(--sq-color-primary);background-color:var(--sq-color-primary-light-5)}.sq-article-table{border:1px solid var(--sq-border-color);border-radius:var(--sq-radius-md);overflow:hidden}.sq-article-table table{border-collapse:collapse;width:100%}.sq-article-table table thead{color:var(--sq-text-color);background-color:var(--sq-bg-color)}.sq-article-table table tbody{color:var(--sq-text-color-secondary)}.sq-article-table table th,.sq-article-table table td{padding:var(--sq-padding-xs) var(--sq-padding-sm)}.sq-article-table table th{position:relative}.sq-article-table table th:not(:last-child):after{content:"";position:absolute;z-index:1;right:0;top:calc(50% - .5em);border:1px solid var(--sq-border-color);height:1em}.sq-article-table table tr:nth-child(2n){background-color:var(--sq-bg-color)}ul>li.sq-article-task-list-item{display:flex;align-items:center;column-gap:var(--sq-padding-xs);padding-inline-start:0}ul>li.sq-article-task-list-item:before{content:none}}@layer component{.sq-avatar{--avatar-size: var(--sq-component-size-md);--avatar-bg-color: var(--sq-color-primary);width:var(--avatar-size);aspect-ratio:1;border-radius:var(--sq-radius-md);font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);box-sizing:border-box;border:1px solid var(--sq-border-color-light);overflow:hidden;-webkit-user-select:none;user-select:none;box-shadow:var(--sq-shadow-sm-dark) var(--sq-projection-dark),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-avatar.sq-avatar--sm{--avatar-size: var(--sq-component-size-sm);font-size:var(--sq-font-size-sm)}.sq-avatar.sq-avatar--lg{--avatar-size: var(--sq-component-size-lg);font-size:var(--sq-font-size-lg)}.sq-avatar.is-round{border-radius:var(--sq-radius-full)}.sq-avatar:has(>span){border:none;background:var(--avatar-bg-color)}.sq-avatar img{width:100%;height:100%;object-fit:cover}.sq-avatar span{width:100%;height:100%;color:#fff;display:flex;align-items:center;justify-content:center;line-height:var(--sq-line-height-single)}}@layer component{.sq-backtop{--backtop-margin-right: var(--sq-padding-md);--backtop-margin-bottom: var(--sq-padding-md);--backtop-size: 48px;position:fixed;width:var(--backtop-size);height:var(--backtop-size);inset-block-end:var(--backtop-margin-right);inset-inline-end:var(--backtop-margin-bottom);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-full);cursor:pointer;font-size:var(--sq-font-size-md);color:var(--sq-text-color-secondary);z-index:1999;box-shadow:var(--sq-shadow-md-dark) var(--sq-projection-dark),var(--sq-shadow-md-light) var(--sq-projection-light);transition:color var(--sq-transition-base)}.sq-backtop:not(:has(.sq-progress)){border:1px solid var(--sq-border-color-light)}.sq-backtop:hover{color:var(--sq-color-primary)}.sq-backtop-wrap{position:relative;display:flex;align-items:center;justify-content:center;height:100%}.sq-backtop-wrap .sq-progress{width:100%;position:absolute}.sq-backtop-wrap .sq-icon{position:absolute;font-size:1.5em}}@layer component{.sq-blur{border-radius:var(--sq-radius-sm);filter:blur(var(--sq-blur-sm));-webkit-user-select:none;user-select:none;transition:filter var(--sq-transition-base)}.sq-blur.sq-text{display:inline-flex}.sq-blur:hover{filter:none}}@layer component{.sq-button{--button-color: var(--sq-text-color);--button-color-hover: var(--sq-text-color-secondary);--button-color-disabled: var(--sq-text-color-placeholder);--button-bg-color: var(--sq-component-bg-color);--button-bg-color-hover: var(--sq-component-bg-color);--button-bg-color-disabled: var(--sq-bg-color);--button-border-color: var(--sq-border-color-light);--button-shadow-color: var(--sq-projection-dark);--button-padding: var(--sq-padding-sm);cursor:pointer;height:var(--sq-component-size-md);padding:0 var(--button-padding);color:var(--button-color);background-color:var(--button-bg-color);border:1px solid;border-color:var(--button-border-color);border-radius:var(--sq-radius-md);-webkit-user-select:none;user-select:none;box-sizing:border-box;transition:all var(--sq-transition-base)}.sq-button.sq-button--sm{height:var(--sq-component-size-sm)}.sq-button.sq-button--lg{height:var(--sq-component-size-lg)}.sq-button:not(.is-text){box-shadow:var(--sq-shadow-sm-dark) var(--button-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-button.is-round{border-radius:var(--sq-radius-full);padding-inline:calc(var(--button-padding) + .2em)}.sq-button:disabled{cursor:not-allowed;color:var(--button-color-disabled);background-color:var(--button-bg-color-disabled)}.sq-button:hover:not(:disabled){color:var(--button-color-hover);background-color:var(--button-bg-color-hover)}.sq-button:active:not(:disabled){box-shadow:var(--sq-shadow-xs-dark) var(--button-shadow-color),var(--sq-shadow-xs-light) var(--sq-projection-light)}.sq-button .sq-text{line-height:var(--sq-line-height-single);justify-content:center}.sq-button .sq-text::selection{text-shadow:none}}@layer type{.sq-button.is-primary{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-primary);--button-bg-color-hover: var(--sq-color-primary-dark-1);--button-bg-color-disabled: var(--sq-color-primary-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-primary-light-4)}.sq-button.is-success{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-success);--button-bg-color-hover: var(--sq-color-success-dark-1);--button-bg-color-disabled: var(--sq-color-success-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-success-light-4)}.sq-button.is-info{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-info);--button-bg-color-hover: var(--sq-color-info-dark-1);--button-bg-color-disabled: var(--sq-color-info-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-info-light-4)}.sq-button.is-warn{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-warn);--button-bg-color-hover: var(--sq-color-warn-dark-1);--button-bg-color-disabled: var(--sq-color-warn-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-warn-light-4)}.sq-button.is-error{--button-color: #fff;--button-color-hover: #fff;--button-color-disabled: #fff;--button-bg-color: var(--sq-color-error);--button-bg-color-hover: var(--sq-color-error-dark-1);--button-bg-color-disabled: var(--sq-color-error-light-3);--button-border-color: transparent;--button-shadow-color: var(--sq-color-error-light-4)}.sq-button.is-text{--button-color: var(--sq-text-color);--button-color-hover: var(--sq-text-color-secondary);--button-color-disabled: var(--sq-text-color-placeholder);--button-bg-color: transparent;--button-bg-color-hover: var(--sq-bg-color);--button-bg-color-disabled: transparent;--button-border-color: transparent}.sq-button.is-text:active:not(:disabled){box-shadow:none}.sq-button.is-text.is-primary{--button-color: var(--sq-color-primary);--button-color-hover: var(--sq-color-primary-dark-1);--button-color-disabled: var(--sq-color-primary-light-3);--button-bg-color-hover: var(--sq-color-primary-light-5)}.sq-button.is-text.is-success{--button-color: var(--sq-color-success);--button-color-hover: var(--sq-color-success-dark-1);--button-color-disabled: var(--sq-color-success-light-3);--button-bg-color-hover: var(--sq-color-success-light-5)}.sq-button.is-text.is-info{--button-color: var(--sq-color-info);--button-color-hover: var(--sq-color-info-dark-1);--button-color-disabled: var(--sq-color-info-light-3);--button-bg-color-hover: var(--sq-color-info-light-5)}.sq-button.is-text.is-warn{--button-color: var(--sq-color-warn);--button-color-hover: var(--sq-color-warn-dark-1);--button-color-disabled: var(--sq-color-warn-light-3);--button-bg-color-hover: var(--sq-color-warn-light-5)}.sq-button.is-text.is-error{--button-color: var(--sq-color-error);--button-color-hover: var(--sq-color-error-dark-1);--button-color-disabled: var(--sq-color-error-light-3);--button-bg-color-hover: var(--sq-color-error-light-5)}.sq-button.is-text.has-bg{--button-bg-color: var(--sq-bg-color);--button-bg-color-hover: var(--sq-bg-color-dark);--button-bg-color-disabled: var(--sq-bg-color)}.sq-button.is-text.has-bg.is-primary{--button-bg-color: var(--sq-color-primary-light-5);--button-bg-color-hover: var(--sq-color-primary-light-4);--button-bg-color-disabled: var(--sq-color-primary-light-5)}.sq-button.is-text.has-bg.is-success{--button-bg-color: var(--sq-color-success-light-5);--button-bg-color-hover: var(--sq-color-success-light-4);--button-bg-color-disabled: var(--sq-color-success-light-5)}.sq-button.is-text.has-bg.is-info{--button-bg-color: var(--sq-color-info-light-5);--button-bg-color-hover: var(--sq-color-info-light-4);--button-bg-color-disabled: var(--sq-color-info-light-5)}.sq-button.is-text.has-bg.is-warn{--button-bg-color: var(--sq-color-warn-light-5);--button-bg-color-hover: var(--sq-color-warn-light-4);--button-bg-color-disabled: var(--sq-color-warn-light-5)}.sq-button.is-text.has-bg.is-error{--button-bg-color: var(--sq-color-error-light-5);--button-bg-color-hover: var(--sq-color-error-light-4);--button-bg-color-disabled: var(--sq-color-error-light-5)}}@layer component{.sq-button-group{--button-group-shadow-color: var(--sq-projection-dark);border-radius:var(--sq-radius-md);box-shadow:var(--sq-shadow-sm-dark) var(--button-group-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-button-group:has(>.is-round){border-radius:var(--sq-radius-full)}.sq-button-group .sq-button{box-shadow:none}.sq-button-group .sq-button:active{box-shadow:none}.sq-button-group .sq-button:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;border-inline-start:none}.sq-button-group .sq-button:not(:first-child).is-round{padding-inline-start:var(--button-padding)}.sq-button-group .sq-button:not(:last-child){border-start-end-radius:0;border-end-end-radius:0;border-inline-end-color:var(--sq-border-color-light)}.sq-button-group .sq-button:not(:last-child).is-round{padding-inline-end:var(--button-padding)}}@layer type{.sq-button-group:has(>.is-primary){--button-group-shadow-color: var(--sq-color-primary-light-4)}.sq-button-group:has(>.is-success){--button-group-shadow-color: var(--sq-color-success-light-4)}.sq-button-group:has(>.is-info){--button-group-shadow-color: var(--sq-color-info-light-4)}.sq-button-group:has(>.is-warn){--button-group-shadow-color: var(--sq-color-warn-light-4)}.sq-button-group:has(>.is-error){--button-group-shadow-color: var(--sq-color-error-light-4)}}@layer component{.sq-card{padding:var(--sq-padding-md);border-radius:var(--sq-radius-lg);border:1px solid var(--sq-border-color-light);background-color:var(--sq-component-bg-color);color:var(--sq-text-color-secondary);font-size:var(--sq-font-size-md);line-height:var(--sq-line-height-base);font-family:var(--sq-font-family);box-shadow:var(--sq-shadow-lg-dark) var(--sq-projection-dark),var(--sq-shadow-lg-light) var(--sq-projection-light)}.sq-card::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-card .sq-card-header{margin-block-end:var(--sq-padding-md);line-height:var(--sq-line-height-single);display:flex;align-items:center;justify-content:space-between}.sq-card .sq-card-header h2{color:var(--sq-text-color);font-weight:700;font-size:var(--sq-font-size-lg);margin:0;padding:0}.sq-card .sq-card-header h2.has-decorative{position:relative;padding-inline-start:var(--sq-padding-sm)}.sq-card .sq-card-header h2.has-decorative:before{content:"";position:absolute;height:1em;width:4px;top:50%;left:0;border-radius:var(--sq-radius-full);background-color:var(--sq-color-primary);transform:translateY(-50%)}.sq-card .sq-card-footer{display:flex;align-items:center;margin-block-start:var(--sq-padding-md)}}@layer component{.sq-selection{--selection-color: var(--sq-text-color);--selection-color-hover: var(--sq-text-color);--selection-color-disabled: var(--sq-text-color-placeholder);--selection-color-checked: var(--sq-text-color);--selection-bg-color: var(--sq-component-bg-color);--selection-border-color: var(--sq-border-color-light);--selection-inner-color: #fff;--selection-shadow-color: var(--sq-projection-dark);display:inline-flex;align-items:center;column-gap:var(--sq-padding-xs);font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);color:var(--selection-color);cursor:pointer;box-sizing:border-box;border-radius:var(--sq-radius-sm);height:var(--sq-component-size-md);transition:color var(--sq-transition-base)}.sq-selection.sq-selection--sm{font-size:var(--sq-font-size-sm);height:var(--sq-component-size-sm)}.sq-selection.sq-selection--lg{height:var(--sq-component-size-lg)}.sq-selection input[type=radio],.sq-selection input[type=checkbox]{opacity:0;position:absolute;width:0;height:0;margin:0}.sq-selection .sq-selection-label{-webkit-user-select:none;user-select:none;line-height:var(--sq-line-height-single);transition:color var(--sq-transition-base)}.sq-selection.is-checked{--selection-bg-color: var(--sq-color-primary);--selection-border-color: var(--sq-color-primary);--selection-shadow-color: var(--sq-color-primary-light-4);color:var(--selection-color-checked)}.sq-selection:hover{--selection-border-color: var(--sq-color-primary);color:var(--selection-color-hover)}.sq-selection.is-disabled{--selection-border-color: var(--sq-border-color-light);--selection-bg-color: var(--sq-bg-color);--selection-inner-color: var(--sq-text-color-placeholder);--selection-shadow-color: var(--sq-projection-dark);color:var(--selection-color-disabled);cursor:not-allowed}}@layer type{.sq-selection.is-outline,.sq-selection.is-solid{--selection-color-hover: var(--sq-color-primary);border:1px solid var(--selection-border-color);padding-inline:var(--sq-padding-sm);box-shadow:var(--sq-shadow-sm-dark) var(--selection-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}.sq-selection.is-outline{--selection-color-checked: var(--sq-color-primary)}.sq-selection.is-solid{--selection-color-checked: #fff;background-color:var(--selection-bg-color)}.sq-selection.is-solid.is-checked{--selection-color: #fff;--selection-color-hover: #fff;--selection-color-disabled: #fff;--selection-border-color: transparent}.sq-selection.is-solid.is-checked:hover{--selection-bg-color: var(--sq-color-primary-dark-1)}.sq-selection.is-solid.is-checked.is-disabled{--selection-bg-color: var(--sq-color-primary-light-3);--selection-shadow-color: var(--sq-color-primary-light-4)}}@layer component{.sq-checkbox{--checkbox-indeterminate-color: var(--sq-color-primary)}.sq-checkbox.is-disabled{--checkbox-indeterminate-color: var(--sq-text-color-placeholder)}.sq-checkbox-box{display:flex;aspect-ratio:1;width:1em;align-items:center;justify-content:center;border:1px solid var(--selection-border-color);border-radius:var(--sq-radius-xs);background-color:var(--selection-bg-color);position:relative;box-shadow:var(--sq-shadow-xs-dark) var(--selection-shadow-color),var(--sq-shadow-xs-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}.sq-checkbox-inner{aspect-ratio:1;position:absolute;color:var(--selection-inner-color);width:1em;transform:scale(.9)}}@layer type{.sq-checkbox.is-outline .sq-checkbox-box{box-shadow:none}.sq-checkbox-box.is-indeterminate:before{content:"";aspect-ratio:1;position:absolute;display:block;width:calc(1em - 6px);background-color:var(--checkbox-indeterminate-color)}}@layer component{.sq-selection-group{--selection-group-shadow-color: var(--sq-color-primary-light-4);display:flex;align-items:center;border-radius:var(--sq-radius-md)}.sq-selection-group:has(>.is-solid){box-shadow:var(--sq-shadow-sm-dark) var(--selection-group-shadow-color),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-selection-group:not(:has(>.is-solid)){column-gap:var(--sq-padding-md)}.sq-selection-group:has(>:not(.is-checked)){--selection-group-shadow-color: var(--sq-projection-dark)}}@layer type{.sq-selection-group .is-solid{box-shadow:none}.sq-selection-group .is-solid:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;border-inline-start-color:var(--sq-border-color-light)}.sq-selection-group .is-solid:not(:last-child){border-start-end-radius:0;border-end-end-radius:0;border-inline-end:none}.sq-selection-group .is-solid:hover:not(.is-checked){border-inline-start-color:var(--sq-color-primary)}.sq-selection-group .is-solid:hover:not(.is-checked)+.sq-selection{border-inline-start-color:var(--sq-color-primary)}}@layer component{.sq-divider{--divider-width: 1px}.sq-divider:not(.is-thin){--divider-width: 4px}.sq-divider.sq-divider--vertical{height:1em;border-inline-start:var(--divider-width) var(--divider-line-type) var(--sq-border-color)}.sq-divider.sq-divider--horizontal{width:100%}.sq-divider.sq-divider--horizontal:has(>.sq-text){display:flex;color:var(--sq-text-color);align-items:center;column-gap:var(--sq-padding-sm)}.sq-divider.sq-divider--horizontal:has(>.sq-text):before,.sq-divider.sq-divider--horizontal:has(>.sq-text):after{content:"";flex:1;border-block-start:var(--divider-width) var(--divider-line-type) var(--sq-border-color)}.sq-divider.sq-divider--horizontal:has(>.sq-text).text-left:before{width:var(--sq-padding-lg);flex:none}.sq-divider.sq-divider--horizontal:has(>.sq-text).text-right:after{width:var(--sq-padding-lg);flex:none}.sq-divider.sq-divider--horizontal:has(>.sq-text) .sq-text{flex-shrink:0;max-width:60%}.sq-divider.sq-divider--horizontal:not(:has(>.sq-text)){border-block-start:var(--divider-width) var(--divider-line-type) var(--sq-border-color)}}@layer component{.sq-form{--form-label-width: auto;--form-label-height: var(--sq-component-size-md);display:flex;flex-direction:column;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);color:var(--sq-text-color)}.sq-form.sq-form--sm{--form-label-height: var(--sq-component-size-sm);font-size:var(--sq-font-size-sm)}.sq-form.sq-form--lg{--form-label-height: var(--sq-component-size-lg)}.sq-form.required-default .is-required:before{content:"*";color:var(--sq-color-error)}.sq-form.required-optional .sq-form-item-label:not(.is-required):not(:empty):after{content:"(可选项)";color:var(--sq-text-color-placeholder)}.sq-form.is-vertical .sq-form-item{flex-direction:column;row-gap:var(--sq-padding-xs)}.sq-form.is-vertical .sq-form-item .sq-form-item-label{min-height:0;line-height:var(--sq-line-height-base)}.sq-form-item{display:flex;align-items:flex-start;column-gap:var(--sq-padding-sm);padding-block-end:calc(var(--sq-font-size-sm) * 2)}.sq-form-item::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-form-item-label{display:inline-flex;align-items:center;column-gap:.2em;flex-shrink:0;min-height:var(--form-label-height);width:var(--form-label-width)}.sq-form-item-content{position:relative;width:100%}.sq-form-item-content .sq-icon[data-icon=check-filled]{color:var(--sq-color-success)}.sq-form-item-content .sq-icon[data-icon=warning-filled]{color:var(--sq-color-warn)}.sq-form-item-content .sq-icon[data-icon=close-filled]{color:var(--sq-color-error)}.sq-form-item-check{position:absolute;top:100%;left:0;line-height:var(--sq-line-height-base);color:var(--sq-color-error);font-size:var(--sq-font-size-sm)}}@layer component{.sq-image{--image-placeholder-height: 180px;display:inline-block;border-radius:var(--sq-radius-md);overflow:hidden;position:relative;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family)}.sq-image:hover>.sq-image-control{opacity:1}:scope::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-image-mask{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;background-color:var(--sq-bg-color)}.sq-image-mask:after{content:"";width:100%;height:100%;background-image:linear-gradient(to right,transparent,var(--sq-bg-color-dark) 60%,transparent);background-repeat:no-repeat;background-size:40%;animation:skeleton 2s ease infinite}.sq-image-picture{position:relative;z-index:1;display:block;width:100%;height:100%}.sq-image-picture img{display:block;width:100%;height:100%}.sq-image-control{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;z-index:2;font-size:var(--sq-font-size-lg);color:var(--sq-text-color);background-color:oklch(from var(--sq-bg-color) .96 c h / .6);-webkit-backdrop-filter:blur(var(--sq-blur-md));backdrop-filter:blur(var(--sq-blur-md));transition:opacity var(--sq-transition-base)}.sq-image-control .sq-icon{cursor:pointer}.sq-image-error{width:100%;height:100%;display:flex;justify-content:center;align-items:center;line-height:var(--sq-line-height-single);background-color:var(--sq-bg-color);color:var(--sq-text-color-placeholder)}}@layer component{.sq-image-viewer-mask{--image-viewer-component-size: 48px;display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;font-size:var(--sq-font-size-md);color:var(--sq-text-color);overflow:hidden;background-color:oklch(from var(--sq-bg-color) .96 c h / .6);-webkit-backdrop-filter:blur(var(--sq-blur-md));backdrop-filter:blur(var(--sq-blur-md));touch-action:none;-webkit-user-select:none;user-select:none}.sq-image-viewer-mask img{transition:transform var(--sq-transition-base);touch-action:none}.sq-image-viewer-mask .sq-button .sq-icon{font-size:1.5em}.sq-button.sq-image-viewer-close{position:absolute;inset-block-start:var(--sq-padding-md);inset-inline-end:var(--sq-padding-md);height:var(--image-viewer-component-size);aspect-ratio:1;padding-inline:0}.sq-image-viewer-toolbar{display:flex;align-items:center;position:absolute;inset-block-end:var(--sq-padding-md);height:var(--image-viewer-component-size);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-full);padding-inline:var(--sq-padding-md);column-gap:var(--sq-padding-md);border:1px solid var(--sq-border-color-light);box-shadow:var(--sq-shadow-sm-dark) var(--sq-projection-dark),var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-image-viewer-toolbar .sq-button.is-text{padding-inline:0}@media (max-width: 768px){.sq-image-viewer-mask{--image-viewer-component-size: 40px}.sq-image-viewer-toolbar{column-gap:var(--sq-padding-sm)}.sq-image-viewer-toolbar .sq-button .sq-icon{font-size:var(--sq-font-size-lg)}}}@layer type{.sq-image-viewer-toolbar>.sq-button{--button-bg-color-hover: transparent}}@layer component{.sq-input{--input-bg-color: var(--sq-component-bg-color);--input-bg-color-disabled: var(--sq-bg-color);--input-border-color: var(--sq-border-color-light);--input-border-color-active: var(--sq-color-primary);--input-border-color-disabled: var(--sq-border-color-light);--input-shadow-color: var(--sq-projection-dark);--input-selection-color: var(--sq-color-primary);padding:0;display:flex;align-items:center;font-size:var(--sq-font-size-md);background-color:var(--input-bg-color);border:1px solid;border-color:var(--input-border-color);border-radius:var(--sq-radius-md);box-sizing:border-box;cursor:text;overflow:hidden;box-shadow:inset var(--sq-shadow-xs-dark) var(--input-shadow-color),inset var(--sq-shadow-xs-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}.sq-input.sq-input--sm{font-size:var(--sq-font-size-sm)}.sq-input:has(>input){width:100%;height:var(--sq-component-size-md)}.sq-input:has(>input).sq-input--sm{height:var(--sq-component-size-sm)}.sq-input:has(>input).sq-input--lg{height:var(--sq-component-size-lg)}.sq-input:has(>input).is-round{padding-inline:.2em;border-radius:var(--sq-radius-full)}.sq-input:has(>textarea).is-round{padding-inline:.2em;border-radius:calc(var(--sq-component-size-md) / 2)}.sq-input:has(>textarea).is-round.sq-input--sm{border-radius:calc(var(--sq-component-size-sm) / 2)}.sq-input:has(>textarea).is-round.sq-input--lg{border-radius:calc(var(--sq-component-size-lg) / 2)}.sq-input::selection{background-color:var(--input-selection-color);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-input .sq-input-prefix,.sq-input .sq-input-suffix{display:flex;align-items:center;-webkit-user-select:none;user-select:none}.sq-input .sq-input-prefix{margin-inline-start:var(--sq-padding-sm);color:var(--sq-text-color-placeholder)}.sq-input .sq-input-inner{height:100%;caret-color:var(--input-selection-color);color:var(--sq-text-color);font-size:inherit;background:transparent;border:none;outline:none;line-height:var(--sq-line-height-base);box-sizing:border-box;font-family:var(--sq-font-family);transition:color var(--sq-transition-base)}.sq-input .sq-input-inner:read-only{color:var(--sq-text-color-placeholder)}.sq-input input.sq-input-inner{padding:0 var(--sq-padding-sm);width:0;flex:1}.sq-input textarea.sq-input-inner{padding:var(--sq-padding-xs) var(--sq-padding-sm);width:100%}.sq-input .sq-input-suffix{column-gap:var(--sq-padding-xs);margin-inline-end:var(--sq-padding-sm);color:var(--sq-text-color-placeholder)}.sq-input .sq-input-suffix-pwd,.sq-input .sq-input-suffix-clear{cursor:pointer}.sq-input.is-disabled{cursor:not-allowed;border-color:var(--input-border-color-disabled);background-color:var(--input-bg-color-disabled)}.sq-input.is-disabled .sq-input-inner{cursor:not-allowed;color:var(--sq-text-color-placeholder)}.sq-input:active:not(.is-disabled),.sq-input:focus-within:not(.is-disabled){--input-border-color: var(--input-border-color-active);box-shadow:none}}@layer type{.sq-input.is-warn{--input-border-color: var(--sq-color-warn);--input-border-color-active: var(--sq-color-warn);--input-border-color-disabled: var(--sq-color-warn-light-3);--input-shadow-color: var(--sq-color-warn-light-4);--input-selection-color: var(--sq-color-warn)}.sq-input.is-error{--input-border-color: var(--sq-color-error);--input-border-color-active: var(--sq-color-error);--input-border-color-disabled: var(--sq-color-error-light-3);--input-shadow-color: var(--sq-color-error-light-4);--input-selection-color: var(--sq-color-error)}}@layer component{.sq-message-wrap{width:100%;position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center}.sq-message{max-width:90vw;background-color:var(--sq-component-bg-color);color:var(--sq-text-color);box-shadow:var(--sq-shadow-md-dark) var(--sq-projection-dark),var(--sq-shadow-md-light) var(--sq-projection-light);position:absolute;border-radius:var(--sq-radius-md);border:1px solid var(--sq-border-color-light);display:flex;flex-direction:column;overflow:hidden;transition:top var(--sq-transition-base);font-size:var(--sq-font-size-md);line-height:var(--sq-line-height-single)}.sq-message-main{padding:var(--sq-padding-sm);display:flex;column-gap:var(--sq-padding-sm);align-items:center}.sq-message-icon{font-size:var(--sq-font-size-lg);color:var(--message-icon-color)}}@layer type{.sq-message.is-primary{--message-icon-color: var(--sq-color-primary)}.sq-message.is-success{--message-icon-color: var(--sq-color-success)}.sq-message.is-info{--message-icon-color: var(--sq-color-info)}.sq-message.is-warn{--message-icon-color: var(--sq-color-warn)}.sq-message.is-error{--message-icon-color: var(--sq-color-error)}}@layer component{.sq-pagination,.sq-pagination-pager{display:flex;align-items:center;column-gap:var(--sq-padding-sm)}}@layer component{.sq-popover{position:absolute;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-md);border:1px solid var(--sq-border-color-light);padding:var(--sq-padding-sm);line-height:var(--sq-line-height-base);color:var(--sq-text-color);box-shadow:var(--sq-shadow-sm-dark) var(--sq-projection-dark),var(--sq-shadow-sm-light) var(--sq-projection-light)}}@layer component{.sq-progress{display:flex;align-items:center;justify-content:center;height:var(--progress-stroke);background-color:var(--sq-border-color);border-radius:var(--sq-radius-full);font-family:var(--sq-font-family);position:relative}.sq-progress:after{content:"";position:absolute;height:100%;width:var(--progress-value);border-radius:var(--sq-radius-full);top:0;left:0;background:var(--progress-color);z-index:1;transition:width var(--sq-transition-linear)}.sq-progress.is-circle{border-radius:0;aspect-ratio:1;height:auto;background-color:transparent}.sq-progress.is-circle:after{content:none}.sq-progress.is-circle circle{r:var(--progress-circle-r);stroke-width:var(--progress-circle-stroke);fill:transparent}.sq-progress-track{stroke:var(--sq-border-color)}.sq-progress-path{stroke-linecap:round;stroke:var(--progress-color);stroke-dasharray:var(--progress-value),var(--progress-circle-l);transform:rotate(-90deg);transform-origin:center;transition:stroke-dasharray var(--sq-transition-linear),stroke var(--sq-transition-base),opacity var(--sq-transition-linear);opacity:var(--progress-circle-opaciry, 1)}.sq-progress-label{position:absolute;font-size:var(--sq-font-size-lg);color:var(--sq-text-color-secondary);line-height:var(--sq-line-height-base);-webkit-user-select:none;user-select:none}}@layer type{.sq-progress.is-primary{--progress-color: var(--sq-color-primary)}.sq-progress.is-success{--progress-color: var(--sq-color-success)}.sq-progress.is-info{--progress-color: var(--sq-color-info)}.sq-progress.is-warn{--progress-color: var(--sq-color-warn)}.sq-progress.is-error{--progress-color: var(--sq-color-error)}}@layer component{.sq-radio.is-checked .sq-radio-box:after{content:"";aspect-ratio:1;position:absolute;border-radius:var(--sq-radius-full);background-color:var(--selection-inner-color);width:6px}.sq-radio .sq-radio-box{display:flex;aspect-ratio:1;width:1em;align-items:center;justify-content:center;border:1px solid var(--selection-border-color);border-radius:var(--sq-radius-full);background-color:var(--selection-bg-color);position:relative;box-shadow:var(--sq-shadow-xs-dark) var(--selection-shadow-color),var(--sq-shadow-xs-light) var(--sq-projection-light);transition:all var(--sq-transition-base)}}@layer type{.sq-radio.is-outline .sq-radio-box{box-shadow:none}}@layer component{.sq-switch{--switch-width: 44px;--switch-height: calc(1em + 8px) ;--switch-track-bg: var(--sq-border-color);--switch-track-disabled-bg: var(--sq-border-color-light);--switch-track-shadow: var(--sq-shadow-xs-dark) var(--switch-shadow-color), var(--sq-shadow-xs-light) var(--sq-projection-light);--switch-thumb-gap-v: 2px;--switch-thumb-gap-h: 2px;--switch-thumb-size: calc(var(--switch-height) - 4px);--switch-thumb-border: none;--switch-thumb-shadow: none;--switch-shadow-color: var(--sq-projection-dark);display:inline-flex;align-items:center;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family);cursor:pointer;box-sizing:border-box;height:var(--sq-component-size-md)}.sq-switch.sq-switch--sm{--switch-width: 40px;font-size:var(--sq-font-size-sm);height:var(--sq-component-size-sm)}.sq-switch.sq-switch--lg{height:var(--sq-component-size-lg)}.sq-switch input[type=checkbox]{opacity:0;position:absolute;width:0;height:0;margin:0}.sq-switch .sq-switch-track{border-radius:var(--sq-radius-full);background-color:var(--switch-track-bg);height:var(--switch-height);width:var(--switch-width);position:relative;box-shadow:var(--switch-track-shadow);transition:background-color var(--sq-transition-base)}.sq-switch .sq-switch-thumb{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--sq-text-color-placeholder);border-radius:var(--sq-radius-full);width:var(--switch-thumb-size);aspect-ratio:1;top:var(--switch-thumb-gap-v);left:var(--switch-thumb-gap-h);background-color:#fff;box-sizing:border-box;border:var(--switch-thumb-border);box-shadow:var(--switch-thumb-shadow);transition:left var(--sq-transition-base)}.sq-switch.is-disabled{cursor:not-allowed}.sq-switch.is-disabled .sq-switch-track{background-color:var(--switch-track-disabled-bg)}.sq-switch.is-checked{--switch-track-bg: var(--sq-color-primary);--switch-track-disabled-bg: var(--sq-color-primary-light-3);--switch-shadow-color: var(--sq-color-primary-light-4)}.sq-switch.is-checked .sq-switch-thumb{left:calc(100% - var(--switch-thumb-gap-h) - var(--switch-thumb-size))}}@layer type{.sq-switch.is-slim{--switch-height: 1em;--switch-track-shadow: none;--switch-thumb-gap-v: -4px;--switch-thumb-gap-h: 0px;--switch-thumb-size: calc(1em + 8px) ;--switch-thumb-border: 1px solid var(--sq-border-color-light);--switch-thumb-shadow: var(--sq-shadow-xs-dark) var(--sq-projection-dark)}}@layer component{.sq-tag{--tag-color: var(--sq-text-color);--tag-bg-color: var(--sq-component-bg-color);--tag-border-color: var(--sq-border-color-light);--tag-shadow-color: var(--sq-projection-dark);--tag-padding: var(--sq-padding-sm);border-radius:var(--sq-radius-sm);height:var(--sq-component-size-sm);padding:0 var(--tag-padding);background:var(--tag-bg-color);border:1px solid var(--tag-border-color);box-sizing:border-box;box-shadow:inset var(--sq-shadow-xs-dark) var(--tag-shadow-color),inset var(--sq-shadow-xs-light) var(--sq-projection-light);-webkit-user-select:none;user-select:none}.sq-tag.sq-text{color:var(--tag-color)}.sq-tag.sq-text::selection{text-shadow:none}.sq-tag.sq-tag--sm{height:var(--sq-component-size-xs)}.sq-tag.sq-tag--lg{height:var(--sq-component-size-md)}.sq-tag.is-round{border-radius:var(--sq-radius-full);padding-inline:calc(var(--sq-padding-sm) + .2em)}}@layer type{.sq-tag.is-primary,.sq-tag.is-success,.sq-tag.is-info,.sq-tag.is-warn,.sq-tag.is-error{--tag-bg-color: transparent;box-shadow:none}.sq-tag.is-primary{--tag-color: var(--sq-color-primary);--tag-border-color: var(--sq-color-primary-light-1)}.sq-tag.is-success{--tag-color: var(--sq-color-success);--tag-border-color: var(--sq-color-success-light-1)}.sq-tag.is-info{--tag-color: var(--sq-color-info);--tag-border-color: var(--sq-color-info-light-1)}.sq-tag.is-warn{--tag-color: var(--sq-color-warn);--tag-border-color: var(--sq-color-warn-light-1)}.sq-tag.is-error{--tag-color: var(--sq-color-error);--tag-border-color: var(--sq-color-error-light-1)}.sq-tag.is-solid{--tag-color: #fff;--tag-border-color: transparent}.sq-tag.is-solid.is-primary{--tag-bg-color: var(--sq-color-primary)}.sq-tag.is-solid.is-success{--tag-bg-color: var(--sq-color-success)}.sq-tag.is-solid.is-info{--tag-bg-color: var(--sq-color-info)}.sq-tag.is-solid.is-warn{--tag-bg-color: var(--sq-color-warn)}.sq-tag.is-solid.is-error{--tag-bg-color: var(--sq-color-error)}.sq-tag.is-tint{--tag-border-color: transparent}.sq-tag.is-tint.is-primary{--tag-color: var(--sq-color-primary);--tag-bg-color: var(--sq-color-primary-light-5)}.sq-tag.is-tint.is-success{--tag-color: var(--sq-color-success);--tag-bg-color: var(--sq-color-success-light-5)}.sq-tag.is-tint.is-info{--tag-color: var(--sq-color-info);--tag-bg-color: var(--sq-color-info-light-5)}.sq-tag.is-tint.is-warn{--tag-color: var(--sq-color-warn);--tag-bg-color: var(--sq-color-warn-light-5)}.sq-tag.is-tint.is-error{--tag-color: var(--sq-color-error);--tag-bg-color: var(--sq-color-error-light-5)}}@layer component{.sq-check-tag{--tag-color: var(--sq-text-color);--tag-color-hover: var(--sq-color-primary);--tag-bg-color: var(--sq-bg-color);--tag-bg-color-hover: var(--sq-bg-color-dark);--tag-bg-color-checked: var(--sq-color-primary);--tag-bg-color-checked-hover: var(--sq-color-primary-dark-1);--tag-padding: var(--sq-padding-sm);border-radius:var(--sq-radius-sm);height:var(--sq-component-size-sm);padding:0 var(--tag-padding);background:var(--tag-bg-color);box-sizing:border-box;cursor:pointer;-webkit-user-select:none;user-select:none;transition:all var(--sq-transition-base)}.sq-check-tag.sq-text{color:var(--tag-color)}.sq-check-tag.sq-text::selection{text-shadow:none}.sq-check-tag.sq-tag--sm{--tag-padding: var(--sq-padding-xs);height:var(--sq-component-size-xs)}.sq-check-tag.sq-tag--lg{height:var(--sq-component-size-md)}.sq-check-tag.is-round{border-radius:var(--sq-radius-full);padding-inline:calc(var(--sq-padding-sm) + .2em)}.sq-check-tag:hover{color:var(--tag-color-hover);background:var(--tag-bg-color-hover)}.sq-check-tag.is-checked{color:#fff;background:var(--tag-bg-color-checked);border-color:transparent}.sq-check-tag.is-checked:hover{background:var(--tag-bg-color-checked-hover)}}@layer type{.sq-check-tag.is-primary{--tag-color: var(--sq-color-primary);--tag-color-hover: var(--sq-color-primary-dark-1);--tag-bg-color: var(--sq-color-primary-light-5);--tag-bg-color-hover: var(--sq-color-primary-light-4);--tag-bg-color-checked: var(--sq-color-primary);--tag-bg-color-checked-hover: var(--sq-color-primary-dark-1)}.sq-check-tag.is-success{--tag-color: var(--sq-color-success);--tag-color-hover: var(--sq-color-success-dark-1);--tag-bg-color: var(--sq-color-success-light-5);--tag-bg-color-hover: var(--sq-color-success-light-4);--tag-bg-color-checked: var(--sq-color-success);--tag-bg-color-checked-hover: var(--sq-color-success-dark-1)}.sq-check-tag.is-info{--tag-color: var(--sq-color-info);--tag-color-hover: var(--sq-color-info-dark-1);--tag-bg-color: var(--sq-color-info-light-5);--tag-bg-color-hover: var(--sq-color-info-light-4);--tag-bg-color-checked: var(--sq-color-info);--tag-bg-color-checked-hover: var(--sq-color-info-dark-1)}.sq-check-tag.is-warn{--tag-color: var(--sq-color-warn);--tag-color-hover: var(--sq-color-warn-dark-1);--tag-bg-color: var(--sq-color-warn-light-5);--tag-bg-color-hover: var(--sq-color-warn-light-4);--tag-bg-color-checked: var(--sq-color-warn);--tag-bg-color-checked-hover: var(--sq-color-warn-dark-1)}.sq-check-tag.is-error{--tag-color: var(--sq-color-error);--tag-color-hover: var(--sq-color-error-dark-1);--tag-bg-color: var(--sq-color-error-light-5);--tag-bg-color-hover: var(--sq-color-error-light-4);--tag-bg-color-checked: var(--sq-color-error);--tag-bg-color-checked-hover: var(--sq-color-error-dark-1)}}@layer component{.sq-text{color:currentColor;display:flex;flex-grow:0;align-items:center;column-gap:.5em;font-family:var(--sq-font-family);font-size:var(--sq-font-size-md);line-height:var(--sq-line-height-base)}.sq-text::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-text.sq-text--sm{font-size:var(--sq-font-size-sm)}.sq-text.sq-text--lg{font-size:var(--sq-font-size-lg)}.sq-text.multi-line,.sq-text.single-line{display:block;overflow:hidden;text-overflow:ellipsis}.sq-text.single-line{white-space:nowrap}.sq-text.multi-line{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--row-num);line-clamp:var(--row-num)}}@layer component{.sq-timeline{--timeline-dot-size: 16px;--timeline-dot-color: var(--sq-border-color);--timeline-dot-mask: none;--timeline-content-gap: var(--sq-padding-sm);--timeline-line-type: solid;--timeline-line-color: var(--sq-border-color);container:sq-timeline / inline-size;display:flex;flex-direction:column;font-size:var(--sq-font-size-md);font-family:var(--sq-font-family)}.sq-timeline::selection{background-color:var(--sq-color-primary);color:#fff;text-shadow:var(--sq-text-shadow)}.sq-timeline.is-card .sq-timeline-content{padding:var(--sq-padding-md);background-color:var(--sq-component-bg-color);border-radius:var(--sq-radius-lg);border:1px solid var(--sq-border-color-light);box-shadow:inset var(--sq-shadow-sm-dark) var(--sq-projection-dark),inset var(--sq-shadow-sm-light) var(--sq-projection-light)}.sq-timeline.is-card .sq-timeline-content .content-info{margin-block-start:var(--sq-padding-sm)}.sq-timeline-item{display:flex;position:relative;width:100%;box-sizing:border-box;overflow:hidden;padding-inline:var(--timeline-dot-size) 0}.sq-timeline-item:not(:last-child){padding-block-end:var(--sq-padding-md)}.sq-timeline-item:before{content:"";position:absolute;z-index:1;border-inline-start:2px var(--timeline-line-type);border-inline-start-color:var(--timeline-line-color);height:100%;left:calc(var(--timeline-dot-size) / 2 - 1px);top:var(--timeline-dot-size)}.sq-timeline-item.is-hollow{--timeline-dot-mask: radial-gradient( circle, transparent calc(var(--timeline-dot-size) / 2 - 4px), black calc(var(--timeline-dot-size) / 2 - 3px) )}.sq-timeline-dot{aspect-ratio:1;position:absolute;z-index:2;width:var(--timeline-dot-size);border-radius:var(--sq-radius-full);background:var(--timeline-dot-color);box-sizing:border-box;padding:2px;top:0;left:0;mask:var(--timeline-dot-mask);font-size:calc(var(--timeline-dot-size) - 4px);display:flex}.sq-timeline-dot>*{aspect-ratio:1;width:100%}.sq-timeline-content{display:flex;flex-direction:column;margin-inline:var(--timeline-content-gap) 0;width:100%;color:var(--sq-text-color-secondary);box-sizing:border-box;line-height:var(--sq-line-height-base)}.sq-timeline-content .content-title{margin-block:0;line-height:var(--sq-line-height-single);color:var(--sq-text-color);font-size:var(--sq-font-size-lg)}.sq-timeline-content .content-time{display:block;color:var(--sq-text-color-placeholder);margin-block-start:var(--sq-padding-xs)}.sq-timeline-content .content-info{margin-block-start:var(--sq-padding-xs)}@media (max-width: 768px){.sq-timeline{--timeline-dot-size: 12px}}}@layer type{.sq-timeline.align-right .sq-timeline-item{padding-inline:0 var(--timeline-dot-size)}.sq-timeline.align-right .sq-timeline-item:before{left:auto;right:calc(var(--timeline-dot-size) / 2 - 1px)}.sq-timeline.align-right .sq-timeline-item .sq-timeline-dot{left:auto;right:0}.sq-timeline.align-right .sq-timeline-item .sq-timeline-content{margin-inline:0 var(--timeline-content-gap)}.sq-timeline:not(.is-card) .sq-timeline-content .content-title,.sq-timeline:not(.is-card) .sq-timeline-content .content-time,.sq-timeline:not(.is-card) .sq-timeline-content .content-info{align-self:flex-end}.sq-timeline-item.is-primary{--timeline-dot-color: var(--sq-color-primary)}.sq-timeline-item.is-success{--timeline-dot-color: var(--sq-color-success)}.sq-timeline-item.is-info{--timeline-dot-color: var(--sq-color-info)}.sq-timeline-item.is-warn{--timeline-dot-color: var(--sq-color-warn)}.sq-timeline-item.is-error{--timeline-dot-color: var(--sq-color-error)}@container sq-timeline (min-width: 800px){.sq-timeline.align-center .sq-timeline-item{padding-inline:0}.sq-timeline.align-center .sq-timeline-item:before{left:calc(50% - 1px)}.sq-timeline.align-center .sq-timeline-item:nth-child(2n){justify-content:flex-end}.sq-timeline.align-center .sq-timeline-item .sq-timeline-dot{left:calc(50% - var(--timeline-dot-size) / 2)}.sq-timeline.align-center .sq-timeline-item .sq-timeline-content{margin:0;width:calc(50% - var(--timeline-dot-size) / 2 - var(--timeline-content-gap))}.sq-timeline:not(.is-card) .sq-timeline-item:nth-child(odd) .content-title,.sq-timeline:not(.is-card) .sq-timeline-item:nth-child(odd) .content-time,.sq-timeline:not(.is-card) .sq-timeline-item:nth-child(odd) .content-info{align-self:flex-end}}}@layer component{.sq-tooltip{padding-block:var(--sq-padding-xs)}}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@squirrel-cloud/ui-vue",
3
3
  "description": "松鼠的坚果屋前端VUE框架",
4
4
  "license": "GPL-3.0",
5
- "version": "0.3.8",
5
+ "version": "0.3.10",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "files": [