dsh-metaphysics 0.66.0 → 0.67.1

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/client.js CHANGED
@@ -1,4 +1,4 @@
1
- window.__ModuleLoader__.load({id:"dsh-metaphysics",version:"0.66.0",factory(Qa){const Oa=(function(){try{return Qa("react")}catch{return globalThis.React}})();if(!Oa)return{inject:[],apply(){}};const p=Oa.createElement,Ht={bazi:"client.chart.js",ziwei:"client.chart.js",hepan:"client.chart.js",trend:"client.chart.js",name:"client.name.js",fengshui:"client.fengshui.js",liuyao:"client.liuyao.js",meihua:"client.liuyao.js",qimen:"client.qimen.js",daliuren:"client.daliuren.js",tarot:"client.tarot.js",almanac:"client.almanac.js",convert:"client.convert.js",zeri:"client.zeri.js",chenggu:"client.chenggu.js",xiaoliuren:"client.xiaoliuren.js",star:"client.star.js",numerology:"client.numerology.js",mbti:"client.mbti.js"},Ft=[{key:"general",label:"综合",dim:null,focus:""},{key:"wealth",label:"财运",dim:"work",focus:"钱财进出的落点主要看「工作与职业选择」与「事业发展」这两条。"},{key:"career",label:"事业",dim:"career",focus:"事业发展这条与你的问题最直接。"},{key:"love",label:"感情",dim:"love",focus:"感情这条与你的问题最直接。"},{key:"health",label:"健康",dim:"health",focus:"健康这条与你的问题最直接;下面只作提醒,不作任何诊断。"},{key:"study",label:"学业",dim:"career",focus:"学业与考试更贴近「事业发展」这条,讲的是长期积累与阶段进展。"},{key:"travel",label:"出行",dim:"overall",focus:"出行与迁动更贴近「整体运势」这条,看的是当下这一段的大环境。"}];window.__MP_VER="0.66.0",window.__MPGroups=[{title:"问一件事",hint:"心里有一件具体的事,起一卦再决定",items:[{k:"liuyao",label:"六爻",tip:"摇六次,问一件事"},{k:"meihua",label:"梅花",tip:"见闻起卦,看当下"},{k:"tarot",label:"塔罗",tip:"抽牌,看关系与选择"},{k:"qimen",label:"奇门",tip:"看方位、时机与取舍"},{k:"daliuren",label:"六壬",tip:"占事,断来意与结果"},{k:"xiaoliuren",label:"小六壬",tip:"掐指一算,快速断"}]},{title:"看一个人",hint:"看自己或身边人的性情、格局与运程",items:[{k:"bazi",label:"八字",tip:"四柱看一生格局"},{k:"ziwei",label:"紫微",tip:"十二宫细看"},{k:"hepan",label:"合盘",tip:"两个人合不合"},{k:"mbti",label:"人格",tip:"16 型性格问卷"},{k:"chenggu",label:"称骨",tip:"按生辰称命重"},{k:"numerology",label:"数字",tip:"生日数字看性格"},{k:"trend",label:"人生K",tip:"一生高低走势",wide:!0}]},{title:"查日子",hint:"挑时间、换农历,顺带看看家里和名字",items:[{k:"almanac",label:"黄历",tip:"今天宜忌、时辰吉凶"},{k:"zeri",label:"择日",tip:"挑个办事的好日子"},{k:"convert",label:"农历",tip:"公历农历互转"},{k:"star",label:"星座",tip:"星座性格与今日运"},{k:"fengshui",label:"风水",tip:"房屋朝向与布置"},{k:"name",label:"起名",tip:"按八字选字"}]}],window.__MP_UNRELEASED=[];const U={};U.DIRECTIONS=Ft,U.compute=()=>{throw new Error("命理引擎尚未加载")};const Pt=Object.create(null),$t=Object.create(null);function Hi(s){return Ht[s]||Ht.bazi||"client.chart.js"}const Dt=()=>typeof performance<"u"&&performance.now?performance.now():Date.now();async function Fi(s){const n=Hi(s);let j=Pt[n];const I=!!j,ae=Dt();if(!j){if(!Qa||typeof Qa.async!="function")throw new Error("当前宿主不支持客户端分块加载(require.async 缺失),请升级 DeepSeek Harness");let oe=$t[n];oe||(oe=Qa.async(`./${n}`).then(ce=>{const le=ce&&(ce.Engine||ce.default);if(!le||typeof le.compute!="function")throw new Error(`命理引擎分块 ${n} 未返回 Engine`);return Pt[n]=le,le}),$t[n]=oe,oe.catch(()=>{}).then(()=>{delete $t[n]})),j=await oe}for(const oe of Object.keys(j))j[oe]!==void 0&&(U[oe]=j[oe]);return Array.isArray(U.DIRECTIONS)||(U.DIRECTIONS=Ft),window.Engine=U,window.__MP_ENGINE_READY__=!0,window.__MP_LAST_LOAD={tab:s,chunk:n,cached:I,ms:Math.round((Dt()-ae)*10)/10},U}window.__mpEnsureEngine=Fi,window.Engine=U,(function(){const s={liuyao:!0,meihua:!0,daliuren:!0,tarot:!0},n=G=>!!s[G],j={general:"other",wealth:"business",career:"career",love:"love",health:"other",study:"career",travel:"action"},I=G=>j[G]||"other",ae="#ffffff",oe="#1c1a15";function ce(G){const Y=String(G??"").match(/rgba?\(([^)]+)\)/i);if(!Y)return null;const X=Y[1].split(/[,\s/]+/).filter(Boolean).map(Number);return X.length<3||X.slice(0,3).some(V=>!Number.isFinite(V))||X.length>3&&Number.isFinite(X[3])&&X[3]<.95?null:[X[0],X[1],X[2]]}function le(G){const Y=String(G||"").replace("#",""),X=Y.length===3?Y.split("").map(V=>V+V).join(""):Y;return/^[0-9a-f]{6}$/i.test(X)?[0,2,4].map(V=>parseInt(X.slice(V,V+2),16)):null}function ye(G){const Y=X=>{const V=X/255;return V<=.03928?V/12.92:Math.pow((V+.055)/1.055,2.4)};return .2126*Y(G[0])+.7152*Y(G[1])+.0722*Y(G[2])}function t(G,Y){const X=ye(G),V=ye(Y),se=Math.max(X,V),wa=Math.min(X,V);return(se+.05)/(wa+.05)}function ke(G){const Y=typeof G=="string"?ce(G):G;return Y?t(Y,le(ae))>=t(Y,le(oe))?ae:oe:""}function D(G){const Y=String(G??"").trim();if(!Y)return{lines:null,warning:""};const X=Y.split(/[^0-9]+/).filter(Boolean).map(Number),V=X.filter(se=>![6,7,8,9].includes(se));return X.length===6&&V.length===0?{lines:X,warning:""}:{lines:null,warning:X.length!==6?`爻值需要正好 6 个数字(当前 ${X.length} 个),本次按随机摇卦。`:`爻值只能是 6/7/8/9(收到 ${V.join("/")}),本次按随机摇卦。`}}function xe(G){const Y=String(G??"").trim();if(!Y)return null;const X=Number(Y);return Number.isFinite(X)?X:null}function ve(G){const Y=G instanceof Date?G:new Date,X=V=>String(V).padStart(2,"0");return`${Y.getFullYear()}-${X(Y.getMonth()+1)}-${X(Y.getDate())}`}window.__MPCore={NEED_ASK:s,needAsk:n,parseLines:D,toNumber:xe,parseRGB:ce,hexToRGB:le,luminance:ye,contrastRatio:t,pickOnColor:ke,ON_DARK:ae,ON_LIGHT:oe,kindOfDirection:I,todayStamp:ve}})(),(function(){const s=`
1
+ window.__ModuleLoader__.load({id:"dsh-metaphysics",version:"0.67.1",factory(Qa){const Oa=(function(){try{return Qa("react")}catch{return globalThis.React}})();if(!Oa)return{inject:[],apply(){}};const p=Oa.createElement,Ht={bazi:"client.chart.js",ziwei:"client.chart.js",hepan:"client.chart.js",trend:"client.chart.js",name:"client.name.js",fengshui:"client.fengshui.js",liuyao:"client.liuyao.js",meihua:"client.liuyao.js",qimen:"client.qimen.js",daliuren:"client.daliuren.js",tarot:"client.tarot.js",almanac:"client.almanac.js",convert:"client.convert.js",zeri:"client.zeri.js",chenggu:"client.chenggu.js",xiaoliuren:"client.xiaoliuren.js",star:"client.star.js",numerology:"client.numerology.js",mbti:"client.mbti.js"},Ft=[{key:"general",label:"综合",dim:null,focus:""},{key:"wealth",label:"财运",dim:"work",focus:"钱财进出的落点主要看「工作与职业选择」与「事业发展」这两条。"},{key:"career",label:"事业",dim:"career",focus:"事业发展这条与你的问题最直接。"},{key:"love",label:"感情",dim:"love",focus:"感情这条与你的问题最直接。"},{key:"health",label:"健康",dim:"health",focus:"健康这条与你的问题最直接;下面只作提醒,不作任何诊断。"},{key:"study",label:"学业",dim:"career",focus:"学业与考试更贴近「事业发展」这条,讲的是长期积累与阶段进展。"},{key:"travel",label:"出行",dim:"overall",focus:"出行与迁动更贴近「整体运势」这条,看的是当下这一段的大环境。"}];window.__MP_VER="0.67.1",window.__MPGroups=[{title:"问一件事",hint:"心里有一件具体的事,起一卦再决定",items:[{k:"liuyao",label:"六爻",tip:"摇六次,问一件事"},{k:"meihua",label:"梅花",tip:"见闻起卦,看当下"},{k:"tarot",label:"塔罗",tip:"抽牌,看关系与选择"},{k:"qimen",label:"奇门",tip:"看方位、时机与取舍"},{k:"daliuren",label:"六壬",tip:"占事,断来意与结果"},{k:"xiaoliuren",label:"小六壬",tip:"掐指一算,快速断"}]},{title:"看一个人",hint:"看自己或身边人的性情、格局与运程",items:[{k:"bazi",label:"八字",tip:"四柱看一生格局"},{k:"ziwei",label:"紫微",tip:"十二宫细看"},{k:"hepan",label:"合盘",tip:"两个人合不合"},{k:"mbti",label:"人格",tip:"16 型性格问卷"},{k:"chenggu",label:"称骨",tip:"按生辰称命重"},{k:"numerology",label:"数字",tip:"生日数字看性格"},{k:"trend",label:"人生K",tip:"一生高低走势",wide:!0}]},{title:"查日子",hint:"挑时间、换农历,顺带看看家里和名字",items:[{k:"almanac",label:"黄历",tip:"今天宜忌、时辰吉凶"},{k:"zeri",label:"择日",tip:"挑个办事的好日子"},{k:"convert",label:"农历",tip:"公历农历互转"},{k:"star",label:"星座",tip:"星座性格与今日运"},{k:"fengshui",label:"风水",tip:"房屋朝向与布置"},{k:"name",label:"起名",tip:"按八字选字"}]}],window.__MP_UNRELEASED=[];const U={};U.DIRECTIONS=Ft,U.compute=()=>{throw new Error("命理引擎尚未加载")};const Pt=Object.create(null),$t=Object.create(null);function Hi(s){return Ht[s]||Ht.bazi||"client.chart.js"}const Dt=()=>typeof performance<"u"&&performance.now?performance.now():Date.now();async function Fi(s){const n=Hi(s);let j=Pt[n];const I=!!j,ae=Dt();if(!j){if(!Qa||typeof Qa.async!="function")throw new Error("当前宿主不支持客户端分块加载(require.async 缺失),请升级 DeepSeek Harness");let oe=$t[n];oe||(oe=Qa.async(`./${n}`).then(ce=>{const le=ce&&(ce.Engine||ce.default);if(!le||typeof le.compute!="function")throw new Error(`命理引擎分块 ${n} 未返回 Engine`);return Pt[n]=le,le}),$t[n]=oe,oe.catch(()=>{}).then(()=>{delete $t[n]})),j=await oe}for(const oe of Object.keys(j))j[oe]!==void 0&&(U[oe]=j[oe]);return Array.isArray(U.DIRECTIONS)||(U.DIRECTIONS=Ft),window.Engine=U,window.__MP_ENGINE_READY__=!0,window.__MP_LAST_LOAD={tab:s,chunk:n,cached:I,ms:Math.round((Dt()-ae)*10)/10},U}window.__mpEnsureEngine=Fi,window.Engine=U,(function(){const s={liuyao:!0,meihua:!0,daliuren:!0,tarot:!0},n=G=>!!s[G],j={general:"other",wealth:"business",career:"career",love:"love",health:"other",study:"career",travel:"action"},I=G=>j[G]||"other",ae="#ffffff",oe="#1c1a15";function ce(G){const Y=String(G??"").match(/rgba?\(([^)]+)\)/i);if(!Y)return null;const X=Y[1].split(/[,\s/]+/).filter(Boolean).map(Number);return X.length<3||X.slice(0,3).some(V=>!Number.isFinite(V))||X.length>3&&Number.isFinite(X[3])&&X[3]<.95?null:[X[0],X[1],X[2]]}function le(G){const Y=String(G||"").replace("#",""),X=Y.length===3?Y.split("").map(V=>V+V).join(""):Y;return/^[0-9a-f]{6}$/i.test(X)?[0,2,4].map(V=>parseInt(X.slice(V,V+2),16)):null}function ye(G){const Y=X=>{const V=X/255;return V<=.03928?V/12.92:Math.pow((V+.055)/1.055,2.4)};return .2126*Y(G[0])+.7152*Y(G[1])+.0722*Y(G[2])}function t(G,Y){const X=ye(G),V=ye(Y),se=Math.max(X,V),wa=Math.min(X,V);return(se+.05)/(wa+.05)}function ke(G){const Y=typeof G=="string"?ce(G):G;return Y?t(Y,le(ae))>=t(Y,le(oe))?ae:oe:""}function D(G){const Y=String(G??"").trim();if(!Y)return{lines:null,warning:""};const X=Y.split(/[^0-9]+/).filter(Boolean).map(Number),V=X.filter(se=>![6,7,8,9].includes(se));return X.length===6&&V.length===0?{lines:X,warning:""}:{lines:null,warning:X.length!==6?`爻值需要正好 6 个数字(当前 ${X.length} 个),本次按随机摇卦。`:`爻值只能是 6/7/8/9(收到 ${V.join("/")}),本次按随机摇卦。`}}function xe(G){const Y=String(G??"").trim();if(!Y)return null;const X=Number(Y);return Number.isFinite(X)?X:null}function ve(G){const Y=G instanceof Date?G:new Date,X=V=>String(V).padStart(2,"0");return`${Y.getFullYear()}-${X(Y.getMonth()+1)}-${X(Y.getDate())}`}window.__MPCore={NEED_ASK:s,needAsk:n,parseLines:D,toNumber:xe,parseRGB:ce,hexToRGB:le,luminance:ye,contrastRatio:t,pickOnColor:ke,ON_DARK:ae,ON_LIGHT:oe,kindOfDirection:I,todayStamp:ve}})(),(function(){const s=`
2
2
  .pp,.mp-it,.mp-al,.mp-cg,.mp-cl,.mp-cli,.mp-kline,.mp-mb,.mp-mb-paper,.mp-nm,.mp-quick,.mp-cdiff,.mp-shadow,.mp-trace-card,.mp-trace-layer,.mp-prof{--ink:#1b1b1b;--ink2:#3f3a33;--muted:#6f6a60;--label:#8a8378;--faint:#a9a296;
3
3
  --line:#c8c1b2;--dimline:#b9b2a4;--hair:#e9e2d3;
4
4
  /* 底色略沉作「桌面」,--card 跳到近白:原先 bg 与 card 只差 1/255,卡片感等于零。
@@ -1456,7 +1456,7 @@ window.__ModuleLoader__.load({id:"dsh-metaphysics",version:"0.66.0",factory(Qa){
1456
1456
  .pp-disp label{display:inline-flex;align-items:center;gap:5px;cursor:pointer;color:var(--ink2);user-select:none;padding:2px 0;min-height:26px}
1457
1457
  .pp-disp-box{width:13px;height:13px;border:1px solid var(--line);border-radius:3px;background:var(--card);display:inline-block;flex:none}
1458
1458
  .pp-disp label:hover .pp-disp-box{border-color:var(--lu)}
1459
- /* 勾选态:12 条 :checked 各自点亮自己 label 的方框(复选框与 .pp-disp 同为 .pp 直接子元素) */
1459
+ /* 勾选态:17 条 :checked 各自点亮自己 label 的方框(复选框与 .pp-disp 同为 .pp 直接子元素) */
1460
1460
  #ppm-d-ss:checked~.pp-disp label[for="ppm-d-ss"] .pp-disp-box,
1461
1461
  #ppm-d-sbg:checked~.pp-disp label[for="ppm-d-sbg"] .pp-disp-box,
1462
1462
  #ppm-d-zha:checked~.pp-disp label[for="ppm-d-zha"] .pp-disp-box,
@@ -1470,7 +1470,10 @@ window.__ModuleLoader__.load({id:"dsh-metaphysics",version:"0.66.0",factory(Qa){
1470
1470
  #ppm-d-zha-bold:checked~.pp-disp label[for="ppm-d-zha-bold"] .pp-disp-box,
1471
1471
  #ppm-d-bad-ink:checked~.pp-disp label[for="ppm-d-bad-ink"] .pp-disp-box,
1472
1472
  #ppm-d-bold:checked~.pp-disp label[for="ppm-d-bold"] .pp-disp-box,
1473
- #ppm-d-hs:checked~.pp-disp label[for="ppm-d-hs"] .pp-disp-box{background:var(--lu);border-color:var(--lu);box-shadow:inset 0 0 0 2px var(--card)}
1473
+ #ppm-d-hs:checked~.pp-disp label[for="ppm-d-hs"] .pp-disp-box,
1474
+ #ppm-d-rigan:checked~.pp-disp label[for="ppm-d-rigan"] .pp-disp-box,
1475
+ #ppm-d-njq:checked~.pp-disp label[for="ppm-d-njq"] .pp-disp-box,
1476
+ #ppm-d-tjz:checked~.pp-disp label[for="ppm-d-tjz"] .pp-disp-box{background:var(--lu);border-color:var(--lu);box-shadow:inset 0 0 0 2px var(--card)}
1474
1477
  /* 组1 飞星派显示(默认全勾,取消才隐藏) */
1475
1478
  #ppm-d-ss:not(:checked)~.pp-body .pp-ss-txt{display:none}
1476
1479
  #ppm-d-sbg:not(:checked)~.pp-body .pp-st.st-sbg{display:none}