18 lines
68 KiB
JavaScript
18 lines
68 KiB
JavaScript
|
|
"use strict";var Ro=Object.defineProperty;var Po=(e,t,n)=>t in e?Ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>(Po(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Fo=require("siyuan");/**
|
||
|
|
* @vue/shared v3.4.8
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/function Fn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const Y={},lt=[],Ee=()=>{},Lo=()=>!1,zt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ln=e=>e.startsWith("onUpdate:"),he=Object.assign,Hn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ho=Object.prototype.hasOwnProperty,D=(e,t)=>Ho.call(e,t),P=Array.isArray,ct=e=>Yt(e)==="[object Map]",Ps=e=>Yt(e)==="[object Set]",F=e=>typeof e=="function",re=e=>typeof e=="string",gt=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",Fs=e=>(te(e)||F(e))&&F(e.then)&&F(e.catch),Ls=Object.prototype.toString,Yt=e=>Ls.call(e),No=e=>Yt(e).slice(8,-1),Hs=e=>Yt(e)==="[object Object]",Nn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Fn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bo=/-(\w)/g,dt=Xt(e=>e.replace(Bo,(t,n)=>n?n.toUpperCase():"")),Do=/\B([A-Z])/g,Qe=Xt(e=>e.replace(Do,"-$1").toLowerCase()),Ns=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),rn=Xt(e=>e?`on${Ns(e)}`:""),Ge=(e,t)=>!Object.is(e,t),Bt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},jt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let es;const Bs=()=>es||(es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function kt(e){if(P(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=re(s)?Ko(s):kt(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(re(e)||te(e))return e}const $o=/;(?![^(]*\))/g,Vo=/:([^]+)/,jo=/\/\*[^]*?\*\//g;function Ko(e){const t={};return e.replace(jo,"").split($o).forEach(n=>{if(n){const s=n.split(Vo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Tt(e){let t="";if(re(e))t=e;else if(P(e))for(let n=0;n<e.length;n++){const s=Tt(e[n]);s&&(t+=s+" ")}else if(te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Uo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Wo=Fn(Uo);function Ds(e){return!!e||e===""}const qo=e=>re(e)?e:e==null?"":P(e)||te(e)&&(e.toString===Ls||!F(e.toString))?JSON.stringify(e,$s,2):String(e),$s=(e,t)=>t&&t.__v_isRef?$s(e,t.value):ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[ln(s,r)+" =>"]=o,n),{})}:Ps(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ln(n))}:gt(t)?ln(t):te(t)&&!P(t)&&!Hs(t)?String(t):t,ln=(e,t="")=>{var n;return gt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
|
|
* @vue/reactivity v3.4.8
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/let Te;class Go{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){Te=this}off(){Te=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function zo(e,t=Te){t&&t.active&&t.effects.push(e)}function Yo(){return Te}let Je;class Bn{constructor(t,n,s,o){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,zo(this,o)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,et();for(const t of this.deps)if(t.computed&&(Xo(t.computed),this._dirtyLevel>=2))break;tt(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=We,n=Je;try{return We=!0,Je=this,this._runnings++,ts(this),this.fn()}finally{ns(this),this._runnings--,Je=n,We=t}}stop(){var t;this.active&&(ts(this),ns(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Xo(e){return e.value}function ts(e){e._trackId++,e._depsLength=0}function ns(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Vs(e.deps[t],e);e.deps.length=e._depsLength}}function Vs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let We=!0,vn=0;const js=[];function et(){js.push(We),We=!1}function tt(){const e=js.pop();We=e===void 0?!0:e}function Dn(){vn++}function $n(){for(vn--;!vn&&Cn.length;)Cn.shift()()}function Ks(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Vs(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Cn=[];function Us(e,t,n){Dn();for(const s of e.keys())if(!(!s.allowRecurse&&s._runnings)&&s._dirtyLevel<t&&(!s._runnings||t!==2)){const o=s._dirtyLevel;s._dirtyLevel=t,o===0&&(!s._queryings||t!==2)&&(s.trigger(),s.scheduler&&Cn.push(s.scheduler))}$n()}const Ws=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},xn=new WeakMap,Ze=Symbol(""),En=Symbol("");function ge(e,t,n){if(We&&Je){let s=xn.get(e);s||xn.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Ws(()=>s.delete(n))),Ks(Je,o)}}function Be(e,t,n,s,o,r){const i=xn.get(e);if(!i)return;let c=[];if(t==="clear")c=[...i.values()];else if(n==="length"&&P(e)){const f=Number(s);i.forEach((d,h)=>{(h==="length"||!gt(h)&&h>=f)&&c.push(d)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":P(e)?Nn(n)&&c.push(i.get("length")):(c.push(i.get(Ze)),ct(e)&&c.push(i.get(En)));break;case"delete":P(e)||(c.push(i.get(Ze)),ct(e)&&c.push(i.get(En)));break;case"set":ct(e)&&c.push(i.get(Ze));break}Dn();for(const f of c)f&&Us(f,3);$n()}const ko=Fn("__proto__,__v_isRef,__isVue"),qs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt)),ss=Jo();function Jo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=j(this);for(let r=0,i=this.length;r<i;r++)ge(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(j)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){et(),Dn();const s=j(this)[t].apply(this,n);return $n(),tt(),s}}),e}function Zo(e){const t=j(this);return ge(t,"has",e),t.hasOwnProperty(e)}class Gs{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const o=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?ar:ks:r?Xs:Ys).get(t)||Object.getPrototypeOf(t)===Object.getP
|
||
|
|
* @vue/runtime-core v3.4.8
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/function qe(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){Zt(r,t,n)}return o}function Me(e,t,n,s){if(F(e)){const r=qe(e,t,n,s);return r&&Fs(r)&&r.catch(i=>{Zt(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Me(e[r],t,n,s));return o}function Zt(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,c=`https://vuejs.org/errors/#runtime-${n}`;for(;r;){const d=r.ec;if(d){for(let h=0;h<d.length;h++)if(d[h](e,i,c)===!1)return}r=r.parent}const f=t.appContext.config.errorHandler;if(f){qe(f,null,10,[e,i,c]);return}}br(e,n,o,s)}function br(e,t,n,s=!0){console.error(e)}let xt=!1,Sn=!1;const le=[];let Le=0;const ft=[];let je=null,Xe=0;const so=Promise.resolve();let Gn=null;function vr(e){const t=Gn||so;return e?t.then(this?e.bind(this):e):t}function Cr(e){let t=Le+1,n=le.length;for(;t<n;){const s=t+n>>>1,o=le[s],r=Et(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function zn(e){(!le.length||!le.includes(e,xt&&e.allowRecurse?Le+1:Le))&&(e.id==null?le.push(e):le.splice(Cr(e.id),0,e),oo())}function oo(){!xt&&!Sn&&(Sn=!0,Gn=so.then(io))}function xr(e){const t=le.indexOf(e);t>Le&&le.splice(t,1)}function Er(e){P(e)?ft.push(...e):(!je||!je.includes(e,e.allowRecurse?Xe+1:Xe))&&ft.push(e),oo()}function cs(e,t,n=xt?Le+1:0){for(;n<le.length;n++){const s=le[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;le.splice(n,1),n--,s()}}}function ro(e){if(ft.length){const t=[...new Set(ft)].sort((n,s)=>Et(n)-Et(s));if(ft.length=0,je){je.push(...t);return}for(je=t,Xe=0;Xe<je.length;Xe++)je[Xe]();je=null,Xe=0}}const Et=e=>e.id==null?1/0:e.id,wr=(e,t)=>{const n=Et(e)-Et(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function io(e){Sn=!1,xt=!0,le.sort(wr);try{for(Le=0;Le<le.length;Le++){const t=le[Le];t&&t.active!==!1&&qe(t,null,14)}}finally{Le=0,le.length=0,ro(),xt=!1,Gn=null,(le.length||ft.length)&&io()}}function Sr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Y;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const h=`${i==="modelValue"?"model":i}Modifiers`,{number:C,trim:w}=s[h]||Y;w&&(o=n.map(A=>re(A)?A.trim():A)),C&&(o=n.map(bn))}let c,f=s[c=rn(t)]||s[c=rn(dt(t))];!f&&r&&(f=s[c=rn(Qe(t))]),f&&Me(f,e,6,o);const d=s[c+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Me(d,e,6,o)}}function lo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},c=!1;if(!F(e)){const f=d=>{const h=lo(d,t,!0);h&&(c=!0,he(i,h))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!r&&!c?(te(e)&&s.set(e,null),null):(P(r)?r.forEach(f=>i[f]=null):he(i,r),te(e)&&s.set(e,i),i)}function Qt(e,t){return!e||!zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,Qe(t))||D(e,t))}let Ce=null,co=null;function Ut(e){const t=Ce;return Ce=e,co=e&&e.type.__scopeId||null,t}function Tr(e,t=Ce,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&bs(-1);const r=Ut(t);let i;try{i=e(...o)}finally{Ut(r),s._d&&bs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function us(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:c,attrs:f,emit:d,render:h,renderCache:C,data:w,setupState:A,ctx:G,inheritAttrs:$}=e;let ne,k;const _e=Ut(e);try{if(n.shapeFlag&4){const se=o||s,S=se;ne=Fe(h.call(S,se,C,r,A,w,G)),k=f}else{const se=t;ne=Fe(se.length>1?se(r,{attrs:f,slots:c,emit:d}):se(r,null)),k=t.props?f:Ir(f)}}catch(se){vt.length=0,Zt(se,e,1),ne=He(wt)}let U=ne;if(k&&$!==!1){const se=Object.keys(k),{shapeFlag:S}=U;se.length&&S&7&&(i&&se.some(Ln)&&(k=Mr(k,i)),U=pt(U,k))}return n.dirs&&(U=pt(U),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&(U.transition=n.transition),ne=U,Ut(_e),ne}const Ir=e=>{let t;for(const n in e)(n==="class"||n==="style"||zt(n))&&((t||(t={}))[n]=e[n]);return t},Mr=(e,t)=>{const n={};for(const s in e)(!Ln(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Or(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:c,patchFlag:f}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?fs(s,i
|
||
|
|
* @vue/runtime-dom v3.4.8
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/const Ri="http://www.w3.org/2000/svg",Pi="http://www.w3.org/1998/Math/MathML",Ue=typeof document<"u"?document:null,xs=Ue&&Ue.createElement("template"),Fi={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?Ue.createElementNS(Ri,e):t==="mathml"?Ue.createElementNS(Pi,e):Ue.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Ue.createTextNode(e),createComment:e=>Ue.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ue.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{xs.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const c=xs.content;if(s==="svg"||s==="mathml"){const f=c.firstChild;for(;f.firstChild;)c.appendChild(f.firstChild);c.removeChild(f)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Li=Symbol("_vtc");function Hi(e,t,n){const s=e[Li];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ni=Symbol("_vod"),Bi=Symbol("");function Di(e,t,n){const s=e.style,o=re(n);if(n&&!o){if(t&&!re(t))for(const r in t)n[r]==null&&Pn(s,r,"");for(const r in n)Pn(s,r,n[r])}else{const r=s.display;if(o){if(t!==n){const i=s[Bi];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");Ni in e&&(s.display=r)}}const Es=/\s*!important$/;function Pn(e,t,n){if(P(n))n.forEach(s=>Pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=$i(e,t);Es.test(n)?e.setProperty(Qe(s),n.replace(Es,""),"important"):e[s]=n}}const ws=["Webkit","Moz","ms"],dn={};function $i(e,t){const n=dn[t];if(n)return n;let s=dt(t);if(s!=="filter"&&s in e)return dn[t]=s;s=Ns(s);for(let o=0;o<ws.length;o++){const r=ws[o]+s;if(r in e)return dn[t]=r}return t}const Ss="http://www.w3.org/1999/xlink";function Vi(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ss,t.slice(6,t.length)):e.setAttributeNS(Ss,t,n);else{const r=Wo(t);n==null||r&&!Ds(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function ji(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=n;const d=c==="OPTION"?e.getAttribute("value"):e.value,h=n??"";d!==h&&(e.value=h),n==null&&e.removeAttribute(t);return}let f=!1;if(n===""||n==null){const d=typeof e[t];d==="boolean"?n=Ds(n):n==null&&d==="string"?(n="",f=!0):d==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(t)}function rt(e,t,n,s){e.addEventListener(t,n,s)}function Ki(e,t,n,s){e.removeEventListener(t,n,s)}const Ts=Symbol("_vei");function Ui(e,t,n,s,o=null){const r=e[Ts]||(e[Ts]={}),i=r[t];if(s&&i)i.value=s;else{const[c,f]=Wi(t);if(s){const d=r[t]=zi(s,o);rt(e,c,d,f)}else i&&(Ki(e,c,i,f),r[t]=void 0)}}const Is=/(?:Once|Passive|Capture)$/;function Wi(e){let t;if(Is.test(e)){t={};let s;for(;s=e.match(Is);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Qe(e.slice(2)),t]}let hn=0;const qi=Promise.resolve(),Gi=()=>hn||(qi.then(()=>hn=0),hn=Date.now());function zi(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Me(Yi(s,n.value),t,5,[s])};return n.value=e,n.attached=Gi(),n}function Yi(e,t){if(P(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xi=(e,t,n,s,o,r,i,c,f)=>{const d=o==="svg";t==="class"?Hi(e,s,d):t==="style"?Di(e,n,s):zt(t)?Ln(t)||Ui(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ki(e,t,s,d))?ji(e,t,s,r,i,c,f):(t=
|