dingcard-mcp 0.59.0 → 0.60.0
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.
- package/dist/app/assets/{MarkdownEditor-DDmv6m-x.js → MarkdownEditor-D1UaIr2y.js} +1 -1
- package/dist/app/assets/{jszip.min-Bke3tEl4.js → jszip.min-Dh_Y8aD6.js} +1 -1
- package/dist/app/assets/{main-9ISg6ah0.js → main-BDVCVLc1.js} +92 -86
- package/dist/app/assets/{paginate-CrvyT_J7.js → paginate-CywTJr2d.js} +1 -1
- package/dist/app/assets/{render-BCI8TA6e.js → render-CCSRSldx.js} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/app/render.html +2 -2
- package/dist/index.mjs +186 -10
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Ee=Object.defineProperty;var Re=(s,t,e)=>t in s?Ee(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var st=(s,t,e)=>Re(s,typeof t!="symbol"?t+"":t,e);import{Q as xt,cq as Ae,cr as ve,cs as Fe,c as Ut,ct as Te,p as Ie,a as Le,cu as $e,aG as Oe,cv as Pe,br as Be,bq as ze,cw as zt,cm as xe,cx as De,cy as Xt,j as at,r as nt,P as Yt,k as We,i as _e,h as He,s as Ve,f as qe,ci as Ge,ck as je,cl as Ue,C as Xe,m as Ye,b4 as Ke,aX as Ze,c7 as Kt,bQ as Je,bR as Qe,c8 as tn,c9 as en,bP as nn,F as on,e as sn,d as rn}from"./paginate-CrvyT_J7.js";function P(s,t=","){const e=[];let n=0,o=null,i="";for(const r of s){if(o){i+=r,r===o&&(o=null);continue}if(r==='"'||r==="'"){o=r,i+=r;continue}if(r==="("&&(n+=1),r===")"&&(n=Math.max(0,n-1)),n===0&&(t===","?r===",":/\s/.test(r))){i.trim()&&e.push(i.trim()),i="";continue}i+=r}return i.trim()&&e.push(i.trim()),e}function Q(s,t,e){return Math.min(e,Math.max(t,s))}function Zt(s,t){const e=s.trim();if(e==="none")return 0;const n=Number.parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:null}function Ct(s){const t=s.trim().toLowerCase();if(t==="transparent")return{r:0,g:0,b:0,a:0};const e=/^rgba?\((.*)\)$/.exec(t);if(!e)return null;const n=e[1],[o,i]=n.includes("/")?n.split("/"):[n,void 0],a=[...o.includes(",")?o.split(","):o.trim().split(/\s+/)];let l=i;if(l===void 0&&a.length===4&&(l=a.pop()),a.length!==3)return null;const[c,h,f]=a.map(g=>Zt(g,255)),u=l===void 0?1:Zt(l,1);return c===null||h===null||f===null||u===null?null:{r:Q(c,0,255),g:Q(h,0,255),b:Q(f,0,255),a:Q(u,0,1)}}function O(s){const t=e=>Math.round(Q(e,0,255)).toString(16).padStart(2,"0");return`#${t(s.r)}${t(s.g)}${t(s.b)}`}function rt(s,t){return{r:s.r*s.a+t.r*(1-s.a),g:s.g*s.a+t.g*(1-s.a),b:s.b*s.a+t.b*(1-s.a),a:1}}function $(s){if(!s)return null;const t=Number.parseFloat(s);return Number.isFinite(t)?t:null}function Gt(s){const t=/^(-?[\d.]+(?:e-?\d+)?)(deg|rad|grad|turn)$/i.exec(s.trim());if(!t)return null;const e=Number.parseFloat(t[1]);if(!Number.isFinite(e))return null;const n=t[2].toLowerCase();return n==="rad"?e*180/Math.PI:n==="grad"?e*.9:n==="turn"?e*360:e}const Jt={top:0,right:90,bottom:180,left:270};function an(s,t,e){const n=s.filter(a=>a in Jt);if(n.length!==s.length||n.length===0||n.length>2)return null;if(n.length===1)return Jt[n[0]];const o=n.find(a=>a==="top"||a==="bottom"),i=n.find(a=>a==="left"||a==="right");if(!o||!i)return null;const r=Math.atan2(e,t)*180/Math.PI;return o==="top"?i==="right"?r:360-r:i==="right"?180-r:180+r}function ln(s){if(s.length===0)return[];const t=s.map(n=>n.offset);t[0]===null&&(t[0]=0),t[t.length-1]===null&&(t[t.length-1]=1);let e=-1/0;for(let n=0;n<t.length;n+=1){const o=t[n];o!==null&&(e=Math.max(e,o),t[n]=e)}for(let n=1;n<t.length;n+=1){if(t[n]!==null)continue;const o=n-1;let i=n;for(;t[i]===null;)i+=1;const r=t[o],a=t[i];for(let l=n;l<i;l+=1)t[l]=r+(a-r)*(l-o)/(i-o);n=i}return s.map((n,o)=>({color:n.color,offset:t[o]}))}function Qt(s,t,e){const n=[];for(const o of s){const i=P(o," "),r=i.find(c=>e(c)!==null);if(!r){if(i.length===1&&/^-?[\d.]/.test(i[0]))continue;return null}const a=e(r),l=i.filter(c=>c!==r).map(c=>{const h=Number.parseFloat(c);return Number.isFinite(h)?c.endsWith("%")?h/100:c.endsWith("px")?t>0?h/t:null:h===0?0:null:null});if(l.some(c=>c===null))return null;l.length===0&&n.push({color:a,offset:null});for(const c of l)n.push({color:a,offset:c})}return n.length>=2?ln(n):null}function Rt(s,t,e,n=Ct){const o=/^(linear|radial)-gradient\((.*)\)$/s.exec(s.trim());if(!o)return null;const i=P(o[2]);if(i.length<2)return null;if(o[1]==="linear"){let f=180;const u=i[0],g=Gt(u);if(g!==null)f=g,i.shift();else if(u.startsWith("to ")){const m=an(u.slice(3).trim().split(/\s+/),t,e);if(m===null)return null;f=m,i.shift()}const d=f*Math.PI/180,p=Math.abs(t*Math.sin(d))+Math.abs(e*Math.cos(d)),y=Qt(i,p,n);return y?{kind:"linear",angle:(f%360+360)%360,stops:y}:null}let r=!0,a=!1;const l=n(P(i[0]," ")[0])===null?P(i.shift()," "):[];if(l.length>0){const f=l.indexOf("at"),u=f>=0?l.slice(0,f):l,g=f>=0?l.slice(f+1):[];for(const p of u)p==="circle"?a=!0:p!=="ellipse"&&p!=="farthest-corner"&&(r=!1);g.length===0||g.every(p=>p==="center"||p==="50%")||(r=!1)}!a&&Math.abs(t-e)>.5&&(r=!1);const c=Math.hypot(t,e)/2,h=Qt(i,c,n);return h?{kind:"radial",exact:r,stops:h}:null}function Me(s,t,e){return{r:s.r+(t.r-s.r)*e,g:s.g+(t.g-s.g)*e,b:s.b+(t.b-s.b)*e,a:s.a+(t.a-s.a)*e}}function Wt(s,t){if(t<=s[0].offset)return s[0].color;for(let e=1;e<s.length;e+=1){const n=s[e-1],o=s[e];if(t<=o.offset){const i=o.offset-n.offset;return i<=0?o.color:Me(n.color,o.color,(t-n.offset)/i)}}return s[s.length-1].color}function cn(s,t=8){const e=s.filter(o=>o.offset>0&&o.offset<1);let n=[{offset:0,color:Wt(s,0)},...e,{offset:1,color:Wt(s,1)}];for(;n.length>t;){let o=1,i=1/0;for(let r=1;r<n.length-1;r+=1){const a=n[r-1],l=n[r+1],c=l.offset-a.offset,h=c<=0?l.color:Me(a.color,l.color,(n[r].offset-a.offset)/c),f=n[r].color,u=Math.abs(h.r-f.r)+Math.abs(h.g-f.g)+Math.abs(h.b-f.b)+Math.abs(h.a-f.a)*255;u<i&&(i=u,o=r)}n=[...n.slice(0,o),...n.slice(o+1)]}return n}function ht(s){if(s.kind==="radial"&&!s.exact)return null;const t=cn(s.stops),e=t[0].color.a;if(t.some(i=>Math.abs(i.color.a-e)>.02))return null;const n=t.map(i=>({offset:Math.round(i.offset*1e4)/1e4,color:O(i.color)}));if(s.kind==="radial")return{paint:{type:"radial-gradient",stops:n},alpha:e};const o=Math.round(s.angle)%360;return{paint:n.length===2&&n[0].offset===0&&n[1].offset===1?{type:"linear-gradient",from:n[0].color,to:n[1].color,angle:o}:{type:"linear-gradient",stops:n,angle:o},alpha:e}}function Tt(s,t=Ct){if(!s||s==="none")return[];const e=[];for(const n of P(s)){const o=P(n," ");let i=null,r=!1;const a=[];for(const l of o){if(l==="inset"){r=!0;continue}const c=/^-?[\d.]+(px)?$/.test(l)?Number.parseFloat(l):null;if(c!==null&&Number.isFinite(c)){a.push(c);continue}i=t(l)??i}a.length<2||e.push({inset:r,x:a[0],y:a[1],blur:Math.max(0,a[2]??0),spread:a[3]??0,color:i??{r:0,g:0,b:0,a:1}})}return e}const ke=[1,0,0,1,0,0];function It(s,t){const[e,n,o,i,r,a]=s,[l,c,h,f,u,g]=t;return[e*l+o*c,n*l+i*c,e*h+o*f,n*h+i*f,e*u+o*g+r,n*u+i*g+a]}function _t(s,t,e){return{x:s[0]*t+s[2]*e+s[4],y:s[1]*t+s[3]*e+s[5]}}function hn(s){if(!s||s==="none")return ke;const t=/^matrix\((.*)\)$/.exec(s.trim());if(t){const n=t[1].split(",").map(o=>Number.parseFloat(o));return n.length===6&&n.every(Number.isFinite)?n:null}const e=/^matrix3d\((.*)\)$/.exec(s.trim());if(e){const n=e[1].split(",").map(i=>Number.parseFloat(i));return n.length!==16||!n.every(Number.isFinite)?null:Math.abs(n[2])<1e-6&&Math.abs(n[3])<1e-6&&Math.abs(n[6])<1e-6&&Math.abs(n[7])<1e-6&&Math.abs(n[8])<1e-6&&Math.abs(n[9])<1e-6&&Math.abs(n[11])<1e-6&&Math.abs(n[14])<1e-6&&Math.abs(n[15]-1)<1e-6?[n[0],n[1],n[4],n[5],n[12],n[13]]:null}return null}function un(s,t,e,n={width:0,height:0}){let o=ke;if(s&&s!=="none"){const[i="0",r="0",a="0"]=s.trim().split(/\s+/);if(Number.parseFloat(a)!==0)return null;const l=(f,u)=>{const g=Number.parseFloat(f);return Number.isFinite(g)?f.endsWith("%")?g/100*u:g:null},c=l(i,n.width),h=l(r,n.height);if(c===null||h===null)return null;o=It(o,[1,0,0,1,c,h])}if(t&&t!=="none"){const i=t.trim().split(/\s+/),r=Gt(i[i.length-1]),a=i.length===1||i.length===2&&i[0]==="z"||i.length===4&&Number.parseFloat(i[0])===0&&Number.parseFloat(i[1])===0;if(r===null||!a)return null;const l=r*Math.PI/180;o=It(o,[Math.cos(l),Math.sin(l),-Math.sin(l),Math.cos(l),0,0])}if(e&&e!=="none"){const[i="1",r=i]=e.trim().split(/\s+/),a=Number.parseFloat(i)*(i.endsWith("%")?.01:1),l=Number.parseFloat(r)*(r.endsWith("%")?.01:1);if(!Number.isFinite(a)||!Number.isFinite(l))return null;o=It(o,[a,0,0,l,0,0])}return o}function fn(s,t=1e-6){return Math.abs(s[0]-1)<t&&Math.abs(s[1])<t&&Math.abs(s[2])<t&&Math.abs(s[3]-1)<t}function dn(s){const[t,e,n,o]=s,i=Math.hypot(t,e),r=t*o-e*n,a=i>0?r/i:0,l=i>0?(t*n+e*o)/(i*i):0,c=(Math.atan2(e,t)*180/Math.PI+360)%360,h=Math.sqrt(Math.abs(r)),f=i>0&&Math.abs(i-a)<.001*Math.max(1,i)&&Math.abs(l)<.001;return{rotation:Math.round(c*1e3)/1e3,scale:h,exact:f}}function te(s,t=Ct){const e={filter:{},opacity:1,dropShadow:null,unsupported:[]};if(!s||s==="none")return e;const n=s.match(/[a-z-]+\((?:[^()]|\([^()]*\))*\)/g)??[];for(const i of n){const r=/^([a-z-]+)\((.*)\)$/s.exec(i);if(!r)continue;const a=r[1],l=r[2].trim(),c=()=>{const h=Number.parseFloat(l);return Number.isFinite(h)?l.endsWith("%")?h/100:h:1};if(a==="blur")e.filter.blur=Q($(l)??0,0,100);else if(a==="brightness")e.filter.brightness=Q(c(),0,3);else if(a==="contrast")e.filter.contrast=Q(c(),0,3);else if(a==="saturate")e.filter.saturation=Q(c(),0,3);else if(a==="grayscale")e.filter.grayscale=Q(c(),0,1);else if(a==="sepia")e.filter.sepia=Q(c(),0,1);else if(a==="hue-rotate"){const h=Gt(l)??0;e.filter.hue=(Math.round(h)%360+360)%360}else a==="opacity"?e.opacity*=Q(c(),0,1):a==="drop-shadow"?e.dropShadow=Tt(l,t)[0]??null:e.unsupported.push(a)}const o={brightness:1,contrast:1,saturation:1,blur:0,hue:0,grayscale:0,sepia:0};for(const i of Object.keys(e.filter))Math.abs(e.filter[i]-o[i])<1e-6&&delete e.filter[i];return e}const gn=new Set(["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]);function pn(s){return gn.has(s)?s:null}function St(s){const t=Number.parseFloat(s);return Number.isFinite(t)?t>=600:s==="bold"||s==="bolder"}const Y="PingFang SC, Microsoft YaHei, system-ui, sans-serif",yt=xt[1].id,bt=xt[2].id,Lt=xt[3].id,ee=xt[4].id,At=xt[5].id,$t=xt[6].id,[mn,yn,bn,ne,oe]=Ae.map(s=>s.id),ie={"pingfang sc":Y,"pingfang tc":Y,"pingfang hk":Y,pingfang:Y,苹方:Y,"noto sans sc":yt,"noto sans cjk sc":yt,"source han sans sc":yt,"source han sans":yt,思源黑体:yt,"noto serif sc":bt,"noto serif cjk sc":bt,"source han serif sc":bt,"source han serif":bt,思源宋体:bt,"lxgw wenkai tc":Lt,"lxgw wenkai":Lt,霞鹜文楷:Lt,"zcool xiaowei":ee,站酷小薇:ee,"songti sc":At,stsong:At,simsun:At,宋体:At,"system-ui":$t,"-apple-system":$t,blinkmacsystemfont:$t,"playfair display":mn,"archivo black":yn,"great vibes":bn,"zcool qingke huangyou":ne,站酷庆科黄油体:ne,"ma shan zheng":oe,马善政毛笔楷书:oe},se={"microsoft yahei":Y,微软雅黑:Y,"hiragino sans gb":Y,"heiti sc":Y,stheiti:Y,黑体:Y,simhei:Y},wn=/serif|times|georgia|garamond|baskerville|playfair|didot|bodoni|merriweather|lora|song|ming|明朝|宋|serif sc/i,xn=/kai|楷|cursive|hand|script|brush|comic|marker/i,re={"sans-serif":"sans","ui-sans-serif":"sans",monospace:"sans","ui-monospace":"sans",serif:"serif","ui-serif":"serif",cursive:"script",fantasy:"script"},Mn=new Set(["sans-serif","ui-sans-serif","arial","helvetica","helvetica neue","inter","roboto","segoe ui","sf pro display","sf pro text","avenir","avenir next","montserrat","poppins","open sans","lato"]);function kn(s){return P(s).map(t=>t.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean)}function wt(s){const t=kn(s);for(const a of t){const l=a.toLowerCase();if(ie[l])return{fontFamily:ie[l],replaced:null};if(se[l])return{fontFamily:se[l],replaced:null}}const e=t[0]??"",n=e.toLowerCase(),i=re[n]||n===""?null:e,r=t.map(a=>re[a.toLowerCase()]).find(Boolean)??(xn.test(e)?"script":wn.test(e)&&!Mn.has(n)?"serif":"sans");return{fontFamily:r==="serif"?bt:r==="script"?Lt:Y,replaced:i}}function Sn(s){const{fontFamily:t}=wt(s);return t===Y||t===yt||t===$t}function ae(s,t){return t==="uppercase"?s.toUpperCase():t==="lowercase"?s.toLowerCase():t==="capitalize"?s.replace(new RegExp(`(^|[\\s (("“'‘-])(\\p{L})`,"gu"),(e,n,o)=>n+o.toUpperCase()):s}function Nn(s,t){switch(s){case"disc":return"•";case"circle":return"◦";case"square":return"▪";case"decimal":return`${t}.`;case"decimal-leading-zero":return`${String(t).padStart(2,"0")}.`;case"lower-alpha":case"lower-latin":return t>=1&&t<=26?`${String.fromCharCode(96+t)}.`:null;case"upper-alpha":case"upper-latin":return t>=1&&t<=26?`${String.fromCharCode(64+t)}.`:null;case"cjk-decimal":return`${String(t).replace(/\d/g,e=>"〇一二三四五六七八九"[Number(e)])}、`;default:return null}}function Cn(s,t){if(!s||s==="none"||s==="normal")return null;const e=/^url\((['"]?)(.*?)\1\)$/.exec(s.trim());if(e)return{image:e[2]};let n="";for(const o of P(s," ")){const i=/^(['"])(.*)\1$/s.exec(o);if(i){n+=i[2].replace(/\\([0-9a-fA-F]{1,6})\s?/g,(a,l)=>String.fromCodePoint(Number.parseInt(l,16))).replace(/\\(.)/g,"$1");continue}const r=/^attr\(\s*([\w-]+)\s*\)$/.exec(o);if(r){n+=t(r[1])??"";continue}if(o==="open-quote")n+="“";else if(o==="close-quote")n+="”";else{if(o==="no-open-quote"||o==="no-close-quote")continue;return{unsupported:o}}}return{text:n}}function T(s){const t=Math.round(s*1e3)/1e3;return Object.is(t,-0)?"0":String(t)}const En={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0};function Rn(s,t,e,n){const[o,i,r,a]=n,l=e*Math.PI/180,c=Math.cos(l),h=Math.sin(l),f=o*s*c+r*s*h,u=-o*t*h+r*t*c,g=i*s*c+a*s*h,d=-i*t*h+a*t*c,p=(f+d)/2,y=(f-d)/2,m=(g+u)/2,x=(g-u)/2,M=Math.hypot(p,x),S=Math.hypot(y,m),b=(Math.atan2(m,y)+Math.atan2(x,p))/2;return{rx:M+S,ry:Math.abs(M-S),rotation:b*180/Math.PI}}function An(s,t){const e=ve(s);if(!e)return null;const n=t[0]*t[3]-t[1]*t[2]<0,o=[],i=(g,d)=>{const p=_t(t,g,d);return`${T(p.x)} ${T(p.y)}`};let r=0,a=0,l=0,c=0,h=null,f=null;for(const g of e){const d=g.command.toLowerCase(),p=g.command!==g.command.toUpperCase(),y=En[d];if(y===0){o.push("Z"),r=l,a=c,h=null,f=null;continue}for(let m=0;m+y<=g.values.length;m+=y){const x=g.values.slice(m,m+y),M=p?r:0,S=p?a:0;let b=d;if(d==="m"&&m>0&&(b="l"),b==="m")r=x[0]+M,a=x[1]+S,l=r,c=a,o.push(`M ${i(r,a)}`),h=null,f=null;else if(b==="l"||b==="h"||b==="v")b==="l"?(r=x[0]+M,a=x[1]+S):b==="h"?r=x[0]+(p?r:0):a=x[0]+(p?a:0),o.push(`L ${i(r,a)}`),h=null,f=null;else if(b==="c"||b==="s"){let E,C,w;b==="c"?(E=x[0]+M,C=x[1]+S,w=x.slice(2)):(E=h?2*r-h.x:r,C=h?2*a-h.y:a,w=x);const N=w[0]+M,F=w[1]+S,v=w[2]+M,B=w[3]+S;o.push(`C ${i(E,C)} ${i(N,F)} ${i(v,B)}`),h={x:N,y:F},f=null,r=v,a=B}else if(b==="q"||b==="t"){let E,C,w;b==="q"?(E=x[0]+M,C=x[1]+S,w=x.slice(2)):(E=f?2*r-f.x:r,C=f?2*a-f.y:a,w=x);const N=w[0]+M,F=w[1]+S;o.push(`Q ${i(E,C)} ${i(N,F)}`),f={x:E,y:C},h=null,r=N,a=F}else if(b==="a"){const E=x[5]+M,C=x[6]+S;if(x[0]===0||x[1]===0)o.push(`L ${i(E,C)}`);else{const w=Rn(Math.abs(x[0]),Math.abs(x[1]),x[2],t),N=n?x[4]?0:1:x[4]?1:0;o.push(`A ${T(w.rx)} ${T(w.ry)} ${T(w.rotation)} ${x[3]?1:0} ${N} ${i(E,C)}`)}h=null,f=null,r=E,a=C}}}const u=o.join(" ");return u.length>0&&u.length<=Fe?u:null}function vn(s,t,e){const{topLeft:n,topRight:o,bottomRight:i,bottomLeft:r}=e,a=Math.min(1,s/Math.max(1e-9,n[0]+o[0]),s/Math.max(1e-9,r[0]+i[0]),t/Math.max(1e-9,n[1]+r[1]),t/Math.max(1e-9,o[1]+i[1])),l=c=>[c[0]*a,c[1]*a];return{topLeft:l(n),topRight:l(o),bottomRight:l(i),bottomLeft:l(r)}}function Ht(s,t,e,n,o){const{topLeft:i,topRight:r,bottomRight:a,bottomLeft:l}=vn(e,n,o),c=s+e,h=t+n,f=(u,g,d)=>u[0]>0&&u[1]>0?` A ${T(u[0])} ${T(u[1])} 0 0 1 ${T(g)} ${T(d)}`:` L ${T(g)} ${T(d)}`;return`M ${T(s+i[0])} ${T(t)} L ${T(c-r[0])} ${T(t)}`+f(r,c,t+r[1])+` L ${T(c)} ${T(h-a[1])}`+f(a,c-a[0],h)+` L ${T(s+l[0])} ${T(h)}`+f(l,s,h-l[1])+` L ${T(s)} ${T(t+i[1])}`+f(i,s+i[0],t)+" Z"}function Dt(s,t,e,n){const o=`${T(s-e)} ${T(t)}`,i=`${T(s+e)} ${T(t)}`;return`M ${o} A ${T(e)} ${T(n)} 0 1 0 ${i} A ${T(e)} ${T(n)} 0 1 0 ${o} Z`}function Fn(s){const t=(s.match(/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?/g)??[]).map(Number),e=[];for(let n=0;n+1<t.length;n+=2)e.push({x:t[n],y:t[n+1]});return e}function Tn(s,t){if(s.length<2)return null;const[e,...n]=s;return`M ${T(e.x)} ${T(e.y)}${n.map(o=>` L ${T(o.x)} ${T(o.y)}`).join("")}${t?" Z":""}`}function In(s,t,e,n,o,i){let r=o??i??0,a=i??o??0;r=Math.min(Math.max(0,r),e/2),a=Math.min(Math.max(0,a),n/2);const l=[r,a];return Ht(s,t,e,n,{topLeft:l,topRight:l,bottomRight:l,bottomLeft:l})}const D=8,le=128,ce=4096,vt={r:255,g:255,b:255,a:1},jt=new Set(["HEAD","SCRIPT","STYLE","TEMPLATE","NOSCRIPT","LINK","META","TITLE"]),Se=new Set(["IMG","SVG","CANVAS","VIDEO","IFRAME","INPUT","TEXTAREA","SELECT","OBJECT","EMBED","PICTURE","PROGRESS"]),Ne=12,Ot=6,he=24;function Ln(s){var a;const t=s[0].some(l=>l.tagName.toUpperCase()==="TH"),e=s.slice(0,Ne);let n=0;for(const l of e)n=Math.max(n,l.length);let o=0;n>Ot&&(o=e.reduce((l,c)=>l+c.length-Ot,0),n=Ot);const i=[];let r=0;for(const l of e)for(let c=0;c<n;c+=1){const h=(((a=l[c])==null?void 0:a.textContent)??"").replace(/\s+/g," ").trim();h.length>he?(r+=1,i.push(h.slice(0,he))):i.push(h)}return{rows:e.length,cols:n,cells:i,headerRow:t,droppedRows:s.length-e.length,droppedCells:o,cutChars:r}}function $n(s,t){const e=t>0?t:1;return Math.min(100,Math.max(0,Math.round(s/e*1e3)/10))}const On=new Set(["path","rect","circle","ellipse","line","polyline","polygon"]),Pn=new Set(["defs","clipPath","mask","marker","pattern","symbol","linearGradient","radialGradient","filter"]);function ot(s){return s.ownerDocument.defaultView.getComputedStyle(s)}function Bn(s){return s.namespaceURI==="http://www.w3.org/2000/svg"}function ft(s,t,e){s.style.setProperty(t,e,"important")}function Vt(s){return Array.from(s.querySelectorAll("*")).filter(t=>!jt.has(t.tagName)&&!Bn(t))}const zn=new Set(["times","times new roman","arial","helvetica","system-ui","-webkit-small-control","monospace","courier","courier new"]);function Dn(s){const t=s.createElement("span");t.style.fontFamily="initial",s.body.append(t);const e=ot(t).fontFamily;return t.remove(),e}function ue(s,t){if(s.length===0)return;const e=Dn(s[0].ownerDocument),n=s.map(o=>{const i=ot(o);return{element:o,family:i.fontFamily,bold:St(i.fontWeight)}});for(const{element:o,family:i,bold:r}of n){const a=i===e||!i.includes(",")&&zn.has(i.replace(/^['"]|['"]$/g,"").toLowerCase()),l=wt(a?"sans-serif":i),c=Array.from(o.childNodes).some(h=>h.nodeType===3&&(h.textContent??"").trim());l.replaced&&c&&t.replacedFonts.add(l.replaced),ft(o,"font-family",l.fontFamily),ft(o,"font-weight",r?"700":"400")}}function fe(s){const t=[];for(let e=0;e<s.length;e+=1){const n=s[e];t.push([n,s.getPropertyValue(n)])}return t}function Wn(s,t){const e=s.defaultView,n=[];for(const l of Vt(s.body))if(!Se.has(l.tagName))for(const c of["before","after"]){const h=e.getComputedStyle(l,`::${c}`),f=Cn(h.content,u=>l.getAttribute(u));if(!(!f||h.display==="none")){if("unsupported"in f){t.notes.push({element:l,message:`::${c} 的 content 用了 ${f.unsupported},没有转`});continue}n.push({element:l,which:c,style:fe(h),content:f})}}if(n.length===0)return[];const o=new Set(n.map(l=>l.element)),i=new Map;for(const l of o)for(const c of[l,...Array.from(l.querySelectorAll("*"))])!i.has(c)&&!jt.has(c.tagName)&&i.set(c,fe(ot(c)));for(const[l,c]of i)for(const[h,f]of c)ft(l,h,f);const r=[];for(const{element:l,which:c,style:h,content:f}of n){const u="image"in f?s.createElement("img"):s.createElement("span");for(const[g,d]of h)ft(u,g,d);"image"in f?u.src=f.image:u.textContent=f.text,u.setAttribute("data-dc-pseudo",c),l.setAttribute(`data-dc-${c}`,""),c==="before"?l.prepend(u):l.append(u),r.push(u)}const a=s.createElement("style");return a.textContent="[data-dc-before]::before{content:none!important}[data-dc-after]::after{content:none!important}",s.head.append(a),r}function _n(s,t){const e="offsetWidth"in s?{width:s.offsetWidth,height:s.offsetHeight}:{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height},n=un(t.translate,t.rotate,t.scale,e),o=hn(t.transform);return!n||!o?null:It(n,o)}function Hn(s,t){const e=s.map(n=>{const o=ot(n);return{element:n,matrix:_n(n,o),origin:o.transformOrigin}});for(const{element:n,matrix:o,origin:i}of e)if(!(o&&fn(o))){if(!o)t.notes.push({element:n,message:"3D 变换没法还原,按不变换处理"});else{const[r="0",a="0"]=i.split(/\s+/);t.transforms.set(n,{matrix:o,origin:{x:$(r)??0,y:$(a)??0}})}for(const r of["transform","rotate","scale","translate"])ft(n,r,"none")}}async function Pt(s){const t=s.defaultView,e=()=>new Promise(n=>{const o=t.setTimeout(n,100);t.requestAnimationFrame(()=>{t.clearTimeout(o),n()})});s.body.getBoundingClientRect(),await s.fonts.ready,await e(),await e(),s.body.getBoundingClientRect(),await s.fonts.ready}async function Vn(s){const t={transforms:new Map,replacedFonts:new Set,notes:[]};ue([s.body,...Vt(s.body),...Array.from(s.body.querySelectorAll("svg text, svg tspan"))],t),await Pt(s);const e=Wn(s,t);return ue(e,t),await Pt(s),Hn([...Vt(s.body),...Array.from(s.body.querySelectorAll("svg"))],t),await Pt(s),t}const de=/[\u2e80-\u9fff\uac00-\ud7af\uf900-\ufaff\ufe30-\ufe4f\uff00-\uffef]/;function ge(s){return s!=="pre"&&s!=="pre-wrap"&&s!=="break-spaces"}function pe(s,t){const e=s.map(i=>Array.from(i.text,()=>!0));let n=null,o=!0;for(const[i,r]of s.entries()){const a=t(r);for(let l=0;l<r.text.length;l+=1){const c=r.text[l];if(c===`
|
|
1
|
+
var Ee=Object.defineProperty;var Re=(s,t,e)=>t in s?Ee(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var st=(s,t,e)=>Re(s,typeof t!="symbol"?t+"":t,e);import{Q as xt,cq as Ae,cr as ve,cs as Fe,c as Ut,ct as Te,p as Ie,a as Le,cu as $e,aG as Oe,cv as Pe,br as Be,bq as ze,cw as zt,cm as xe,cx as De,cy as Xt,j as at,r as nt,P as Yt,k as We,i as _e,h as He,s as Ve,f as qe,ci as Ge,ck as je,cl as Ue,C as Xe,m as Ye,b4 as Ke,aX as Ze,c7 as Kt,bQ as Je,bR as Qe,c8 as tn,c9 as en,bP as nn,F as on,e as sn,d as rn}from"./paginate-CywTJr2d.js";function P(s,t=","){const e=[];let n=0,o=null,i="";for(const r of s){if(o){i+=r,r===o&&(o=null);continue}if(r==='"'||r==="'"){o=r,i+=r;continue}if(r==="("&&(n+=1),r===")"&&(n=Math.max(0,n-1)),n===0&&(t===","?r===",":/\s/.test(r))){i.trim()&&e.push(i.trim()),i="";continue}i+=r}return i.trim()&&e.push(i.trim()),e}function Q(s,t,e){return Math.min(e,Math.max(t,s))}function Zt(s,t){const e=s.trim();if(e==="none")return 0;const n=Number.parseFloat(e);return Number.isFinite(n)?e.endsWith("%")?n/100*t:n:null}function Ct(s){const t=s.trim().toLowerCase();if(t==="transparent")return{r:0,g:0,b:0,a:0};const e=/^rgba?\((.*)\)$/.exec(t);if(!e)return null;const n=e[1],[o,i]=n.includes("/")?n.split("/"):[n,void 0],a=[...o.includes(",")?o.split(","):o.trim().split(/\s+/)];let l=i;if(l===void 0&&a.length===4&&(l=a.pop()),a.length!==3)return null;const[c,h,f]=a.map(g=>Zt(g,255)),u=l===void 0?1:Zt(l,1);return c===null||h===null||f===null||u===null?null:{r:Q(c,0,255),g:Q(h,0,255),b:Q(f,0,255),a:Q(u,0,1)}}function O(s){const t=e=>Math.round(Q(e,0,255)).toString(16).padStart(2,"0");return`#${t(s.r)}${t(s.g)}${t(s.b)}`}function rt(s,t){return{r:s.r*s.a+t.r*(1-s.a),g:s.g*s.a+t.g*(1-s.a),b:s.b*s.a+t.b*(1-s.a),a:1}}function $(s){if(!s)return null;const t=Number.parseFloat(s);return Number.isFinite(t)?t:null}function Gt(s){const t=/^(-?[\d.]+(?:e-?\d+)?)(deg|rad|grad|turn)$/i.exec(s.trim());if(!t)return null;const e=Number.parseFloat(t[1]);if(!Number.isFinite(e))return null;const n=t[2].toLowerCase();return n==="rad"?e*180/Math.PI:n==="grad"?e*.9:n==="turn"?e*360:e}const Jt={top:0,right:90,bottom:180,left:270};function an(s,t,e){const n=s.filter(a=>a in Jt);if(n.length!==s.length||n.length===0||n.length>2)return null;if(n.length===1)return Jt[n[0]];const o=n.find(a=>a==="top"||a==="bottom"),i=n.find(a=>a==="left"||a==="right");if(!o||!i)return null;const r=Math.atan2(e,t)*180/Math.PI;return o==="top"?i==="right"?r:360-r:i==="right"?180-r:180+r}function ln(s){if(s.length===0)return[];const t=s.map(n=>n.offset);t[0]===null&&(t[0]=0),t[t.length-1]===null&&(t[t.length-1]=1);let e=-1/0;for(let n=0;n<t.length;n+=1){const o=t[n];o!==null&&(e=Math.max(e,o),t[n]=e)}for(let n=1;n<t.length;n+=1){if(t[n]!==null)continue;const o=n-1;let i=n;for(;t[i]===null;)i+=1;const r=t[o],a=t[i];for(let l=n;l<i;l+=1)t[l]=r+(a-r)*(l-o)/(i-o);n=i}return s.map((n,o)=>({color:n.color,offset:t[o]}))}function Qt(s,t,e){const n=[];for(const o of s){const i=P(o," "),r=i.find(c=>e(c)!==null);if(!r){if(i.length===1&&/^-?[\d.]/.test(i[0]))continue;return null}const a=e(r),l=i.filter(c=>c!==r).map(c=>{const h=Number.parseFloat(c);return Number.isFinite(h)?c.endsWith("%")?h/100:c.endsWith("px")?t>0?h/t:null:h===0?0:null:null});if(l.some(c=>c===null))return null;l.length===0&&n.push({color:a,offset:null});for(const c of l)n.push({color:a,offset:c})}return n.length>=2?ln(n):null}function Rt(s,t,e,n=Ct){const o=/^(linear|radial)-gradient\((.*)\)$/s.exec(s.trim());if(!o)return null;const i=P(o[2]);if(i.length<2)return null;if(o[1]==="linear"){let f=180;const u=i[0],g=Gt(u);if(g!==null)f=g,i.shift();else if(u.startsWith("to ")){const m=an(u.slice(3).trim().split(/\s+/),t,e);if(m===null)return null;f=m,i.shift()}const d=f*Math.PI/180,p=Math.abs(t*Math.sin(d))+Math.abs(e*Math.cos(d)),y=Qt(i,p,n);return y?{kind:"linear",angle:(f%360+360)%360,stops:y}:null}let r=!0,a=!1;const l=n(P(i[0]," ")[0])===null?P(i.shift()," "):[];if(l.length>0){const f=l.indexOf("at"),u=f>=0?l.slice(0,f):l,g=f>=0?l.slice(f+1):[];for(const p of u)p==="circle"?a=!0:p!=="ellipse"&&p!=="farthest-corner"&&(r=!1);g.length===0||g.every(p=>p==="center"||p==="50%")||(r=!1)}!a&&Math.abs(t-e)>.5&&(r=!1);const c=Math.hypot(t,e)/2,h=Qt(i,c,n);return h?{kind:"radial",exact:r,stops:h}:null}function Me(s,t,e){return{r:s.r+(t.r-s.r)*e,g:s.g+(t.g-s.g)*e,b:s.b+(t.b-s.b)*e,a:s.a+(t.a-s.a)*e}}function Wt(s,t){if(t<=s[0].offset)return s[0].color;for(let e=1;e<s.length;e+=1){const n=s[e-1],o=s[e];if(t<=o.offset){const i=o.offset-n.offset;return i<=0?o.color:Me(n.color,o.color,(t-n.offset)/i)}}return s[s.length-1].color}function cn(s,t=8){const e=s.filter(o=>o.offset>0&&o.offset<1);let n=[{offset:0,color:Wt(s,0)},...e,{offset:1,color:Wt(s,1)}];for(;n.length>t;){let o=1,i=1/0;for(let r=1;r<n.length-1;r+=1){const a=n[r-1],l=n[r+1],c=l.offset-a.offset,h=c<=0?l.color:Me(a.color,l.color,(n[r].offset-a.offset)/c),f=n[r].color,u=Math.abs(h.r-f.r)+Math.abs(h.g-f.g)+Math.abs(h.b-f.b)+Math.abs(h.a-f.a)*255;u<i&&(i=u,o=r)}n=[...n.slice(0,o),...n.slice(o+1)]}return n}function ht(s){if(s.kind==="radial"&&!s.exact)return null;const t=cn(s.stops),e=t[0].color.a;if(t.some(i=>Math.abs(i.color.a-e)>.02))return null;const n=t.map(i=>({offset:Math.round(i.offset*1e4)/1e4,color:O(i.color)}));if(s.kind==="radial")return{paint:{type:"radial-gradient",stops:n},alpha:e};const o=Math.round(s.angle)%360;return{paint:n.length===2&&n[0].offset===0&&n[1].offset===1?{type:"linear-gradient",from:n[0].color,to:n[1].color,angle:o}:{type:"linear-gradient",stops:n,angle:o},alpha:e}}function Tt(s,t=Ct){if(!s||s==="none")return[];const e=[];for(const n of P(s)){const o=P(n," ");let i=null,r=!1;const a=[];for(const l of o){if(l==="inset"){r=!0;continue}const c=/^-?[\d.]+(px)?$/.test(l)?Number.parseFloat(l):null;if(c!==null&&Number.isFinite(c)){a.push(c);continue}i=t(l)??i}a.length<2||e.push({inset:r,x:a[0],y:a[1],blur:Math.max(0,a[2]??0),spread:a[3]??0,color:i??{r:0,g:0,b:0,a:1}})}return e}const ke=[1,0,0,1,0,0];function It(s,t){const[e,n,o,i,r,a]=s,[l,c,h,f,u,g]=t;return[e*l+o*c,n*l+i*c,e*h+o*f,n*h+i*f,e*u+o*g+r,n*u+i*g+a]}function _t(s,t,e){return{x:s[0]*t+s[2]*e+s[4],y:s[1]*t+s[3]*e+s[5]}}function hn(s){if(!s||s==="none")return ke;const t=/^matrix\((.*)\)$/.exec(s.trim());if(t){const n=t[1].split(",").map(o=>Number.parseFloat(o));return n.length===6&&n.every(Number.isFinite)?n:null}const e=/^matrix3d\((.*)\)$/.exec(s.trim());if(e){const n=e[1].split(",").map(i=>Number.parseFloat(i));return n.length!==16||!n.every(Number.isFinite)?null:Math.abs(n[2])<1e-6&&Math.abs(n[3])<1e-6&&Math.abs(n[6])<1e-6&&Math.abs(n[7])<1e-6&&Math.abs(n[8])<1e-6&&Math.abs(n[9])<1e-6&&Math.abs(n[11])<1e-6&&Math.abs(n[14])<1e-6&&Math.abs(n[15]-1)<1e-6?[n[0],n[1],n[4],n[5],n[12],n[13]]:null}return null}function un(s,t,e,n={width:0,height:0}){let o=ke;if(s&&s!=="none"){const[i="0",r="0",a="0"]=s.trim().split(/\s+/);if(Number.parseFloat(a)!==0)return null;const l=(f,u)=>{const g=Number.parseFloat(f);return Number.isFinite(g)?f.endsWith("%")?g/100*u:g:null},c=l(i,n.width),h=l(r,n.height);if(c===null||h===null)return null;o=It(o,[1,0,0,1,c,h])}if(t&&t!=="none"){const i=t.trim().split(/\s+/),r=Gt(i[i.length-1]),a=i.length===1||i.length===2&&i[0]==="z"||i.length===4&&Number.parseFloat(i[0])===0&&Number.parseFloat(i[1])===0;if(r===null||!a)return null;const l=r*Math.PI/180;o=It(o,[Math.cos(l),Math.sin(l),-Math.sin(l),Math.cos(l),0,0])}if(e&&e!=="none"){const[i="1",r=i]=e.trim().split(/\s+/),a=Number.parseFloat(i)*(i.endsWith("%")?.01:1),l=Number.parseFloat(r)*(r.endsWith("%")?.01:1);if(!Number.isFinite(a)||!Number.isFinite(l))return null;o=It(o,[a,0,0,l,0,0])}return o}function fn(s,t=1e-6){return Math.abs(s[0]-1)<t&&Math.abs(s[1])<t&&Math.abs(s[2])<t&&Math.abs(s[3]-1)<t}function dn(s){const[t,e,n,o]=s,i=Math.hypot(t,e),r=t*o-e*n,a=i>0?r/i:0,l=i>0?(t*n+e*o)/(i*i):0,c=(Math.atan2(e,t)*180/Math.PI+360)%360,h=Math.sqrt(Math.abs(r)),f=i>0&&Math.abs(i-a)<.001*Math.max(1,i)&&Math.abs(l)<.001;return{rotation:Math.round(c*1e3)/1e3,scale:h,exact:f}}function te(s,t=Ct){const e={filter:{},opacity:1,dropShadow:null,unsupported:[]};if(!s||s==="none")return e;const n=s.match(/[a-z-]+\((?:[^()]|\([^()]*\))*\)/g)??[];for(const i of n){const r=/^([a-z-]+)\((.*)\)$/s.exec(i);if(!r)continue;const a=r[1],l=r[2].trim(),c=()=>{const h=Number.parseFloat(l);return Number.isFinite(h)?l.endsWith("%")?h/100:h:1};if(a==="blur")e.filter.blur=Q($(l)??0,0,100);else if(a==="brightness")e.filter.brightness=Q(c(),0,3);else if(a==="contrast")e.filter.contrast=Q(c(),0,3);else if(a==="saturate")e.filter.saturation=Q(c(),0,3);else if(a==="grayscale")e.filter.grayscale=Q(c(),0,1);else if(a==="sepia")e.filter.sepia=Q(c(),0,1);else if(a==="hue-rotate"){const h=Gt(l)??0;e.filter.hue=(Math.round(h)%360+360)%360}else a==="opacity"?e.opacity*=Q(c(),0,1):a==="drop-shadow"?e.dropShadow=Tt(l,t)[0]??null:e.unsupported.push(a)}const o={brightness:1,contrast:1,saturation:1,blur:0,hue:0,grayscale:0,sepia:0};for(const i of Object.keys(e.filter))Math.abs(e.filter[i]-o[i])<1e-6&&delete e.filter[i];return e}const gn=new Set(["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]);function pn(s){return gn.has(s)?s:null}function St(s){const t=Number.parseFloat(s);return Number.isFinite(t)?t>=600:s==="bold"||s==="bolder"}const Y="PingFang SC, Microsoft YaHei, system-ui, sans-serif",yt=xt[1].id,bt=xt[2].id,Lt=xt[3].id,ee=xt[4].id,At=xt[5].id,$t=xt[6].id,[mn,yn,bn,ne,oe]=Ae.map(s=>s.id),ie={"pingfang sc":Y,"pingfang tc":Y,"pingfang hk":Y,pingfang:Y,苹方:Y,"noto sans sc":yt,"noto sans cjk sc":yt,"source han sans sc":yt,"source han sans":yt,思源黑体:yt,"noto serif sc":bt,"noto serif cjk sc":bt,"source han serif sc":bt,"source han serif":bt,思源宋体:bt,"lxgw wenkai tc":Lt,"lxgw wenkai":Lt,霞鹜文楷:Lt,"zcool xiaowei":ee,站酷小薇:ee,"songti sc":At,stsong:At,simsun:At,宋体:At,"system-ui":$t,"-apple-system":$t,blinkmacsystemfont:$t,"playfair display":mn,"archivo black":yn,"great vibes":bn,"zcool qingke huangyou":ne,站酷庆科黄油体:ne,"ma shan zheng":oe,马善政毛笔楷书:oe},se={"microsoft yahei":Y,微软雅黑:Y,"hiragino sans gb":Y,"heiti sc":Y,stheiti:Y,黑体:Y,simhei:Y},wn=/serif|times|georgia|garamond|baskerville|playfair|didot|bodoni|merriweather|lora|song|ming|明朝|宋|serif sc/i,xn=/kai|楷|cursive|hand|script|brush|comic|marker/i,re={"sans-serif":"sans","ui-sans-serif":"sans",monospace:"sans","ui-monospace":"sans",serif:"serif","ui-serif":"serif",cursive:"script",fantasy:"script"},Mn=new Set(["sans-serif","ui-sans-serif","arial","helvetica","helvetica neue","inter","roboto","segoe ui","sf pro display","sf pro text","avenir","avenir next","montserrat","poppins","open sans","lato"]);function kn(s){return P(s).map(t=>t.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean)}function wt(s){const t=kn(s);for(const a of t){const l=a.toLowerCase();if(ie[l])return{fontFamily:ie[l],replaced:null};if(se[l])return{fontFamily:se[l],replaced:null}}const e=t[0]??"",n=e.toLowerCase(),i=re[n]||n===""?null:e,r=t.map(a=>re[a.toLowerCase()]).find(Boolean)??(xn.test(e)?"script":wn.test(e)&&!Mn.has(n)?"serif":"sans");return{fontFamily:r==="serif"?bt:r==="script"?Lt:Y,replaced:i}}function Sn(s){const{fontFamily:t}=wt(s);return t===Y||t===yt||t===$t}function ae(s,t){return t==="uppercase"?s.toUpperCase():t==="lowercase"?s.toLowerCase():t==="capitalize"?s.replace(new RegExp(`(^|[\\s (("“'‘-])(\\p{L})`,"gu"),(e,n,o)=>n+o.toUpperCase()):s}function Nn(s,t){switch(s){case"disc":return"•";case"circle":return"◦";case"square":return"▪";case"decimal":return`${t}.`;case"decimal-leading-zero":return`${String(t).padStart(2,"0")}.`;case"lower-alpha":case"lower-latin":return t>=1&&t<=26?`${String.fromCharCode(96+t)}.`:null;case"upper-alpha":case"upper-latin":return t>=1&&t<=26?`${String.fromCharCode(64+t)}.`:null;case"cjk-decimal":return`${String(t).replace(/\d/g,e=>"〇一二三四五六七八九"[Number(e)])}、`;default:return null}}function Cn(s,t){if(!s||s==="none"||s==="normal")return null;const e=/^url\((['"]?)(.*?)\1\)$/.exec(s.trim());if(e)return{image:e[2]};let n="";for(const o of P(s," ")){const i=/^(['"])(.*)\1$/s.exec(o);if(i){n+=i[2].replace(/\\([0-9a-fA-F]{1,6})\s?/g,(a,l)=>String.fromCodePoint(Number.parseInt(l,16))).replace(/\\(.)/g,"$1");continue}const r=/^attr\(\s*([\w-]+)\s*\)$/.exec(o);if(r){n+=t(r[1])??"";continue}if(o==="open-quote")n+="“";else if(o==="close-quote")n+="”";else{if(o==="no-open-quote"||o==="no-close-quote")continue;return{unsupported:o}}}return{text:n}}function T(s){const t=Math.round(s*1e3)/1e3;return Object.is(t,-0)?"0":String(t)}const En={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0};function Rn(s,t,e,n){const[o,i,r,a]=n,l=e*Math.PI/180,c=Math.cos(l),h=Math.sin(l),f=o*s*c+r*s*h,u=-o*t*h+r*t*c,g=i*s*c+a*s*h,d=-i*t*h+a*t*c,p=(f+d)/2,y=(f-d)/2,m=(g+u)/2,x=(g-u)/2,M=Math.hypot(p,x),S=Math.hypot(y,m),b=(Math.atan2(m,y)+Math.atan2(x,p))/2;return{rx:M+S,ry:Math.abs(M-S),rotation:b*180/Math.PI}}function An(s,t){const e=ve(s);if(!e)return null;const n=t[0]*t[3]-t[1]*t[2]<0,o=[],i=(g,d)=>{const p=_t(t,g,d);return`${T(p.x)} ${T(p.y)}`};let r=0,a=0,l=0,c=0,h=null,f=null;for(const g of e){const d=g.command.toLowerCase(),p=g.command!==g.command.toUpperCase(),y=En[d];if(y===0){o.push("Z"),r=l,a=c,h=null,f=null;continue}for(let m=0;m+y<=g.values.length;m+=y){const x=g.values.slice(m,m+y),M=p?r:0,S=p?a:0;let b=d;if(d==="m"&&m>0&&(b="l"),b==="m")r=x[0]+M,a=x[1]+S,l=r,c=a,o.push(`M ${i(r,a)}`),h=null,f=null;else if(b==="l"||b==="h"||b==="v")b==="l"?(r=x[0]+M,a=x[1]+S):b==="h"?r=x[0]+(p?r:0):a=x[0]+(p?a:0),o.push(`L ${i(r,a)}`),h=null,f=null;else if(b==="c"||b==="s"){let E,C,w;b==="c"?(E=x[0]+M,C=x[1]+S,w=x.slice(2)):(E=h?2*r-h.x:r,C=h?2*a-h.y:a,w=x);const N=w[0]+M,F=w[1]+S,v=w[2]+M,B=w[3]+S;o.push(`C ${i(E,C)} ${i(N,F)} ${i(v,B)}`),h={x:N,y:F},f=null,r=v,a=B}else if(b==="q"||b==="t"){let E,C,w;b==="q"?(E=x[0]+M,C=x[1]+S,w=x.slice(2)):(E=f?2*r-f.x:r,C=f?2*a-f.y:a,w=x);const N=w[0]+M,F=w[1]+S;o.push(`Q ${i(E,C)} ${i(N,F)}`),f={x:E,y:C},h=null,r=N,a=F}else if(b==="a"){const E=x[5]+M,C=x[6]+S;if(x[0]===0||x[1]===0)o.push(`L ${i(E,C)}`);else{const w=Rn(Math.abs(x[0]),Math.abs(x[1]),x[2],t),N=n?x[4]?0:1:x[4]?1:0;o.push(`A ${T(w.rx)} ${T(w.ry)} ${T(w.rotation)} ${x[3]?1:0} ${N} ${i(E,C)}`)}h=null,f=null,r=E,a=C}}}const u=o.join(" ");return u.length>0&&u.length<=Fe?u:null}function vn(s,t,e){const{topLeft:n,topRight:o,bottomRight:i,bottomLeft:r}=e,a=Math.min(1,s/Math.max(1e-9,n[0]+o[0]),s/Math.max(1e-9,r[0]+i[0]),t/Math.max(1e-9,n[1]+r[1]),t/Math.max(1e-9,o[1]+i[1])),l=c=>[c[0]*a,c[1]*a];return{topLeft:l(n),topRight:l(o),bottomRight:l(i),bottomLeft:l(r)}}function Ht(s,t,e,n,o){const{topLeft:i,topRight:r,bottomRight:a,bottomLeft:l}=vn(e,n,o),c=s+e,h=t+n,f=(u,g,d)=>u[0]>0&&u[1]>0?` A ${T(u[0])} ${T(u[1])} 0 0 1 ${T(g)} ${T(d)}`:` L ${T(g)} ${T(d)}`;return`M ${T(s+i[0])} ${T(t)} L ${T(c-r[0])} ${T(t)}`+f(r,c,t+r[1])+` L ${T(c)} ${T(h-a[1])}`+f(a,c-a[0],h)+` L ${T(s+l[0])} ${T(h)}`+f(l,s,h-l[1])+` L ${T(s)} ${T(t+i[1])}`+f(i,s+i[0],t)+" Z"}function Dt(s,t,e,n){const o=`${T(s-e)} ${T(t)}`,i=`${T(s+e)} ${T(t)}`;return`M ${o} A ${T(e)} ${T(n)} 0 1 0 ${i} A ${T(e)} ${T(n)} 0 1 0 ${o} Z`}function Fn(s){const t=(s.match(/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?/g)??[]).map(Number),e=[];for(let n=0;n+1<t.length;n+=2)e.push({x:t[n],y:t[n+1]});return e}function Tn(s,t){if(s.length<2)return null;const[e,...n]=s;return`M ${T(e.x)} ${T(e.y)}${n.map(o=>` L ${T(o.x)} ${T(o.y)}`).join("")}${t?" Z":""}`}function In(s,t,e,n,o,i){let r=o??i??0,a=i??o??0;r=Math.min(Math.max(0,r),e/2),a=Math.min(Math.max(0,a),n/2);const l=[r,a];return Ht(s,t,e,n,{topLeft:l,topRight:l,bottomRight:l,bottomLeft:l})}const D=8,le=128,ce=4096,vt={r:255,g:255,b:255,a:1},jt=new Set(["HEAD","SCRIPT","STYLE","TEMPLATE","NOSCRIPT","LINK","META","TITLE"]),Se=new Set(["IMG","SVG","CANVAS","VIDEO","IFRAME","INPUT","TEXTAREA","SELECT","OBJECT","EMBED","PICTURE","PROGRESS"]),Ne=12,Ot=6,he=24;function Ln(s){var a;const t=s[0].some(l=>l.tagName.toUpperCase()==="TH"),e=s.slice(0,Ne);let n=0;for(const l of e)n=Math.max(n,l.length);let o=0;n>Ot&&(o=e.reduce((l,c)=>l+c.length-Ot,0),n=Ot);const i=[];let r=0;for(const l of e)for(let c=0;c<n;c+=1){const h=(((a=l[c])==null?void 0:a.textContent)??"").replace(/\s+/g," ").trim();h.length>he?(r+=1,i.push(h.slice(0,he))):i.push(h)}return{rows:e.length,cols:n,cells:i,headerRow:t,droppedRows:s.length-e.length,droppedCells:o,cutChars:r}}function $n(s,t){const e=t>0?t:1;return Math.min(100,Math.max(0,Math.round(s/e*1e3)/10))}const On=new Set(["path","rect","circle","ellipse","line","polyline","polygon"]),Pn=new Set(["defs","clipPath","mask","marker","pattern","symbol","linearGradient","radialGradient","filter"]);function ot(s){return s.ownerDocument.defaultView.getComputedStyle(s)}function Bn(s){return s.namespaceURI==="http://www.w3.org/2000/svg"}function ft(s,t,e){s.style.setProperty(t,e,"important")}function Vt(s){return Array.from(s.querySelectorAll("*")).filter(t=>!jt.has(t.tagName)&&!Bn(t))}const zn=new Set(["times","times new roman","arial","helvetica","system-ui","-webkit-small-control","monospace","courier","courier new"]);function Dn(s){const t=s.createElement("span");t.style.fontFamily="initial",s.body.append(t);const e=ot(t).fontFamily;return t.remove(),e}function ue(s,t){if(s.length===0)return;const e=Dn(s[0].ownerDocument),n=s.map(o=>{const i=ot(o);return{element:o,family:i.fontFamily,bold:St(i.fontWeight)}});for(const{element:o,family:i,bold:r}of n){const a=i===e||!i.includes(",")&&zn.has(i.replace(/^['"]|['"]$/g,"").toLowerCase()),l=wt(a?"sans-serif":i),c=Array.from(o.childNodes).some(h=>h.nodeType===3&&(h.textContent??"").trim());l.replaced&&c&&t.replacedFonts.add(l.replaced),ft(o,"font-family",l.fontFamily),ft(o,"font-weight",r?"700":"400")}}function fe(s){const t=[];for(let e=0;e<s.length;e+=1){const n=s[e];t.push([n,s.getPropertyValue(n)])}return t}function Wn(s,t){const e=s.defaultView,n=[];for(const l of Vt(s.body))if(!Se.has(l.tagName))for(const c of["before","after"]){const h=e.getComputedStyle(l,`::${c}`),f=Cn(h.content,u=>l.getAttribute(u));if(!(!f||h.display==="none")){if("unsupported"in f){t.notes.push({element:l,message:`::${c} 的 content 用了 ${f.unsupported},没有转`});continue}n.push({element:l,which:c,style:fe(h),content:f})}}if(n.length===0)return[];const o=new Set(n.map(l=>l.element)),i=new Map;for(const l of o)for(const c of[l,...Array.from(l.querySelectorAll("*"))])!i.has(c)&&!jt.has(c.tagName)&&i.set(c,fe(ot(c)));for(const[l,c]of i)for(const[h,f]of c)ft(l,h,f);const r=[];for(const{element:l,which:c,style:h,content:f}of n){const u="image"in f?s.createElement("img"):s.createElement("span");for(const[g,d]of h)ft(u,g,d);"image"in f?u.src=f.image:u.textContent=f.text,u.setAttribute("data-dc-pseudo",c),l.setAttribute(`data-dc-${c}`,""),c==="before"?l.prepend(u):l.append(u),r.push(u)}const a=s.createElement("style");return a.textContent="[data-dc-before]::before{content:none!important}[data-dc-after]::after{content:none!important}",s.head.append(a),r}function _n(s,t){const e="offsetWidth"in s?{width:s.offsetWidth,height:s.offsetHeight}:{width:s.getBoundingClientRect().width,height:s.getBoundingClientRect().height},n=un(t.translate,t.rotate,t.scale,e),o=hn(t.transform);return!n||!o?null:It(n,o)}function Hn(s,t){const e=s.map(n=>{const o=ot(n);return{element:n,matrix:_n(n,o),origin:o.transformOrigin}});for(const{element:n,matrix:o,origin:i}of e)if(!(o&&fn(o))){if(!o)t.notes.push({element:n,message:"3D 变换没法还原,按不变换处理"});else{const[r="0",a="0"]=i.split(/\s+/);t.transforms.set(n,{matrix:o,origin:{x:$(r)??0,y:$(a)??0}})}for(const r of["transform","rotate","scale","translate"])ft(n,r,"none")}}async function Pt(s){const t=s.defaultView,e=()=>new Promise(n=>{const o=t.setTimeout(n,100);t.requestAnimationFrame(()=>{t.clearTimeout(o),n()})});s.body.getBoundingClientRect(),await s.fonts.ready,await e(),await e(),s.body.getBoundingClientRect(),await s.fonts.ready}async function Vn(s){const t={transforms:new Map,replacedFonts:new Set,notes:[]};ue([s.body,...Vt(s.body),...Array.from(s.body.querySelectorAll("svg text, svg tspan"))],t),await Pt(s);const e=Wn(s,t);return ue(e,t),await Pt(s),Hn([...Vt(s.body),...Array.from(s.body.querySelectorAll("svg"))],t),await Pt(s),t}const de=/[\u2e80-\u9fff\uac00-\ud7af\uf900-\ufaff\ufe30-\ufe4f\uff00-\uffef]/;function ge(s){return s!=="pre"&&s!=="pre-wrap"&&s!=="break-spaces"}function pe(s,t){const e=s.map(i=>Array.from(i.text,()=>!0));let n=null,o=!0;for(const[i,r]of s.entries()){const a=t(r);for(let l=0;l<r.text.length;l+=1){const c=r.text[l];if(c===`
|
|
2
2
|
`){n&&(e[n.run][n.index]=!1),n=null,o=!0;continue}if(c===" "&&a){o||n?e[i][l]=!1:n={run:i,index:l};continue}n=null,o=!1}}return n&&(e[n.run][n.index]=!1),s.map((i,r)=>{if(e[r].every(Boolean))return i;let a="";const l=[];for(const[c,h,f,u]of i.map){let g="";for(let d=c;d<h;d+=1)e[r][d]&&(g+=i.text[d]);g&&(l.push([a.length,a.length+g.length,f,u]),a+=g)}return{...i,text:a,map:l}}).filter(i=>i.text.length>0)}function qn(s,t,e){const n=[];for(const[o,i,r,a]of s.map){const l=Math.max(o,t),c=Math.min(i,e);if(c<=l)continue;const h=i-o===a-r;n.push([l-t,c-t,h?r+(l-o):r,h?r+(c-o):a])}return{...s,text:s.text.slice(t,e),map:n}}const Mt={topLeft:[0,0],topRight:[0,0],bottomRight:[0,0],bottomLeft:[0,0]};function A(s){return Math.round(s*100)/100}function ut(s,t){const e=Math.max(s.x,t.x),n=Math.max(s.y,t.y),o=Math.min(s.x+s.width,t.x+t.width),i=Math.min(s.y+s.height,t.y+t.height);return o-e>.01&&i-n>.01?{x:e,y:n,width:o-e,height:i-n}:null}function kt(s,t,e=1){return Math.abs(s.x-t.x)<=e&&Math.abs(s.y-t.y)<=e&&Math.abs(s.width-t.width)<=e&&Math.abs(s.height-t.height)<=e}function pt(s){return[s.topLeft,s.topRight,s.bottomRight,s.bottomLeft].some(([t,e])=>t>.01&&e>.01)}function mt(s,t,e,n,o){const i=(r,a,l)=>[Math.max(0,r[0]-a),Math.max(0,r[1]-l)];return{topLeft:i(s.topLeft,o,t),topRight:i(s.topRight,e,t),bottomRight:i(s.bottomRight,e,n),bottomLeft:i(s.bottomLeft,o,n)}}function Bt(s){const t=s.getAttribute("data-dc-pseudo");if(t&&s.parentElement)return`${Bt(s.parentElement)}::${t}`;if(s.getAttribute("data-name"))return s.getAttribute("data-name");const e=s.tagName.toLowerCase();if(s.id)return`${e}#${s.id}`;const n=typeof s.className=="string"?s.className.trim().split(/\s+/)[0]:"";if(n)return`${e}.${n}`;const o=(s.textContent??"").trim().replace(/\s+/g," ");return o?`${e}「${o.slice(0,12)}${o.length>12?"…":""}」`:e}function me(s){const t=s.replace(/\s+/g," ").trim();return t.length>16?`${t.slice(0,16)}…`:t||"文本"}class Gn{constructor(t,e,n,o,i,r,a,l){st(this,"styles",new Map);st(this,"opacities",new Map);st(this,"tableReads",new Map);st(this,"normalLineHeights",new Map);st(this,"view");st(this,"resolveColor",t=>this.color(t));st(this,"pageBackdrop",vt);st(this,"decoratedInlines",new Set);this.doc=t,this.page=e,this.origin=n,this.size=o,this.prepared=i,this.options=r,this.note=a,this.pictureSize=l,this.view=t.defaultView}style(t){let e=this.styles.get(t);return e||(e=this.view.getComputedStyle(t),this.styles.set(t,e)),e}color(t){if(!t)return null;const e=Ct(t);if(e)return e;const n=this.view.CSS;if(!(n!=null&&n.supports("color",t)))return null;const o=this.doc.createElement("span");o.style.color=t,this.doc.body.append(o);const i=Ct(this.view.getComputedStyle(o).color);return o.remove(),i}rel(t){const e="left"in t?t.left:t.x,n="top"in t?t.top:t.y;return{x:e-this.origin.x,y:n-this.origin.y,width:t.width,height:t.height}}pageRect(){return{x:0,y:0,width:this.size.width,height:this.size.height}}opacityOf(t){const e=this.opacities.get(t);if(e!==void 0)return e;const n=Number.parseFloat(this.style(t).opacity),o=t===this.page||!t.parentElement?1:this.opacityOf(t.parentElement),i=te(this.style(t).filter,this.resolveColor).opacity,r=(Number.isFinite(n)?n:1)*i*o;return this.opacities.set(t,r),r}appearanceOf(t){let e,n,o=null;for(let i=t;i;i=i===this.page?null:i.parentElement){const r=this.style(i);if(!e&&r.filter&&r.filter!=="none"){const a=te(r.filter,this.resolveColor);Object.keys(a.filter).length>0&&(e=a.filter),a.dropShadow&&i===t&&(o=a.dropShadow),a.unsupported.length>0&&this.note(i,`滤镜 ${a.unsupported.join("、")} 没有对应的设置,去掉了`)}if(!n&&r.mixBlendMode&&r.mixBlendMode!=="normal"){const a=pn(r.mixBlendMode);a?n=a:this.note(i,`混合模式 ${r.mixBlendMode} 没有对应的设置`)}if(i===t){r.backdropFilter&&r.backdropFilter!=="none"&&this.note(i,"背景模糊(backdrop-filter)没法还原,去掉了"),r.clipPath&&r.clipPath!=="none"&&this.note(i,"裁切形状(clip-path)没法还原,按原来的方框画出");const a=r.getPropertyValue("mask-image")||r.getPropertyValue("-webkit-mask-image");a&&a!=="none"&&this.note(i,"遮罩(mask)没法还原,去掉了")}}return{...e?{filter:e}:{},...n?{blendMode:n}:{},dropShadow:o}}backdropOf(t){for(let e=t.parentElement;e;e=e===this.page?null:e.parentElement){const n=this.style(e),o=this.color(n.backgroundColor);if(o&&o.a>.98)return o;const i=P(n.backgroundImage)[0];if(i&&i!=="none"){const r=e.getBoundingClientRect(),a=Rt(i,r.width,r.height,this.resolveColor);if(a)return rt(Wt(a.stops,.5),vt)}}return this.pageBackdrop}isFlexOrGridItem(t){const e=t.parentElement;if(!e)return!1;const n=this.style(e).display;return n.includes("flex")||n.includes("grid")}createsContext(t,e){if(this.prepared.transforms.has(t)||t.hasAttribute("data-group"))return!0;const n=e.position!=="static",o=e.zIndex==="auto";if(e.position==="fixed"||e.position==="sticky"||n&&!o||!o&&this.isFlexOrGridItem(t)||Number.parseFloat(e.opacity)<1||e.transform!=="none"||e.translate!=="none"||e.rotate!=="none"||e.scale!=="none"||e.filter!=="none"||e.mixBlendMode!=="normal"||e.isolation==="isolate"||e.clipPath!=="none"||e.backdropFilter!=="none")return!0;const i=e.getPropertyValue("mask-image")||e.getPropertyValue("-webkit-mask-image");return i&&i!=="none"?!0:/transform|opacity|filter/.test(e.willChange)}zOf(t){const e=Number.parseInt(t.zIndex,10);return Number.isFinite(e)?e:0}isReplaced(t){const e=t.tagName.toUpperCase();return e==="TABLE"?this.tableElementRead(t)!==null:Se.has(e)}classify(t){if(jt.has(t.tagName.toUpperCase()))return"skip";const e=this.style(t);if(e.display==="none"||Number.parseFloat(e.opacity)===0)return"skip";if(t.tagName==="BR")return"br";if(e.display==="contents")return"contents";if(e.position!=="static"||this.createsContext(t,e))return"layer";if(this.isReplaced(t))return"atomic";const n=e.display;return n==="inline-block"||n==="inline-flex"||n==="inline-grid"||n==="inline-table"||this.isFlexOrGridItem(t)?"atomic":n==="inline"||n.startsWith("ruby")?"inline":"block"}flowChildren(t){const e=[];for(const n of Array.from(t.childNodes))n.nodeType===Node.ELEMENT_NODE&&this.classify(n)==="contents"?e.push(...this.flowChildren(n)):e.push(n);return e}paint(t){const e=[],n=[],o=[],i=[];let r=0;const a=u=>{const g=this.style(u),d={z:this.createsContext(u,g)?this.zOf(g):0,order:r++,element:u};d.z<0?e.push(d):n.push(d)},l=u=>{for(const g of Array.from(u.children)){const d=this.classify(g);d==="skip"||d==="br"||(d==="layer"?a(g):d==="atomic"?i.push({kind:"atomic",element:g}):d==="block"?(o.push(g),c(g)):l(g))}},c=u=>{const g=[];let d=!1;const p=(y=!1)=>{g.some(m=>(m.textContent??"").trim().length>0)&&i.push({kind:"text",group:{container:u,nodes:[...g],afterBox:d,beforeBox:y}}),g.length=0,d=!1};this.style(u).display==="list-item"&&i.push({kind:"marker",element:u});for(const y of this.flowChildren(u)){if(y.nodeType===Node.TEXT_NODE){g.push(y);continue}if(y.nodeType!==Node.ELEMENT_NODE)continue;const m=y,x=this.classify(m);if(x==="skip")continue;if(x==="layer"){a(m);continue}if(x==="br"||x==="inline"){g.push(m),x==="inline"&&l(m);continue}const M=x==="atomic"&&!this.isFlexOrGridItem(m);p(M),x==="atomic"?(i.push({kind:"atomic",element:m}),d=M):this.simpleList(m)?(o.push(m),i.push({kind:"list",element:m})):(o.push(m),c(m))}p()};this.simpleList(t)?i.push({kind:"list",element:t}):c(t);const h=(u,g)=>u.z-g.z||u.order-g.order;return e.sort(h),n.sort(h),[...t===this.page&&!this.createsContext(t,this.style(t))?[]:e.flatMap(u=>this.paintAsContext(u.element)),...o.map(u=>({kind:"box",element:u})),...i.flatMap(u=>u.kind==="text"?[{kind:"text",group:u.group}]:u.kind==="marker"||u.kind==="list"?[{kind:u.kind,element:u.element}]:this.paintAsContext(u.element)),...n.flatMap(u=>this.paintAsContext(u.element))]}paintAsContext(t){const e=this.isReplaced(t)?[{kind:"box",element:t},{kind:"replaced",element:t}]:[{kind:"box",element:t},...this.paint(t)];return this.prepared.transforms.has(t)||t.hasAttribute("data-group")?[{kind:"context",element:t,ops:e}]:e}async nodesOf(t){const e=[];for(const n of t)n.kind==="box"?e.push(...await this.boxNodes(n.element)):n.kind==="text"?e.push(...await this.inlineBoxes(n.group),...this.textNodes(n.group)):n.kind==="replaced"?e.push(...this.replacedNodes(n.element)):n.kind==="marker"?e.push(...this.markerNodes(n.element)):n.kind==="list"?e.push(...this.listNodes(n.element)):e.push(...this.wrap(n.element,await this.nodesOf(n.ops)));return e}id(){return this.options.newId()}base(t,e){return{id:this.id(),name:t,locked:!1,hidden:!1,x:A(e.x),y:A(e.y),width:Math.max(.01,A(e.width)),height:Math.max(.01,A(e.height)),rotation:0,scale:1}}shadowOf(t,e){if(!t||t.color.a<=.01)return;const n=t.color.a<1?rt(t.color,e):t.color;return{color:O(n),blur:Math.min(400,A(t.blur)),offsetX:Math.max(-1e3,Math.min(1e3,A(t.x))),offsetY:Math.max(-1e3,Math.min(1e3,A(t.y)))}}finishLeaf(t,e,n,o={}){const i=Math.max(0,Math.min(1,n*this.opacityOf(e))),r=o.appearance??this.appearanceOf(e);return{...t,...i<.999?{opacity:Math.round(i*1e3)/1e3}:{},...o.shadow?{shadow:o.shadow}:{},...r.filter?{filter:r.filter}:{},...r.blendMode?{blendMode:r.blendMode}:{}}}shape(t,e,n,o){const{topLeft:i,topRight:r,bottomRight:a,bottomLeft:l}=e.radii,c=[i,r,a,l],h=c.every(([m,x])=>Math.abs(m-x)<.5),f=c.every(([m,x])=>Math.abs(m-i[0])<.5&&Math.abs(x-i[1])<.5),u=(o==null?void 0:o.width)??0,g=(o==null?void 0:o.color)??"#000000";if(h&&f){const m=i[0],x=Math.abs(e.width-e.height)<.5&&m>=e.width/2-.5;return{...this.base(t,e),type:"shape",shape:x?"ellipse":"rect",fill:n,stroke:g,strokeWidth:A(u),...x?{}:{cornerRadius:Math.min(2e3,A(m))}}}const d=u/2,y=f&&i[0]>=e.width/2-.5&&i[1]>=e.height/2-.5?Dt(e.x+e.width/2,e.y+e.height/2,e.width/2-d,e.height/2-d):Ht(e.x+d,e.y+d,e.width-u,e.height-u,mt(e.radii,d,d,d,d));return{...this.base(t,e),type:"path",d:y,viewBox:{x:A(e.x),y:A(e.y),width:Math.max(.01,A(e.width)),height:Math.max(.01,A(e.height))},fill:n,stroke:g,strokeWidth:A(u)}}radiiOf(t,e){const n=o=>{const[i="0",r=i]=o.trim().split(/\s+/),a=(l,c)=>{const h=Number.parseFloat(l);return Number.isFinite(h)?l.endsWith("%")?h/100*c:h:0};return[a(i,e.width),a(r,e.height)]};return{topLeft:n(t.borderTopLeftRadius),topRight:n(t.borderTopRightRadius),bottomRight:n(t.borderBottomRightRadius),bottomLeft:n(t.borderBottomLeftRadius)}}bordersOf(t){const e=n=>{const o=t.getPropertyValue(`border-${n.toLowerCase()}-style`);return{width:o==="none"||o==="hidden"?0:$(t.getPropertyValue(`border-${n.toLowerCase()}-width`))??0,style:o,color:this.color(t.getPropertyValue(`border-${n.toLowerCase()}-color`))}};return{top:e("Top"),right:e("Right"),bottom:e("Bottom"),left:e("Left")}}async boxNodes(t,e){if(t===this.page||["IFRAME","INPUT","TEXTAREA","SELECT","OBJECT","EMBED"].includes(t.tagName.toUpperCase()))return[];const n=this.style(t);if(n.visibility!=="visible")return[];if(!e&&n.display==="inline"&&!this.isReplaced(t))return[];const o=e??this.rel(t.getBoundingClientRect());if(o.width<=.01||o.height<=.01||!ut(o,this.pageRect()))return[];const i=t.getAttribute("data-name")??"形状",r=this.radiiOf(n,o),a=this.bordersOf(n),l={x:o.x+a.left.width,y:o.y+a.top.width,width:Math.max(0,o.width-a.left.width-a.right.width),height:Math.max(0,o.height-a.top.width-a.bottom.width),radii:mt(r,a.top.width,a.right.width,a.bottom.width,a.left.width)},c={top:$(n.paddingTop)??0,right:$(n.paddingRight)??0,bottom:$(n.paddingBottom)??0,left:$(n.paddingLeft)??0},h={x:l.x+c.left,y:l.y+c.top,width:Math.max(0,l.width-c.left-c.right),height:Math.max(0,l.height-c.top-c.bottom),radii:mt(l.radii,c.top,c.right,c.bottom,c.left)},f=w=>w==="padding-box"?l:w==="content-box"?h:{...o,radii:r},u=this.appearanceOf(t),g=this.backdropOf(t),d=[],p=P(n.backgroundClip||"border-box"),y=p.includes("text")||n.getPropertyValue("-webkit-background-clip")==="text",m=Tt(n.boxShadow,this.resolveColor),x=m.filter(w=>!w.inset);m.some(w=>w.inset)&&this.note(t,"内阴影(inset)没法还原,去掉了"),x.length>1&&this.note(t,"有多层阴影,只保留了第一层"),x[0]&&Math.abs(x[0].spread)>2&&this.note(t,"阴影的扩展(spread)没法还原");const M=t.tagName.toUpperCase()==="IMG"?void 0:this.shadowOf(x[0]??(n.boxShadow==="none"?u.dropShadow:null),g),S=y?null:this.color(n.backgroundColor),b=f(p[p.length-1]??"border-box"),E=this.uniformBorder(a);let C=!1;if(S&&S.a>.004||M){const w=!S||S.a>.996;M&&S&&!w&&d.push(this.finishLeaf(this.shape(i,{...o,radii:r},{type:"transparent"},null),t,1,{shadow:M,appearance:u}));const N=S&&S.a>.004?{type:"solid",color:O(S)}:{type:"transparent"},F=E&&E.color.a>.996&&w&&b.width===o.width?{color:O(E.color),width:E.width}:null;C=F!==null;const v=this.shape(i,F?{...o,radii:r}:b,N,F);d.push(this.finishLeaf(v,t,S&&S.a>.004?S.a:1,{shadow:M&&(w||!S)?M:void 0,appearance:u}))}return y||d.push(...await this.backgroundLayers(t,n,i,f,u,g)),C||d.push(...this.borderNodes(t,i,o,r,a,u)),d}uniformBorder(t){const e=[t.top,t.right,t.bottom,t.left],n=e[0];if(n.width<=0||!n.color)return null;const o=r=>!["dashed","dotted"].includes(r);return e.every(r=>Math.abs(r.width-n.width)<.01&&r.color&&O(r.color)===O(n.color)&&Math.abs(r.color.a-n.color.a)<.01&&o(r.style))?{width:n.width,color:n.color}:null}borderNodes(t,e,n,o,i,r){const a=this.uniformBorder(i);if(a){const d=this.shape(e,{...n,radii:o},{type:"transparent"},{color:O(a.color),width:a.width});return[this.finishLeaf(d,t,a.color.a,{appearance:r})]}const l=[i.top,i.right,i.bottom,i.left],c=l[0];if(c.width>0&&c.color&&(c.style==="dashed"||c.style==="dotted")&&l.every(d=>d.style===c.style&&Math.abs(d.width-c.width)<.01&&d.color&&O(d.color)===O(c.color)&&Math.abs(d.color.a-c.color.a)<.01)&&c.color){const d=c.width,p=d/2,y={...this.base(e,n),type:"path",d:Ht(n.x+p,n.y+p,n.width-d,n.height-d,mt(o,p,p,p,p)),viewBox:{x:A(n.x),y:A(n.y),width:Math.max(.01,A(n.width)),height:Math.max(.01,A(n.height))},fill:{type:"transparent"},stroke:O(c.color),strokeWidth:A(d),dash:A(c.style==="dotted"?d:d*3),cap:"butt",join:"miter"};return[this.finishLeaf(y,t,c.color.a,{appearance:r})]}const f=[],u=[[i.top,{x:n.x,y:n.y,width:n.width,height:i.top.width}],[i.right,{x:n.x+n.width-i.right.width,y:n.y,width:i.right.width,height:n.height}],[i.bottom,{x:n.x,y:n.y+n.height-i.bottom.width,width:n.width,height:i.bottom.width}],[i.left,{x:n.x,y:n.y,width:i.left.width,height:n.height}]];let g=!1;for(const[d,p]of u)if(!(d.width<=0||!d.color||d.color.a<=.004)){if(d.style==="dashed"||d.style==="dotted"){g=!0,f.push(this.finishLeaf(this.dashedLine(e,p,d.width,O(d.color),d.style==="dotted"),t,d.color.a,{appearance:r}));continue}f.push(this.finishLeaf(this.shape(e,{...p,radii:Mt},{type:"solid",color:O(d.color)},null),t,d.color.a,{appearance:r}))}return f.length>0&&pt(o)&&this.note(t,"圆角边框按直边画出"),g&&pt(o)&&this.note(t,"虚线边框按直线画出"),f}dashedLine(t,e,n,o,i){const r=e.width>=e.height,a=r?e.width:e.height,l={x:e.x+e.width/2,y:e.y+e.height/2},c={x:l.x-a/2,y:l.y-n/2,width:a,height:Math.max(n,.5)};return{...this.base(t==="形状"?"线条":t,c),type:"line",rotation:r?0:90,lineKind:"line",stroke:o,strokeWidth:A(n),dash:Math.max(1,Math.min(500,A(i?n:n*3))),cap:i?"round":"butt"}}tileRect(t,e,n,o){const i=(o==null?void 0:o.width)??t.width,r=(o==null?void 0:o.height)??t.height;let a,l;if(e==="cover"||e==="contain"){const f=e==="cover"?Math.max(t.width/i,t.height/r):Math.min(t.width/i,t.height/r);a=i*f,l=r*f}else{const[f="auto",u="auto"]=P(e," "),g=(y,m)=>{if(y==="auto")return null;const x=Number.parseFloat(y);return Number.isFinite(x)?y.endsWith("%")?x/100*m:x:null},d=g(f,t.width),p=g(u,t.height);a=d??(p!==null?p*i/r:i),l=p??(d!==null?d*r/i:r)}const[c="0%",h="0%"]=P(n," ");return{x:t.x+this.offsetIn(c,t.width-a),y:t.y+this.offsetIn(h,t.height-l),width:a,height:l}}offsetIn(t,e){const n=/^calc\((-?[\d.]+)%\s*([+-])\s*(-?[\d.]+)px\)$/.exec(t);if(n)return Number.parseFloat(n[1])/100*e+(n[2]==="-"?-1:1)*Number.parseFloat(n[3]);const o=Number.parseFloat(t);return Number.isFinite(o)?t.endsWith("%")?o/100*e:o:e/2}framingFor(t,e,n,o){const i=Math.max(e.width/t.width,e.height/t.height),r=Math.max(n.width/t.width,n.height/t.height);r/i>4.01&&o&&this.note(o,"图片放大超过 4 倍,按 4 倍取景");const a=Math.max(1,Math.min(4,r/i)),l=t.width*i*a,c=t.height*i*a,h=n.x+n.width/2-e.x-l/2,f=n.y+n.height/2-e.y-c/2,u=g=>Math.max(0,Math.min(1,g));return{focusX:Math.round(u((e.width/2-h)/l)*1e4)/1e4,focusY:Math.round(u((e.height/2-f)/c)*1e4)/1e4,zoom:Math.round(a*1e4)/1e4}}async backgroundLayers(t,e,n,o,i,r){const a=P(e.backgroundImage);if(a.length===0||a.every(p=>p==="none"))return[];const l=(p,y,m)=>p.length>0?p[y%p.length]:m,c=P(e.backgroundSize),h=P(e.backgroundPosition),f=P(e.backgroundRepeat),u=P(e.backgroundOrigin),g=P(e.backgroundClip),d=[];for(let p=a.length-1;p>=0;p-=1){const y=a[p];if(y==="none")continue;const m=o(l(g,p,"border-box")),x=o(l(u,p,"padding-box"));if(m.width<=.01||m.height<=.01)continue;const M=/^url\((['"]?)(.*)\1\)$/s.exec(y),S=M?this.pictureSize(M[2]):null,b=this.tileRect(x,l(c,p,"auto"),l(h,p,"0% 0%"),S),E=l(f,p,"repeat"),w=!(b.x<=m.x+.5&&b.y<=m.y+.5&&b.x+b.width>=m.x+m.width-.5&&b.y+b.height>=m.y+m.height-.5)&&E!=="no-repeat"&&E!=="no-repeat no-repeat",N=w?m:ut(m,b);if(!N)continue;const F=kt(N,m)?m.radii:Mt,v=n==="形状"?M?"背景图":"渐变":n;if(!w&&M){S||this.note(t,"背景图没有加载出来,按铺满处理");const V={type:"image",src:M[2],fit:"cover",framing:S?this.framingFor(S,N,b,t):Ut()};d.push(this.finishLeaf(this.shape(v,{...N,radii:F},V,null),t,1,{appearance:i}));continue}const B=!w&&!M?Rt(y,b.width,b.height,this.resolveColor):null,q=B?this.solidBands(B,b):null;if(q){for(const V of q.rects){const H=ut(V,m);H&&d.push(this.finishLeaf(this.shape(v,{...H,radii:kt(H,m)?m.radii:Mt},{type:"solid",color:q.color},null),t,q.alpha,{appearance:i}))}continue}const K=B?ht(B):null;if(K){d.push(this.finishLeaf(this.shape(v,{...N,radii:F},K.paint,null),t,K.alpha,{appearance:i}));continue}const j=this.options.rasterize?await this.options.rasterize({backgroundImage:y,backgroundSize:`${A(b.width)}px ${A(b.height)}px`,backgroundPosition:`${A(b.x-N.x)}px ${A(b.y-N.y)}px`,backgroundRepeat:E,width:Math.max(1,Math.round(N.width)),height:Math.max(1,Math.round(N.height))}).catch(()=>null):null;if(j){const V={type:"image",src:j,fit:"cover",framing:Ut()};d.push(this.finishLeaf(this.shape(v,{...N,radii:F},V,null),t,1,{appearance:i})),this.note(t,"这层背景画成了一张图(渐变透明度不一或平铺)");continue}if(B){const V={...B,stops:B.stops.map(lt=>({...lt,color:rt(lt.color,r)}))},H=ht(V.kind==="radial"?{...V,exact:!0}:V);if(H){d.push(this.finishLeaf(this.shape(v,{...N,radii:F},H.paint,null),t,1,{appearance:i})),this.note(t,"渐变按背后的颜色近似成不透明的");continue}}this.note(t,`背景 ${y.slice(0,40)} 没有转`)}return d}solidBands(t,e){if(t.kind!=="linear")return null;const n=Math.round(t.angle)%360;if(![0,90,180,270].includes(n))return null;const o=t.stops,i=o.filter(c=>c.color.a>.004);if(i.length===0||i.length===o.length)return null;const r=i[0].color;if(i.some(c=>O(c.color)!==O(r)||Math.abs(c.color.a-r.a)>.01))return null;for(let c=1;c<o.length;c+=1)if(o[c].color.a>.004!=o[c-1].color.a>.004&&Math.abs(o[c].offset-o[c-1].offset)>1e-4)return null;const a=[];for(let c=0;c<o.length;c+=1){if(o[c].color.a<=.004)continue;const h=c===0?Math.min(0,o[0].offset):o[c].offset;let f=o[c].offset;for(;c+1<o.length&&o[c+1].color.a>.004;)c+=1,f=o[c].offset;c===o.length-1&&(f=Math.max(1,f)),a.push([Math.max(0,h),Math.min(1,f)])}const l=a.filter(([c,h])=>h-c>1e-4).map(([c,h])=>n===180?{x:e.x,y:e.y+c*e.height,width:e.width,height:(h-c)*e.height}:n===0?{x:e.x,y:e.y+(1-h)*e.height,width:e.width,height:(h-c)*e.height}:n===90?{x:e.x+c*e.width,y:e.y,width:(h-c)*e.width,height:e.height}:{x:e.x+(1-h)*e.width,y:e.y,width:(h-c)*e.width,height:e.height});return l.length>0?{rects:l,color:O(r),alpha:r.a}:null}renderedText(t){const e=t.parentElement;if(!e)return{text:"",map:[]};const n=this.style(e),o=n.whiteSpace,i=n.textTransform;if(o==="pre"||o==="pre-wrap"||o==="break-spaces"){const h=ae(t.data,i);return{text:h,map:[[0,h.length,0,t.data.length]]}}let r="";const a=[],l=this.doc.createRange(),c=/[ \t\n\r\f]+|[^ \t\n\r\f]+/g;for(let h=c.exec(t.data);h;h=c.exec(t.data)){const f=h[0],u=h.index,g=h.index+f.length;let d;/^[ \t\n\r\f]/.test(f)?o==="pre-line"&&f.includes(`
|
|
3
3
|
`)?d=`
|
|
4
4
|
`.repeat((f.match(/\n/g)??[]).length):f.includes(`
|
package/dist/app/index.html
CHANGED
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
rel="stylesheet"
|
|
45
45
|
crossorigin="anonymous"
|
|
46
46
|
/>
|
|
47
|
-
<script type="module" crossorigin src="/assets/main-
|
|
48
|
-
<link rel="modulepreload" crossorigin href="/assets/paginate-
|
|
47
|
+
<script type="module" crossorigin src="/assets/main-BDVCVLc1.js"></script>
|
|
48
|
+
<link rel="modulepreload" crossorigin href="/assets/paginate-CywTJr2d.js">
|
|
49
49
|
<link rel="stylesheet" crossorigin href="/assets/paginate-CnQX0qlX.css">
|
|
50
50
|
<link rel="stylesheet" crossorigin href="/assets/main-D0KHmzqS.css">
|
|
51
51
|
</head>
|
package/dist/app/render.html
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
rel="stylesheet"
|
|
16
16
|
crossorigin="anonymous"
|
|
17
17
|
/>
|
|
18
|
-
<script type="module" crossorigin src="/assets/render-
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/assets/paginate-
|
|
18
|
+
<script type="module" crossorigin src="/assets/render-CCSRSldx.js"></script>
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/paginate-CywTJr2d.js">
|
|
20
20
|
<link rel="stylesheet" crossorigin href="/assets/paginate-CnQX0qlX.css">
|
|
21
21
|
<link rel="stylesheet" crossorigin href="/assets/render-D9zGq75M.css">
|
|
22
22
|
</head>
|
package/dist/index.mjs
CHANGED
|
@@ -25,9 +25,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
|
|
28
|
-
//
|
|
28
|
+
// ../node_modules/react/cjs/react.production.min.js
|
|
29
29
|
var require_react_production_min = __commonJS({
|
|
30
|
-
"
|
|
30
|
+
"../node_modules/react/cjs/react.production.min.js"(exports) {
|
|
31
31
|
"use strict";
|
|
32
32
|
var l = Symbol.for("react.element");
|
|
33
33
|
var n = Symbol.for("react.portal");
|
|
@@ -298,9 +298,9 @@ var require_react_production_min = __commonJS({
|
|
|
298
298
|
}
|
|
299
299
|
});
|
|
300
300
|
|
|
301
|
-
//
|
|
301
|
+
// ../node_modules/react/cjs/react.development.js
|
|
302
302
|
var require_react_development = __commonJS({
|
|
303
|
-
"
|
|
303
|
+
"../node_modules/react/cjs/react.development.js"(exports, module) {
|
|
304
304
|
"use strict";
|
|
305
305
|
if (process.env.NODE_ENV !== "production") {
|
|
306
306
|
(function() {
|
|
@@ -2172,9 +2172,9 @@ var require_react_development = __commonJS({
|
|
|
2172
2172
|
}
|
|
2173
2173
|
});
|
|
2174
2174
|
|
|
2175
|
-
//
|
|
2175
|
+
// ../node_modules/react/index.js
|
|
2176
2176
|
var require_react = __commonJS({
|
|
2177
|
-
"
|
|
2177
|
+
"../node_modules/react/index.js"(exports, module) {
|
|
2178
2178
|
"use strict";
|
|
2179
2179
|
if (process.env.NODE_ENV === "production") {
|
|
2180
2180
|
module.exports = require_react_production_min();
|
|
@@ -2195,7 +2195,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
|
|
|
2195
2195
|
import { z } from "zod";
|
|
2196
2196
|
|
|
2197
2197
|
// package.json
|
|
2198
|
-
var version = "0.
|
|
2198
|
+
var version = "0.60.0";
|
|
2199
2199
|
|
|
2200
2200
|
// ../src/freeform/constants.ts
|
|
2201
2201
|
var PAGE_SIZE_MIN = 128;
|
|
@@ -15232,6 +15232,126 @@ function createCourseCoverDocument() {
|
|
|
15232
15232
|
], LANDSCAPE)
|
|
15233
15233
|
]);
|
|
15234
15234
|
}
|
|
15235
|
+
function createBookNoteDocument() {
|
|
15236
|
+
const desk = "#e9dfcc";
|
|
15237
|
+
const page = "#fbf7ee";
|
|
15238
|
+
const red = "#c4473a";
|
|
15239
|
+
const ink = "#2a2520";
|
|
15240
|
+
const muted = "#7a6f62";
|
|
15241
|
+
return documentFromSlides([
|
|
15242
|
+
slide("\u7B14\u8BB0", solid(desk), [
|
|
15243
|
+
shapeNode("rect", 96, 320, 888, 840, solid(page), { name: "\u4E66\u9875", cornerRadius: 10, shadow: { color: "#cdbfa6", blur: 40, offsetX: 0, offsetY: 16 } }),
|
|
15244
|
+
// A ribbon bookmark hanging over the page's top edge, its tail cut in a V.
|
|
15245
|
+
pathNode("M 0 0 L 64 0 L 64 240 L 32 212 L 0 240 Z", 812, 300, 64, 240, { name: "\u4E66\u7B7E", fill: solid(red), strokeWidth: 0 }),
|
|
15246
|
+
verticalLineNode(196, 360, 1120, "#e7b2aa", 3, { name: "\u9875\u8FB9\u7EBF", cap: "butt" }),
|
|
15247
|
+
lineNode(240, 400, 80, red, 4, { name: "\u77ED\u7EBF", cap: "butt" }),
|
|
15248
|
+
textNode("\u201C", 228, 410, 160, 180, { name: "\u5F15\u53F7", fontSize: 200, fontFamily: PLAYFAIR, textFill: solid(red), fontWeight: "bold", opacity: 0.85, lineHeight: 1 }),
|
|
15249
|
+
textNode("\u771F\u6B63\u91CD\u8981\u7684\u4E1C\u897F\uFF0C\n\u7528\u773C\u775B\u662F\u770B\u4E0D\u89C1\u7684\uFF0C\n\u8981\u7528\u5FC3\u53BB\u770B\u3002\n\u2014\u2014 \u72D0\u72F8\u5BF9\u5C0F\u738B\u5B50\u8BF4", 240, 600, 680, 420, { name: "\u6B63\u6587", fontSize: 50, fontFamily: SERIF, textFill: solid(ink), lineHeight: 1.8, verticalAlign: "middle" }),
|
|
15250
|
+
textNode("\u300A\u5C0F\u738B\u5B50\u300B\u8BFB\u4E66\u7B14\u8BB0", 96, 96, 888, 120, { name: "\u6807\u9898", fontSize: 84, fontFamily: SERIF, textFill: solid(ink), fontWeight: "bold", effect: { type: "marker", color: "#f2c84b", amount: 40 } }),
|
|
15251
|
+
textNode("\u5723\u57C3\u514B\u82CF\u4F69\u91CC \xB7 \u7B2C\u4E09\u6B21\u91CD\u8BFB", 96, 228, 888, 50, { name: "\u526F\u6807\u9898", fontSize: 32, fontFamily: SANS, textFill: solid(muted), letterSpacing: 2 }),
|
|
15252
|
+
textNode("P.86", 600, 1060, 320, 44, { name: "\u89D2\u6807", fontSize: 28, fontFamily: SANS, textFill: solid(muted), align: "right", letterSpacing: 4 }),
|
|
15253
|
+
textNode("@\u963F\u6F84\u7684\u8BFB\u4E66\u89D2", 96, 1290, 560, 44, { name: "\u54C1\u724C", fontSize: 26, fontFamily: SANS, textFill: solid(muted), letterSpacing: 4 }),
|
|
15254
|
+
textNode("Reading notes", 656, 1286, 328, 48, { name: "\u82F1\u6587", fontSize: 30, fontFamily: PLAYFAIR, textFill: solid(red), italic: true, align: "right" })
|
|
15255
|
+
])
|
|
15256
|
+
]);
|
|
15257
|
+
}
|
|
15258
|
+
function createEventBannerDocument() {
|
|
15259
|
+
const night = "#1f2a44";
|
|
15260
|
+
const paper = "#f5ecd9";
|
|
15261
|
+
const red = "#d0503a";
|
|
15262
|
+
const ink = "#1d1f26";
|
|
15263
|
+
const muted = "#6c6457";
|
|
15264
|
+
const bars = [3, 1, 2, 1, 3, 2, 1, 1, 3, 1, 2, 2, 1, 3, 1, 2, 1, 1, 3, 2, 1, 2];
|
|
15265
|
+
let at = 0;
|
|
15266
|
+
const barcode = bars.map((width) => {
|
|
15267
|
+
const x = at;
|
|
15268
|
+
at += width * 5 + 4;
|
|
15269
|
+
return `M ${x} 0 L ${x + width * 5} 0 L ${x + width * 5} 110 L ${x} 110 Z`;
|
|
15270
|
+
}).join(" ");
|
|
15271
|
+
at -= 4;
|
|
15272
|
+
const row = (index, label, value) => {
|
|
15273
|
+
const y = 610 + index * 66;
|
|
15274
|
+
const n = NUMBERED[index];
|
|
15275
|
+
return [
|
|
15276
|
+
textNode(label, 240, y, 120, 46, { name: `\u6807\u7B7E${n}`, fontSize: 30, fontFamily: SANS, textFill: solid(red), fontWeight: "bold", letterSpacing: 4 }),
|
|
15277
|
+
textNode(value, 380, y, 880, 46, { name: `\u4FE1\u606F${n}`, fontSize: 30, fontFamily: SANS, textFill: solid(ink) })
|
|
15278
|
+
];
|
|
15279
|
+
};
|
|
15280
|
+
return documentFromSlides([
|
|
15281
|
+
slide("\u6A2A\u5E45", solid(night), [
|
|
15282
|
+
shapeNode("ellipse", -300, 500, 900, 900, solid("#2a3858"), { name: "\u5149\u5708", opacity: 0.8 }),
|
|
15283
|
+
shapeNode("rect", 160, 200, 1600, 680, solid(paper), { name: "\u7968\u9762", cornerRadius: 28, shadow: { color: "#0d1322", blur: 60, offsetX: 0, offsetY: 24 } }),
|
|
15284
|
+
shapeNode("rect", 160, 200, 36, 680, solid(red), { name: "\u7968\u8FB9", cornerRadius: 0 }),
|
|
15285
|
+
// The tear line between ticket and stub, a notch bitten out at each end.
|
|
15286
|
+
shapeNode("ellipse", 1300, 160, 80, 80, solid(night), { name: "\u7F3A\u53E3\u4E0A" }),
|
|
15287
|
+
shapeNode("ellipse", 1300, 840, 80, 80, solid(night), { name: "\u7F3A\u53E3\u4E0B" }),
|
|
15288
|
+
verticalLineNode(1340, 260, 820, "#b8ab90", 4, { name: "\u6495\u7EBF", dash: 14, cap: "butt" }),
|
|
15289
|
+
textNode("\u7B2C 7 \u5C4A \xB7 2026", 240, 262, 900, 44, { name: "\u89D2\u6807", fontSize: 30, fontFamily: SANS, textFill: solid(red), fontWeight: "bold", letterSpacing: 6 }),
|
|
15290
|
+
textNode("\u57CE\u5E02\u8BFB\u4E66\u8282", 240, 320, 1040, 160, { name: "\u6807\u9898", fontSize: 132, fontFamily: SERIF, textFill: solid(ink), fontWeight: "bold", letterSpacing: 8 }),
|
|
15291
|
+
textNode("\u4E00\u6574\u4E2A\u5468\u672B\uFF0C\u548C\u4E09\u4E07\u672C\u4E66\u5F85\u5728\u4E00\u8D77", 240, 492, 1040, 56, { name: "\u526F\u6807\u9898", fontSize: 38, fontFamily: SANS, textFill: solid(muted), letterSpacing: 2 }),
|
|
15292
|
+
lineNode(240, 572, 1020, "#d9cdb4", 2, { name: "\u5206\u9694\u7EBF", cap: "butt" }),
|
|
15293
|
+
...row(0, "\u65F6\u95F4", "11 \u6708 8 \u65E5 \u2014 9 \u65E5 \xB7 10:00 \u2014 21:00"),
|
|
15294
|
+
...row(1, "\u5730\u70B9", "\u6EE8\u6C5F\u7F8E\u672F\u9986 \xB7 \u4E00\u53F7\u5C55\u5385"),
|
|
15295
|
+
...row(2, "\u95E8\u7968", "\u51ED\u7968\u5165\u573A\uFF0C\u542B\u4E00\u676F\u5496\u5561"),
|
|
15296
|
+
textNode("ADMIT ONE", 1380, 300, 340, 52, { name: "\u5165\u573A", fontSize: 40, fontFamily: PLAYFAIR, textFill: solid(ink), fontWeight: "bold", align: "center", letterSpacing: 6 }),
|
|
15297
|
+
textNode("No.", 1380, 386, 340, 40, { name: "\u7968\u53F7\u524D", fontSize: 28, fontFamily: PLAYFAIR, textFill: solid(muted), italic: true, align: "center" }),
|
|
15298
|
+
textNode("0826", 1380, 424, 340, 130, { name: "\u7968\u53F7", fontSize: 112, fontFamily: ARCHIVO, textFill: solid(red), align: "center", letterSpacing: 2, lineHeight: 1.1 }),
|
|
15299
|
+
pathNode(barcode, 1550 - at / 2, 590, at, 110, { name: "\u6761\u7801", fill: solid(ink), strokeWidth: 0 }),
|
|
15300
|
+
textNode("\u53EE\u5361\u4E66\u5E97 \u4E3B\u529E", 1380, 744, 340, 44, { name: "\u54C1\u724C", fontSize: 28, fontFamily: SANS, textFill: solid(ink), fontWeight: "bold", align: "center", letterSpacing: 4 })
|
|
15301
|
+
], LANDSCAPE)
|
|
15302
|
+
]);
|
|
15303
|
+
}
|
|
15304
|
+
function createMoodSquareDocument() {
|
|
15305
|
+
const paper = "#f6efe3";
|
|
15306
|
+
const red = "#e5483a";
|
|
15307
|
+
const ink = "#1f1d1b";
|
|
15308
|
+
const muted = "#6f675d";
|
|
15309
|
+
const shell = "M 44 8 L 556 8 Q 592 8 592 44 L 592 236 Q 592 272 556 272 L 44 272 Q 8 272 8 236 L 8 44 Q 8 8 44 8 Z";
|
|
15310
|
+
return documentFromSlides([
|
|
15311
|
+
slide("\u65B9\u56FE", solid(paper), [
|
|
15312
|
+
textNode("LOW BATTERY", 120, 120, 840, 50, { name: "\u63D0\u793A", fontSize: 36, fontFamily: ARCHIVO, textFill: solid(red), align: "center", letterSpacing: 10 }),
|
|
15313
|
+
pathNode(shell, 220, 250, 600, 280, { name: "\u7535\u6C60", stroke: ink, strokeWidth: 16, join: "round" }),
|
|
15314
|
+
shapeNode("rect", 836, 340, 40, 100, solid(ink), { name: "\u6B63\u6781", cornerRadius: 10 }),
|
|
15315
|
+
shapeNode("rect", 252, 282, 120, 216, solid(red), { name: "\u7535\u91CF", cornerRadius: 16 }),
|
|
15316
|
+
textNode("20%", 400, 312, 400, 150, { name: "\u89D2\u6807", fontSize: 130, fontFamily: ARCHIVO, textFill: solid(ink), align: "center", lineHeight: 1.1 }),
|
|
15317
|
+
textNode("\u4ECA\u65E5\u7535\u91CF\u4E0D\u8DB3", 80, 604, 920, 150, { name: "\u6807\u9898", fontSize: 104, fontFamily: SERIF, textFill: solid(ink), fontWeight: "bold", align: "center", letterSpacing: 6, lineHeight: 1.2 }),
|
|
15318
|
+
textNode("\u9700\u8981\u4E00\u676F\u70ED\u53EF\u53EF\uFF0C\n\u548C\u4E00\u4E2A\u4E0D\u7528\u56DE\u6D88\u606F\u7684\u665A\u4E0A", 120, 764, 840, 120, { name: "\u526F\u6807\u9898", fontSize: 36, fontFamily: SANS, textFill: solid(muted), align: "center", lineHeight: 1.6 }),
|
|
15319
|
+
textNode("@\u5C0F\u9E7F\u7684\u65E5\u5E38", 120, 956, 840, 44, { name: "\u54C1\u724C", fontSize: 26, fontFamily: SANS, textFill: solid(muted), align: "center", letterSpacing: 4 })
|
|
15320
|
+
], SQUARE)
|
|
15321
|
+
]);
|
|
15322
|
+
}
|
|
15323
|
+
function createArticleHeroDocument() {
|
|
15324
|
+
const desk = "#2f4a3f";
|
|
15325
|
+
const sheet = "#fbf8f0";
|
|
15326
|
+
const rule = "#d98d7f";
|
|
15327
|
+
const ink = "#26231f";
|
|
15328
|
+
const gold = "#e6b54a";
|
|
15329
|
+
const light = "#ece6d6";
|
|
15330
|
+
const muted = "#a9b8aa";
|
|
15331
|
+
const cell = 96;
|
|
15332
|
+
const pitch = 120;
|
|
15333
|
+
const left = 192;
|
|
15334
|
+
const top = 192;
|
|
15335
|
+
const grid = Array.from({ length: 6 }, (_, rowIndex) => {
|
|
15336
|
+
const y = top + rowIndex * pitch;
|
|
15337
|
+
const box = `M ${left} ${y} L ${left + cell * 11} ${y} L ${left + cell * 11} ${y + cell} L ${left} ${y + cell} Z`;
|
|
15338
|
+
const columns = Array.from({ length: 10 }, (_2, index) => `M ${left + (index + 1) * cell} ${y} L ${left + (index + 1) * cell} ${y + cell}`).join(" ");
|
|
15339
|
+
return `${box} ${columns}`;
|
|
15340
|
+
}).join(" ");
|
|
15341
|
+
return documentFromSlides([
|
|
15342
|
+
slide("\u5C01\u9762", solid(desk), [
|
|
15343
|
+
shapeNode("rect", 120, 120, 1200, 840, solid(sheet), { name: "\u7A3F\u7EB8", cornerRadius: 6, shadow: { color: "#1b2c25", blur: 48, offsetX: 0, offsetY: 20 } }),
|
|
15344
|
+
pathNode(grid, 0, 0, 1920, 1080, { name: "\u683C\u5B50", stroke: rule, strokeWidth: 2 }),
|
|
15345
|
+
textNode("11 \xD7 6 = 66", 192, 906, 600, 32, { name: "\u9875\u811A", fontSize: 20, fontFamily: UI, textFill: solid(rule), letterSpacing: 2 }),
|
|
15346
|
+
// One character to a cell: 72 px words advancing 96 px, set 12 px into each cell, 120 px a line.
|
|
15347
|
+
textNode("\u4E0B\u73ED\u540E\u7684\n\u7B2C\u4E8C\u79CD\u4EBA\u751F", left + 12, top - 12, cell * 11 + 24, pitch * 2, { name: "\u6807\u9898", fontSize: 72, fontFamily: KAI, textFill: solid(ink), letterSpacing: cell - 72, lineHeight: pitch / 72 }),
|
|
15348
|
+
textNode("\u5468\u672B\u4E13\u680F \xB7 \u7B2C 12 \u671F", 1400, 400, 440, 44, { name: "\u89D2\u6807", fontSize: 28, fontFamily: SANS, textFill: solid(gold), fontWeight: "bold", letterSpacing: 4 }),
|
|
15349
|
+
lineNode(1400, 466, 80, gold, 4, { name: "\u77ED\u7EBF", cap: "butt" }),
|
|
15350
|
+
textNode("\u767D\u5929\u5199\u4EE3\u7801\uFF0C\u665A\u4E0A\u505A\u9676\u827A\uFF0C\n\u4E00\u4E2A\u7A0B\u5E8F\u5458\u7684\u4E24\u79CD\u624B\u827A", 1400, 506, 440, 140, { name: "\u526F\u6807\u9898", fontSize: 34, fontFamily: SANS, textFill: solid(light), lineHeight: 1.6 }),
|
|
15351
|
+
textNode("\u6587 / \u6797\u6F84", 1400, 860, 440, 44, { name: "\u54C1\u724C", fontSize: 28, fontFamily: SANS, textFill: solid(muted), letterSpacing: 4 })
|
|
15352
|
+
], LANDSCAPE)
|
|
15353
|
+
]);
|
|
15354
|
+
}
|
|
15235
15355
|
var markdownSeriesMeta = {
|
|
15236
15356
|
column: {
|
|
15237
15357
|
title: "\u4E13\u680F",
|
|
@@ -15374,7 +15494,11 @@ var freeformSeriesMeta = {
|
|
|
15374
15494
|
"resume": poster("\u7B80\u5386", "A4\uFF1A\u7C97\u9ED1\u7684\u540D\u5B57\u548C\u84DD\u8272\u7684\u804C\u4F4D\uFF0C\u53F3\u4E0A\u89D2\u662F\u8054\u7CFB\u65B9\u5F0F\uFF0C\u4E00\u9053\u7C97\u7EBF\u4E0B\u9762\u5199\u5173\u4E8E\u6211\uFF0C\u518D\u6309\u65F6\u95F4\u6392\u4E94\u884C\u5DE5\u4F5C\u4E0E\u6559\u80B2\uFF0C\u9002\u5408\u6C42\u804C\u7B80\u5386\u548C\u4E2A\u4EBA\u5C65\u5386\u3002", ["\u7B80\u5386", "\u6C42\u804C"], "a4"),
|
|
15375
15495
|
"notice": poster("\u7EA2\u5934\u901A\u77E5", "A4\uFF1A\u7EA2\u8272\u7684\u5355\u4F4D\u540D\u79F0\u548C\u6587\u53F7\uFF0C\u7EA2\u7EBF\u4E2D\u95F4\u4E00\u9897\u661F\uFF0C\u4E0B\u9762\u662F\u901A\u77E5\u6807\u9898\u3001\u79F0\u547C\u3001\u6B63\u6587\u548C\u4E94\u6761\u4E8B\u9879\uFF0C\u843D\u6B3E\u4E0A\u76D6\u7740\u7EA2\u7AE0\uFF0C\u9002\u5408\u653E\u5047\u901A\u77E5\u3001\u516C\u53F8\u516C\u544A\u548C\u793E\u56E2\u901A\u77E5\u3002", ["\u901A\u77E5", "\u516C\u544A"], "a4"),
|
|
15376
15496
|
"food-review": poster("\u63A2\u5E97\u70B9\u8BC4", "\u5C0F\u7EA2\u4E66\u5C01\u9762\uFF1A\u4FEF\u89C6\u7684\u4E00\u7897\u725B\u8089\u9762\uFF0C\u7B77\u5B50\u67B6\u5728\u7897\u8FB9\uFF0C\u53F3\u4E0A\u89D2\u4E00\u679A\u7EA2\u8272\u8BC4\u5206\u7AE0\uFF0C\u4E0B\u9762\u4E09\u884C\u4EBA\u5747\u3001\u63A8\u8350\u548C\u5730\u5740\uFF0C\u9002\u5408\u63A2\u5E97\u3001\u7F8E\u98DF\u70B9\u8BC4\u548C\u9910\u5385\u63A8\u8350\u3002", ["\u5C0F\u7EA2\u4E66", "\u63A2\u5E97"], "xhs"),
|
|
15377
|
-
"course-cover": poster("\u8BFE\u7A0B\u5C01\u9762", "16:9 \u6A2A\u7248\u5C01\u9762\uFF1A\u65B9\u683C\u7EB8\u4E0A\u4E00\u4E2A\u660E\u9EC4\u5927\u5706\u5199\u7740\u8BFE\u53F7\uFF0C\u4E00\u652F\u94C5\u7B14\u659C\u9760\u5728\u5706\u8FB9\uFF0C\u5DE6\u8FB9\u662F\u8BFE\u7A0B\u6807\u9898\u3001\u4E00\u53E5\u4ECB\u7ECD\u548C\u8BB2\u5E08\u3001\u65F6\u957F\u3001\u96BE\u5EA6\uFF0C\u9002\u5408\u7F51\u8BFE\u5C01\u9762\u3001\u57F9\u8BAD\u548C\u5206\u4EAB\u4F1A\u3002", ["\u8BFE\u7A0B", "\u5C01\u9762"], "landscape")
|
|
15497
|
+
"course-cover": poster("\u8BFE\u7A0B\u5C01\u9762", "16:9 \u6A2A\u7248\u5C01\u9762\uFF1A\u65B9\u683C\u7EB8\u4E0A\u4E00\u4E2A\u660E\u9EC4\u5927\u5706\u5199\u7740\u8BFE\u53F7\uFF0C\u4E00\u652F\u94C5\u7B14\u659C\u9760\u5728\u5706\u8FB9\uFF0C\u5DE6\u8FB9\u662F\u8BFE\u7A0B\u6807\u9898\u3001\u4E00\u53E5\u4ECB\u7ECD\u548C\u8BB2\u5E08\u3001\u65F6\u957F\u3001\u96BE\u5EA6\uFF0C\u9002\u5408\u7F51\u8BFE\u5C01\u9762\u3001\u57F9\u8BAD\u548C\u5206\u4EAB\u4F1A\u3002", ["\u8BFE\u7A0B", "\u5C01\u9762"], "landscape"),
|
|
15498
|
+
"book-note": poster("\u8BFB\u4E66\u7B14\u8BB0", "\u5C0F\u7EA2\u4E66\u5C01\u9762\uFF1A\u4E00\u9875\u644A\u5F00\u7684\u4E66\u9875\u4E0A\u5939\u7740\u7EA2\u8272\u4E1D\u5E26\u4E66\u7B7E\uFF0C\u8367\u5149\u7B14\u5212\u8FC7\u4E66\u540D\uFF0C\u5B8B\u4F53\u6284\u4E0B\u4E00\u53E5\u4E66\u6458\uFF0C\u9002\u5408\u8BFB\u4E66\u7B14\u8BB0\u3001\u4E66\u6458\u548C\u8BFB\u540E\u611F\u3002", ["\u5C0F\u7EA2\u4E66", "\u8BFB\u4E66"], "xhs"),
|
|
15499
|
+
"event-banner": poster("\u6D3B\u52A8\u95E8\u7968", "\u6A2A\u7248\u6A2A\u5E45\uFF1A\u6DF1\u84DD\u5E95\u4E0A\u4E00\u5F20\u7C73\u8272\u95E8\u7968\uFF0C\u5DE6\u8FB9\u662F\u6D3B\u52A8\u540D\u3001\u65F6\u95F4\u548C\u5730\u70B9\uFF0C\u865A\u7EBF\u6495\u53E3\u53F3\u8FB9\u662F\u7968\u53F7\u548C\u6761\u7801\uFF0C\u9002\u5408\u8BFB\u4E66\u8282\u3001\u5C55\u89C8\u3001\u6F14\u51FA\u548C\u5E02\u96C6\u3002", ["\u6D3B\u52A8", "\u95E8\u7968"], "landscape"),
|
|
15500
|
+
"mood-square": poster("\u60C5\u7EEA\u7535\u91CF", "\u65B9\u56FE\uFF1A\u4E00\u8282\u53EA\u5269\u4E00\u683C\u7EA2\u8272\u7535\u91CF\u7684\u7535\u6C60\uFF0C\u914D\u5B8B\u4F53\u5927\u5B57\u7684\u5FC3\u60C5\u548C\u4E00\u53E5\u8BDD\uFF0C\u9002\u5408\u5FC3\u60C5\u5206\u4EAB\u3001\u6253\u5DE5\u65E5\u5E38\u548C\u670B\u53CB\u5708\u3002", ["\u670B\u53CB\u5708", "\u5FC3\u60C5"], "square"),
|
|
15501
|
+
"article-hero": poster("\u4E13\u680F\u5C01\u9762", "\u6A2A\u7248\u5C01\u9762\uFF1A\u58A8\u7EFF\u684C\u9762\u4E0A\u4E00\u5F20\u7EA2\u683C\u7A3F\u7EB8\uFF0C\u6807\u9898\u4E00\u5B57\u4E00\u683C\u5199\u5728\u683C\u5B50\u91CC\uFF0C\u53F3\u8FB9\u662F\u671F\u6570\u548C\u5BFC\u8BED\uFF0C\u9002\u5408\u4E13\u680F\u3001\u968F\u7B14\u548C\u516C\u4F17\u53F7\u957F\u6587\u7684\u6A2A\u7248\u5C01\u9762\u3002", ["\u4E13\u680F", "\u968F\u7B14"], "landscape")
|
|
15378
15502
|
};
|
|
15379
15503
|
var freeformFactories = {
|
|
15380
15504
|
editorial: createEditorialDocument,
|
|
@@ -15451,7 +15575,11 @@ var freeformFactories = {
|
|
|
15451
15575
|
"resume": createResumeDocument,
|
|
15452
15576
|
"notice": createNoticeDocument,
|
|
15453
15577
|
"food-review": createFoodReviewDocument,
|
|
15454
|
-
"course-cover": createCourseCoverDocument
|
|
15578
|
+
"course-cover": createCourseCoverDocument,
|
|
15579
|
+
"book-note": createBookNoteDocument,
|
|
15580
|
+
"event-banner": createEventBannerDocument,
|
|
15581
|
+
"mood-square": createMoodSquareDocument,
|
|
15582
|
+
"article-hero": createArticleHeroDocument
|
|
15455
15583
|
};
|
|
15456
15584
|
var FREEFORM_DECK_LAYOUTS = {
|
|
15457
15585
|
editorial: EDITORIAL_LAYOUTS,
|
|
@@ -15498,9 +15626,11 @@ var freeformSeriesIds = [
|
|
|
15498
15626
|
"photo-cover",
|
|
15499
15627
|
"magazine-cover",
|
|
15500
15628
|
"book-list",
|
|
15629
|
+
"book-note",
|
|
15501
15630
|
"versus-cover",
|
|
15502
15631
|
"ranking-cover",
|
|
15503
15632
|
"fun-fact",
|
|
15633
|
+
"mood-square",
|
|
15504
15634
|
"trip-route",
|
|
15505
15635
|
"food-review",
|
|
15506
15636
|
"habit-tracker",
|
|
@@ -15518,6 +15648,7 @@ var freeformSeriesIds = [
|
|
|
15518
15648
|
"design-week",
|
|
15519
15649
|
"music-festival",
|
|
15520
15650
|
"race-bib",
|
|
15651
|
+
"event-banner",
|
|
15521
15652
|
"talk-poster",
|
|
15522
15653
|
"launch-poster",
|
|
15523
15654
|
"countdown",
|
|
@@ -15554,6 +15685,7 @@ var freeformSeriesIds = [
|
|
|
15554
15685
|
"article-cover",
|
|
15555
15686
|
"listicle-cover",
|
|
15556
15687
|
"ridge-cover",
|
|
15688
|
+
"article-hero",
|
|
15557
15689
|
"masthead-cover",
|
|
15558
15690
|
"interview-cover",
|
|
15559
15691
|
"flyer",
|
|
@@ -16657,6 +16789,36 @@ var FREEFORM_POSTER_SLOTS = {
|
|
|
16657
16789
|
tag: { text: "\u89D2\u6807", extras: ["\u8BFE\u53F7"] },
|
|
16658
16790
|
details: rows(3, (n) => `\u6807\u7B7E${n}`, (n) => `\u4FE1\u606F${n}`, (n) => [`\u6807\u8BB0${n}`]),
|
|
16659
16791
|
brand: { text: "\u54C1\u724C" }
|
|
16792
|
+
},
|
|
16793
|
+
// The excerpt is the body, its quote mark goes with it; the page number is the badge.
|
|
16794
|
+
"book-note": {
|
|
16795
|
+
title: "\u6807\u9898",
|
|
16796
|
+
subtitle: { text: "\u526F\u6807\u9898" },
|
|
16797
|
+
body: { text: "\u6B63\u6587", extras: ["\u5F15\u53F7"] },
|
|
16798
|
+
tag: { text: "\u89D2\u6807" },
|
|
16799
|
+
brand: { text: "\u54C1\u724C" }
|
|
16800
|
+
},
|
|
16801
|
+
// The edition is the badge; the ticket number and barcode stay on the stub.
|
|
16802
|
+
"event-banner": {
|
|
16803
|
+
title: "\u6807\u9898",
|
|
16804
|
+
subtitle: { text: "\u526F\u6807\u9898" },
|
|
16805
|
+
tag: { text: "\u89D2\u6807" },
|
|
16806
|
+
details: rows(3, (n) => `\u6807\u7B7E${n}`, (n) => `\u4FE1\u606F${n}`),
|
|
16807
|
+
brand: { text: "\u54C1\u724C" }
|
|
16808
|
+
},
|
|
16809
|
+
// The charge left is the badge in the battery.
|
|
16810
|
+
"mood-square": {
|
|
16811
|
+
title: "\u6807\u9898",
|
|
16812
|
+
subtitle: { text: "\u526F\u6807\u9898" },
|
|
16813
|
+
tag: { text: "\u89D2\u6807" },
|
|
16814
|
+
brand: { text: "\u54C1\u724C" }
|
|
16815
|
+
},
|
|
16816
|
+
// The title is written into the grid; the issue is the badge, the author the brand.
|
|
16817
|
+
"article-hero": {
|
|
16818
|
+
title: "\u6807\u9898",
|
|
16819
|
+
subtitle: { text: "\u526F\u6807\u9898" },
|
|
16820
|
+
tag: { text: "\u89D2\u6807", extras: ["\u77ED\u7EBF"] },
|
|
16821
|
+
brand: { text: "\u54C1\u724C" }
|
|
16660
16822
|
}
|
|
16661
16823
|
};
|
|
16662
16824
|
function posterItems(slots) {
|
|
@@ -22041,6 +22203,16 @@ var data = {
|
|
|
22041
22203
|
"\u5C0F\u7EA2\u4E66\u5C01\u9762\uFF1A\u4FEF\u89C6\u7684\u4E00\u7897\u725B\u8089\u9762\uFF0C\u7B77\u5B50\u67B6\u5728\u7897\u8FB9\uFF0C\u53F3\u4E0A\u89D2\u4E00\u679A\u7EA2\u8272\u8BC4\u5206\u7AE0\uFF0C\u4E0B\u9762\u4E09\u884C\u4EBA\u5747\u3001\u63A8\u8350\u548C\u5730\u5740\uFF0C\u9002\u5408\u63A2\u5E97\u3001\u7F8E\u98DF\u70B9\u8BC4\u548C\u9910\u5385\u63A8\u8350\u3002": "A RedNote cover: a bowl of beef noodles seen from above with chopsticks across its rim, a red score stamp top right and three lines below for the price, what to order and the address, for food spots, reviews and restaurant picks.",
|
|
22042
22204
|
"\u63A2\u5E97": "Food spot",
|
|
22043
22205
|
"\u8BFE\u7A0B\u5C01\u9762": "Course cover",
|
|
22206
|
+
"\u8BFB\u4E66\u7B14\u8BB0": "Book note",
|
|
22207
|
+
"\u5C0F\u7EA2\u4E66\u5C01\u9762\uFF1A\u4E00\u9875\u644A\u5F00\u7684\u4E66\u9875\u4E0A\u5939\u7740\u7EA2\u8272\u4E1D\u5E26\u4E66\u7B7E\uFF0C\u8367\u5149\u7B14\u5212\u8FC7\u4E66\u540D\uFF0C\u5B8B\u4F53\u6284\u4E0B\u4E00\u53E5\u4E66\u6458\uFF0C\u9002\u5408\u8BFB\u4E66\u7B14\u8BB0\u3001\u4E66\u6458\u548C\u8BFB\u540E\u611F\u3002": "A RedNote cover: an open page with a red ribbon bookmark, the book's name highlighted, and a line copied out in a Song face. For reading notes, excerpts and book reviews.",
|
|
22208
|
+
"\u6D3B\u52A8\u95E8\u7968": "Event ticket",
|
|
22209
|
+
"\u6A2A\u7248\u6A2A\u5E45\uFF1A\u6DF1\u84DD\u5E95\u4E0A\u4E00\u5F20\u7C73\u8272\u95E8\u7968\uFF0C\u5DE6\u8FB9\u662F\u6D3B\u52A8\u540D\u3001\u65F6\u95F4\u548C\u5730\u70B9\uFF0C\u865A\u7EBF\u6495\u53E3\u53F3\u8FB9\u662F\u7968\u53F7\u548C\u6761\u7801\uFF0C\u9002\u5408\u8BFB\u4E66\u8282\u3001\u5C55\u89C8\u3001\u6F14\u51FA\u548C\u5E02\u96C6\u3002": "A landscape banner: a cream ticket on deep blue, the event, time and place on the left, a ticket number and barcode past the dashed tear line. For book fairs, exhibitions, shows and markets.",
|
|
22210
|
+
"\u95E8\u7968": "Ticket",
|
|
22211
|
+
"\u60C5\u7EEA\u7535\u91CF": "Mood battery",
|
|
22212
|
+
"\u65B9\u56FE\uFF1A\u4E00\u8282\u53EA\u5269\u4E00\u683C\u7EA2\u8272\u7535\u91CF\u7684\u7535\u6C60\uFF0C\u914D\u5B8B\u4F53\u5927\u5B57\u7684\u5FC3\u60C5\u548C\u4E00\u53E5\u8BDD\uFF0C\u9002\u5408\u5FC3\u60C5\u5206\u4EAB\u3001\u6253\u5DE5\u65E5\u5E38\u548C\u670B\u53CB\u5708\u3002": "A square post: a battery down to one red bar, the mood in large serif words and one line under it. For moods, work days and Moments.",
|
|
22213
|
+
"\u5FC3\u60C5": "Mood",
|
|
22214
|
+
"\u4E13\u680F\u5C01\u9762": "Column cover",
|
|
22215
|
+
"\u6A2A\u7248\u5C01\u9762\uFF1A\u58A8\u7EFF\u684C\u9762\u4E0A\u4E00\u5F20\u7EA2\u683C\u7A3F\u7EB8\uFF0C\u6807\u9898\u4E00\u5B57\u4E00\u683C\u5199\u5728\u683C\u5B50\u91CC\uFF0C\u53F3\u8FB9\u662F\u671F\u6570\u548C\u5BFC\u8BED\uFF0C\u9002\u5408\u4E13\u680F\u3001\u968F\u7B14\u548C\u516C\u4F17\u53F7\u957F\u6587\u7684\u6A2A\u7248\u5C01\u9762\u3002": "A landscape cover: a sheet of red-ruled manuscript paper on a dark green desk, the title written one character to a cell, the issue and a standfirst beside it. For columns, essays and long reads.",
|
|
22044
22216
|
"16:9 \u6A2A\u7248\u5C01\u9762\uFF1A\u65B9\u683C\u7EB8\u4E0A\u4E00\u4E2A\u660E\u9EC4\u5927\u5706\u5199\u7740\u8BFE\u53F7\uFF0C\u4E00\u652F\u94C5\u7B14\u659C\u9760\u5728\u5706\u8FB9\uFF0C\u5DE6\u8FB9\u662F\u8BFE\u7A0B\u6807\u9898\u3001\u4E00\u53E5\u4ECB\u7ECD\u548C\u8BB2\u5E08\u3001\u65F6\u957F\u3001\u96BE\u5EA6\uFF0C\u9002\u5408\u7F51\u8BFE\u5C01\u9762\u3001\u57F9\u8BAD\u548C\u5206\u4EAB\u4F1A\u3002": "A 16:9 cover: a big yellow circle with the lesson number on squared paper, a pencil leaning on its edge, and on the left the course title, a line about it and the teacher, length and level, for online courses, training and talks.",
|
|
22045
22217
|
"\u97F3\u4E50": "Music",
|
|
22046
22218
|
"\u65C5\u884C": "Travel",
|
|
@@ -23030,7 +23202,11 @@ var TEMPLATE_FACETS = {
|
|
|
23030
23202
|
"resume": facets(["office"], ["minimal", "business"], ["white", "blue"]),
|
|
23031
23203
|
"notice": facets(["office"], ["business"], ["red", "white"]),
|
|
23032
23204
|
"food-review": facets(["social"], ["handdrawn", "fresh"], ["beige", "orange"]),
|
|
23033
|
-
"course-cover": facets(["office"], ["fresh", "minimal"], ["yellow", "white"])
|
|
23205
|
+
"course-cover": facets(["office"], ["fresh", "minimal"], ["yellow", "white"]),
|
|
23206
|
+
"book-note": facets(["social"], ["literary", "handdrawn"], ["beige", "red"]),
|
|
23207
|
+
"event-banner": facets(["event"], ["retro"], ["blue", "beige"]),
|
|
23208
|
+
"mood-square": facets(["social"], ["minimal", "bold"], ["beige", "red"]),
|
|
23209
|
+
"article-hero": facets(["social"], ["literary"], ["green", "white"])
|
|
23034
23210
|
};
|
|
23035
23211
|
function templateFacets(template) {
|
|
23036
23212
|
return TEMPLATE_FACETS[template.series];
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dingcard-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "dingcard-mcp",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.60.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@modelcontextprotocol/sdk": "^1.0.0",
|