mulmoclaude 2.4.1 → 2.5.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/README.md +1 -0
- package/client/assets/{AllPackages-Dw2RXFr1.js → AllPackages-BEk5YJDm.js} +1 -1
- package/client/assets/{BaseConfiguration-D3cG9hNe.js → BaseConfiguration-BNAavVmS.js} +1 -1
- package/client/assets/{Element-Cv7I_0yC.js → Element-9N081W6i.js} +1 -1
- package/client/assets/{Entities-C8-4eSNA.js → Entities-CStqDzQa.js} +1 -1
- package/client/assets/{FunctionList-vF4juMGB.js → FunctionList-BiRbmGuH.js} +1 -1
- package/client/assets/{InputJax-DgXeQ-Ah.js → InputJax-BIXwEG13.js} +1 -1
- package/client/assets/{JsonEditor-ZvNJuqs_.js → JsonEditor-FKfzzMkt.js} +1 -1
- package/client/assets/{MathItem-Detxmt2G.js → MathItem-BGdp9nCn.js} +1 -1
- package/client/assets/{MmlFactory-CIQ3138s.js → MmlFactory-BtWqthmC.js} +1 -1
- package/client/assets/{Options-DmQY5iBM.js → Options-D4NRwRVE.js} +1 -1
- package/client/assets/{OutputJax-CAQGaq8b.js → OutputJax-ClIqqRdT.js} +1 -1
- package/client/assets/{PrioritizedList-kZ7_WZX-.js → PrioritizedList-CnJ310Kt.js} +1 -1
- package/client/assets/{Styles-B53-i2nc.js → Styles-D3y1lCFc.js} +1 -1
- package/client/assets/{TeXAtom-Dwnbvu2N.js → TeXAtom-ZEaqimtW.js} +1 -1
- package/client/assets/__vite-browser-external-B2LgiLf-.js +1 -0
- package/client/assets/{abnfDiagram-YUKMZFIV-D2izv3tI.js → abnfDiagram-WEYOIA3C-BscsEU67.js} +1 -1
- package/client/assets/{arc-Dy-vWwtK.js → arc-Dl4OzSiI.js} +1 -1
- package/client/assets/{architectureDiagram-47P4ROYG-BMqz_hfK.js → architectureDiagram-ZHVYKT53-DVrv2QNl.js} +1 -1
- package/client/assets/{assistive-mml-BBZjDstH.js → assistive-mml-x7F99dtt.js} +1 -1
- package/client/assets/{blockDiagram-E7TT5TSB-BC_6nVzg.js → blockDiagram-RJAE7QA3-CL9VjhIy.js} +1 -1
- package/client/assets/{c4Diagram-CRA5TL53-CMlgEq-D.js → c4Diagram-XDPPPE54-ClAuW1Su.js} +1 -1
- package/client/assets/channel-C7tbw03E.js +1 -0
- package/client/assets/{chunk-AW2ZBBNX-CRAjzqLf.js → chunk-2E7WHVMD-BpfatsVl.js} +1 -1
- package/client/assets/{chunk-HTAEGDNF-BpIQa4ai.js → chunk-4EMNKR2T-CNryqYUD.js} +1 -1
- package/client/assets/{chunk-7TKQ45FW-BY_vhyym.js → chunk-55XCU76K-CQJx4wsK.js} +1 -1
- package/client/assets/{chunk-3YJQHVM4-B_LDijS0.js → chunk-7S6XSTFO-B8TJqaKm.js} +1 -1
- package/client/assets/{chunk-E2ZNV5FY-CRk3Pfq3.js → chunk-AQDTSKZB-dUGlA8XM.js} +1 -1
- package/client/assets/{chunk-VPRB5NB3-CYQe0pjV.js → chunk-DSNLSHJZ-Bc29O7Kj.js} +2 -2
- package/client/assets/chunk-HAGFOTED-SRXWMJmA.js +62 -0
- package/client/assets/chunk-HNE4Q36P-XIsiGulF.js +1 -0
- package/client/assets/{chunk-EU5HNXII-C7SKkz7x.js → chunk-NQOKRVIF-CNDyB28A.js} +1 -1
- package/client/assets/{chunk-4EA7E6EY-DB8ZoOxD.js → chunk-UHW7PFBP-D7z_YIHC.js} +1 -1
- package/client/assets/{chunk-KQW6MTUR-CzqgqmsR.js → chunk-VQ5W62QI-CfTNhJXC.js} +1 -1
- package/client/assets/chunk-WQQL4CDK--oD9-mIV.js +10 -0
- package/client/assets/{chunk-XXDRQBXY-DCiQN07N.js → chunk-XXDRQBXY-BuQ7FvNe.js} +1 -1
- package/client/assets/{chunk-HJ2JQQFS-CdiwUyEn.js → chunk-YZO67HFG-CVfUxFvr.js} +1 -1
- package/client/assets/{chunk-DBDB3WZW-CfsLqRL8.js → chunk-ZAUX2LTX-DPy60Elv.js} +1 -1
- package/client/assets/{chunk-FVRAUYC3-9lHES_Ib.js → chunk-ZCHMQSOR-4NYZgH42.js} +1 -1
- package/client/assets/{classDiagram-v2-K4WV4PDN-BNPHLuup.js → classDiagram-v2-4MYWR3UA-lJp1Kd7m.js} +1 -1
- package/client/assets/{cose-bilkent-JH36ORCC-dF6741Or.js → cose-bilkent-JH36ORCC-DcDTRz3u.js} +1 -1
- package/client/assets/{cynefinDiagram-3GCD6N5R-4XXRJFyl.js → cynefinDiagram-WF24UDRP-QSqrt6_X.js} +1 -1
- package/client/assets/{dagre-W4DXFKR2-PkNbgDcl.js → dagre-NK4GIZVX-8E7OP13B.js} +1 -1
- package/client/assets/{diagram-OVF4WLC6-Cy-3YXv9.js → diagram-CBK3MWTC-C2JHQxLJ.js} +1 -1
- package/client/assets/{diagram-UMYRVEAY-BWotPjlO.js → diagram-I5XIIV2D-xBXWQfqG.js} +1 -1
- package/client/assets/{diagram-PFPMY2P6-ckbdhYhd.js → diagram-ODIL2UCW-sA3o0YaV.js} +1 -1
- package/client/assets/{diagram-ZIFT7M5P-DIZ_YPN4.js → diagram-PFBEJUXE-Bzk9qOX0.js} +1 -1
- package/client/assets/{diagram-YEKJPTXX-Drfsm5Ei.js → diagram-RJA3I4VV-BwqRpVus.js} +1 -1
- package/client/assets/{diagram-2UJZ2QOL-D5UsCT69.js → diagram-TYUNFSNR-DOTRQeA3.js} +1 -1
- package/client/assets/{dist-DovUe4bX.js → dist-COSwdJCZ.js} +1 -1
- package/client/assets/{ebnfDiagram-VR2GEFS7-BZqd1z6D.js → ebnfDiagram-V4P3TTPT-C39RhWYu.js} +1 -1
- package/client/assets/elk-QONTBCTQ-dPy-h9Po.js +27 -0
- package/client/assets/{erDiagram-O2IAPWRE-B62N9MOe.js → erDiagram-KYQIGQAA-B5Fn1BL_.js} +1 -1
- package/client/assets/flowDiagram-IUGLLWBU-sQjDH9CV.js +1 -0
- package/client/assets/{ganttDiagram-R7TSEDQI-yzG4IDV2.js → ganttDiagram-R7GPNTJY-DSvw-AAx.js} +1 -1
- package/client/assets/{gitGraphDiagram-XJZIOB7I-DKNU3c7Q.js → gitGraphDiagram-PDYL7XHY-DwXIb1T8.js} +1 -1
- package/client/assets/{heic2any-B4wtRmxS.js → heic2any-7DJPuAa-.js} +1 -1
- package/client/assets/{html-CR7kQNkU.js → html-Ct7pOTau.js} +1 -1
- package/client/assets/index-BII5bTJI.css +2 -0
- package/client/assets/{index-CkmW0yWc.js → index-CoMmb_Su.js} +2170 -411
- package/client/assets/{infoDiagram-5W2HQ5XZ-1fGGWi6i.js → infoDiagram-MVDRKAX5-BP0sp6PG.js} +1 -1
- package/client/assets/{ishikawaDiagram-K3B6WC7H-D8UbvNjQ.js → ishikawaDiagram-HPEHV2GE-DkZCnfkB.js} +1 -1
- package/client/assets/{journeyDiagram-COXZFDF6-DODfPsn6.js → journeyDiagram-BOSHW7O7-C5lBrmWk.js} +1 -1
- package/client/assets/{kanban-definition-P3RFRI5V-C_4kym-D.js → kanban-definition-FNSA4HC5-k1P4cerJ.js} +1 -1
- package/client/assets/katex-B940_AAO.js +257 -0
- package/client/assets/{lengths-BWBolkW1.js → lengths-DaFrXNkv.js} +1 -1
- package/client/assets/{line-CHud_SQT.js → line-DG8MUuK4.js} +1 -1
- package/client/assets/{linear-N0xOv4AO.js → linear-QypFZXrA.js} +1 -1
- package/client/assets/{liteAdaptor-BcJ0akeI.js → liteAdaptor-Bcghdd_u.js} +1 -1
- package/client/assets/{manifold-DUBpAdN8.js → manifold-CyOGI3vv.js} +2 -2
- package/client/assets/{marp-OXXg-yyV.js → marp-uBg3qXiP.js} +1 -1
- package/client/assets/{mathjax-B2LxS74s.js → mathjax-D7JHkqwo.js} +1 -1
- package/client/assets/{mermaid.core-Ck4FoAPC.js → mermaid.core-DGklhdAB.js} +5 -5
- package/client/assets/{mindmap-definition-LZFPQGKD-2U3eDZgj.js → mindmap-definition-6OY57UG3-gzS6FyZY.js} +11 -9
- package/client/assets/{mo-C-TLAbzI.js → mo-BjiDe2hG.js} +1 -1
- package/client/assets/{pegDiagram-BGZESJAR-CPSrx-ye.js → pegDiagram-ECIUJNBX-Cq66EodD.js} +1 -1
- package/client/assets/{pieDiagram-CAPJLFHJ-5f_PIyeW.js → pieDiagram-GNMPY74T-xAtnNnqX.js} +1 -1
- package/client/assets/purify.es-BXhPiKO5.js +3 -0
- package/client/assets/{quadrantDiagram-GDMTTRAM-DtTnwXGk.js → quadrantDiagram-D57K4MC3-Du892PsV.js} +1 -1
- package/client/assets/{railroadDiagram-SM67HX2B-D_vgpY1Q.js → railroadDiagram-Y72NRBL7-CKdD2y_X.js} +1 -1
- package/client/assets/{requirementDiagram-X7JNWC4A-D73sEQMU.js → requirementDiagram-EQYSW5RA-Bq_GbYUM.js} +1 -1
- package/client/assets/{runtime-protocol-vue-CSgbWzhp.js → runtime-protocol-vue-DDgG0sdu.js} +1 -1
- package/client/assets/{runtime-vue-vwmCYkQi.js → runtime-vue-D3lOcL9y.js} +1 -1
- package/client/assets/{sankeyDiagram-UM26HJRW-D937W4Di.js → sankeyDiagram-SY24JHO5-CfVDH0Xd.js} +1 -1
- package/client/assets/{sequenceDiagram-ZO4K6R2Y-CQxSGPhF.js → sequenceDiagram-BLEHNHQU-BfLzBJr6.js} +1 -1
- package/client/assets/{src-tZFcq4Tp.js → src-BgGykKNK.js} +1 -1
- package/client/assets/{stateDiagram-v2-TBUQTH76-Dh3_ywoS.js → stateDiagram-v2-A6IESKWZ-Drw4P5gp.js} +1 -1
- package/client/assets/{svg-DmHVKe1q.js → svg-Cqon0dX1.js} +1 -1
- package/client/assets/swimlanes-B3ENRKFQ-BQFHcOaN.js +1 -0
- package/client/assets/swimlanesDiagram-AYQRV4AK-BCeSnUvS.js +8 -0
- package/client/assets/{tex-ClbW-kMH.js → tex-CPHJ5d-t.js} +1 -1
- package/client/assets/{timeline-definition-YOQAKGHF-CLrIBvH8.js → timeline-definition-JXYKGLGB-DKG-sSoZ.js} +1 -1
- package/client/assets/{usecaseDiagram-VIAY4XPW-E2sLzIvc.js → usecaseDiagram-WPOLBNNX-6b-VgS7o.js} +1 -1
- package/client/assets/{vennDiagram-BLWOH2XV-DRtM4O4i.js → vennDiagram-Q3Y3IDCW-DWz364sx.js} +1 -1
- package/client/assets/{vue-i18n-BbRMUmOW.js → vue-i18n-2bgWpywp.js} +1 -1
- package/client/assets/{vue-C_VSdwOG.js → vue-imO0VoyF.js} +1 -1
- package/client/assets/vue.runtime.esm-bundler-Cwm3cFXF.js +5 -0
- package/client/assets/{wardleyDiagram-YMQ3BMBF-CK584zEb.js → wardleyDiagram-IVAIDKWA-C43sB-35.js} +1 -1
- package/client/assets/{xychartDiagram-TAQBALBS-D47LTZYZ.js → xychartDiagram-4URNHDU4-D-n9TuYW.js} +1 -1
- package/client/index.html +9 -9
- package/package.json +7 -6
- package/server/build/mcp-server.mjs +554 -552
- package/client/assets/__vite-browser-external-0OnNcCAs.js +0 -1
- package/client/assets/channel-D5MgCXLU.js +0 -1
- package/client/assets/chunk-2BW5OAIV-BmsIcsho.js +0 -10
- package/client/assets/chunk-NTY3LDVX-DJFUMgKq.js +0 -1
- package/client/assets/chunk-XC4XBNZT-Crw0ZTTY.js +0 -62
- package/client/assets/elk-IJKZMXRS-CU7dBhBG.js +0 -27
- package/client/assets/flowDiagram-OXPTDLAJ-BWPfh4Ws.js +0 -1
- package/client/assets/index-Da2v4SOh.css +0 -2
- package/client/assets/katex-DJhrJSbw.js +0 -257
- package/client/assets/purify.es-B0LuI4JX.js +0 -3
- package/client/assets/swimlanes-N4OXWK64-CzBA2aUH.js +0 -1
- package/client/assets/swimlanesDiagram-K3J5GTZL-DpGZyRA0.js +0 -8
- package/client/assets/vue.runtime.esm-bundler-C6akXk9q.js +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Pr as e}from"./vue.runtime.esm-bundler-
|
|
1
|
+
import{Pr as e}from"./vue.runtime.esm-bundler-Cwm3cFXF.js";var t=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0,e.BIGDIMEN=1e6,e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4},e.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18},e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN};function t(t,n,r,i){if(n===void 0&&(n=0),r===void 0&&(r=1),i===void 0&&(i=16),typeof t!=`string`&&(t=String(t)),t===``||t==null)return n;if(e.MATHSPACE[t])return e.MATHSPACE[t];var a=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!a)return n;var o=parseFloat(a[1]||`1`),s=a[2];return e.UNITS.hasOwnProperty(s)?o*e.UNITS[s]/i/r:e.RELUNITS.hasOwnProperty(s)?o*e.RELUNITS[s]:s===`%`?o/100*n:o*n}e.length2em=t;function n(e){return(100*e).toFixed(1).replace(/\.?0+$/,``)+`%`}e.percent=n;function r(e){return Math.abs(e)<.001?`0`:e.toFixed(3).replace(/\.?0+$/,``)+`em`}e.em=r;function i(e,t){return t===void 0&&(t=16),e=(Math.round(e*t)+.05)/t,Math.abs(e)<.001?`0em`:e.toFixed(3).replace(/\.?0+$/,``)+`em`}e.emRounded=i;function a(t,n,r){return n===void 0&&(n=-e.BIGDIMEN),r===void 0&&(r=16),t*=r,n&&t<n&&(t=n),Math.abs(t)<.1?`0`:t.toFixed(1).replace(/\.0$/,``)+`px`}e.px=a}));export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{it as r}from"./chunk-
|
|
1
|
+
import{n as e,t}from"./path-fybaL0A-.js";import{t as n}from"./array-BifhSqXX.js";import{it as r}from"./chunk-7S6XSTFO-B8TJqaKm.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=e(!0),l=null,u=r,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:e(o),s=typeof s==`function`?s:s===void 0?a:e(s);function p(e){var t,r=(e=n(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=r;++t)!(t<r&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(t){return arguments.length?(o=typeof t==`function`?t:e(+t),p):o},p.y=function(t){return arguments.length?(s=typeof t==`function`?t:e(+t),p):s},p.defined=function(t){return arguments.length?(c=typeof t==`function`?t:e(!!t),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,n as t,o as n,r,t as i}from"./src-
|
|
1
|
+
import{l as e,n as t,o as n,r,t as i}from"./src-BgGykKNK.js";import{i as a,n as o,r as s,t as c}from"./defaultLocale-BFoDCU3G.js";import{t as l}from"./init-C-OQMol4.js";function u(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function d(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f(e){let t,n,r;e.length===2?(t=e===u||e===d?e:p,n=e,r=e):(t=u,n=(t,n)=>u(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function p(){return 0}function m(e){return e===null?NaN:+e}var h=f(u),g=h.right;h.left,f(m).center;var _=Math.sqrt(50),v=Math.sqrt(10),y=Math.sqrt(2);function b(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=_?10:a>=v?5:a>=y?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?b(e,t,n*2):[s,c,l]}function x(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?b(t,e,n):b(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function S(e,t,n){return t=+t,e=+e,n=+n,b(e,t,n)[2]}function C(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?S(t,e,n):S(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function w(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function T(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=k(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function D(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function O(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=k(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}function k(a,o){var s=typeof o,c;return o==null||s===`boolean`?n(o):(s===`number`?t:s===`string`?(c=e(o))?(o=c,r):i:o instanceof e?r:o instanceof Date?D:T(o)?w:Array.isArray(o)?E:typeof o.valueOf!=`function`&&typeof o.toString!=`function`||isNaN(o)?O:t)(a,o)}function A(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function j(e){return Math.max(0,-a(Math.abs(e)))}function M(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(a(t)/3)))*3-a(Math.abs(e)))}function N(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,a(t)-a(e))+1}function P(e){return function(){return e}}function F(e){return+e}var I=[0,1];function L(e){return e}function R(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:P(isNaN(t)?NaN:.5)}function z(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function B(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=R(i,r),a=n(o,a)):(r=R(r,i),a=n(a,o)),function(e){return a(r(e))}}function V(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=R(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=g(e,t,1,r)-1;return a[n](i[n](t))}}function H(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function U(){var e=I,n=I,r=k,i,a,o,s=L,c,l,u;function d(){var t=Math.min(e.length,n.length);return s!==L&&(s=z(e[0],e[t-1])),c=t>2?V:B,l=u=null,f}function f(t){return t==null||isNaN(t=+t)?o:(l||=c(e.map(i),n,r))(i(s(t)))}return f.invert=function(r){return s(a((u||=c(n,e.map(i),t))(r)))},f.domain=function(t){return arguments.length?(e=Array.from(t,F),d()):e.slice()},f.range=function(e){return arguments.length?(n=Array.from(e),d()):n.slice()},f.rangeRound=function(e){return n=Array.from(e),r=A,d()},f.clamp=function(e){return arguments.length?(s=e?!0:L,d()):s!==L},f.interpolate=function(e){return arguments.length?(r=e,d()):r},f.unknown=function(e){return arguments.length?(o=e,f):o},function(e,t){return i=e,a=t,d()}}function W(){return U()(L,L)}function G(e,t,n,r){var i=C(e,t,n),a;switch(r=s(r??`,f`),r.type){case`s`:var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=M(i,l))&&(r.precision=a),o(r,l);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=N(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=j(i))&&(r.precision=a-(r.type===`%`)*2)}return c(r)}function K(e){var t=e.domain;return e.ticks=function(e){var n=t();return x(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return G(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=S(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function q(){var e=W();return e.copy=function(){return H(e,q())},l.apply(e,arguments),K(e)}export{f as a,C as i,W as n,H as r,q as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Pr as e}from"./vue.runtime.esm-bundler-C6akXk9q.js";import{t}from"./Options-DmQY5iBM.js";import{t as n}from"./Element-Cv7I_0yC.js";import{t as r}from"./Entities-C8-4eSNA.js";import{t as i}from"./Styles-B53-i2nc.js";var a=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,e.AbstractDOMAdaptor=function(){function e(e){e===void 0&&(e=null),this.document=e}return e.prototype.node=function(e,n,r,i){var a,o;n===void 0&&(n={}),r===void 0&&(r=[]);var s=this.create(e,i);this.setAttributes(s,n);try{for(var c=t(r),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(e,n){var r,i,a,o,s,c;if(n.style&&typeof n.style!=`string`)try{for(var l=t(Object.keys(n.style)),u=l.next();!u.done;u=l.next()){var d=u.value;this.setStyle(e,d.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),n.style[d])}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}if(n.properties)try{for(var f=t(Object.keys(n.properties)),p=f.next();!p.done;p=f.next()){var d=p.value;e[d]=n.properties[d]}}catch(e){a={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var m=t(Object.keys(n)),h=m.next();!h.done;h=m.next()){var d=h.value;(d!==`style`||typeof n.style==`string`)&&d!==`properties`&&this.setAttribute(e,d,n[d])}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,`class`);return t?t.replace(/ +/g,` `).replace(/^ /,``).replace(/ $/,``).split(/ /):[]},e}()})),o=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void 0;var i=t();e.NodeMixinOptions={badCSS:!0,badSizes:!0};function a(t,a){var o;return a===void 0&&(a={}),a=(0,i.userOptions)((0,i.defaultOptions)({},e.NodeMixinOptions),a),o=function(e){n(t,e);function t(){var t=[...arguments],n=e.call(this,t[0])||this,r=n.constructor;return n.options=(0,i.userOptions)((0,i.defaultOptions)({},r.OPTIONS),t[1]),n}return t.prototype.fontSize=function(t){return a.badCSS?this.options.fontSize:e.prototype.fontSize.call(this,t)},t.prototype.fontFamily=function(t){return a.badCSS?this.options.fontFamily:e.prototype.fontFamily.call(this,t)},t.prototype.nodeSize=function(n,r,i){if(r===void 0&&(r=1),i===void 0&&(i=null),!a.badSizes)return e.prototype.nodeSize.call(this,n,r,i);var o=this.textContent(n),s=Array.from(o.replace(t.cjkPattern,``)).length;return[(Array.from(o).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]},t.prototype.nodeBBox=function(t){return a.badSizes?{left:0,right:0,top:0,bottom:0}:e.prototype.nodeBBox.call(this,t)},t}(t),o.OPTIONS=r(r({},a.badCSS?{fontSize:16,fontFamily:`Times`}:{}),a.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),o.cjkPattern=new RegExp([`[`,`ᄀ-ᅟ`,`〈〉`,`⺀-〾`,`-㉇`,`㉐-䶿`,`一-꓆`,`ꥠ-ꥼ`,`가-힣`,`豈-`,`︐-︙`,`︰-﹫`,`!-⦆¢-₩`,`𛀀-𛀁`,`🈀-🉑`,`𠀀-`,`]`].join(``),`gu`),o}e.NodeMixin=a})),s=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var t=n();e.LiteDocument=function(){function e(){this.root=new t.LiteElement(`html`,{},[this.head=new t.LiteElement(`head`),this.body=new t.LiteElement(`body`)]),this.type=``}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#document`},enumerable:!1,configurable:!0}),e}()})),c=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var n=function(){function e(e){e===void 0&&(e=``),this.value=e}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#text`},enumerable:!1,configurable:!0}),e}();e.LiteText=n,e.LiteComment=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`#comment`},enumerable:!1,configurable:!0}),n}(n)})),l=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0,e.LiteList=function(){function e(e){this.nodes=[],this.nodes=n([],t(e),!1)}return e.prototype.append=function(e){this.nodes.push(e)},e.prototype[Symbol.iterator]=function(){var e=0;return{next:function(){return e===this.nodes.length?{value:null,done:!0}:{value:this.nodes[e++],done:!1}}}},e}()})),u=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&t(n,e,r);return i(n,e),n},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var l=a(r()),u=n(),d=c(),f;(function(e){e.TAGNAME=`[a-z][^\\s\\n>]*`,e.ATTNAME=`[a-z][^\\s\\n>=]*`,e.VALUE=`(?:'[^']*'|"[^"]*"|[^\\s\\n]+)`,e.VALUESPLIT=`(?:'([^']*)'|"([^"]*)"|([^\\s\\n]+))`,e.SPACE=`(?:\\s|\\n)+`,e.OPTIONALSPACE=`(?:\\s|\\n)*`,e.ATTRIBUTE=e.ATTNAME+`(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUE+`)?`,e.ATTRIBUTESPLIT=`(`+e.ATTNAME+`)(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUESPLIT+`)?`,e.TAG=`(<(?:`+e.TAGNAME+`(?:`+e.SPACE+e.ATTRIBUTE+`)*`+e.OPTIONALSPACE+`/?|/`+e.TAGNAME+`|!--[^]*?--|![^]*?)(?:>|$))`,e.tag=new RegExp(e.TAG,`i`),e.attr=new RegExp(e.ATTRIBUTE,`i`),e.attrsplit=new RegExp(e.ATTRIBUTESPLIT,`i`)})(f=e.PATTERNS||={}),e.LiteParser=function(){function e(){}return e.prototype.parseFromString=function(e,t,n){t===void 0&&(t=`text/html`),n===void 0&&(n=null);for(var r=n.createDocument(),i=n.body(r),a=e.replace(/<\?.*?\?>/g,``).split(f.tag);a.length;){var o=a.shift(),s=a.shift();o&&this.addText(n,i,o),s&&s.charAt(s.length-1)===`>`&&(s.charAt(1)===`!`?this.addComment(n,i,s):i=s.charAt(1)===`/`?this.closeTag(n,i,s):this.openTag(n,i,s,a))}return this.checkDocument(n,r),r},e.prototype.addText=function(e,t,n){return n=l.translate(n),e.append(t,e.text(n))},e.prototype.addComment=function(e,t,n){return e.append(t,new d.LiteComment(n))},e.prototype.closeTag=function(e,t,n){for(var r=n.slice(2,n.length-1).toLowerCase();e.parent(t)&&e.kind(t)!==r;)t=e.parent(t);return e.parent(t)},e.prototype.openTag=function(e,t,n,r){var i=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=e.node(o),c=n.replace(/^<.*?[\s\n>]/,``).split(f.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(e,s,c),e.append(t,s),!a[o]&&!n.match(/\/>$/)&&(i[o]?this.handlePCDATA(e,s,o,r):t=s)),t},e.prototype.addAttributes=function(e,t,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=o(n.splice(0,5),5),a=i[1],s=i[2],c=i[3],u=i[4],d=s||c||u||``;r[a]||(d=l.translate(d)),e.setAttribute(t,a,d)}},e.prototype.handlePCDATA=function(e,t,n,r){for(var i=[],a=`</`+n+`>`,o=``;r.length&&o!==a;)i.push(o),i.push(r.shift()),o=r.shift();e.append(t,e.text(i.join(``)))},e.prototype.checkDocument=function(e,t){var n,r,i,a,o=this.getOnlyChild(e,e.body(t));if(o){try{for(var c=s(e.childNodes(e.body(t))),l=c.next();!l.done;l=c.next()){var u=l.value;if(u===o)break;u instanceof d.LiteComment&&u.value.match(/^<!DOCTYPE/)&&(t.type=u.value)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}switch(e.kind(o)){case`html`:try{for(var f=s(o.children),p=f.next();!p.done;p=f.next()){var u=p.value;switch(e.kind(u)){case`head`:t.head=u;break;case`body`:t.body=u}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}t.root=o,e.remove(o),e.parent(t.body)!==o&&e.append(o,t.body),e.parent(t.head)!==o&&e.insert(t.head,t.body);break;case`head`:t.head=e.replace(o,t.head);break;case`body`:t.body=e.replace(o,t.body)}}},e.prototype.getOnlyChild=function(e,t){var n,r,i=null;try{for(var a=s(e.childNodes(t)),o=a.next();!o.done;o=a.next()){var c=o.value;if(c instanceof u.LiteElement){if(i)return null;i=c}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.serialize=function(e,t,n){var r=this;n===void 0&&(n=!1);var i=this.constructor.SELF_CLOSING,a=this.constructor.CDATA_ATTR,o=e.kind(t),s=e.allAttributes(t).map(function(e){return e.name+`="`+(a[e.name]?e.value:r.protectAttribute(e.value))+`"`}).join(` `),c=this.serializeInner(e,t,n);return`<`+o+(s?` `+s:``)+((!n||c)&&!i[o]?`>${c}</${o}>`:n?`/>`:`>`)},e.prototype.serializeInner=function(e,t,n){var r=this;return n===void 0&&(n=!1),this.constructor.PCDATA.hasOwnProperty(t.kind)?e.childNodes(t).map(function(t){return e.value(t)}).join(``):e.childNodes(t).map(function(t){var i=e.kind(t);return i===`#text`?r.protectHTML(e.value(t)):i===`#comment`?t.value:r.serialize(e,t,n)}).join(``)},e.prototype.protectAttribute=function(e){return typeof e!=`string`&&(e=String(e)),e.replace(/"/g,`"`)},e.prototype.protectHTML=function(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)},e.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},e.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},e.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},e}()})),d=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var t=n(),r=s(),i=l(),a=u();e.LiteWindow=function(){function e(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=t.LiteElement,this.DocumentFragment=i.LiteList,this.Document=r.LiteDocument,this.document=new r.LiteDocument}return e}()})),f=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},l=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},f=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},p=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=e.LiteBase=void 0;var m=a(),h=o(),g=s(),_=n(),v=c(),y=d(),b=u(),x=i(),S=function(e){t(n,e);function n(){var t=e.call(this)||this;return t.parser=new b.LiteParser,t.window=new y.LiteWindow,t}return n.prototype.parse=function(e,t){return this.parser.parseFromString(e,t,this)},n.prototype.create=function(e,t){return t===void 0&&(t=null),new _.LiteElement(e)},n.prototype.text=function(e){return new v.LiteText(e)},n.prototype.comment=function(e){return new v.LiteComment(e)},n.prototype.createDocument=function(){return new g.LiteDocument},n.prototype.head=function(e){return e.head},n.prototype.body=function(e){return e.body},n.prototype.root=function(e){return e.root},n.prototype.doctype=function(e){return e.type},n.prototype.tags=function(e,t,n){n===void 0&&(n=null);var r=[],i=[];if(n)return i;for(var a=e;a;){var o=a.kind;o!==`#text`&&o!==`#comment`&&(a=a,o===t&&i.push(a),a.children.length&&(r=a.children.concat(r))),a=r.shift()}return i},n.prototype.elementById=function(e,t){for(var n=[],r=e;r;){if(r.kind!==`#text`&&r.kind!==`#comment`){if(r=r,r.attributes.id===t)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},n.prototype.elementsByClass=function(e,t){for(var n=[],r=[],i=e;i;)i.kind!==`#text`&&i.kind!==`#comment`&&(i=i,(i.attributes.class||``).trim().split(/ +/).includes(t)&&r.push(i),i.children.length&&(n=i.children.concat(n))),i=n.shift();return r},n.prototype.getElements=function(e,t){var n,r,i=[],a=this.body(t);try{for(var o=l(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(typeof c==`string`){if(c.charAt(0)===`#`){var u=this.elementById(a,c.slice(1));u&&i.push(u)}else c.charAt(0)===`.`?i=i.concat(this.elementsByClass(a,c.slice(1))):c.match(/^[-a-z][-a-z0-9]*$/i)&&(i=i.concat(this.tags(a,c)))}else Array.isArray(c)?i=i.concat(c):c instanceof this.window.NodeList||c instanceof this.window.HTMLCollection?i=i.concat(c.nodes):i.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},n.prototype.contains=function(e,t){for(;t&&t!==e;)t=this.parent(t);return!!t},n.prototype.parent=function(e){return e.parent},n.prototype.childIndex=function(e){return e.parent?e.parent.children.findIndex(function(t){return t===e}):-1},n.prototype.append=function(e,t){return t.parent&&this.remove(t),e.children.push(t),t.parent=e,t},n.prototype.insert=function(e,t){if(e.parent&&this.remove(e),t&&t.parent){var n=this.childIndex(t);t.parent.children.splice(n,0,e),e.parent=t.parent}},n.prototype.remove=function(e){var t=this.childIndex(e);return t>=0&&e.parent.children.splice(t,1),e.parent=null,e},n.prototype.replace=function(e,t){var n=this.childIndex(t);return n>=0&&(t.parent.children[n]=e,e.parent=t.parent,t.parent=null),t},n.prototype.clone=function(e){var t=this,n=new _.LiteElement(e.kind);return n.attributes=r({},e.attributes),n.children=e.children.map(function(e){if(e.kind===`#text`)return new v.LiteText(e.value);if(e.kind===`#comment`)return new v.LiteComment(e.value);var r=t.clone(e);return r.parent=n,r}),n},n.prototype.split=function(e,t){var n=new v.LiteText(e.value.slice(t));return e.value=e.value.slice(0,t),e.parent.children.splice(this.childIndex(e)+1,0,n),n.parent=e.parent,n},n.prototype.next=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)+1;return n>=0&&n<t.children.length?t.children[n]:null},n.prototype.previous=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)-1;return n>=0?t.children[n]:null},n.prototype.firstChild=function(e){return e.children[0]},n.prototype.lastChild=function(e){return e.children[e.children.length-1]},n.prototype.childNodes=function(e){return p([],f(e.children),!1)},n.prototype.childNode=function(e,t){return e.children[t]},n.prototype.kind=function(e){return e.kind},n.prototype.value=function(e){return e.kind===`#text`?e.value:e.kind===`#comment`?e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,`$2`):``},n.prototype.textContent=function(e){var t=this;return e.children.reduce(function(e,n){return e+(n.kind===`#text`?n.value:n.kind===`#comment`?``:t.textContent(n))},``)},n.prototype.innerHTML=function(e){return this.parser.serializeInner(this,e)},n.prototype.outerHTML=function(e){return this.parser.serialize(this,e)},n.prototype.serializeXML=function(e){return this.parser.serialize(this,e,!0)},n.prototype.setAttribute=function(e,t,n,r){r===void 0&&(r=null),typeof n!=`string`&&(n=String(n)),r&&(t=r.replace(/.*\//,``)+`:`+t.replace(/^.*:/,``)),e.attributes[t]=n,t===`style`&&(e.styles=null)},n.prototype.getAttribute=function(e,t){return e.attributes[t]},n.prototype.removeAttribute=function(e,t){delete e.attributes[t]},n.prototype.hasAttribute=function(e,t){return e.attributes.hasOwnProperty(t)},n.prototype.allAttributes=function(e){var t,n,r=e.attributes,i=[];try{for(var a=l(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;i.push({name:s,value:r[s]})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},n.prototype.addClass=function(e,t){var n=(e.attributes.class||``).split(/ /);n.find(function(e){return e===t})||(n.push(t),e.attributes.class=n.join(` `))},n.prototype.removeClass=function(e,t){var n=(e.attributes.class||``).split(/ /),r=n.findIndex(function(e){return e===t});r>=0&&(n.splice(r,1),e.attributes.class=n.join(` `))},n.prototype.hasClass=function(e,t){return!!(e.attributes.class||``).split(/ /).find(function(e){return e===t})},n.prototype.setStyle=function(e,t,n){e.styles||=new x.Styles(this.getAttribute(e,`style`)),e.styles.set(t,n),e.attributes.style=e.styles.cssText},n.prototype.getStyle=function(e,t){if(!e.styles){var n=this.getAttribute(e,`style`);if(!n)return``;e.styles=new x.Styles(n)}return e.styles.get(t)},n.prototype.allStyles=function(e){return this.getAttribute(e,`style`)},n.prototype.insertRules=function(e,t){e.children=[this.text(t.join(`
|
|
1
|
+
import{Pr as e}from"./vue.runtime.esm-bundler-Cwm3cFXF.js";import{t}from"./Options-D4NRwRVE.js";import{t as n}from"./Element-9N081W6i.js";import{t as r}from"./Entities-CStqDzQa.js";import{t as i}from"./Styles-D3y1lCFc.js";var a=e((e=>{var t=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDOMAdaptor=void 0,e.AbstractDOMAdaptor=function(){function e(e){e===void 0&&(e=null),this.document=e}return e.prototype.node=function(e,n,r,i){var a,o;n===void 0&&(n={}),r===void 0&&(r=[]);var s=this.create(e,i);this.setAttributes(s,n);try{for(var c=t(r),l=c.next();!l.done;l=c.next()){var u=l.value;this.append(s,u)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return s},e.prototype.setAttributes=function(e,n){var r,i,a,o,s,c;if(n.style&&typeof n.style!=`string`)try{for(var l=t(Object.keys(n.style)),u=l.next();!u.done;u=l.next()){var d=u.value;this.setStyle(e,d.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),n.style[d])}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}if(n.properties)try{for(var f=t(Object.keys(n.properties)),p=f.next();!p.done;p=f.next()){var d=p.value;e[d]=n.properties[d]}}catch(e){a={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}try{for(var m=t(Object.keys(n)),h=m.next();!h.done;h=m.next()){var d=h.value;(d!==`style`||typeof n.style==`string`)&&d!==`properties`&&this.setAttribute(e,d,n[d])}}catch(e){s={error:e}}finally{try{h&&!h.done&&(c=m.return)&&c.call(m)}finally{if(s)throw s.error}}},e.prototype.replace=function(e,t){return this.insert(e,t),this.remove(t),t},e.prototype.childNode=function(e,t){return this.childNodes(e)[t]},e.prototype.allClasses=function(e){var t=this.getAttribute(e,`class`);return t?t.replace(/ +/g,` `).replace(/^ /,``).replace(/ $/,``).split(/ /):[]},e}()})),o=e((e=>{var n=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.NodeMixin=e.NodeMixinOptions=void 0;var i=t();e.NodeMixinOptions={badCSS:!0,badSizes:!0};function a(t,a){var o;return a===void 0&&(a={}),a=(0,i.userOptions)((0,i.defaultOptions)({},e.NodeMixinOptions),a),o=function(e){n(t,e);function t(){var t=[...arguments],n=e.call(this,t[0])||this,r=n.constructor;return n.options=(0,i.userOptions)((0,i.defaultOptions)({},r.OPTIONS),t[1]),n}return t.prototype.fontSize=function(t){return a.badCSS?this.options.fontSize:e.prototype.fontSize.call(this,t)},t.prototype.fontFamily=function(t){return a.badCSS?this.options.fontFamily:e.prototype.fontFamily.call(this,t)},t.prototype.nodeSize=function(n,r,i){if(r===void 0&&(r=1),i===void 0&&(i=null),!a.badSizes)return e.prototype.nodeSize.call(this,n,r,i);var o=this.textContent(n),s=Array.from(o.replace(t.cjkPattern,``)).length;return[(Array.from(o).length-s)*this.options.cjkCharWidth+s*this.options.unknownCharWidth,this.options.unknownCharHeight]},t.prototype.nodeBBox=function(t){return a.badSizes?{left:0,right:0,top:0,bottom:0}:e.prototype.nodeBBox.call(this,t)},t}(t),o.OPTIONS=r(r({},a.badCSS?{fontSize:16,fontFamily:`Times`}:{}),a.badSizes?{cjkCharWidth:1,unknownCharWidth:.6,unknownCharHeight:.8}:{}),o.cjkPattern=new RegExp([`[`,`ᄀ-ᅟ`,`〈〉`,`⺀-〾`,`-㉇`,`㉐-䶿`,`一-꓆`,`ꥠ-ꥼ`,`가-힣`,`豈-`,`︐-︙`,`︰-﹫`,`!-⦆¢-₩`,`𛀀-𛀁`,`🈀-🉑`,`𠀀-`,`]`].join(``),`gu`),o}e.NodeMixin=a})),s=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteDocument=void 0;var t=n();e.LiteDocument=function(){function e(){this.root=new t.LiteElement(`html`,{},[this.head=new t.LiteElement(`head`),this.body=new t.LiteElement(`body`)]),this.type=``}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#document`},enumerable:!1,configurable:!0}),e}()})),c=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.LiteComment=e.LiteText=void 0;var n=function(){function e(e){e===void 0&&(e=``),this.value=e}return Object.defineProperty(e.prototype,"kind",{get:function(){return`#text`},enumerable:!1,configurable:!0}),e}();e.LiteText=n,e.LiteComment=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(n.prototype,"kind",{get:function(){return`#comment`},enumerable:!1,configurable:!0}),n}(n)})),l=e((e=>{var t=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},n=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteList=void 0,e.LiteList=function(){function e(e){this.nodes=[],this.nodes=n([],t(e),!1)}return e.prototype.append=function(e){this.nodes.push(e)},e.prototype[Symbol.iterator]=function(){var e=0;return{next:function(){return e===this.nodes.length?{value:null,done:!0}:{value:this.nodes[e++],done:!1}}}},e}()})),u=e((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),i=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),a=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&t(n,e,r);return i(n,e),n},o=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)};Object.defineProperty(e,"__esModule",{value:!0}),e.LiteParser=e.PATTERNS=void 0;var l=a(r()),u=n(),d=c(),f;(function(e){e.TAGNAME=`[a-z][^\\s\\n>]*`,e.ATTNAME=`[a-z][^\\s\\n>=]*`,e.VALUE=`(?:'[^']*'|"[^"]*"|[^\\s\\n]+)`,e.VALUESPLIT=`(?:'([^']*)'|"([^"]*)"|([^\\s\\n]+))`,e.SPACE=`(?:\\s|\\n)+`,e.OPTIONALSPACE=`(?:\\s|\\n)*`,e.ATTRIBUTE=e.ATTNAME+`(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUE+`)?`,e.ATTRIBUTESPLIT=`(`+e.ATTNAME+`)(?:`+e.OPTIONALSPACE+`=`+e.OPTIONALSPACE+e.VALUESPLIT+`)?`,e.TAG=`(<(?:`+e.TAGNAME+`(?:`+e.SPACE+e.ATTRIBUTE+`)*`+e.OPTIONALSPACE+`/?|/`+e.TAGNAME+`|!--[^]*?--|![^]*?)(?:>|$))`,e.tag=new RegExp(e.TAG,`i`),e.attr=new RegExp(e.ATTRIBUTE,`i`),e.attrsplit=new RegExp(e.ATTRIBUTESPLIT,`i`)})(f=e.PATTERNS||={}),e.LiteParser=function(){function e(){}return e.prototype.parseFromString=function(e,t,n){t===void 0&&(t=`text/html`),n===void 0&&(n=null);for(var r=n.createDocument(),i=n.body(r),a=e.replace(/<\?.*?\?>/g,``).split(f.tag);a.length;){var o=a.shift(),s=a.shift();o&&this.addText(n,i,o),s&&s.charAt(s.length-1)===`>`&&(s.charAt(1)===`!`?this.addComment(n,i,s):i=s.charAt(1)===`/`?this.closeTag(n,i,s):this.openTag(n,i,s,a))}return this.checkDocument(n,r),r},e.prototype.addText=function(e,t,n){return n=l.translate(n),e.append(t,e.text(n))},e.prototype.addComment=function(e,t,n){return e.append(t,new d.LiteComment(n))},e.prototype.closeTag=function(e,t,n){for(var r=n.slice(2,n.length-1).toLowerCase();e.parent(t)&&e.kind(t)!==r;)t=e.parent(t);return e.parent(t)},e.prototype.openTag=function(e,t,n,r){var i=this.constructor.PCDATA,a=this.constructor.SELF_CLOSING,o=n.match(/<(.*?)[\s\n>\/]/)[1].toLowerCase(),s=e.node(o),c=n.replace(/^<.*?[\s\n>]/,``).split(f.attrsplit);return(c.pop().match(/>$/)||c.length<5)&&(this.addAttributes(e,s,c),e.append(t,s),!a[o]&&!n.match(/\/>$/)&&(i[o]?this.handlePCDATA(e,s,o,r):t=s)),t},e.prototype.addAttributes=function(e,t,n){for(var r=this.constructor.CDATA_ATTR;n.length;){var i=o(n.splice(0,5),5),a=i[1],s=i[2],c=i[3],u=i[4],d=s||c||u||``;r[a]||(d=l.translate(d)),e.setAttribute(t,a,d)}},e.prototype.handlePCDATA=function(e,t,n,r){for(var i=[],a=`</`+n+`>`,o=``;r.length&&o!==a;)i.push(o),i.push(r.shift()),o=r.shift();e.append(t,e.text(i.join(``)))},e.prototype.checkDocument=function(e,t){var n,r,i,a,o=this.getOnlyChild(e,e.body(t));if(o){try{for(var c=s(e.childNodes(e.body(t))),l=c.next();!l.done;l=c.next()){var u=l.value;if(u===o)break;u instanceof d.LiteComment&&u.value.match(/^<!DOCTYPE/)&&(t.type=u.value)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}switch(e.kind(o)){case`html`:try{for(var f=s(o.children),p=f.next();!p.done;p=f.next()){var u=p.value;switch(e.kind(u)){case`head`:t.head=u;break;case`body`:t.body=u}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}t.root=o,e.remove(o),e.parent(t.body)!==o&&e.append(o,t.body),e.parent(t.head)!==o&&e.insert(t.head,t.body);break;case`head`:t.head=e.replace(o,t.head);break;case`body`:t.body=e.replace(o,t.body)}}},e.prototype.getOnlyChild=function(e,t){var n,r,i=null;try{for(var a=s(e.childNodes(t)),o=a.next();!o.done;o=a.next()){var c=o.value;if(c instanceof u.LiteElement){if(i)return null;i=c}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i},e.prototype.serialize=function(e,t,n){var r=this;n===void 0&&(n=!1);var i=this.constructor.SELF_CLOSING,a=this.constructor.CDATA_ATTR,o=e.kind(t),s=e.allAttributes(t).map(function(e){return e.name+`="`+(a[e.name]?e.value:r.protectAttribute(e.value))+`"`}).join(` `),c=this.serializeInner(e,t,n);return`<`+o+(s?` `+s:``)+((!n||c)&&!i[o]?`>${c}</${o}>`:n?`/>`:`>`)},e.prototype.serializeInner=function(e,t,n){var r=this;return n===void 0&&(n=!1),this.constructor.PCDATA.hasOwnProperty(t.kind)?e.childNodes(t).map(function(t){return e.value(t)}).join(``):e.childNodes(t).map(function(t){var i=e.kind(t);return i===`#text`?r.protectHTML(e.value(t)):i===`#comment`?t.value:r.serialize(e,t,n)}).join(``)},e.prototype.protectAttribute=function(e){return typeof e!=`string`&&(e=String(e)),e.replace(/"/g,`"`)},e.prototype.protectHTML=function(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)},e.SELF_CLOSING={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},e.PCDATA={option:!0,textarea:!0,fieldset:!0,title:!0,style:!0,script:!0},e.CDATA_ATTR={style:!0,datafld:!0,datasrc:!0,href:!0,src:!0,longdesc:!0,usemap:!0,cite:!0,datetime:!0,action:!0,axis:!0,profile:!0,content:!0,scheme:!0},e}()})),d=e((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LiteWindow=void 0;var t=n(),r=s(),i=l(),a=u();e.LiteWindow=function(){function e(){this.DOMParser=a.LiteParser,this.NodeList=i.LiteList,this.HTMLCollection=i.LiteList,this.HTMLElement=t.LiteElement,this.DocumentFragment=i.LiteList,this.Document=r.LiteDocument,this.document=new r.LiteDocument}return e}()})),f=e((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},l=e&&e.__values||function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)},f=e&&e.__read||function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},p=e&&e.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(e,"__esModule",{value:!0}),e.liteAdaptor=e.LiteAdaptor=e.LiteBase=void 0;var m=a(),h=o(),g=s(),_=n(),v=c(),y=d(),b=u(),x=i(),S=function(e){t(n,e);function n(){var t=e.call(this)||this;return t.parser=new b.LiteParser,t.window=new y.LiteWindow,t}return n.prototype.parse=function(e,t){return this.parser.parseFromString(e,t,this)},n.prototype.create=function(e,t){return t===void 0&&(t=null),new _.LiteElement(e)},n.prototype.text=function(e){return new v.LiteText(e)},n.prototype.comment=function(e){return new v.LiteComment(e)},n.prototype.createDocument=function(){return new g.LiteDocument},n.prototype.head=function(e){return e.head},n.prototype.body=function(e){return e.body},n.prototype.root=function(e){return e.root},n.prototype.doctype=function(e){return e.type},n.prototype.tags=function(e,t,n){n===void 0&&(n=null);var r=[],i=[];if(n)return i;for(var a=e;a;){var o=a.kind;o!==`#text`&&o!==`#comment`&&(a=a,o===t&&i.push(a),a.children.length&&(r=a.children.concat(r))),a=r.shift()}return i},n.prototype.elementById=function(e,t){for(var n=[],r=e;r;){if(r.kind!==`#text`&&r.kind!==`#comment`){if(r=r,r.attributes.id===t)return r;r.children.length&&(n=r.children.concat(n))}r=n.shift()}return null},n.prototype.elementsByClass=function(e,t){for(var n=[],r=[],i=e;i;)i.kind!==`#text`&&i.kind!==`#comment`&&(i=i,(i.attributes.class||``).trim().split(/ +/).includes(t)&&r.push(i),i.children.length&&(n=i.children.concat(n))),i=n.shift();return r},n.prototype.getElements=function(e,t){var n,r,i=[],a=this.body(t);try{for(var o=l(e),s=o.next();!s.done;s=o.next()){var c=s.value;if(typeof c==`string`){if(c.charAt(0)===`#`){var u=this.elementById(a,c.slice(1));u&&i.push(u)}else c.charAt(0)===`.`?i=i.concat(this.elementsByClass(a,c.slice(1))):c.match(/^[-a-z][-a-z0-9]*$/i)&&(i=i.concat(this.tags(a,c)))}else Array.isArray(c)?i=i.concat(c):c instanceof this.window.NodeList||c instanceof this.window.HTMLCollection?i=i.concat(c.nodes):i.push(c)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},n.prototype.contains=function(e,t){for(;t&&t!==e;)t=this.parent(t);return!!t},n.prototype.parent=function(e){return e.parent},n.prototype.childIndex=function(e){return e.parent?e.parent.children.findIndex(function(t){return t===e}):-1},n.prototype.append=function(e,t){return t.parent&&this.remove(t),e.children.push(t),t.parent=e,t},n.prototype.insert=function(e,t){if(e.parent&&this.remove(e),t&&t.parent){var n=this.childIndex(t);t.parent.children.splice(n,0,e),e.parent=t.parent}},n.prototype.remove=function(e){var t=this.childIndex(e);return t>=0&&e.parent.children.splice(t,1),e.parent=null,e},n.prototype.replace=function(e,t){var n=this.childIndex(t);return n>=0&&(t.parent.children[n]=e,e.parent=t.parent,t.parent=null),t},n.prototype.clone=function(e){var t=this,n=new _.LiteElement(e.kind);return n.attributes=r({},e.attributes),n.children=e.children.map(function(e){if(e.kind===`#text`)return new v.LiteText(e.value);if(e.kind===`#comment`)return new v.LiteComment(e.value);var r=t.clone(e);return r.parent=n,r}),n},n.prototype.split=function(e,t){var n=new v.LiteText(e.value.slice(t));return e.value=e.value.slice(0,t),e.parent.children.splice(this.childIndex(e)+1,0,n),n.parent=e.parent,n},n.prototype.next=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)+1;return n>=0&&n<t.children.length?t.children[n]:null},n.prototype.previous=function(e){var t=e.parent;if(!t)return null;var n=this.childIndex(e)-1;return n>=0?t.children[n]:null},n.prototype.firstChild=function(e){return e.children[0]},n.prototype.lastChild=function(e){return e.children[e.children.length-1]},n.prototype.childNodes=function(e){return p([],f(e.children),!1)},n.prototype.childNode=function(e,t){return e.children[t]},n.prototype.kind=function(e){return e.kind},n.prototype.value=function(e){return e.kind===`#text`?e.value:e.kind===`#comment`?e.value.replace(/^<!(--)?((?:.|\n)*)\1>$/,`$2`):``},n.prototype.textContent=function(e){var t=this;return e.children.reduce(function(e,n){return e+(n.kind===`#text`?n.value:n.kind===`#comment`?``:t.textContent(n))},``)},n.prototype.innerHTML=function(e){return this.parser.serializeInner(this,e)},n.prototype.outerHTML=function(e){return this.parser.serialize(this,e)},n.prototype.serializeXML=function(e){return this.parser.serialize(this,e,!0)},n.prototype.setAttribute=function(e,t,n,r){r===void 0&&(r=null),typeof n!=`string`&&(n=String(n)),r&&(t=r.replace(/.*\//,``)+`:`+t.replace(/^.*:/,``)),e.attributes[t]=n,t===`style`&&(e.styles=null)},n.prototype.getAttribute=function(e,t){return e.attributes[t]},n.prototype.removeAttribute=function(e,t){delete e.attributes[t]},n.prototype.hasAttribute=function(e,t){return e.attributes.hasOwnProperty(t)},n.prototype.allAttributes=function(e){var t,n,r=e.attributes,i=[];try{for(var a=l(Object.keys(r)),o=a.next();!o.done;o=a.next()){var s=o.value;i.push({name:s,value:r[s]})}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},n.prototype.addClass=function(e,t){var n=(e.attributes.class||``).split(/ /);n.find(function(e){return e===t})||(n.push(t),e.attributes.class=n.join(` `))},n.prototype.removeClass=function(e,t){var n=(e.attributes.class||``).split(/ /),r=n.findIndex(function(e){return e===t});r>=0&&(n.splice(r,1),e.attributes.class=n.join(` `))},n.prototype.hasClass=function(e,t){return!!(e.attributes.class||``).split(/ /).find(function(e){return e===t})},n.prototype.setStyle=function(e,t,n){e.styles||=new x.Styles(this.getAttribute(e,`style`)),e.styles.set(t,n),e.attributes.style=e.styles.cssText},n.prototype.getStyle=function(e,t){if(!e.styles){var n=this.getAttribute(e,`style`);if(!n)return``;e.styles=new x.Styles(n)}return e.styles.get(t)},n.prototype.allStyles=function(e){return this.getAttribute(e,`style`)},n.prototype.insertRules=function(e,t){e.children=[this.text(t.join(`
|
|
2
2
|
|
|
3
3
|
`)+`
|
|
4
4
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-
|
|
2
|
-
import{zr as e}from"./vue.runtime.esm-bundler-C6akXk9q.js";import{t}from"./preload-helper-BLdHbfdN.js";async function n(n={}){var r,i=n,a=!!globalThis.window,o=!!globalThis.WorkerGlobalScope,s=globalThis.process?.versions?.node&&globalThis.process?.type!=`renderer`;if(s){let{createRequire:n}=await t(async()=>{let{createRequire:t}=await import(`./__vite-browser-external-0OnNcCAs.js`).then(t=>e(t.t(),1));return{createRequire:t}},__vite__mapDeps([0,1]));var c=n(import.meta.url)}var l=!1;i.setup=function(){if(l)return;l=!0,i.initTBB();function e(e,t,n=(e=>e)){if(t)for(let r of t)e.push_back(n(r));return e}function t(e,t=(e=>e)){let n=[],r=e.size();for(let i=0;i<r;i++)n.push(t(e.get(i)));return n}function n(e,t=(e=>e)){let n=[],r=e.size();for(let i=0;i<r;i++){let r=e.get(i),a=r.size(),o=[];for(let e=0;e<a;e++)o.push(t(r.get(e)));n.push(o)}return n}function r(t){return t[0].length<3&&(t=[t]),e(new i.Vector2_vec2,t,t=>e(new i.Vector_vec2,t,e=>e instanceof Array?{x:e[0],y:e[1]}:e))}function a(e){for(let t=0;t<e.size();t++)e.get(t).delete();e.delete()}function o(e){return e[0]instanceof Array?{x:e[0][0],y:e[0][1]}:typeof e[0]==`number`?{x:e[0]||0,y:e[1]||0}:e[0]}function s(e){return e[0]instanceof Array?{x:e[0][0],y:e[0][1],z:e[0][2]}:typeof e[0]==`number`?{x:e[0]||0,y:e[1]||0,z:e[2]||0}:e[0]}function c(e){return e==`EvenOdd`?0:e==`NonZero`?1:e==`Negative`?3:2}function u(e){return e==`Round`?1:e==`Miter`?2:0}let d=i.CrossSection;function f(e,t=`Positive`){if(e instanceof d)return e;{let n=r(e),i=new d(n,c(t));return a(n),i}}i.CrossSection.prototype.translate=function(...e){return this._Translate(o(e))},i.CrossSection.prototype.scale=function(e){return typeof e==`number`?this._Scale({x:e,y:e}):this._Scale(o([e]))},i.CrossSection.prototype.mirror=function(e){return this._Mirror(o([e]))},i.CrossSection.prototype.warp=function(e){let t=Y(function(t){let n=[O(t,`double`),O(t+8,`double`)];e(n),k(t,n[0],`double`),k(t+8,n[1],`double`)},`vi`),n=this._Warp(t);return X(t),n},i.CrossSection.prototype.decompose=function(){let e=this._Decompose(),n=t(e);return e.delete(),n},i.CrossSection.prototype.bounds=function(){let e=this._Bounds();return{min:[`x`,`y`].map(t=>e.min[t]),max:[`x`,`y`].map(t=>e.max[t])}},i.CrossSection.prototype.offset=function(e,t=`Round`,n=2,r=0){return this._Offset(e,u(t),n,r)},i.CrossSection.prototype.simplify=function(e=1e-6){return this._Simplify(e)},i.CrossSection.prototype.extrude=function(e,t=0,n=0,r=[1,1],a=!1){r=o([r]);let s=i._Extrude(this._ToPolygons(),e,t,n,r);return a?s.translate([0,0,-e/2]):s},i.CrossSection.prototype.revolve=function(e=0,t=360){return i._Revolve(this._ToPolygons(),e,t)},i.CrossSection.prototype.add=function(e){return this._add(f(e))},i.CrossSection.prototype.subtract=function(e){return this._subtract(f(e))},i.CrossSection.prototype.intersect=function(e){return this._intersect(f(e))},i.CrossSection.prototype.toPolygons=function(){let e=this._ToPolygons(),t=n(e,e=>[e.x,e.y]);return e.delete(),t},i.Manifold.prototype.smoothOut=function(e=52.5,t=0){return this._SmoothOut(e,t)},i.Manifold.prototype.warp=function(e){let t=Y(function(t){let n=[O(t,`double`),O(t+8,`double`),O(t+16,`double`)];e(n),k(t,n[0],`double`),k(t+8,n[1],`double`),k(t+16,n[2],`double`)},`vi`),n=this._Warp(t);X(t);let r=n.status();if(r!==`NoError`)throw new i.ManifoldError(r);return n},i.Manifold.prototype.warpBatch=function(e){let t=Y(function(t,n){let r=i.HEAPF64??E;if(!r)throw Error(`WASM heap is not initialized (HEAPF64 unavailable)`);e(new Float64Array(r.buffer,t,n*3),n)},`vii`),n=this._WarpBatch(t);X(t);let r=n.status();if(r!==`NoError`)throw new i.ManifoldError(r);return n},i.Manifold.prototype.calculateNormals=function(e=0,t=52.5){return this._CalculateNormals(e,t)},i.Manifold.prototype.smoothByNormals=function(e=0){return this._SmoothByNormals(e)},i.Manifold.prototype.setProperties=function(e,t){let n=this.numProp(),r=Y(function(r,i,a){let o=[];for(let t=0;t<e;++t)o[t]=O(r+8*t,`double`);let s=[];for(let e=0;e<3;++e)s[e]=O(i+8*e,`double`);let c=[];for(let e=0;e<n;++e)c[e]=O(a+8*e,`double`);t(o,s,c);for(let t=0;t<e;++t)k(r+8*t,o[t],`double`)},`viii`),i=this._SetProperties(e,r);return X(r),i},i.Manifold.prototype.translate=function(...e){return this._Translate(s(e))},i.Manifold.prototype.rotate=function(e,t,n){return Array.isArray(e)?this._Rotate(...e):this._Rotate(e,t||0,n||0)},i.Manifold.prototype.scale=function(e){return typeof e==`number`?this._Scale({x:e,y:e,z:e}):this._Scale(s([e]))},i.Manifold.prototype.mirror=function(e){return this._Mirror(s([e]))},i.Manifold.prototype.trimByPlane=function(e,t=0){return this._TrimByPlane(s([e]),t)},i.Manifold.prototype.slice=function(e=0){let t=this._Slice(e),n=new d(t,c(`Positive`));return a(t),n},i.Manifold.prototype.project=function(){let e=this._Project(),t=new d(e,c(`Positive`));return a(e),t},i.Manifold.prototype.rayCast=function(e,n){let r=this._RayCast(s([e]),s([n])),i=t(r,e=>({faceID:e.faceID,distance:e.distance,position:[`x`,`y`,`z`].map(t=>e.position[t]),normal:[`x`,`y`,`z`].map(t=>e.normal[t])}));return r.delete(),i},i.Manifold.prototype.split=function(e){let n=this._Split(e),r=t(n);return n.delete(),r},i.Manifold.prototype.splitByPlane=function(e,n=0){let r=this._SplitByPlane(s([e]),n),i=t(r);return r.delete(),i},i.Manifold.prototype.decompose=function(){let e=this._Decompose(),n=t(e);return e.delete(),n},i.Manifold.prototype.boundingBox=function(){let e=this._boundingBox();return{min:[`x`,`y`,`z`].map(t=>e.min[t]),max:[`x`,`y`,`z`].map(t=>e.max[t])}},i.Manifold.prototype.simplify=function(e=0){return this._Simplify(e)};class p{constructor({numProp:e=3,triVerts:t=new Uint32Array,vertProperties:n=new Float32Array,mergeFromVert:r,mergeToVert:i,runIndex:a,runOriginalID:o,faceID:s,halfedgeTangent:c,runTransform:l,runFlags:u,tolerance:d=0}={}){this.numProp=e,this.triVerts=t,this.vertProperties=n,this.mergeFromVert=r,this.mergeToVert=i,this.runIndex=a,this.runOriginalID=o,this.faceID=s,this.halfedgeTangent=c,this.runTransform=l,this.runFlags=u,this.tolerance=d}get numTri(){return this.triVerts.length/3}get numVert(){return this.vertProperties.length/this.numProp}get numRun(){return this.runOriginalID.length}merge(){let{changed:e,mesh:t}=i._Merge(this);return Object.assign(this,{...t}),e}verts(e){return this.triVerts.subarray(3*e,3*(e+1))}position(e){return this.vertProperties.subarray(this.numProp*e,this.numProp*e+3)}extras(e){return this.vertProperties.subarray(this.numProp*e+3,this.numProp*(e+1))}tangent(e){return this.halfedgeTangent.subarray(4*e,4*(e+1))}transform(e){let t=Array(16);for(let n of[0,1,2,3])for(let r of[0,1,2])t[4*n+r]=this.runTransform[12*e+3*n+r];return t[15]=1,t}backside(e){return this.runFlags!=null&&e<this.runFlags.length&&!!(this.runFlags[e]&1)}hasNormals(e){return this.runFlags!=null&&e<this.runFlags.length&&!!(this.runFlags[e]&2)}}i.Mesh=p,i.Manifold.prototype.getMesh=function(e=-1){return new p(this._GetMeshJS(e))},i.ManifoldError=function(e,...t){let n=`Unknown error`;switch(e){case`NonFiniteVertex`:n=`Non-finite vertex`;break;case`NotManifold`:n=`Not manifold`;break;case`VertexOutOfBounds`:n=`Vertex index out of bounds`;break;case`PropertiesWrongLength`:n=`Properties have wrong length`;break;case`MissingPositionProperties`:n=`Less than three properties`;break;case`MergeVectorsDifferentLengths`:n=`Merge vectors have different lengths`;break;case`MergeIndexOutOfBounds`:n=`Merge index out of bounds`;break;case`TransformWrongLength`:n=`Transform vector has wrong length`;break;case`RunIndexWrongLength`:n=`Run index vector has wrong length`;break;case`FaceIDWrongLength`:n=`Face ID vector has wrong length`;break;case`InvalidConstruction`:n=`Manifold constructed with invalid parameters`;break;case`ResultTooLarge`:n=`Result exceeds maximum size`;break;case`InvalidTangents`:n=`Invalid halfedge tangents`}let r=Error.apply(this,[n,...t]);r.name=this.name=`ManifoldError`,this.message=r.message,this.stack=r.stack,this.code=e},i.ManifoldError.prototype=Object.create(Error.prototype,{constructor:{value:i.ManifoldError,writable:!0,configurable:!0}}),i.CrossSection=function(e,t=`Positive`){let n=r(e),i=new d(n,c(t));return a(n),i},i.CrossSection.ofPolygons=function(e,t=`Positive`){return new i.CrossSection(e,t)},i.CrossSection.square=function(...e){let t;t=e.length==0?{x:1,y:1}:typeof e[0]==`number`?{x:e[0],y:e[0]}:o(e);let n=e[1]||!1;return i._Square(t,n)},i.CrossSection.circle=function(e,t=0){return i._Circle(e,t)};function m(e){return function(...t){t.length==1&&(t=t[0]);let n=new i.Vector_crossSection;for(let e of t)n.push_back(f(e));let r=i[`_crossSection`+e](n);return n.delete(),r}}i.CrossSection.compose=m(`Compose`),i.CrossSection.union=m(`UnionN`),i.CrossSection.difference=m(`DifferenceN`),i.CrossSection.intersection=m(`IntersectionN`);function h(t,n){e(t,n,e=>e instanceof Array?{x:e[0],y:e[1]}:e)}i.CrossSection.hull=function(...e){e.length==1&&(e=e[0]);let t=new i.Vector_vec2;for(let n of e)if(n instanceof d)i._crossSectionCollectVertices(t,n);else if(n instanceof Array&&n.length==2&&typeof n[0]==`number`)t.push_back({x:n[0],y:n[1]});else if(n.x)t.push_back(n);else{let e=n[0].length==2&&typeof n[0][0]==`number`||n[0].x?[n]:n;for(let n of e)h(t,n)}let n=i._crossSectionHullPoints(t);return t.delete(),n},i.CrossSection.prototype=Object.create(d.prototype),Object.defineProperty(i.CrossSection,Symbol.hasInstance,{get:()=>e=>e instanceof d});let g=i.Manifold;i.Manifold=function(e){let t=new g(e),n=t.status();if(n!==`NoError`)throw new i.ManifoldError(n);return t},i.Manifold.ofMesh=function(e){return new i.Manifold(e)},i.Manifold.tetrahedron=function(){return i._Tetrahedron()},i.Manifold.cube=function(...e){let t;t=e.length==0?{x:1,y:1,z:1}:typeof e[0]==`number`?{x:e[0],y:e[0],z:e[0]}:s(e);let n=e[1]||!1;return i._Cube(t,n)},i.Manifold.cylinder=function(e,t,n=-1,r=0,a=!1){return i._Cylinder(e,t,n,r,a)},i.Manifold.sphere=function(e,t=0){return i._Sphere(e,t)},i.Manifold.smooth=function(t,n=[]){let r=new i.Vector_smoothness;e(r,n);let a=i._Smooth(t,r);return r.delete(),a},i.Manifold.extrude=function(e,t,n=0,r=0,a=[1,1],o=!1){return(e instanceof d?e:i.CrossSection(e,`Positive`)).extrude(t,n,r,a,o)},i.Manifold.revolve=function(e,t=0,n=360){return(e instanceof d?e:i.CrossSection(e,`Positive`)).revolve(t,n)},i.Manifold.reserveIDs=function(e){return i._ReserveIDs(e)};function _(e){return function(...t){t.length==1&&(t=t[0]);let n=new i.Vector_manifold;for(let e of t)n.push_back(e);let r=i[`_manifold`+e+`N`](n);return n.delete(),r}}i.Manifold.union=_(`Union`),i.Manifold.compose=i.Manifold.union,i.Manifold.difference=_(`Difference`),i.Manifold.intersection=_(`Intersection`),i.Manifold.levelSet=function(e,t,n,r=0,a=-1){let o={min:{x:t.min[0],y:t.min[1],z:t.min[2]},max:{x:t.max[0],y:t.max[1],z:t.max[2]}},s=Y(function(t){return e([O(t,`double`),O(t+8,`double`),O(t+16,`double`)])},`di`),c=i._LevelSet(s,o,n,r,a);return X(s),c},i.ExecutionContext.prototype.fromMesh=function(e){return this._FromMesh(e)},i.ExecutionContext.prototype.smooth=function(t,n=[]){let r=new i.Vector_smoothness;e(r,n);let a=this._Smooth(t,r);return r.delete(),a},i.ExecutionContext.prototype.levelSet=function(e,t,n,r=0,i=-1){let a={min:{x:t.min[0],y:t.min[1],z:t.min[2]},max:{x:t.max[0],y:t.max[1],z:t.max[2]}},o=Y(function(t){return e([O(t,`double`),O(t+8,`double`),O(t+16,`double`)])},`di`),s=this._LevelSet(o,a,n,r,i);return X(o),s};function v(t,n){e(t,n,e=>e instanceof Array?{x:e[0],y:e[1],z:e[2]}:e)}i.Manifold.hull=function(...e){e.length==1&&(e=e[0]);let t=new i.Vector_vec3;for(let n of e)n instanceof g?i._manifoldCollectVertices(t,n):n instanceof Array&&n.length==3&&typeof n[0]==`number`?t.push_back({x:n[0],y:n[1],z:n[2]}):n.x?t.push_back(n):v(t,n);let n=i._manifoldHullPoints(t);return t.delete(),n},i.Manifold.prototype=Object.create(g.prototype),Object.defineProperty(i.Manifold,Symbol.hasInstance,{get:()=>e=>e instanceof g}),i.triangulate=function(e,n=-1,o=!0){let s=r(e),c=t(i._Triangulate(s,n,o),e=>[e[0],e[1],e[2]]);return a(s),c}};var u=import.meta.url,d=``;function f(e){return i.locateFile?i.locateFile(e,d):d+e}var p,m;if(s){var h=c("node:fs");u.startsWith(`file:`)&&(d=c("node:path").dirname(c("node:url").fileURLToPath(u))+`/`),m=e=>(e=y(e)?new URL(e):e,h.readFileSync(e)),p=async(e,t=!0)=>(e=y(e)?new URL(e):e,h.readFileSync(e,t?void 0:`utf8`)),process.argv.length>1&&process.argv[1].replace(/\\/g,`/`),process.argv.slice(2)}else if(a||o){try{d=new URL(`.`,u).href}catch{}o&&(m=e=>{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}),p=async e=>{if(y(e))return new Promise((t,n)=>{var r=new XMLHttpRequest;r.open(`GET`,e,!0),r.responseType=`arraybuffer`,r.onload=()=>{r.status==200||r.status==0&&r.response?t(r.response):n(r.status)},r.onerror=n,r.send(null)});var t=await fetch(e,{credentials:`same-origin`});if(t.ok)return t.arrayBuffer();throw Error(t.status+` : `+t.url)}}console.log.bind(console);var g=console.error.bind(console),_,v=!1,y=e=>e.startsWith(`file://`),ee,te,b,x,S,C,w,T,ne,E,re,ie,ae=!1;function oe(){var e=Vn.buffer;b=new Int8Array(e),S=new Int16Array(e),x=new Uint8Array(e),C=new Uint16Array(e),w=new Int32Array(e),T=new Uint32Array(e),ne=new Float32Array(e),E=new Float64Array(e),re=new BigInt64Array(e),ie=new BigUint64Array(e)}function se(){if(i.preRun)for(typeof i.preRun==`function`&&(i.preRun=[i.preRun]);i.preRun.length;)Se(i.preRun.shift());ve(xe)}function ce(){ae=!0,$.J()}function le(){if(i.postRun)for(typeof i.postRun==`function`&&(i.postRun=[i.postRun]);i.postRun.length;)be(i.postRun.shift());ve(ye)}function D(e){i.onAbort?.(e),e=`Aborted(`+e+`)`,g(e),v=!0,e+=`. Build with -sASSERTIONS for more info.`;var t=new WebAssembly.RuntimeError(e);throw te?.(t),t}var ue;function de(){return i.locateFile?f(`manifold.wasm`):new URL(`/assets/manifold-BE4c7gO-.wasm`,``+import.meta.url).href}function fe(e){if(e==ue&&_)return new Uint8Array(_);if(m)return m(e);throw`both async and sync fetching of the wasm failed`}async function pe(e){if(!_)try{var t=await p(e);return new Uint8Array(t)}catch{}return fe(e)}async function me(e,t){try{var n=await pe(e);return await WebAssembly.instantiate(n,t)}catch(e){g(`failed to asynchronously prepare wasm: ${e}`),D(e)}}async function he(e,t,n){if(!e&&!y(t)&&!s)try{var r=fetch(t,{credentials:`same-origin`});return await WebAssembly.instantiateStreaming(r,n)}catch(e){g(`wasm streaming compile failed: ${e}`),g(`falling back to ArrayBuffer instantiation`)}return me(t,n)}function ge(){return{a:Un}}async function _e(){function e(e,t){return $=e.exports,$=Wn($),Hn($),oe(),$}function t(t){return e(t.instance)}var n=ge();return i.instantiateWasm?new Promise((t,r)=>{i.instantiateWasm(n,(n,r)=>{t(e(n,r))})}):(ue??=de(),t(await he(_,ue,n)))}var ve=e=>{for(;e.length>0;)e.shift()(i)},ye=[],be=e=>ye.push(e),xe=[],Se=e=>xe.push(e);function O(e,t=`i8`){switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:return b[e>>>0];case`i8`:return b[e>>>0];case`i16`:return S[e>>>1>>>0];case`i32`:return w[e>>>2>>>0];case`i64`:return re[e>>>3>>>0];case`float`:return ne[e>>>2>>>0];case`double`:return E[e>>>3>>>0];case`*`:return T[e>>>2>>>0];default:D(`invalid type for getValue: ${t}`)}}function k(e,t,n=`i8`){switch(n.endsWith(`*`)&&(n=`*`),n){case`i1`:b[e>>>0]=t;break;case`i8`:b[e>>>0]=t;break;case`i16`:S[e>>>1>>>0]=t;break;case`i32`:w[e>>>2>>>0]=t;break;case`i64`:re[e>>>3>>>0]=BigInt(t);break;case`float`:ne[e>>>2>>>0]=t;break;case`double`:E[e>>>3>>>0]=t;break;case`*`:T[e>>>2>>>0]=t;break;default:D(`invalid type for setValue: ${n}`)}}class Ce{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){T[this.ptr+4>>>2>>>0]=e}get_type(){return T[this.ptr+4>>>2>>>0]}set_destructor(e){T[this.ptr+8>>>2>>>0]=e}get_destructor(){return T[this.ptr+8>>>2>>>0]}set_caught(e){e=+!!e,b[this.ptr+12>>>0]=e}get_caught(){return b[this.ptr+12>>>0]!=0}set_rethrown(e){e=+!!e,b[this.ptr+13>>>0]=e}get_rethrown(){return b[this.ptr+13>>>0]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){T[this.ptr+16>>>2>>>0]=e}get_adjusted_ptr(){return T[this.ptr+16>>>2>>>0]}}var we=0,Te=0;function Ee(e,t,n){throw e>>>=0,t>>>=0,n>>>=0,new Ce(e).init(t,n),we=e,Te++,we}var De=()=>D(``),A={},Oe=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function j(e){return this.fromWireType(T[e>>>2>>>0])}var M={},N={},P={},ke=class extends Error{constructor(e){super(e),this.name=`InternalError`}},F=e=>{throw new ke(e)},I=(e,t,n)=>{e.forEach(e=>P[e]=t);function r(t){var r=n(t);r.length!==e.length&&F(`Mismatched type converter count`);for(var i=0;i<e.length;++i)B(e[i],r[i])}var i=Array(t.length),a=[],o=0;for(let[e,n]of t.entries())N.hasOwnProperty(n)?i[e]=N[n]:(a.push(n),M.hasOwnProperty(n)||(M[n]=[]),M[n].push(()=>{i[e]=N[n],++o,o===a.length&&r(i)}));a.length===0&&r(i)},Ae=function(e){e>>>=0;var t=A[e];delete A[e];var n=t.rawConstructor,r=t.rawDestructor,i=t.fields,a=i.map(e=>e.getterReturnType).concat(i.map(e=>e.setterArgumentType));I([e],a,e=>{var a={};for(var[o,s]of i.entries()){let t=e[o],n=s.getter,r=s.getterContext,c=e[o+i.length],l=s.setter,u=s.setterContext;a[s.fieldName]={read:e=>t.fromWireType(n(r,e)),write:(e,t)=>{var n=[];l(u,e,c.toWireType(n,t)),Oe(n)},optional:t.optional}}return[{name:t.name,fromWireType:e=>{var t={};for(var n in a)t[n]=a[n].read(e);return r(e),t},toWireType:(e,t)=>{for(var i in a)if(!(i in t)&&!a[i].optional)throw TypeError(`Missing field: "${i}"`);var o=n();for(i in a)a[i].write(o,t[i]);return e!==null&&e.push(r,o),o},readValueFromPointer:j,destructorFunction:r}]})},L=e=>{e>>>=0;for(var t=``;;){var n=x[e++>>>0];if(!n)return t;t+=String.fromCharCode(n)}},R=class extends Error{constructor(e){super(e),this.name=`BindingError`}},z=e=>{throw new R(e)};function je(e,t,n={}){var r=t.name;if(e||z(`type "${r}" must have a positive integer typeid pointer`),N.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;z(`Cannot register type '${r}' twice`)}if(N[e]=t,delete P[e],M.hasOwnProperty(e)){var i=M[e];delete M[e],i.forEach(e=>e())}}function B(e,t,n={}){return je(e,t,n)}var Me=(e,t,n)=>{switch(t){case 1:return n?e=>b[e>>>0]:e=>x[e>>>0];case 2:return n?e=>S[e>>>1>>>0]:e=>C[e>>>1>>>0];case 4:return n?e=>w[e>>>2>>>0]:e=>T[e>>>2>>>0];case 8:return n?e=>re[e>>>3>>>0]:e=>ie[e>>>3>>>0];default:throw TypeError(`invalid integer width (${t}): ${e}`)}},Ne=function(e,t,n,r,i){e>>>=0,t>>>=0,n>>>=0,t=L(t);let a=r===0n,o=e=>e;if(a){let e=n*8;o=t=>BigInt.asUintN(e,t),i=o(i)}B(e,{name:t,fromWireType:o,toWireType:(e,t)=>(typeof t==`number`&&(t=BigInt(t)),t),readValueFromPointer:Me(t,n,!a),destructorFunction:null})};function Pe(e,t,n,r){e>>>=0,t>>>=0,t=L(t),B(e,{name:t,fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:r},readValueFromPointer:function(e){return this.fromWireType(x[e>>>0])},destructorFunction:null})}var Fe=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Ie=e=>{function t(e){return e.$$.ptrType.registeredClass.name}z(t(e)+` instance already deleted`)},Le=!1,Re=e=>{},ze=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},Be=e=>{--e.count.value,e.count.value===0&&ze(e)},V=e=>globalThis.FinalizationRegistry?(Le=new FinalizationRegistry(e=>{Be(e.$$)}),V=e=>{var t=e.$$;if(t.smartPtr){var n={$$:t};Le.register(e,n,e)}return e},Re=e=>Le.unregister(e),V(e)):(V=e=>e,e),H=[],Ve=()=>{for(;H.length;){var e=H.pop();e.$$.deleteScheduled=!1,e.delete()}},He,Ue=()=>{let e=U.prototype;Object.assign(e,{isAliasOf(e){if(!(this instanceof U)||!(e instanceof U))return!1;var t=this.$$.ptrType.registeredClass,n=this.$$.ptr;e.$$=e.$$;for(var r=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;r.baseClass;)i=r.upcast(i),r=r.baseClass;return t===r&&n===i},clone(){if(this.$$.ptr||Ie(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=V(Object.create(Object.getPrototypeOf(this),{$$:{value:Fe(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Ie(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&z(`Object already scheduled for deletion`),Re(this),Be(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ie(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&z(`Object already scheduled for deletion`),H.push(this),H.length===1&&He&&He(Ve),this.$$.deleteScheduled=!0,this}});let t=Symbol.dispose;t&&(e[t]=e.delete)};function U(){}var We=(e,t)=>Object.defineProperty(t,"name",{value:e}),Ge={},Ke=(e,t,n)=>{if(e[t].overloadTable===void 0){var r=e[t];e[t]=function(...r){return e[t].overloadTable.hasOwnProperty(r.length)||z(`Function '${n}' called with an invalid number of arguments (${r.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[r.length].apply(this,r)},e[t].overloadTable=[],e[t].overloadTable[r.argCount]=r}},W=(e,t,n)=>{i.hasOwnProperty(e)?((n===void 0||i[e].overloadTable!==void 0&&i[e].overloadTable[n]!==void 0)&&z(`Cannot register public name '${e}' twice`),Ke(i,e,e),i[e].overloadTable.hasOwnProperty(n)&&z(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),i[e].overloadTable[n]=t):(i[e]=t,i[e].argCount=n)},qe=48,Je=57,Ye=e=>{e=e.replace(/[^a-zA-Z0-9_]/g,`$`);var t=e.charCodeAt(0);return t>=qe&&t<=Je?`_${e}`:e};function Xe(e,t,n,r,i,a,o,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=r,this.baseClass=i,this.getActualType=a,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Ze=(e,t,n)=>{for(;t!==n;)t.upcast||z(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e},Qe=e=>{if(e===null)return`null`;var t=typeof e;return t===`object`||t===`array`||t===`function`?e.toString():``+e};function $e(e,t){if(t===null)return this.isReference&&z(`null is not a valid ${this.name}`),0;t.$$||z(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||z(`Cannot pass deleted object as a pointer of type ${this.name}`);var n=t.$$.ptrType.registeredClass;return Ze(t.$$.ptr,n,this.registeredClass)}function et(e,t){var n;if(t===null)return this.isReference&&z(`null is not a valid ${this.name}`),this.isSmartPointer?(n=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,n),n):0;(!t||!t.$$)&&z(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||z(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&z(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;if(n=Ze(t.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(t.$$.smartPtr===void 0&&z(`Passing raw pointer to smart pointer is illegal`),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:z(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var i=t.clone();n=this.rawShare(n,q.toHandle(()=>i.delete())),e!==null&&e.push(this.rawDestructor,n)}break;default:z(`Unsupported sharing policy`)}return n}function tt(e,t){if(t===null)return this.isReference&&z(`null is not a valid ${this.name}`),0;t.$$||z(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||z(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&z(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;return Ze(t.$$.ptr,n,this.registeredClass)}var nt=(e,t,n)=>{if(t===n)return e;if(n.baseClass===void 0)return null;var r=nt(e,t,n.baseClass);return r===null?null:n.downcast(r)},rt={},it=(e,t)=>{for(t===void 0&&z(`ptr should not be undefined`);e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},at=(e,t)=>(t=it(e,t),rt[t]),ot=(e,t)=>((!t.ptrType||!t.ptr)&&F(`makeClassHandle requires ptr and ptrType`),!!t.smartPtrType!=!!t.smartPtr&&F(`Both smartPtrType and smartPtr must be specified`),t.count={value:1},V(Object.create(e,{$$:{value:t,writable:!0}})));function st(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=at(this.registeredClass,t);if(n!==void 0){if(n.$$.count.value===0)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var r=n.clone();return this.destructor(e),r}function i(){return this.isSmartPointer?ot(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):ot(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a=Ge[this.registeredClass.getActualType(t)];if(!a)return i.call(this);var o=this.isConst?a.constPointerType:a.pointerType,s=nt(t,this.registeredClass,o.registeredClass);return s===null?i.call(this):this.isSmartPointer?ot(o.registeredClass.instancePrototype,{ptrType:o,ptr:s,smartPtrType:this,smartPtr:e}):ot(o.registeredClass.instancePrototype,{ptrType:o,ptr:s})}var ct=()=>{Object.assign(lt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor?.(e)},readValueFromPointer:j,fromWireType:st})};function lt(e,t,n,r,i,a,o,s,c,l,u){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=r,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=l,this.rawDestructor=u,!i&&t.baseClass===void 0?r?(this.toWireType=$e,this.destructorFunction=null):(this.toWireType=tt,this.destructorFunction=null):this.toWireType=et}var ut=(e,t,n)=>{i.hasOwnProperty(e)||F(`Replacing nonexistent public symbol`),i[e].overloadTable!==void 0&&n!==void 0?i[e].overloadTable[n]=t:(i[e]=t,i[e].argCount=n)},dt=e=>Q.get(e),ft=(e,t,n=[],r=!1)=>{var i=dt(t)(...n);function a(t){return e[0]==`p`?t>>>0:t}return a(i)},pt=(e,t,n=!1)=>(...r)=>ft(e,t,r,n),G=(e,t,n=!1)=>{e=L(e);function r(){return e.includes(`p`)?pt(e,t,n):dt(t)}var i=r();return typeof i!=`function`&&z(`unknown function pointer with signature ${e}: ${t}`),i};class mt extends Error{}var ht=e=>{var t=zn(e),n=L(t);return Z(t),n},gt=(e,t)=>{var n=[],r={};function i(e){r[e]||N[e]||(P[e]?P[e].forEach(i):(n.push(e),r[e]=!0))}throw t.forEach(i),new mt(`${e}: `+n.map(ht).join([`, `]))};function _t(e,t,n,r,i,a,o,s,c,l,u,d,f){e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0,o>>>=0,s>>>=0,c>>>=0,l>>>=0,u>>>=0,d>>>=0,f>>>=0,u=L(u),a=G(i,a),s&&=G(o,s),l&&=G(c,l),f=G(d,f);var p=Ye(u);W(p,function(){gt(`Cannot construct ${u} due to unbound types`,[r])}),I([e,t,n],r?[r]:[],t=>{t=t[0];var n,i;r?(n=t.registeredClass,i=n.instancePrototype):i=U.prototype;var o=We(u,function(...e){if(Object.getPrototypeOf(this)!==c)throw new R(`Use 'new' to construct ${u}`);if(d.constructor_body===void 0)throw new R(`${u} has no accessible constructor`);var t=d.constructor_body[e.length];if(t===void 0)throw new R(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return t.apply(this,e)}),c=Object.create(i,{constructor:{value:o}});o.prototype=c;var d=new Xe(u,o,c,f,n,a,s,l);d.baseClass&&(d.baseClass.__derivedClasses??=[],d.baseClass.__derivedClasses.push(d));var m=new lt(u,d,!0,!1,!1),h=new lt(u+`*`,d,!1,!1,!1),g=new lt(u+` const*`,d,!1,!0,!1);return Ge[e]={pointerType:h,constPointerType:g},ut(p,o),[m,h,g]})}var vt=(e,t)=>{for(var n=[],r=0;r<e;r++)n.push(T[t+r*4>>>2>>>0]);return n};function yt(e){for(var t=1;t<e.length;++t)if(e[t]!==null&&e[t].destructorFunction===void 0)return!0;return!1}var bt={ftf:function(e,t,n,r,i,a,o){return function(){return a(n(r))}},tffn:function(e,t,n,r,i,a,o){return function(){n(r,o(null,this))}},ttfn:function(e,t,n,r,i,a,o){return function(){return a(n(r,o(null,this)))}},ttfnn:function(e,t,n,r,i,a,o,s){return function(e){return a(n(r,o(null,this),s(null,e)))}},ttfnnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){return a(n(r,o(null,this),s(null,e),c(null,t)))}},ttfnntnnn:function(e,t,n,r,i,a,o,s,c,l,u,d,f){return function(e,t,i,p,m){var h=o(null,this),g=s(null,e),_=c(null,t),v=n(r,h,g,_,l(null,i),u(null,p),d(null,m));return f(_),a(v)}},tffnt:function(e,t,n,r,i,a,o,s,c){return function(e){var t=o(null,this),i=s(null,e);n(r,t,i),c(i)}},tffnnt:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=o(null,this),a=s(null,e),u=c(null,t);n(r,i,a,u),l(u)}},ttfnnt:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=o(null,this),u=s(null,e),d=c(null,t),f=n(r,i,u,d);return l(d),a(f)}},tffnn:function(e,t,n,r,i,a,o,s){return function(e){n(r,o(null,this),s(null,e))}},tffnnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){n(r,o(null,this),s(null,e),c(null,t))}},ftfnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){return a(n(r,s(null,e),c(null,t)))}},ttfnt:function(e,t,n,r,i,a,o,s,c){return function(e){var t=o(null,this),i=s(null,e),l=n(r,t,i);return c(i),a(l)}},ttfnnnnn:function(e,t,n,r,i,a,o,s,c,l,u){return function(e,t,i,d){return a(n(r,o(null,this),s(null,e),c(null,t),l(null,i),u(null,d)))}},ftftn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=s(null,e),o=n(r,i,c(null,t));return l(i),a(o)}},ftfn:function(e,t,n,r,i,a,o,s){return function(e){return a(n(r,s(null,e)))}},fffnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){n(r,s(null,e),c(null,t))}},ttfntn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=o(null,this),u=s(null,e),d=n(r,i,u,c(null,t));return l(u),a(d)}},ttfnnnn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t,i){return a(n(r,o(null,this),s(null,e),c(null,t),l(null,i)))}},ttfntt:function(e,t,n,r,i,a,o,s,c,l,u){return function(e,t){var i=o(null,this),d=s(null,e),f=c(null,t),p=n(r,i,d,f);return l(d),u(f),a(p)}},ftfnnnnn:function(e,t,n,r,i,a,o,s,c,l,u,d){return function(e,t,i,o,f){return a(n(r,s(null,e),c(null,t),l(null,i),u(null,o),d(null,f)))}},ftfnnnnt:function(e,t,n,r,i,a,o,s,c,l,u,d,f){return function(e,t,i,o,p){var m=s(null,e),h=c(null,t),g=l(null,i),_=u(null,o),v=d(null,p),y=n(r,m,h,g,_,v);return f(v),a(y)}},ftfnnn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t,i){return a(n(r,s(null,e),c(null,t),l(null,i)))}},ftfntnnn:function(e,t,n,r,i,a,o,s,c,l,u,d,f){return function(e,t,i,o,p){var m=s(null,e),h=c(null,t),g=n(r,m,h,l(null,i),u(null,o),d(null,p));return f(h),a(g)}},fffn:function(e,t,n,r,i,a,o,s){return function(e){n(r,s(null,e))}},fff:function(e,t,n,r,i,a,o){return function(){n(r)}}};function xt(e,t,n,r){let i=[t?`t`:`f`,n?`t`:`f`,r?`t`:`f`];for(let n=t?1:2;n<e.length;++n){let t=e[n],r=``;r=t.destructorFunction===void 0?`u`:t.destructorFunction===null?`n`:`t`,i.push(r)}return i.join(``)}function St(e,t,n,r,i,a){var o=t.length;o<2&&z(`argTypes array size mismatch! Must at least get return value and 'this' types!`);for(var s=t[1]!==null&&n!==null,c=yt(t),l=!t[0].isVoid,u=t[0],d=t[1],f=[e,z,r,i,Oe,u.fromWireType.bind(u),d?.toWireType.bind(d)],p=2;p<o;++p){var m=t[p];f.push(m.toWireType.bind(m))}if(!c)for(var p=s?1:2;p<t.length;++p)t[p].destructorFunction!==null&&f.push(t[p].destructorFunction);return We(e,bt[xt(t,s,l,a)](...f))}var Ct=function(e,t,n,r,i,a){e>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0;var o=vt(t,n);i=G(r,i),I([],[e],e=>{e=e[0];var n=`constructor ${e.name}`;if(e.registeredClass.constructor_body===void 0&&(e.registeredClass.constructor_body=[]),e.registeredClass.constructor_body[t-1]!==void 0)throw new R(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{gt(`Cannot construct ${e.name} due to unbound types`,o)},I([],o,r=>(r.splice(1,0,null),e.registeredClass.constructor_body[t-1]=St(n,r,null,i,a),[])),[]})},wt=e=>{e=e.trim();let t=e.indexOf(`(`);return t===-1?e:e.slice(0,t)},Tt=function(e,t,n,r,i,a,o,s,c,l){e>>>=0,t>>>=0,r>>>=0,i>>>=0,a>>>=0,o>>>=0;var u=vt(n,r);t=L(t),t=wt(t),a=G(i,a,c),I([],[e],e=>{e=e[0];var r=`${e.name}.${t}`;t.startsWith(`@@`)&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);function i(){gt(`Cannot call ${r} due to unbound types`,u)}var l=e.registeredClass.instancePrototype,d=l[t];return d===void 0||d.overloadTable===void 0&&d.className!==e.name&&d.argCount===n-2?(i.argCount=n-2,i.className=e.name,l[t]=i):(Ke(l,t,r),l[t].overloadTable[n-2]=i),I([],u,i=>{var s=St(r,i,e,a,o,c);return l[t].overloadTable===void 0?(s.argCount=n-2,l[t]=s):l[t].overloadTable[n-2]=s,[]}),[]})},Et=[],K=[0,1,,1,null,1,!0,1,!1,1];function Dt(e){e>>>=0,e>9&&--K[e+1]===0&&(K[e]=void 0,Et.push(e))}var q={toValue:e=>(e||z(`Cannot use deleted val. handle = ${e}`),K[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let t=Et.pop()||K.length;return K[t]=e,K[t+1]=1,t}}}},Ot={name:`emscripten::val`,fromWireType:e=>{var t=q.toValue(e);return Dt(e),t},toWireType:(e,t)=>q.toHandle(t),readValueFromPointer:j,destructorFunction:null};function kt(e){return e>>>=0,B(e,Ot)}var At=(e,t,n)=>{switch(t){case 1:return n?function(e){return this.fromWireType(b[e>>>0])}:function(e){return this.fromWireType(x[e>>>0])};case 2:return n?function(e){return this.fromWireType(S[e>>>1>>>0])}:function(e){return this.fromWireType(C[e>>>1>>>0])};case 4:return n?function(e){return this.fromWireType(w[e>>>2>>>0])}:function(e){return this.fromWireType(T[e>>>2>>>0])};default:throw TypeError(`invalid integer width (${t}): ${e}`)}};function jt(e){return e===0?`object`:e===1?`number`:`string`}function Mt(e,t,n,r,a){e>>>=0,t>>>=0,n>>>=0,t=L(t);let o=jt(a);switch(o){case`object`:{function i(){}i.values={},B(e,{name:t,constructor:i,valueType:o,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,readValueFromPointer:At(t,n,r),destructorFunction:null}),W(t,i);break}case`number`:var s={};B(e,{name:t,keysMap:s,valueType:o,fromWireType:e=>e,toWireType:(e,t)=>t,readValueFromPointer:At(t,n,r),destructorFunction:null}),W(t,s),delete i[t].argCount;break;case`string`:var c={},l={},s={};B(e,{name:t,valuesMap:c,reverseMap:l,keysMap:s,valueType:o,fromWireType:function(e){return this.reverseMap[e]},toWireType:function(e,t){return this.valuesMap[t]},readValueFromPointer:At(t,n,r),destructorFunction:null}),W(t,s),delete i[t].argCount}}var Nt=(e,t)=>{var n=N[e];return n===void 0&&z(`${t} has unknown type ${ht(e)}`),n};function Pt(e,t,n){e>>>=0,t>>>=0;var r=Nt(e,`enum`);switch(t=L(t),r.valueType){case`object`:var i=r.constructor,a=Object.create(r.constructor.prototype,{value:{value:n},constructor:{value:We(`${r.name}_${t}`,function(){})}});i.values[n]=a,i[t]=a;break;case`number`:r.keysMap[t]=n;break;case`string`:r.valuesMap[t]=n,r.reverseMap[n]=t,r.keysMap[t]=t}}var Ft=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(ne[e>>>2>>>0])};case 8:return function(e){return this.fromWireType(E[e>>>3>>>0])};default:throw TypeError(`invalid float width (${t}): ${e}`)}},It=function(e,t,n){e>>>=0,t>>>=0,n>>>=0,t=L(t),B(e,{name:t,fromWireType:e=>e,toWireType:(e,t)=>t,readValueFromPointer:Ft(t,n),destructorFunction:null})};function Lt(e,t,n,r,i,a,o,s){e>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0;var c=vt(t,n);e=L(e),e=wt(e),i=G(r,i,o),W(e,function(){gt(`Cannot call ${e} due to unbound types`,c)},t-1),I([],c,n=>{var r=[n[0],null].concat(n.slice(1));return ut(e,St(e,r,null,i,a,o),t-1),[]})}var Rt=function(e,t,n,r,i){e>>>=0,t>>>=0,n>>>=0,t=L(t);let a=r===0,o=e=>e;if(a){var s=32-8*n;o=e=>e<<s>>>s,i=o(i)}B(e,{name:t,fromWireType:o,toWireType:(e,t)=>t,readValueFromPointer:Me(t,n,r!==0),destructorFunction:null})},zt=(e,t,n)=>{let r=(e,t)=>{let n=0;return{next(){if(n>=e)return{done:!0};let r=n;return n++,{value:t(r),done:!1}},[Symbol.iterator](){return this}}};e[Symbol.iterator]||(e[Symbol.iterator]=function(){let e=this[t]();return r(e,e=>this[n](e))})},Bt=function(e,t,n,r){e>>>=0,t>>>=0,n>>>=0,r>>>=0,n=L(n),r=L(r),I([],[e,t],e=>{let t=e[0];return zt(t.registeredClass.instancePrototype,n,r),[]})};function Vt(e,t,n){e>>>=0,n>>>=0;var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][t];function i(e){var t=T[e>>>2>>>0],n=T[e+4>>>2>>>0];return new r(b.buffer,n,t)}n=L(n),B(e,{name:n,fromWireType:i,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})}var Ht=Object.assign({optional:!0},Ot);function Ut(e,t){e>>>=0,t>>>=0,B(e,Ht)}var Wt=(e,t,n,r)=>{if(n>>>=0,!(r>0))return 0;for(var i=n,a=n+r-1,o=0;o<e.length;++o){var s=e.codePointAt(o);if(s<=127){if(n>=a)break;t[n++>>>0]=s}else if(s<=2047){if(n+1>=a)break;t[n++>>>0]=192|s>>6,t[n++>>>0]=128|s&63}else if(s<=65535){if(n+2>=a)break;t[n++>>>0]=224|s>>12,t[n++>>>0]=128|s>>6&63,t[n++>>>0]=128|s&63}else{if(n+3>=a)break;t[n++>>>0]=240|s>>18,t[n++>>>0]=128|s>>12&63,t[n++>>>0]=128|s>>6&63,t[n++>>>0]=128|s&63,o++}}return t[n>>>0]=0,n-i},Gt=(e,t,n)=>Wt(e,x,t,n),Kt=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++n):t+=3}return t},qt=globalThis.TextDecoder&&new TextDecoder,Jt=(e,t,n,r)=>{var i=t+n;if(r)return i;for(;e[t]&&!(t>=i);)++t;return t},Yt=(e,t=0,n,r)=>{t>>>=0;var i=Jt(e,t,n,r);if(i-t>16&&e.buffer&&qt)return qt.decode(e.subarray(t,i));for(var a=``;t<i;){var o=e[t++];if(!(o&128))a+=String.fromCharCode(o);else{var s=e[t++]&63;if((o&224)==192)a+=String.fromCharCode((o&31)<<6|s);else{var c=e[t++]&63;if(o=(o&240)==224?(o&15)<<12|s<<6|c:(o&7)<<18|s<<12|c<<6|e[t++]&63,o<65536)a+=String.fromCharCode(o);else{var l=o-65536;a+=String.fromCharCode(55296|l>>10,56320|l&1023)}}}}return a},Xt=(e,t,n)=>(e>>>=0,e?Yt(x,e,t,n):``);function Zt(e,t){e>>>=0,t>>>=0,t=L(t);var n=!0;B(e,{name:t,fromWireType(e){var t=T[e>>>2>>>0],r=e+4,i;if(n)i=Xt(r,t,!0);else{i=``;for(var a=0;a<t;++a)i+=String.fromCharCode(x[r+a>>>0])}return Z(e),i},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,i=typeof t==`string`;i||ArrayBuffer.isView(t)&&t.BYTES_PER_ELEMENT==1||z(`Cannot pass non-string to std::string`),r=n&&i?Kt(t):t.length;var a=Bn(4+r+1),o=a+4;if(T[a>>>2>>>0]=r,i){if(n)Gt(t,o,r+1);else for(var s=0;s<r;++s){var c=t.charCodeAt(s);c>255&&(Z(a),z(`String has UTF-16 code units that do not fit in 8 bits`)),x[o+s>>>0]=c}}else x.set(t,o>>>0);return e!==null&&e.push(Z,a),a},readValueFromPointer:j,destructorFunction(e){Z(e)}})}var Qt=globalThis.TextDecoder?new TextDecoder(`utf-16le`):void 0,$t=(e,t,n)=>{var r=e>>>1,i=Jt(C,r,t/2,n);if(i-r>16&&Qt)return Qt.decode(C.subarray(r>>>0,i>>>0));for(var a=``,o=r;o<i;++o){var s=C[o>>>0];a+=String.fromCharCode(s)}return a},en=(e,t,n)=>{if(n??=2147483647,n<2)return 0;n-=2;for(var r=t,i=n<e.length*2?n/2:e.length,a=0;a<i;++a){var o=e.charCodeAt(a);S[t>>>1>>>0]=o,t+=2}return S[t>>>1>>>0]=0,t-r},tn=e=>e.length*2,nn=(e,t,n)=>{for(var r=``,i=e>>>2,a=0;!(a>=t/4);a++){var o=T[i+a>>>0];if(!o&&!n)break;r+=String.fromCodePoint(o)}return r},rn=(e,t,n)=>{if(t>>>=0,n??=2147483647,n<4)return 0;for(var r=t,i=r+n-4,a=0;a<e.length;++a){var o=e.codePointAt(a);if(o>65535&&a++,w[t>>>2>>>0]=o,t+=4,t+4>i)break}return w[t>>>2>>>0]=0,t-r},an=e=>{for(var t=0,n=0;n<e.length;++n)e.codePointAt(n)>65535&&n++,t+=4;return t};function on(e,t,n){e>>>=0,t>>>=0,n>>>=0,n=L(n);var r,i,a;t===2?(r=$t,i=en,a=tn):(r=nn,i=rn,a=an),B(e,{name:n,fromWireType:e=>{var n=T[e>>>2>>>0],i=r(e+4,n*t,!0);return Z(e),i},toWireType:(e,r)=>{typeof r!=`string`&&z(`Cannot pass non-string to C++ string type ${n}`);var o=a(r),s=Bn(4+o+t);return T[s>>>2>>>0]=o/t,i(r,s+4,o+t),e!==null&&e.push(Z,s),s},readValueFromPointer:j,destructorFunction(e){Z(e)}})}function sn(e,t,n,r,i,a){e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0,A[e]={name:L(t),rawConstructor:G(n,r),rawDestructor:G(i,a),fields:[]}}function cn(e,t,n,r,i,a,o,s,c,l){e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0,o>>>=0,s>>>=0,c>>>=0,l>>>=0,A[e].fields.push({fieldName:L(t),getterReturnType:n,getter:G(r,i),getterContext:a,setterArgumentType:o,setter:G(s,c),setterContext:l})}var ln=function(e,t){e>>>=0,t>>>=0,t=L(t),B(e,{isVoid:!0,name:t,fromWireType:()=>void 0,toWireType:(e,t)=>void 0})};function un(e,t){e>>>=0,t>>>=0,e=q.toValue(e),t=q.toValue(t),e.set(t)}var dn=[],fn=e=>{var t=dn.length;return dn.push(e),t},pn=(e,t)=>{for(var n=Array(e),r=0;r<e;++r)n[r]=Nt(T[t+r*4>>>2>>>0],`parameter ${r}`);return n},mn=(e,t,n)=>{var r=[],i=e(r,n);return r.length&&(T[t>>>2>>>0]=q.toHandle(r)),i},hn={},gn=e=>{var t=hn[e];return t===void 0?L(e):t},_n=function(e,t,n){t>>>=0;var r=8,[i,...a]=pn(e,t),o=i.toWireType.bind(i),s=a.map(e=>e.readValueFromPointer.bind(e));e--;var c=Array(e);return fn(We(`methodCaller<(${a.map(e=>e.name)}) => ${i.name}>`,(t,i,a,l)=>{for(var u=0,d=0;d<e;++d)c[d]=s[d](l+u),u+=r;var f;switch(n){case 0:f=q.toValue(t).apply(null,c);break;case 2:f=Reflect.construct(q.toValue(t),c);break;case 3:f=c[0];break;case 1:f=q.toValue(t)[gn(i)](...c)}return mn(o,a,f)}))};function vn(e,t){return e>>>=0,t>>>=0,e=q.toValue(e),t=q.toValue(t),e==t}function yn(e,t){return e>>>=0,t>>>=0,e=q.toValue(e),t=q.toValue(t),q.toHandle(e[t])}function bn(e){e>>>=0,e>9&&(K[e+1]+=1)}function xn(e,t,n,r,i){return e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,dn[e](t,n,r,i)}function Sn(e){return e>>>=0,q.toHandle(gn(e))}function Cn(){return q.toHandle({})}function wn(e){e>>>=0,Oe(q.toValue(e)),Dt(e)}function Tn(e,t,n){e>>>=0,t>>>=0,n>>>=0,e=q.toValue(e),t=q.toValue(t),n=q.toValue(n),e[t]=n}var En=()=>4294901760,Dn=(e,t)=>Math.ceil(e/t)*t,On=e=>{var t=(e-Vn.buffer.byteLength+65535)/65536|0;try{return Vn.grow(t),oe(),1}catch{}};function kn(e){e>>>=0;var t=x.length,n=En();if(e>n)return!1;for(var r=1;r<=4;r*=2){var i=t*(1+.2/r);if(i=Math.min(i,e+100663296),On(Math.min(n,Dn(Math.max(e,i),65536))))return!0}return!1}var An=(e,t)=>{if(J)for(var n=e;n<e+t;n++){var r=dt(n);r&&J.set(r,n)}},J,jn=e=>(J||(J=new WeakMap,An(0,Q.length)),J.get(e)||0),Mn=[],Nn=()=>Mn.length?Mn.pop():Q.grow(1),Pn=(e,t)=>Q.set(e,t),Fn=e=>{let t=e.length;return[t%128|128,t>>7,...e]},In={i:127,p:127,j:126,f:125,d:124,e:111},Ln=e=>Fn(Array.from(e,e=>In[e])),Rn=(e,t)=>{var n=Uint8Array.of(0,97,115,109,1,0,0,0,1,...Fn([1,96,...Ln(t.slice(1)),...Ln(t[0]===`v`?``:t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),r=new WebAssembly.Module(n);return new WebAssembly.Instance(r,{e:{f:e}}).exports.f},Y=(e,t)=>{var n=jn(e);if(n)return n;var r=Nn();try{Pn(r,e)}catch(n){if(!(n instanceof TypeError))throw n;Pn(r,Rn(e,t))}return J.set(e,r),r},X=e=>{J.delete(dt(e)),Pn(e,null),Mn.push(e)};if(Ue(),ct(),i.noExitRuntime&&i.noExitRuntime,i.print&&i.print,i.printErr&&(g=i.printErr),i.wasmBinary&&(_=i.wasmBinary),i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.preInit)for(typeof i.preInit==`function`&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.shift()();i.addFunction=Y,i.removeFunction=X;var zn,Bn,Z,Vn,Q;function Hn(e){zn=e.K,Bn=e.M,Z=e.N,Vn=e.I,Q=e.L}var Un={l:Ee,C:De,q:Ae,z:Ne,G:Pe,j:_t,i:Ct,a:Tt,E:kt,x:Mt,d:Pt,y:It,c:Lt,p:Rt,m:Bt,h:Vt,n:Ut,F:Zt,w:on,r:sn,k:cn,H:ln,u:un,g:_n,b:Dt,o:vn,B:yn,t:bn,f:xn,s:Sn,A:Cn,e:wn,v:Tn,D:kn};function Wn(e){e=Object.assign({},e);var t=e=>t=>e(t)>>>0;return e.K=t(e.K),e.M=t(e.M),e._emscripten_stack_alloc=t(e._emscripten_stack_alloc),e.emscripten_stack_get_current=(e=>()=>e()>>>0)(e.emscripten_stack_get_current),e}function Gn(){se();function e(){i.calledRun=!0,!v&&(ce(),ee?.(i),i.onRuntimeInitialized?.(),le())}i.setStatus?(i.setStatus(`Running...`),setTimeout(()=>{setTimeout(()=>i.setStatus(``),1),e()},1)):e()}var $=await _e();return Gn(),r=ae?i:new Promise((e,t)=>{ee=e,te=t}),r}export{n as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/__vite-browser-external-B2LgiLf-.js","assets/vue.runtime.esm-bundler-Cwm3cFXF.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{zr as e}from"./vue.runtime.esm-bundler-Cwm3cFXF.js";import{t}from"./preload-helper-BLdHbfdN.js";async function n(n={}){var r,i=n,a=!!globalThis.window,o=!!globalThis.WorkerGlobalScope,s=globalThis.process?.versions?.node&&globalThis.process?.type!=`renderer`;if(s){let{createRequire:n}=await t(async()=>{let{createRequire:t}=await import(`./__vite-browser-external-B2LgiLf-.js`).then(t=>e(t.t(),1));return{createRequire:t}},__vite__mapDeps([0,1]));var c=n(import.meta.url)}var l=!1;i.setup=function(){if(l)return;l=!0,i.initTBB();function e(e,t,n=(e=>e)){if(t)for(let r of t)e.push_back(n(r));return e}function t(e,t=(e=>e)){let n=[],r=e.size();for(let i=0;i<r;i++)n.push(t(e.get(i)));return n}function n(e,t=(e=>e)){let n=[],r=e.size();for(let i=0;i<r;i++){let r=e.get(i),a=r.size(),o=[];for(let e=0;e<a;e++)o.push(t(r.get(e)));n.push(o)}return n}function r(t){return t[0].length<3&&(t=[t]),e(new i.Vector2_vec2,t,t=>e(new i.Vector_vec2,t,e=>e instanceof Array?{x:e[0],y:e[1]}:e))}function a(e){for(let t=0;t<e.size();t++)e.get(t).delete();e.delete()}function o(e){return e[0]instanceof Array?{x:e[0][0],y:e[0][1]}:typeof e[0]==`number`?{x:e[0]||0,y:e[1]||0}:e[0]}function s(e){return e[0]instanceof Array?{x:e[0][0],y:e[0][1],z:e[0][2]}:typeof e[0]==`number`?{x:e[0]||0,y:e[1]||0,z:e[2]||0}:e[0]}function c(e){return e==`EvenOdd`?0:e==`NonZero`?1:e==`Negative`?3:2}function u(e){return e==`Round`?1:e==`Miter`?2:0}let d=i.CrossSection;function f(e,t=`Positive`){if(e instanceof d)return e;{let n=r(e),i=new d(n,c(t));return a(n),i}}i.CrossSection.prototype.translate=function(...e){return this._Translate(o(e))},i.CrossSection.prototype.scale=function(e){return typeof e==`number`?this._Scale({x:e,y:e}):this._Scale(o([e]))},i.CrossSection.prototype.mirror=function(e){return this._Mirror(o([e]))},i.CrossSection.prototype.warp=function(e){let t=Y(function(t){let n=[O(t,`double`),O(t+8,`double`)];e(n),k(t,n[0],`double`),k(t+8,n[1],`double`)},`vi`),n=this._Warp(t);return X(t),n},i.CrossSection.prototype.decompose=function(){let e=this._Decompose(),n=t(e);return e.delete(),n},i.CrossSection.prototype.bounds=function(){let e=this._Bounds();return{min:[`x`,`y`].map(t=>e.min[t]),max:[`x`,`y`].map(t=>e.max[t])}},i.CrossSection.prototype.offset=function(e,t=`Round`,n=2,r=0){return this._Offset(e,u(t),n,r)},i.CrossSection.prototype.simplify=function(e=1e-6){return this._Simplify(e)},i.CrossSection.prototype.extrude=function(e,t=0,n=0,r=[1,1],a=!1){r=o([r]);let s=i._Extrude(this._ToPolygons(),e,t,n,r);return a?s.translate([0,0,-e/2]):s},i.CrossSection.prototype.revolve=function(e=0,t=360){return i._Revolve(this._ToPolygons(),e,t)},i.CrossSection.prototype.add=function(e){return this._add(f(e))},i.CrossSection.prototype.subtract=function(e){return this._subtract(f(e))},i.CrossSection.prototype.intersect=function(e){return this._intersect(f(e))},i.CrossSection.prototype.toPolygons=function(){let e=this._ToPolygons(),t=n(e,e=>[e.x,e.y]);return e.delete(),t},i.Manifold.prototype.smoothOut=function(e=52.5,t=0){return this._SmoothOut(e,t)},i.Manifold.prototype.warp=function(e){let t=Y(function(t){let n=[O(t,`double`),O(t+8,`double`),O(t+16,`double`)];e(n),k(t,n[0],`double`),k(t+8,n[1],`double`),k(t+16,n[2],`double`)},`vi`),n=this._Warp(t);X(t);let r=n.status();if(r!==`NoError`)throw new i.ManifoldError(r);return n},i.Manifold.prototype.warpBatch=function(e){let t=Y(function(t,n){let r=i.HEAPF64??E;if(!r)throw Error(`WASM heap is not initialized (HEAPF64 unavailable)`);e(new Float64Array(r.buffer,t,n*3),n)},`vii`),n=this._WarpBatch(t);X(t);let r=n.status();if(r!==`NoError`)throw new i.ManifoldError(r);return n},i.Manifold.prototype.calculateNormals=function(e=0,t=52.5){return this._CalculateNormals(e,t)},i.Manifold.prototype.smoothByNormals=function(e=0){return this._SmoothByNormals(e)},i.Manifold.prototype.setProperties=function(e,t){let n=this.numProp(),r=Y(function(r,i,a){let o=[];for(let t=0;t<e;++t)o[t]=O(r+8*t,`double`);let s=[];for(let e=0;e<3;++e)s[e]=O(i+8*e,`double`);let c=[];for(let e=0;e<n;++e)c[e]=O(a+8*e,`double`);t(o,s,c);for(let t=0;t<e;++t)k(r+8*t,o[t],`double`)},`viii`),i=this._SetProperties(e,r);return X(r),i},i.Manifold.prototype.translate=function(...e){return this._Translate(s(e))},i.Manifold.prototype.rotate=function(e,t,n){return Array.isArray(e)?this._Rotate(...e):this._Rotate(e,t||0,n||0)},i.Manifold.prototype.scale=function(e){return typeof e==`number`?this._Scale({x:e,y:e,z:e}):this._Scale(s([e]))},i.Manifold.prototype.mirror=function(e){return this._Mirror(s([e]))},i.Manifold.prototype.trimByPlane=function(e,t=0){return this._TrimByPlane(s([e]),t)},i.Manifold.prototype.slice=function(e=0){let t=this._Slice(e),n=new d(t,c(`Positive`));return a(t),n},i.Manifold.prototype.project=function(){let e=this._Project(),t=new d(e,c(`Positive`));return a(e),t},i.Manifold.prototype.rayCast=function(e,n){let r=this._RayCast(s([e]),s([n])),i=t(r,e=>({faceID:e.faceID,distance:e.distance,position:[`x`,`y`,`z`].map(t=>e.position[t]),normal:[`x`,`y`,`z`].map(t=>e.normal[t])}));return r.delete(),i},i.Manifold.prototype.split=function(e){let n=this._Split(e),r=t(n);return n.delete(),r},i.Manifold.prototype.splitByPlane=function(e,n=0){let r=this._SplitByPlane(s([e]),n),i=t(r);return r.delete(),i},i.Manifold.prototype.decompose=function(){let e=this._Decompose(),n=t(e);return e.delete(),n},i.Manifold.prototype.boundingBox=function(){let e=this._boundingBox();return{min:[`x`,`y`,`z`].map(t=>e.min[t]),max:[`x`,`y`,`z`].map(t=>e.max[t])}},i.Manifold.prototype.simplify=function(e=0){return this._Simplify(e)};class p{constructor({numProp:e=3,triVerts:t=new Uint32Array,vertProperties:n=new Float32Array,mergeFromVert:r,mergeToVert:i,runIndex:a,runOriginalID:o,faceID:s,halfedgeTangent:c,runTransform:l,runFlags:u,tolerance:d=0}={}){this.numProp=e,this.triVerts=t,this.vertProperties=n,this.mergeFromVert=r,this.mergeToVert=i,this.runIndex=a,this.runOriginalID=o,this.faceID=s,this.halfedgeTangent=c,this.runTransform=l,this.runFlags=u,this.tolerance=d}get numTri(){return this.triVerts.length/3}get numVert(){return this.vertProperties.length/this.numProp}get numRun(){return this.runOriginalID.length}merge(){let{changed:e,mesh:t}=i._Merge(this);return Object.assign(this,{...t}),e}verts(e){return this.triVerts.subarray(3*e,3*(e+1))}position(e){return this.vertProperties.subarray(this.numProp*e,this.numProp*e+3)}extras(e){return this.vertProperties.subarray(this.numProp*e+3,this.numProp*(e+1))}tangent(e){return this.halfedgeTangent.subarray(4*e,4*(e+1))}transform(e){let t=Array(16);for(let n of[0,1,2,3])for(let r of[0,1,2])t[4*n+r]=this.runTransform[12*e+3*n+r];return t[15]=1,t}backside(e){return this.runFlags!=null&&e<this.runFlags.length&&!!(this.runFlags[e]&1)}hasNormals(e){return this.runFlags!=null&&e<this.runFlags.length&&!!(this.runFlags[e]&2)}}i.Mesh=p,i.Manifold.prototype.getMesh=function(e=-1){return new p(this._GetMeshJS(e))},i.ManifoldError=function(e,...t){let n=`Unknown error`;switch(e){case`NonFiniteVertex`:n=`Non-finite vertex`;break;case`NotManifold`:n=`Not manifold`;break;case`VertexOutOfBounds`:n=`Vertex index out of bounds`;break;case`PropertiesWrongLength`:n=`Properties have wrong length`;break;case`MissingPositionProperties`:n=`Less than three properties`;break;case`MergeVectorsDifferentLengths`:n=`Merge vectors have different lengths`;break;case`MergeIndexOutOfBounds`:n=`Merge index out of bounds`;break;case`TransformWrongLength`:n=`Transform vector has wrong length`;break;case`RunIndexWrongLength`:n=`Run index vector has wrong length`;break;case`FaceIDWrongLength`:n=`Face ID vector has wrong length`;break;case`InvalidConstruction`:n=`Manifold constructed with invalid parameters`;break;case`ResultTooLarge`:n=`Result exceeds maximum size`;break;case`InvalidTangents`:n=`Invalid halfedge tangents`}let r=Error.apply(this,[n,...t]);r.name=this.name=`ManifoldError`,this.message=r.message,this.stack=r.stack,this.code=e},i.ManifoldError.prototype=Object.create(Error.prototype,{constructor:{value:i.ManifoldError,writable:!0,configurable:!0}}),i.CrossSection=function(e,t=`Positive`){let n=r(e),i=new d(n,c(t));return a(n),i},i.CrossSection.ofPolygons=function(e,t=`Positive`){return new i.CrossSection(e,t)},i.CrossSection.square=function(...e){let t;t=e.length==0?{x:1,y:1}:typeof e[0]==`number`?{x:e[0],y:e[0]}:o(e);let n=e[1]||!1;return i._Square(t,n)},i.CrossSection.circle=function(e,t=0){return i._Circle(e,t)};function m(e){return function(...t){t.length==1&&(t=t[0]);let n=new i.Vector_crossSection;for(let e of t)n.push_back(f(e));let r=i[`_crossSection`+e](n);return n.delete(),r}}i.CrossSection.compose=m(`Compose`),i.CrossSection.union=m(`UnionN`),i.CrossSection.difference=m(`DifferenceN`),i.CrossSection.intersection=m(`IntersectionN`);function h(t,n){e(t,n,e=>e instanceof Array?{x:e[0],y:e[1]}:e)}i.CrossSection.hull=function(...e){e.length==1&&(e=e[0]);let t=new i.Vector_vec2;for(let n of e)if(n instanceof d)i._crossSectionCollectVertices(t,n);else if(n instanceof Array&&n.length==2&&typeof n[0]==`number`)t.push_back({x:n[0],y:n[1]});else if(n.x)t.push_back(n);else{let e=n[0].length==2&&typeof n[0][0]==`number`||n[0].x?[n]:n;for(let n of e)h(t,n)}let n=i._crossSectionHullPoints(t);return t.delete(),n},i.CrossSection.prototype=Object.create(d.prototype),Object.defineProperty(i.CrossSection,Symbol.hasInstance,{get:()=>e=>e instanceof d});let g=i.Manifold;i.Manifold=function(e){let t=new g(e),n=t.status();if(n!==`NoError`)throw new i.ManifoldError(n);return t},i.Manifold.ofMesh=function(e){return new i.Manifold(e)},i.Manifold.tetrahedron=function(){return i._Tetrahedron()},i.Manifold.cube=function(...e){let t;t=e.length==0?{x:1,y:1,z:1}:typeof e[0]==`number`?{x:e[0],y:e[0],z:e[0]}:s(e);let n=e[1]||!1;return i._Cube(t,n)},i.Manifold.cylinder=function(e,t,n=-1,r=0,a=!1){return i._Cylinder(e,t,n,r,a)},i.Manifold.sphere=function(e,t=0){return i._Sphere(e,t)},i.Manifold.smooth=function(t,n=[]){let r=new i.Vector_smoothness;e(r,n);let a=i._Smooth(t,r);return r.delete(),a},i.Manifold.extrude=function(e,t,n=0,r=0,a=[1,1],o=!1){return(e instanceof d?e:i.CrossSection(e,`Positive`)).extrude(t,n,r,a,o)},i.Manifold.revolve=function(e,t=0,n=360){return(e instanceof d?e:i.CrossSection(e,`Positive`)).revolve(t,n)},i.Manifold.reserveIDs=function(e){return i._ReserveIDs(e)};function _(e){return function(...t){t.length==1&&(t=t[0]);let n=new i.Vector_manifold;for(let e of t)n.push_back(e);let r=i[`_manifold`+e+`N`](n);return n.delete(),r}}i.Manifold.union=_(`Union`),i.Manifold.compose=i.Manifold.union,i.Manifold.difference=_(`Difference`),i.Manifold.intersection=_(`Intersection`),i.Manifold.levelSet=function(e,t,n,r=0,a=-1){let o={min:{x:t.min[0],y:t.min[1],z:t.min[2]},max:{x:t.max[0],y:t.max[1],z:t.max[2]}},s=Y(function(t){return e([O(t,`double`),O(t+8,`double`),O(t+16,`double`)])},`di`),c=i._LevelSet(s,o,n,r,a);return X(s),c},i.ExecutionContext.prototype.fromMesh=function(e){return this._FromMesh(e)},i.ExecutionContext.prototype.smooth=function(t,n=[]){let r=new i.Vector_smoothness;e(r,n);let a=this._Smooth(t,r);return r.delete(),a},i.ExecutionContext.prototype.levelSet=function(e,t,n,r=0,i=-1){let a={min:{x:t.min[0],y:t.min[1],z:t.min[2]},max:{x:t.max[0],y:t.max[1],z:t.max[2]}},o=Y(function(t){return e([O(t,`double`),O(t+8,`double`),O(t+16,`double`)])},`di`),s=this._LevelSet(o,a,n,r,i);return X(o),s};function v(t,n){e(t,n,e=>e instanceof Array?{x:e[0],y:e[1],z:e[2]}:e)}i.Manifold.hull=function(...e){e.length==1&&(e=e[0]);let t=new i.Vector_vec3;for(let n of e)n instanceof g?i._manifoldCollectVertices(t,n):n instanceof Array&&n.length==3&&typeof n[0]==`number`?t.push_back({x:n[0],y:n[1],z:n[2]}):n.x?t.push_back(n):v(t,n);let n=i._manifoldHullPoints(t);return t.delete(),n},i.Manifold.prototype=Object.create(g.prototype),Object.defineProperty(i.Manifold,Symbol.hasInstance,{get:()=>e=>e instanceof g}),i.triangulate=function(e,n=-1,o=!0){let s=r(e),c=t(i._Triangulate(s,n,o),e=>[e[0],e[1],e[2]]);return a(s),c}};var u=import.meta.url,d=``;function f(e){return i.locateFile?i.locateFile(e,d):d+e}var p,m;if(s){var h=c("node:fs");u.startsWith(`file:`)&&(d=c("node:path").dirname(c("node:url").fileURLToPath(u))+`/`),m=e=>(e=y(e)?new URL(e):e,h.readFileSync(e)),p=async(e,t=!0)=>(e=y(e)?new URL(e):e,h.readFileSync(e,t?void 0:`utf8`)),process.argv.length>1&&process.argv[1].replace(/\\/g,`/`),process.argv.slice(2)}else if(a||o){try{d=new URL(`.`,u).href}catch{}o&&(m=e=>{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}),p=async e=>{if(y(e))return new Promise((t,n)=>{var r=new XMLHttpRequest;r.open(`GET`,e,!0),r.responseType=`arraybuffer`,r.onload=()=>{r.status==200||r.status==0&&r.response?t(r.response):n(r.status)},r.onerror=n,r.send(null)});var t=await fetch(e,{credentials:`same-origin`});if(t.ok)return t.arrayBuffer();throw Error(t.status+` : `+t.url)}}console.log.bind(console);var g=console.error.bind(console),_,v=!1,y=e=>e.startsWith(`file://`),ee,te,b,x,S,C,w,T,ne,E,re,ie,ae=!1;function oe(){var e=Vn.buffer;b=new Int8Array(e),S=new Int16Array(e),x=new Uint8Array(e),C=new Uint16Array(e),w=new Int32Array(e),T=new Uint32Array(e),ne=new Float32Array(e),E=new Float64Array(e),re=new BigInt64Array(e),ie=new BigUint64Array(e)}function se(){if(i.preRun)for(typeof i.preRun==`function`&&(i.preRun=[i.preRun]);i.preRun.length;)Se(i.preRun.shift());ve(xe)}function ce(){ae=!0,$.J()}function le(){if(i.postRun)for(typeof i.postRun==`function`&&(i.postRun=[i.postRun]);i.postRun.length;)be(i.postRun.shift());ve(ye)}function D(e){i.onAbort?.(e),e=`Aborted(`+e+`)`,g(e),v=!0,e+=`. Build with -sASSERTIONS for more info.`;var t=new WebAssembly.RuntimeError(e);throw te?.(t),t}var ue;function de(){return i.locateFile?f(`manifold.wasm`):new URL(`/assets/manifold-BE4c7gO-.wasm`,``+import.meta.url).href}function fe(e){if(e==ue&&_)return new Uint8Array(_);if(m)return m(e);throw`both async and sync fetching of the wasm failed`}async function pe(e){if(!_)try{var t=await p(e);return new Uint8Array(t)}catch{}return fe(e)}async function me(e,t){try{var n=await pe(e);return await WebAssembly.instantiate(n,t)}catch(e){g(`failed to asynchronously prepare wasm: ${e}`),D(e)}}async function he(e,t,n){if(!e&&!y(t)&&!s)try{var r=fetch(t,{credentials:`same-origin`});return await WebAssembly.instantiateStreaming(r,n)}catch(e){g(`wasm streaming compile failed: ${e}`),g(`falling back to ArrayBuffer instantiation`)}return me(t,n)}function ge(){return{a:Un}}async function _e(){function e(e,t){return $=e.exports,$=Wn($),Hn($),oe(),$}function t(t){return e(t.instance)}var n=ge();return i.instantiateWasm?new Promise((t,r)=>{i.instantiateWasm(n,(n,r)=>{t(e(n,r))})}):(ue??=de(),t(await he(_,ue,n)))}var ve=e=>{for(;e.length>0;)e.shift()(i)},ye=[],be=e=>ye.push(e),xe=[],Se=e=>xe.push(e);function O(e,t=`i8`){switch(t.endsWith(`*`)&&(t=`*`),t){case`i1`:return b[e>>>0];case`i8`:return b[e>>>0];case`i16`:return S[e>>>1>>>0];case`i32`:return w[e>>>2>>>0];case`i64`:return re[e>>>3>>>0];case`float`:return ne[e>>>2>>>0];case`double`:return E[e>>>3>>>0];case`*`:return T[e>>>2>>>0];default:D(`invalid type for getValue: ${t}`)}}function k(e,t,n=`i8`){switch(n.endsWith(`*`)&&(n=`*`),n){case`i1`:b[e>>>0]=t;break;case`i8`:b[e>>>0]=t;break;case`i16`:S[e>>>1>>>0]=t;break;case`i32`:w[e>>>2>>>0]=t;break;case`i64`:re[e>>>3>>>0]=BigInt(t);break;case`float`:ne[e>>>2>>>0]=t;break;case`double`:E[e>>>3>>>0]=t;break;case`*`:T[e>>>2>>>0]=t;break;default:D(`invalid type for setValue: ${n}`)}}class Ce{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){T[this.ptr+4>>>2>>>0]=e}get_type(){return T[this.ptr+4>>>2>>>0]}set_destructor(e){T[this.ptr+8>>>2>>>0]=e}get_destructor(){return T[this.ptr+8>>>2>>>0]}set_caught(e){e=+!!e,b[this.ptr+12>>>0]=e}get_caught(){return b[this.ptr+12>>>0]!=0}set_rethrown(e){e=+!!e,b[this.ptr+13>>>0]=e}get_rethrown(){return b[this.ptr+13>>>0]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){T[this.ptr+16>>>2>>>0]=e}get_adjusted_ptr(){return T[this.ptr+16>>>2>>>0]}}var we=0,Te=0;function Ee(e,t,n){throw e>>>=0,t>>>=0,n>>>=0,new Ce(e).init(t,n),we=e,Te++,we}var De=()=>D(``),A={},Oe=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function j(e){return this.fromWireType(T[e>>>2>>>0])}var M={},N={},P={},ke=class extends Error{constructor(e){super(e),this.name=`InternalError`}},F=e=>{throw new ke(e)},I=(e,t,n)=>{e.forEach(e=>P[e]=t);function r(t){var r=n(t);r.length!==e.length&&F(`Mismatched type converter count`);for(var i=0;i<e.length;++i)B(e[i],r[i])}var i=Array(t.length),a=[],o=0;for(let[e,n]of t.entries())N.hasOwnProperty(n)?i[e]=N[n]:(a.push(n),M.hasOwnProperty(n)||(M[n]=[]),M[n].push(()=>{i[e]=N[n],++o,o===a.length&&r(i)}));a.length===0&&r(i)},Ae=function(e){e>>>=0;var t=A[e];delete A[e];var n=t.rawConstructor,r=t.rawDestructor,i=t.fields,a=i.map(e=>e.getterReturnType).concat(i.map(e=>e.setterArgumentType));I([e],a,e=>{var a={};for(var[o,s]of i.entries()){let t=e[o],n=s.getter,r=s.getterContext,c=e[o+i.length],l=s.setter,u=s.setterContext;a[s.fieldName]={read:e=>t.fromWireType(n(r,e)),write:(e,t)=>{var n=[];l(u,e,c.toWireType(n,t)),Oe(n)},optional:t.optional}}return[{name:t.name,fromWireType:e=>{var t={};for(var n in a)t[n]=a[n].read(e);return r(e),t},toWireType:(e,t)=>{for(var i in a)if(!(i in t)&&!a[i].optional)throw TypeError(`Missing field: "${i}"`);var o=n();for(i in a)a[i].write(o,t[i]);return e!==null&&e.push(r,o),o},readValueFromPointer:j,destructorFunction:r}]})},L=e=>{e>>>=0;for(var t=``;;){var n=x[e++>>>0];if(!n)return t;t+=String.fromCharCode(n)}},R=class extends Error{constructor(e){super(e),this.name=`BindingError`}},z=e=>{throw new R(e)};function je(e,t,n={}){var r=t.name;if(e||z(`type "${r}" must have a positive integer typeid pointer`),N.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;z(`Cannot register type '${r}' twice`)}if(N[e]=t,delete P[e],M.hasOwnProperty(e)){var i=M[e];delete M[e],i.forEach(e=>e())}}function B(e,t,n={}){return je(e,t,n)}var Me=(e,t,n)=>{switch(t){case 1:return n?e=>b[e>>>0]:e=>x[e>>>0];case 2:return n?e=>S[e>>>1>>>0]:e=>C[e>>>1>>>0];case 4:return n?e=>w[e>>>2>>>0]:e=>T[e>>>2>>>0];case 8:return n?e=>re[e>>>3>>>0]:e=>ie[e>>>3>>>0];default:throw TypeError(`invalid integer width (${t}): ${e}`)}},Ne=function(e,t,n,r,i){e>>>=0,t>>>=0,n>>>=0,t=L(t);let a=r===0n,o=e=>e;if(a){let e=n*8;o=t=>BigInt.asUintN(e,t),i=o(i)}B(e,{name:t,fromWireType:o,toWireType:(e,t)=>(typeof t==`number`&&(t=BigInt(t)),t),readValueFromPointer:Me(t,n,!a),destructorFunction:null})};function Pe(e,t,n,r){e>>>=0,t>>>=0,t=L(t),B(e,{name:t,fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:r},readValueFromPointer:function(e){return this.fromWireType(x[e>>>0])},destructorFunction:null})}var Fe=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Ie=e=>{function t(e){return e.$$.ptrType.registeredClass.name}z(t(e)+` instance already deleted`)},Le=!1,Re=e=>{},ze=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},Be=e=>{--e.count.value,e.count.value===0&&ze(e)},V=e=>globalThis.FinalizationRegistry?(Le=new FinalizationRegistry(e=>{Be(e.$$)}),V=e=>{var t=e.$$;if(t.smartPtr){var n={$$:t};Le.register(e,n,e)}return e},Re=e=>Le.unregister(e),V(e)):(V=e=>e,e),H=[],Ve=()=>{for(;H.length;){var e=H.pop();e.$$.deleteScheduled=!1,e.delete()}},He,Ue=()=>{let e=U.prototype;Object.assign(e,{isAliasOf(e){if(!(this instanceof U)||!(e instanceof U))return!1;var t=this.$$.ptrType.registeredClass,n=this.$$.ptr;e.$$=e.$$;for(var r=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;r.baseClass;)i=r.upcast(i),r=r.baseClass;return t===r&&n===i},clone(){if(this.$$.ptr||Ie(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=V(Object.create(Object.getPrototypeOf(this),{$$:{value:Fe(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Ie(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&z(`Object already scheduled for deletion`),Re(this),Be(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ie(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&z(`Object already scheduled for deletion`),H.push(this),H.length===1&&He&&He(Ve),this.$$.deleteScheduled=!0,this}});let t=Symbol.dispose;t&&(e[t]=e.delete)};function U(){}var We=(e,t)=>Object.defineProperty(t,"name",{value:e}),Ge={},Ke=(e,t,n)=>{if(e[t].overloadTable===void 0){var r=e[t];e[t]=function(...r){return e[t].overloadTable.hasOwnProperty(r.length)||z(`Function '${n}' called with an invalid number of arguments (${r.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[r.length].apply(this,r)},e[t].overloadTable=[],e[t].overloadTable[r.argCount]=r}},W=(e,t,n)=>{i.hasOwnProperty(e)?((n===void 0||i[e].overloadTable!==void 0&&i[e].overloadTable[n]!==void 0)&&z(`Cannot register public name '${e}' twice`),Ke(i,e,e),i[e].overloadTable.hasOwnProperty(n)&&z(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),i[e].overloadTable[n]=t):(i[e]=t,i[e].argCount=n)},qe=48,Je=57,Ye=e=>{e=e.replace(/[^a-zA-Z0-9_]/g,`$`);var t=e.charCodeAt(0);return t>=qe&&t<=Je?`_${e}`:e};function Xe(e,t,n,r,i,a,o,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=r,this.baseClass=i,this.getActualType=a,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Ze=(e,t,n)=>{for(;t!==n;)t.upcast||z(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e},Qe=e=>{if(e===null)return`null`;var t=typeof e;return t===`object`||t===`array`||t===`function`?e.toString():``+e};function $e(e,t){if(t===null)return this.isReference&&z(`null is not a valid ${this.name}`),0;t.$$||z(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||z(`Cannot pass deleted object as a pointer of type ${this.name}`);var n=t.$$.ptrType.registeredClass;return Ze(t.$$.ptr,n,this.registeredClass)}function et(e,t){var n;if(t===null)return this.isReference&&z(`null is not a valid ${this.name}`),this.isSmartPointer?(n=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,n),n):0;(!t||!t.$$)&&z(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||z(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&z(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;if(n=Ze(t.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(t.$$.smartPtr===void 0&&z(`Passing raw pointer to smart pointer is illegal`),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:z(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var i=t.clone();n=this.rawShare(n,q.toHandle(()=>i.delete())),e!==null&&e.push(this.rawDestructor,n)}break;default:z(`Unsupported sharing policy`)}return n}function tt(e,t){if(t===null)return this.isReference&&z(`null is not a valid ${this.name}`),0;t.$$||z(`Cannot pass "${Qe(t)}" as a ${this.name}`),t.$$.ptr||z(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&z(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;return Ze(t.$$.ptr,n,this.registeredClass)}var nt=(e,t,n)=>{if(t===n)return e;if(n.baseClass===void 0)return null;var r=nt(e,t,n.baseClass);return r===null?null:n.downcast(r)},rt={},it=(e,t)=>{for(t===void 0&&z(`ptr should not be undefined`);e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},at=(e,t)=>(t=it(e,t),rt[t]),ot=(e,t)=>((!t.ptrType||!t.ptr)&&F(`makeClassHandle requires ptr and ptrType`),!!t.smartPtrType!=!!t.smartPtr&&F(`Both smartPtrType and smartPtr must be specified`),t.count={value:1},V(Object.create(e,{$$:{value:t,writable:!0}})));function st(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=at(this.registeredClass,t);if(n!==void 0){if(n.$$.count.value===0)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var r=n.clone();return this.destructor(e),r}function i(){return this.isSmartPointer?ot(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):ot(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a=Ge[this.registeredClass.getActualType(t)];if(!a)return i.call(this);var o=this.isConst?a.constPointerType:a.pointerType,s=nt(t,this.registeredClass,o.registeredClass);return s===null?i.call(this):this.isSmartPointer?ot(o.registeredClass.instancePrototype,{ptrType:o,ptr:s,smartPtrType:this,smartPtr:e}):ot(o.registeredClass.instancePrototype,{ptrType:o,ptr:s})}var ct=()=>{Object.assign(lt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor?.(e)},readValueFromPointer:j,fromWireType:st})};function lt(e,t,n,r,i,a,o,s,c,l,u){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=r,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=l,this.rawDestructor=u,!i&&t.baseClass===void 0?r?(this.toWireType=$e,this.destructorFunction=null):(this.toWireType=tt,this.destructorFunction=null):this.toWireType=et}var ut=(e,t,n)=>{i.hasOwnProperty(e)||F(`Replacing nonexistent public symbol`),i[e].overloadTable!==void 0&&n!==void 0?i[e].overloadTable[n]=t:(i[e]=t,i[e].argCount=n)},dt=e=>Q.get(e),ft=(e,t,n=[],r=!1)=>{var i=dt(t)(...n);function a(t){return e[0]==`p`?t>>>0:t}return a(i)},pt=(e,t,n=!1)=>(...r)=>ft(e,t,r,n),G=(e,t,n=!1)=>{e=L(e);function r(){return e.includes(`p`)?pt(e,t,n):dt(t)}var i=r();return typeof i!=`function`&&z(`unknown function pointer with signature ${e}: ${t}`),i};class mt extends Error{}var ht=e=>{var t=zn(e),n=L(t);return Z(t),n},gt=(e,t)=>{var n=[],r={};function i(e){r[e]||N[e]||(P[e]?P[e].forEach(i):(n.push(e),r[e]=!0))}throw t.forEach(i),new mt(`${e}: `+n.map(ht).join([`, `]))};function _t(e,t,n,r,i,a,o,s,c,l,u,d,f){e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0,o>>>=0,s>>>=0,c>>>=0,l>>>=0,u>>>=0,d>>>=0,f>>>=0,u=L(u),a=G(i,a),s&&=G(o,s),l&&=G(c,l),f=G(d,f);var p=Ye(u);W(p,function(){gt(`Cannot construct ${u} due to unbound types`,[r])}),I([e,t,n],r?[r]:[],t=>{t=t[0];var n,i;r?(n=t.registeredClass,i=n.instancePrototype):i=U.prototype;var o=We(u,function(...e){if(Object.getPrototypeOf(this)!==c)throw new R(`Use 'new' to construct ${u}`);if(d.constructor_body===void 0)throw new R(`${u} has no accessible constructor`);var t=d.constructor_body[e.length];if(t===void 0)throw new R(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return t.apply(this,e)}),c=Object.create(i,{constructor:{value:o}});o.prototype=c;var d=new Xe(u,o,c,f,n,a,s,l);d.baseClass&&(d.baseClass.__derivedClasses??=[],d.baseClass.__derivedClasses.push(d));var m=new lt(u,d,!0,!1,!1),h=new lt(u+`*`,d,!1,!1,!1),g=new lt(u+` const*`,d,!1,!0,!1);return Ge[e]={pointerType:h,constPointerType:g},ut(p,o),[m,h,g]})}var vt=(e,t)=>{for(var n=[],r=0;r<e;r++)n.push(T[t+r*4>>>2>>>0]);return n};function yt(e){for(var t=1;t<e.length;++t)if(e[t]!==null&&e[t].destructorFunction===void 0)return!0;return!1}var bt={ftf:function(e,t,n,r,i,a,o){return function(){return a(n(r))}},tffn:function(e,t,n,r,i,a,o){return function(){n(r,o(null,this))}},ttfn:function(e,t,n,r,i,a,o){return function(){return a(n(r,o(null,this)))}},ttfnn:function(e,t,n,r,i,a,o,s){return function(e){return a(n(r,o(null,this),s(null,e)))}},ttfnnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){return a(n(r,o(null,this),s(null,e),c(null,t)))}},ttfnntnnn:function(e,t,n,r,i,a,o,s,c,l,u,d,f){return function(e,t,i,p,m){var h=o(null,this),g=s(null,e),_=c(null,t),v=n(r,h,g,_,l(null,i),u(null,p),d(null,m));return f(_),a(v)}},tffnt:function(e,t,n,r,i,a,o,s,c){return function(e){var t=o(null,this),i=s(null,e);n(r,t,i),c(i)}},tffnnt:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=o(null,this),a=s(null,e),u=c(null,t);n(r,i,a,u),l(u)}},ttfnnt:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=o(null,this),u=s(null,e),d=c(null,t),f=n(r,i,u,d);return l(d),a(f)}},tffnn:function(e,t,n,r,i,a,o,s){return function(e){n(r,o(null,this),s(null,e))}},tffnnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){n(r,o(null,this),s(null,e),c(null,t))}},ftfnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){return a(n(r,s(null,e),c(null,t)))}},ttfnt:function(e,t,n,r,i,a,o,s,c){return function(e){var t=o(null,this),i=s(null,e),l=n(r,t,i);return c(i),a(l)}},ttfnnnnn:function(e,t,n,r,i,a,o,s,c,l,u){return function(e,t,i,d){return a(n(r,o(null,this),s(null,e),c(null,t),l(null,i),u(null,d)))}},ftftn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=s(null,e),o=n(r,i,c(null,t));return l(i),a(o)}},ftfn:function(e,t,n,r,i,a,o,s){return function(e){return a(n(r,s(null,e)))}},fffnn:function(e,t,n,r,i,a,o,s,c){return function(e,t){n(r,s(null,e),c(null,t))}},ttfntn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t){var i=o(null,this),u=s(null,e),d=n(r,i,u,c(null,t));return l(u),a(d)}},ttfnnnn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t,i){return a(n(r,o(null,this),s(null,e),c(null,t),l(null,i)))}},ttfntt:function(e,t,n,r,i,a,o,s,c,l,u){return function(e,t){var i=o(null,this),d=s(null,e),f=c(null,t),p=n(r,i,d,f);return l(d),u(f),a(p)}},ftfnnnnn:function(e,t,n,r,i,a,o,s,c,l,u,d){return function(e,t,i,o,f){return a(n(r,s(null,e),c(null,t),l(null,i),u(null,o),d(null,f)))}},ftfnnnnt:function(e,t,n,r,i,a,o,s,c,l,u,d,f){return function(e,t,i,o,p){var m=s(null,e),h=c(null,t),g=l(null,i),_=u(null,o),v=d(null,p),y=n(r,m,h,g,_,v);return f(v),a(y)}},ftfnnn:function(e,t,n,r,i,a,o,s,c,l){return function(e,t,i){return a(n(r,s(null,e),c(null,t),l(null,i)))}},ftfntnnn:function(e,t,n,r,i,a,o,s,c,l,u,d,f){return function(e,t,i,o,p){var m=s(null,e),h=c(null,t),g=n(r,m,h,l(null,i),u(null,o),d(null,p));return f(h),a(g)}},fffn:function(e,t,n,r,i,a,o,s){return function(e){n(r,s(null,e))}},fff:function(e,t,n,r,i,a,o){return function(){n(r)}}};function xt(e,t,n,r){let i=[t?`t`:`f`,n?`t`:`f`,r?`t`:`f`];for(let n=t?1:2;n<e.length;++n){let t=e[n],r=``;r=t.destructorFunction===void 0?`u`:t.destructorFunction===null?`n`:`t`,i.push(r)}return i.join(``)}function St(e,t,n,r,i,a){var o=t.length;o<2&&z(`argTypes array size mismatch! Must at least get return value and 'this' types!`);for(var s=t[1]!==null&&n!==null,c=yt(t),l=!t[0].isVoid,u=t[0],d=t[1],f=[e,z,r,i,Oe,u.fromWireType.bind(u),d?.toWireType.bind(d)],p=2;p<o;++p){var m=t[p];f.push(m.toWireType.bind(m))}if(!c)for(var p=s?1:2;p<t.length;++p)t[p].destructorFunction!==null&&f.push(t[p].destructorFunction);return We(e,bt[xt(t,s,l,a)](...f))}var Ct=function(e,t,n,r,i,a){e>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0;var o=vt(t,n);i=G(r,i),I([],[e],e=>{e=e[0];var n=`constructor ${e.name}`;if(e.registeredClass.constructor_body===void 0&&(e.registeredClass.constructor_body=[]),e.registeredClass.constructor_body[t-1]!==void 0)throw new R(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{gt(`Cannot construct ${e.name} due to unbound types`,o)},I([],o,r=>(r.splice(1,0,null),e.registeredClass.constructor_body[t-1]=St(n,r,null,i,a),[])),[]})},wt=e=>{e=e.trim();let t=e.indexOf(`(`);return t===-1?e:e.slice(0,t)},Tt=function(e,t,n,r,i,a,o,s,c,l){e>>>=0,t>>>=0,r>>>=0,i>>>=0,a>>>=0,o>>>=0;var u=vt(n,r);t=L(t),t=wt(t),a=G(i,a,c),I([],[e],e=>{e=e[0];var r=`${e.name}.${t}`;t.startsWith(`@@`)&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);function i(){gt(`Cannot call ${r} due to unbound types`,u)}var l=e.registeredClass.instancePrototype,d=l[t];return d===void 0||d.overloadTable===void 0&&d.className!==e.name&&d.argCount===n-2?(i.argCount=n-2,i.className=e.name,l[t]=i):(Ke(l,t,r),l[t].overloadTable[n-2]=i),I([],u,i=>{var s=St(r,i,e,a,o,c);return l[t].overloadTable===void 0?(s.argCount=n-2,l[t]=s):l[t].overloadTable[n-2]=s,[]}),[]})},Et=[],K=[0,1,,1,null,1,!0,1,!1,1];function Dt(e){e>>>=0,e>9&&--K[e+1]===0&&(K[e]=void 0,Et.push(e))}var q={toValue:e=>(e||z(`Cannot use deleted val. handle = ${e}`),K[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let t=Et.pop()||K.length;return K[t]=e,K[t+1]=1,t}}}},Ot={name:`emscripten::val`,fromWireType:e=>{var t=q.toValue(e);return Dt(e),t},toWireType:(e,t)=>q.toHandle(t),readValueFromPointer:j,destructorFunction:null};function kt(e){return e>>>=0,B(e,Ot)}var At=(e,t,n)=>{switch(t){case 1:return n?function(e){return this.fromWireType(b[e>>>0])}:function(e){return this.fromWireType(x[e>>>0])};case 2:return n?function(e){return this.fromWireType(S[e>>>1>>>0])}:function(e){return this.fromWireType(C[e>>>1>>>0])};case 4:return n?function(e){return this.fromWireType(w[e>>>2>>>0])}:function(e){return this.fromWireType(T[e>>>2>>>0])};default:throw TypeError(`invalid integer width (${t}): ${e}`)}};function jt(e){return e===0?`object`:e===1?`number`:`string`}function Mt(e,t,n,r,a){e>>>=0,t>>>=0,n>>>=0,t=L(t);let o=jt(a);switch(o){case`object`:{function i(){}i.values={},B(e,{name:t,constructor:i,valueType:o,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,readValueFromPointer:At(t,n,r),destructorFunction:null}),W(t,i);break}case`number`:var s={};B(e,{name:t,keysMap:s,valueType:o,fromWireType:e=>e,toWireType:(e,t)=>t,readValueFromPointer:At(t,n,r),destructorFunction:null}),W(t,s),delete i[t].argCount;break;case`string`:var c={},l={},s={};B(e,{name:t,valuesMap:c,reverseMap:l,keysMap:s,valueType:o,fromWireType:function(e){return this.reverseMap[e]},toWireType:function(e,t){return this.valuesMap[t]},readValueFromPointer:At(t,n,r),destructorFunction:null}),W(t,s),delete i[t].argCount}}var Nt=(e,t)=>{var n=N[e];return n===void 0&&z(`${t} has unknown type ${ht(e)}`),n};function Pt(e,t,n){e>>>=0,t>>>=0;var r=Nt(e,`enum`);switch(t=L(t),r.valueType){case`object`:var i=r.constructor,a=Object.create(r.constructor.prototype,{value:{value:n},constructor:{value:We(`${r.name}_${t}`,function(){})}});i.values[n]=a,i[t]=a;break;case`number`:r.keysMap[t]=n;break;case`string`:r.valuesMap[t]=n,r.reverseMap[n]=t,r.keysMap[t]=t}}var Ft=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(ne[e>>>2>>>0])};case 8:return function(e){return this.fromWireType(E[e>>>3>>>0])};default:throw TypeError(`invalid float width (${t}): ${e}`)}},It=function(e,t,n){e>>>=0,t>>>=0,n>>>=0,t=L(t),B(e,{name:t,fromWireType:e=>e,toWireType:(e,t)=>t,readValueFromPointer:Ft(t,n),destructorFunction:null})};function Lt(e,t,n,r,i,a,o,s){e>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0;var c=vt(t,n);e=L(e),e=wt(e),i=G(r,i,o),W(e,function(){gt(`Cannot call ${e} due to unbound types`,c)},t-1),I([],c,n=>{var r=[n[0],null].concat(n.slice(1));return ut(e,St(e,r,null,i,a,o),t-1),[]})}var Rt=function(e,t,n,r,i){e>>>=0,t>>>=0,n>>>=0,t=L(t);let a=r===0,o=e=>e;if(a){var s=32-8*n;o=e=>e<<s>>>s,i=o(i)}B(e,{name:t,fromWireType:o,toWireType:(e,t)=>t,readValueFromPointer:Me(t,n,r!==0),destructorFunction:null})},zt=(e,t,n)=>{let r=(e,t)=>{let n=0;return{next(){if(n>=e)return{done:!0};let r=n;return n++,{value:t(r),done:!1}},[Symbol.iterator](){return this}}};e[Symbol.iterator]||(e[Symbol.iterator]=function(){let e=this[t]();return r(e,e=>this[n](e))})},Bt=function(e,t,n,r){e>>>=0,t>>>=0,n>>>=0,r>>>=0,n=L(n),r=L(r),I([],[e,t],e=>{let t=e[0];return zt(t.registeredClass.instancePrototype,n,r),[]})};function Vt(e,t,n){e>>>=0,n>>>=0;var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][t];function i(e){var t=T[e>>>2>>>0],n=T[e+4>>>2>>>0];return new r(b.buffer,n,t)}n=L(n),B(e,{name:n,fromWireType:i,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})}var Ht=Object.assign({optional:!0},Ot);function Ut(e,t){e>>>=0,t>>>=0,B(e,Ht)}var Wt=(e,t,n,r)=>{if(n>>>=0,!(r>0))return 0;for(var i=n,a=n+r-1,o=0;o<e.length;++o){var s=e.codePointAt(o);if(s<=127){if(n>=a)break;t[n++>>>0]=s}else if(s<=2047){if(n+1>=a)break;t[n++>>>0]=192|s>>6,t[n++>>>0]=128|s&63}else if(s<=65535){if(n+2>=a)break;t[n++>>>0]=224|s>>12,t[n++>>>0]=128|s>>6&63,t[n++>>>0]=128|s&63}else{if(n+3>=a)break;t[n++>>>0]=240|s>>18,t[n++>>>0]=128|s>>12&63,t[n++>>>0]=128|s>>6&63,t[n++>>>0]=128|s&63,o++}}return t[n>>>0]=0,n-i},Gt=(e,t,n)=>Wt(e,x,t,n),Kt=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++n):t+=3}return t},qt=globalThis.TextDecoder&&new TextDecoder,Jt=(e,t,n,r)=>{var i=t+n;if(r)return i;for(;e[t]&&!(t>=i);)++t;return t},Yt=(e,t=0,n,r)=>{t>>>=0;var i=Jt(e,t,n,r);if(i-t>16&&e.buffer&&qt)return qt.decode(e.subarray(t,i));for(var a=``;t<i;){var o=e[t++];if(!(o&128))a+=String.fromCharCode(o);else{var s=e[t++]&63;if((o&224)==192)a+=String.fromCharCode((o&31)<<6|s);else{var c=e[t++]&63;if(o=(o&240)==224?(o&15)<<12|s<<6|c:(o&7)<<18|s<<12|c<<6|e[t++]&63,o<65536)a+=String.fromCharCode(o);else{var l=o-65536;a+=String.fromCharCode(55296|l>>10,56320|l&1023)}}}}return a},Xt=(e,t,n)=>(e>>>=0,e?Yt(x,e,t,n):``);function Zt(e,t){e>>>=0,t>>>=0,t=L(t);var n=!0;B(e,{name:t,fromWireType(e){var t=T[e>>>2>>>0],r=e+4,i;if(n)i=Xt(r,t,!0);else{i=``;for(var a=0;a<t;++a)i+=String.fromCharCode(x[r+a>>>0])}return Z(e),i},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,i=typeof t==`string`;i||ArrayBuffer.isView(t)&&t.BYTES_PER_ELEMENT==1||z(`Cannot pass non-string to std::string`),r=n&&i?Kt(t):t.length;var a=Bn(4+r+1),o=a+4;if(T[a>>>2>>>0]=r,i){if(n)Gt(t,o,r+1);else for(var s=0;s<r;++s){var c=t.charCodeAt(s);c>255&&(Z(a),z(`String has UTF-16 code units that do not fit in 8 bits`)),x[o+s>>>0]=c}}else x.set(t,o>>>0);return e!==null&&e.push(Z,a),a},readValueFromPointer:j,destructorFunction(e){Z(e)}})}var Qt=globalThis.TextDecoder?new TextDecoder(`utf-16le`):void 0,$t=(e,t,n)=>{var r=e>>>1,i=Jt(C,r,t/2,n);if(i-r>16&&Qt)return Qt.decode(C.subarray(r>>>0,i>>>0));for(var a=``,o=r;o<i;++o){var s=C[o>>>0];a+=String.fromCharCode(s)}return a},en=(e,t,n)=>{if(n??=2147483647,n<2)return 0;n-=2;for(var r=t,i=n<e.length*2?n/2:e.length,a=0;a<i;++a){var o=e.charCodeAt(a);S[t>>>1>>>0]=o,t+=2}return S[t>>>1>>>0]=0,t-r},tn=e=>e.length*2,nn=(e,t,n)=>{for(var r=``,i=e>>>2,a=0;!(a>=t/4);a++){var o=T[i+a>>>0];if(!o&&!n)break;r+=String.fromCodePoint(o)}return r},rn=(e,t,n)=>{if(t>>>=0,n??=2147483647,n<4)return 0;for(var r=t,i=r+n-4,a=0;a<e.length;++a){var o=e.codePointAt(a);if(o>65535&&a++,w[t>>>2>>>0]=o,t+=4,t+4>i)break}return w[t>>>2>>>0]=0,t-r},an=e=>{for(var t=0,n=0;n<e.length;++n)e.codePointAt(n)>65535&&n++,t+=4;return t};function on(e,t,n){e>>>=0,t>>>=0,n>>>=0,n=L(n);var r,i,a;t===2?(r=$t,i=en,a=tn):(r=nn,i=rn,a=an),B(e,{name:n,fromWireType:e=>{var n=T[e>>>2>>>0],i=r(e+4,n*t,!0);return Z(e),i},toWireType:(e,r)=>{typeof r!=`string`&&z(`Cannot pass non-string to C++ string type ${n}`);var o=a(r),s=Bn(4+o+t);return T[s>>>2>>>0]=o/t,i(r,s+4,o+t),e!==null&&e.push(Z,s),s},readValueFromPointer:j,destructorFunction(e){Z(e)}})}function sn(e,t,n,r,i,a){e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0,A[e]={name:L(t),rawConstructor:G(n,r),rawDestructor:G(i,a),fields:[]}}function cn(e,t,n,r,i,a,o,s,c,l){e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,a>>>=0,o>>>=0,s>>>=0,c>>>=0,l>>>=0,A[e].fields.push({fieldName:L(t),getterReturnType:n,getter:G(r,i),getterContext:a,setterArgumentType:o,setter:G(s,c),setterContext:l})}var ln=function(e,t){e>>>=0,t>>>=0,t=L(t),B(e,{isVoid:!0,name:t,fromWireType:()=>void 0,toWireType:(e,t)=>void 0})};function un(e,t){e>>>=0,t>>>=0,e=q.toValue(e),t=q.toValue(t),e.set(t)}var dn=[],fn=e=>{var t=dn.length;return dn.push(e),t},pn=(e,t)=>{for(var n=Array(e),r=0;r<e;++r)n[r]=Nt(T[t+r*4>>>2>>>0],`parameter ${r}`);return n},mn=(e,t,n)=>{var r=[],i=e(r,n);return r.length&&(T[t>>>2>>>0]=q.toHandle(r)),i},hn={},gn=e=>{var t=hn[e];return t===void 0?L(e):t},_n=function(e,t,n){t>>>=0;var r=8,[i,...a]=pn(e,t),o=i.toWireType.bind(i),s=a.map(e=>e.readValueFromPointer.bind(e));e--;var c=Array(e);return fn(We(`methodCaller<(${a.map(e=>e.name)}) => ${i.name}>`,(t,i,a,l)=>{for(var u=0,d=0;d<e;++d)c[d]=s[d](l+u),u+=r;var f;switch(n){case 0:f=q.toValue(t).apply(null,c);break;case 2:f=Reflect.construct(q.toValue(t),c);break;case 3:f=c[0];break;case 1:f=q.toValue(t)[gn(i)](...c)}return mn(o,a,f)}))};function vn(e,t){return e>>>=0,t>>>=0,e=q.toValue(e),t=q.toValue(t),e==t}function yn(e,t){return e>>>=0,t>>>=0,e=q.toValue(e),t=q.toValue(t),q.toHandle(e[t])}function bn(e){e>>>=0,e>9&&(K[e+1]+=1)}function xn(e,t,n,r,i){return e>>>=0,t>>>=0,n>>>=0,r>>>=0,i>>>=0,dn[e](t,n,r,i)}function Sn(e){return e>>>=0,q.toHandle(gn(e))}function Cn(){return q.toHandle({})}function wn(e){e>>>=0,Oe(q.toValue(e)),Dt(e)}function Tn(e,t,n){e>>>=0,t>>>=0,n>>>=0,e=q.toValue(e),t=q.toValue(t),n=q.toValue(n),e[t]=n}var En=()=>4294901760,Dn=(e,t)=>Math.ceil(e/t)*t,On=e=>{var t=(e-Vn.buffer.byteLength+65535)/65536|0;try{return Vn.grow(t),oe(),1}catch{}};function kn(e){e>>>=0;var t=x.length,n=En();if(e>n)return!1;for(var r=1;r<=4;r*=2){var i=t*(1+.2/r);if(i=Math.min(i,e+100663296),On(Math.min(n,Dn(Math.max(e,i),65536))))return!0}return!1}var An=(e,t)=>{if(J)for(var n=e;n<e+t;n++){var r=dt(n);r&&J.set(r,n)}},J,jn=e=>(J||(J=new WeakMap,An(0,Q.length)),J.get(e)||0),Mn=[],Nn=()=>Mn.length?Mn.pop():Q.grow(1),Pn=(e,t)=>Q.set(e,t),Fn=e=>{let t=e.length;return[t%128|128,t>>7,...e]},In={i:127,p:127,j:126,f:125,d:124,e:111},Ln=e=>Fn(Array.from(e,e=>In[e])),Rn=(e,t)=>{var n=Uint8Array.of(0,97,115,109,1,0,0,0,1,...Fn([1,96,...Ln(t.slice(1)),...Ln(t[0]===`v`?``:t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),r=new WebAssembly.Module(n);return new WebAssembly.Instance(r,{e:{f:e}}).exports.f},Y=(e,t)=>{var n=jn(e);if(n)return n;var r=Nn();try{Pn(r,e)}catch(n){if(!(n instanceof TypeError))throw n;Pn(r,Rn(e,t))}return J.set(e,r),r},X=e=>{J.delete(dt(e)),Pn(e,null),Mn.push(e)};if(Ue(),ct(),i.noExitRuntime&&i.noExitRuntime,i.print&&i.print,i.printErr&&(g=i.printErr),i.wasmBinary&&(_=i.wasmBinary),i.arguments&&i.arguments,i.thisProgram&&i.thisProgram,i.preInit)for(typeof i.preInit==`function`&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.shift()();i.addFunction=Y,i.removeFunction=X;var zn,Bn,Z,Vn,Q;function Hn(e){zn=e.K,Bn=e.M,Z=e.N,Vn=e.I,Q=e.L}var Un={l:Ee,C:De,q:Ae,z:Ne,G:Pe,j:_t,i:Ct,a:Tt,E:kt,x:Mt,d:Pt,y:It,c:Lt,p:Rt,m:Bt,h:Vt,n:Ut,F:Zt,w:on,r:sn,k:cn,H:ln,u:un,g:_n,b:Dt,o:vn,B:yn,t:bn,f:xn,s:Sn,A:Cn,e:wn,v:Tn,D:kn};function Wn(e){e=Object.assign({},e);var t=e=>t=>e(t)>>>0;return e.K=t(e.K),e.M=t(e.M),e._emscripten_stack_alloc=t(e._emscripten_stack_alloc),e.emscripten_stack_get_current=(e=>()=>e()>>>0)(e.emscripten_stack_get_current),e}function Gn(){se();function e(){i.calledRun=!0,!v&&(ce(),ee?.(i),i.onRuntimeInitialized?.(),le())}i.setStatus?(i.setStatus(`Running...`),setTimeout(()=>{setTimeout(()=>i.setStatus(``),1),e()},1)):e()}var $=await _e();return Gn(),r=ae?i:new Promise((e,t)=>{ee=e,te=t}),r}export{n as default};
|