designix-uis 1.0.23 → 1.0.25

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.
Files changed (56) hide show
  1. package/dist/public/_app/immutable/chunks/B20lA_HD.js +1 -0
  2. package/dist/public/_app/immutable/chunks/BAXp3xY9.js +1 -0
  3. package/dist/public/_app/immutable/chunks/{Ro4-rfrB.js → BUKT9zL0.js} +2 -2
  4. package/dist/public/_app/immutable/chunks/BdJJnsaO.js +1 -0
  5. package/dist/public/_app/immutable/chunks/C3t1Fbv1.js +216 -0
  6. package/dist/public/_app/immutable/chunks/Cn3en5xC.js +1 -0
  7. package/dist/public/_app/immutable/chunks/{CSTDUB7c.js → D6f3qz9z.js} +1 -1
  8. package/dist/public/_app/immutable/chunks/DsnmJJEf.js +1 -0
  9. package/dist/public/_app/immutable/chunks/DzKmXKVN.js +2 -0
  10. package/dist/public/_app/immutable/chunks/ORUWwso2.js +3 -0
  11. package/dist/public/_app/immutable/chunks/{BAJXIW7S.js → gt6n6ul_.js} +1 -1
  12. package/dist/public/_app/immutable/entry/app.DuFnXSUm.js +2 -0
  13. package/dist/public/_app/immutable/entry/start.Bh4_FWrz.js +1 -0
  14. package/dist/public/_app/immutable/nodes/{0.Dk1NZOJ4.js → 0.Z-QC-dyl.js} +2 -2
  15. package/dist/public/_app/immutable/nodes/{1.BXpOc_LD.js → 1.D9dRN08t.js} +1 -1
  16. package/dist/public/_app/immutable/nodes/2.CxGER0Lm.js +1 -0
  17. package/dist/public/_app/immutable/nodes/3.DajQ1SjD.js +10 -0
  18. package/dist/public/_app/version.json +1 -1
  19. package/dist/public/gear/gear_bar.html +20 -20
  20. package/dist/public/gear/gear_epicycloid.html +20 -20
  21. package/dist/public/gear/gear_ring.html +20 -20
  22. package/dist/public/gear/gear_wheel.html +20 -20
  23. package/dist/public/heliostat/base.html +20 -20
  24. package/dist/public/heliostat/haxis_guidance.html +20 -20
  25. package/dist/public/heliostat/heliostat.html +20 -20
  26. package/dist/public/heliostat/heliostat_2.html +20 -20
  27. package/dist/public/heliostat/pole_static.html +20 -20
  28. package/dist/public/heliostat/rake.html +20 -20
  29. package/dist/public/heliostat/rake_stopper.html +20 -20
  30. package/dist/public/heliostat/ring.html +20 -20
  31. package/dist/public/heliostat/ring_guidance.html +20 -20
  32. package/dist/public/heliostat/rod.html +20 -20
  33. package/dist/public/heliostat/spider.html +20 -20
  34. package/dist/public/heliostat/surface.html +20 -20
  35. package/dist/public/heliostat/swing.html +20 -20
  36. package/dist/public/heliostat/trapeze.html +20 -20
  37. package/dist/public/heliostat/vaxis.html +20 -20
  38. package/dist/public/heliostat/vaxis_guidance.html +20 -20
  39. package/dist/public/heliostat/vaxis_holder.html +20 -20
  40. package/dist/public/index.html +18 -18
  41. package/package.json +6 -6
  42. package/dist/public/_app/immutable/assets/_layout.D3ep0F2Z.css +0 -1
  43. package/dist/public/_app/immutable/assets/_page.BTCojHq8.css +0 -1
  44. package/dist/public/_app/immutable/assets/_page.DKegludn.css +0 -1
  45. package/dist/public/_app/immutable/chunks/BV-6sV8s.js +0 -1
  46. package/dist/public/_app/immutable/chunks/BZKKtHJm.js +0 -1
  47. package/dist/public/_app/immutable/chunks/CvbaRLDH.js +0 -3
  48. package/dist/public/_app/immutable/chunks/NZTpNUN0.js +0 -1
  49. package/dist/public/_app/immutable/chunks/em6s37JS.js +0 -1
  50. package/dist/public/_app/immutable/chunks/gQGuvN5u.js +0 -216
  51. package/dist/public/_app/immutable/chunks/p-bDl7sE.js +0 -1
  52. package/dist/public/_app/immutable/chunks/vFk_Fhzd.js +0 -1
  53. package/dist/public/_app/immutable/entry/app.BWJ0nM3W.js +0 -2
  54. package/dist/public/_app/immutable/entry/start.hgv5ZWWK.js +0 -1
  55. package/dist/public/_app/immutable/nodes/2.DbkECoJr.js +0 -1
  56. package/dist/public/_app/immutable/nodes/3.BVAP6CmT.js +0 -10
@@ -0,0 +1 @@
1
+ import{D as L,E as A,F as Y,J as x,X as B,Y as F,Z as U,_ as q,$ as D,a0 as C,K as N,a1 as M,a2 as Z,a3 as $,a4 as k,a5 as j,N as w,a6 as z,a7 as G,n as m,a8 as H,a9 as y,aa as J,ab as K,ac as Q,Q as R,V,ad as X,ae as p,af as W,ag as aa,ah as ea,ai as ra,aj as ia,m as na,ak as ta,al as sa,am as fa,an as ua}from"./DzKmXKVN.js";function la(a,r,u=!1){A&&Y();var s=a,n=null,e=null,_=Z,c=u?x:0,o=!1;const b=(d,t=!0)=>{o=!0,v(t,d)};var f=null;function E(){f!==null&&(f.lastChild.remove(),s.before(f),f=null);var d=_?n:e,t=_?e:n;d&&k(d),t&&j(t,()=>{_?e=null:n=null})}const v=(d,t)=>{if(_===(_=d))return;let I=!1;if(A){const P=B(s)===F;!!_===P&&(s=U(),q(s),D(!1),I=!0)}var S=$(),l=s;if(S&&(f=document.createDocumentFragment(),f.append(l=C())),_?n??=t&&N(()=>t(l)):e??=t&&N(()=>t(l)),S){var g=M,i=_?n:e,h=_?e:n;i&&g.skipped_effects.delete(i),h&&g.skipped_effects.add(h),g.add_callback(E)}else E();I&&D(!0)};L(()=>{o=!1,r(b),o||v(null,null)},c),A&&(s=w)}function O(a,r){return a===r||a?.[y]===r}function ca(a={},r,u,s){return z(()=>{var n,e;return G(()=>{n=e,e=[],m(()=>{a!==u(...e)&&(r(a,...e),n&&O(u(...n),a)&&r(null,...n))})}),()=>{H(()=>{e&&O(u(...e),a)&&r(null,...e)})}}),a}let T=!1;function _a(a){var r=T;try{return T=!1,[a(),T]}finally{T=r}}function va(a,r,u,s){var n=!na||(u&ta)!==0,e=(u&ia)!==0,_=(u&fa)!==0,c=s,o=!0,b=()=>(o&&(o=!1,c=_?m(s):s),c),f;if(e){var E=y in a||ua in a;f=J(a,r)?.set??(E&&r in a?i=>a[r]=i:void 0)}var v,d=!1;e?[v,d]=_a(()=>a[r]):v=a[r],v===void 0&&s!==void 0&&(v=b(),f&&(n&&K(),f(v)));var t;if(n?t=()=>{var i=a[r];return i===void 0?b():(o=!0,i)}:t=()=>{var i=a[r];return i!==void 0&&(c=void 0),i===void 0?c:i},n&&(u&Q)===0)return t;if(f){var I=a.$$legacy;return(function(i,h){return arguments.length>0?((!n||!h||I||d)&&f(h?t():i),i):t()})}var S=!1,l=((u&sa)!==0?V:X)(()=>(S=!1,t()));e&&R(l);var g=ea;return(function(i,h){if(arguments.length>0){const P=h?R(l):n&&e?p(i):i;return W(l,P),S=!0,c!==void 0&&(c=P),i}return aa&&S||(g.f&ra)!==0?l.v:R(l)})}export{ca as b,la as i,va as p};
@@ -0,0 +1 @@
1
+ const s=globalThis.__sveltekit_tq1kpi?.base??"",t=globalThis.__sveltekit_tq1kpi?.assets??s;export{t as a,s as b};
@@ -1,4 +1,4 @@
1
- import{p as t,a as z,b as ve,c as xe,i as ue,f as L,d as J,g as B,E as ce,h as G,r as he,j as P,k as le,l as de,m as Pe,n as Y,o as fe,q as Le,t as He,u as Mt,v as we,w as Ze,x as Et,y as _e,z as Be,A as ye,B as me,S as Ae,C as bt}from"./gQGuvN5u.js";var At=class{base_center_x;base_center_y;base_radius;initial_angle;right_nleft;constructor(s,e,S,o,i){this.base_center_x=s,this.base_center_y=e,this.base_radius=S,this.initial_angle=o,this.right_nleft=i}angleSign(){return this.right_nleft?1:-1}lFromU(s){return this.base_radius*Math.sqrt(1+s**2)}wFromU(s){if(s<0)throw`err729: involute parameter au ${s} is negative`;if(Math.abs(s)>Math.PI/2)throw`err730: involute parameter au ${s} is larger than PI/2`;return this.angleSign()*(s-Math.atan(s))}w2FromU(s){return this.initial_angle+this.wFromU(s)}ptc(s){const e=this.lFromU(s),S=this.w2FromU(s),o=this.base_center_x+Math.cos(S)*e,i=this.base_center_y+Math.sin(S)*e;return[o,i]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let S=Math.PI/3,o=S/2,i=this.wFromU(S),d=0;for(;Math.abs(i-s)>1e-4;)i<s?S+=o:S-=o,i=this.wFromU(S),o=o/2,d+=1;return console.log(`dbg072: uFromWslow itcnt ${d}`),S}laptc(s,e,S,o){if(Math.sign(e)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${e} not compatible with right_nleft ${this.right_nleft}`;const i=s+e,d=this.base_center_x+Math.cos(i)*this.base_radius,c=this.base_center_y+Math.sin(i)*this.base_radius,n=i-this.angleSign()*Math.PI/2,l=S*this.base_radius,h=d+Math.cos(n)*l,a=c+Math.sin(n)*l,g=this.lFromU(S)*o,r=S,u=Math.cos(r)*g,f=Math.sin(r)*g;return[h,a,u,f]}};function Me(s,e,S,o,i){return new At(s,e,S,o,i)}var kt=class{mod=1;TN=23;as=1;cx=0;cy=0;brr=50;blr=50;ar=54;pr=53;dr=52;br=51;bRound=1;adt=.5;initAngle=0;axisAngle=0;involArcPairs=1;skinThickness=0;involuteR=Me(0,0,50,0,!0);involuteL=Me(0,0,50,0,!1);rud=0;rup=0;rua=0;rwd=0;rwp=0;rwa=0;lud=0;lup=0;lua=0;lwd=0;lwp=0;lwa=0;msg;initStep=0;constructor(){this.mod=1,this.msg="",this.initStep=0}incInitStep(s){if(this.initStep+1!==s)throw`err834: incInitStep initStep ${this.initStep} and target ${s} are not compatible`;this.initStep=s}checkInitStep(s,e){if(this.initStep<s)throw`err835: checkInitStep for ${e} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,e){this.incInitStep(1),this.mod=s,this.TN=e,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,e){this.incInitStep(2),this.cx=s,this.cy=e}set3CircleRadius(s,e,S,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*e,this.br=this.dr-this.mod*S,this.bRound=o}set4BaseCircles(s,e){this.incInitStep(4),this.brr=s,this.blr=e}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,e){this.incInitStep(6),this.initAngle=s,this.axisAngle=e}set7InvoluteDetails(s,e){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=e}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[P(this.cx,this.cy,this.ar,"Azure"),P(this.cx,this.cy,this.pr,"Azure"),P(this.cx,this.cy,this.dr,"Azure"),P(this.cx,this.cy,this.br,"Azure"),P(this.cx,this.cy,this.brr,"CornFlowerBlue"),P(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=Me(this.cx,this.cy,this.brr,0,!0),this.dr>this.brr?this.rud=this.involuteR.uFromL(this.dr):this.rud=0,this.rup=this.involuteR.uFromL(this.pr),this.rua=this.involuteR.uFromL(this.ar),this.rwd=this.involuteR.wFromU(this.rud),this.rwp=this.involuteR.wFromU(this.rup),this.rwa=this.involuteR.wFromU(this.rua),this.involuteL=Me(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.lud=0,this.lup=this.involuteL.uFromL(this.pr),this.lua=this.involuteL.uFromL(this.ar),this.lwd=this.involuteL.wFromU(this.lud),this.lwp=this.involuteL.wFromU(this.lup),this.lwa=this.involuteL.wFromU(this.lua)}checkProfileConditions(){const s=this.as*this.adt,e=this.rwa-this.rwp,S=Math.abs(this.lwa-this.lwp),o=s-e-S;if(o<0)throw`err554: No remaining Addendum reserve ${L(o)}
1
+ import{p as t,a as z,b as ve,c as xe,i as ue,f as L,d as J,g as B,E as ce,h as G,r as he,j as P,k as le,l as de,m as Pe,n as Y,o as fe,q as Le,t as He,u as Mt,v as we,w as Ze,x as Et,y as _e,z as Be,A as ye,B as me,S as Ae,C as bt}from"./C3t1Fbv1.js";var At=class{base_center_x;base_center_y;base_radius;initial_angle;right_nleft;constructor(s,e,S,o,i){this.base_center_x=s,this.base_center_y=e,this.base_radius=S,this.initial_angle=o,this.right_nleft=i}angleSign(){return this.right_nleft?1:-1}lFromU(s){return this.base_radius*Math.sqrt(1+s**2)}wFromU(s){if(s<0)throw`err729: involute parameter au ${s} is negative`;if(Math.abs(s)>Math.PI/2)throw`err730: involute parameter au ${s} is larger than PI/2`;return this.angleSign()*(s-Math.atan(s))}w2FromU(s){return this.initial_angle+this.wFromU(s)}ptc(s){const e=this.lFromU(s),S=this.w2FromU(s),o=this.base_center_x+Math.cos(S)*e,i=this.base_center_y+Math.sin(S)*e;return[o,i]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let S=Math.PI/3,o=S/2,i=this.wFromU(S),d=0;for(;Math.abs(i-s)>1e-4;)i<s?S+=o:S-=o,i=this.wFromU(S),o=o/2,d+=1;return console.log(`dbg072: uFromWslow itcnt ${d}`),S}laptc(s,e,S,o){if(Math.sign(e)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${e} not compatible with right_nleft ${this.right_nleft}`;const i=s+e,d=this.base_center_x+Math.cos(i)*this.base_radius,c=this.base_center_y+Math.sin(i)*this.base_radius,n=i-this.angleSign()*Math.PI/2,l=S*this.base_radius,h=d+Math.cos(n)*l,a=c+Math.sin(n)*l,g=this.lFromU(S)*o,r=S,u=Math.cos(r)*g,f=Math.sin(r)*g;return[h,a,u,f]}};function Me(s,e,S,o,i){return new At(s,e,S,o,i)}var kt=class{mod=1;TN=23;as=1;cx=0;cy=0;brr=50;blr=50;ar=54;pr=53;dr=52;br=51;bRound=1;adt=.5;initAngle=0;axisAngle=0;involArcPairs=1;skinThickness=0;involuteR=Me(0,0,50,0,!0);involuteL=Me(0,0,50,0,!1);rud=0;rup=0;rua=0;rwd=0;rwp=0;rwa=0;lud=0;lup=0;lua=0;lwd=0;lwp=0;lwa=0;msg;initStep=0;constructor(){this.mod=1,this.msg="",this.initStep=0}incInitStep(s){if(this.initStep+1!==s)throw`err834: incInitStep initStep ${this.initStep} and target ${s} are not compatible`;this.initStep=s}checkInitStep(s,e){if(this.initStep<s)throw`err835: checkInitStep for ${e} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,e){this.incInitStep(1),this.mod=s,this.TN=e,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,e){this.incInitStep(2),this.cx=s,this.cy=e}set3CircleRadius(s,e,S,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*e,this.br=this.dr-this.mod*S,this.bRound=o}set4BaseCircles(s,e){this.incInitStep(4),this.brr=s,this.blr=e}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,e){this.incInitStep(6),this.initAngle=s,this.axisAngle=e}set7InvoluteDetails(s,e){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=e}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[P(this.cx,this.cy,this.ar,"Azure"),P(this.cx,this.cy,this.pr,"Azure"),P(this.cx,this.cy,this.dr,"Azure"),P(this.cx,this.cy,this.br,"Azure"),P(this.cx,this.cy,this.brr,"CornFlowerBlue"),P(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=Me(this.cx,this.cy,this.brr,0,!0),this.dr>this.brr?this.rud=this.involuteR.uFromL(this.dr):this.rud=0,this.rup=this.involuteR.uFromL(this.pr),this.rua=this.involuteR.uFromL(this.ar),this.rwd=this.involuteR.wFromU(this.rud),this.rwp=this.involuteR.wFromU(this.rup),this.rwa=this.involuteR.wFromU(this.rua),this.involuteL=Me(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.lud=0,this.lup=this.involuteL.uFromL(this.pr),this.lua=this.involuteL.uFromL(this.ar),this.lwd=this.involuteL.wFromU(this.lud),this.lwp=this.involuteL.wFromU(this.lup),this.lwa=this.involuteL.wFromU(this.lua)}checkProfileConditions(){const s=this.as*this.adt,e=this.rwa-this.rwp,S=Math.abs(this.lwa-this.lwp),o=s-e-S;if(o<0)throw`err554: No remaining Addendum reserve ${L(o)}
2
2
  `;const i=this.as*(1-this.adt),d=this.rwp-this.rwd,c=Math.abs(this.lwp-this.lwd),n=i-d-c;if(n<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${L(n)} compare to bRound ${L(this.bRound)}
3
3
  `}getToothRef(){const s=6*this.involArcPairs,e=0;this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles();const S=(this.rua-this.rud)/s,o=(this.lua-this.lud)/s,i=this.initAngle+e*this.as,d=Me(this.cx,this.cy,this.brr,i-this.rwp,!0),[c,n]=d.ptc(this.rud+0*S),l=J(c,n,"Gold");for(let _=0;_<s;_++){const[g,r]=d.ptc(this.rud+(_+1)*S);l.addSegStrokeA(g,r)}const h=i+this.as*this.adt,a=Me(this.cx,this.cy,this.blr,h-this.lwp,!1);for(let _=0;_<s+1;_++){const[g,r]=a.ptc(this.lud+(s-_)*o);l.addSegStrokeA(g,r)}return l.closeSegStroke(),l}getProfile(){this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles(),this.checkProfileConditions();const s=this.rwd-this.rwp,e=this.lwd-this.lwp,S=this.dr>this.brr?this.dr:this.brr,o=this.dr>this.blr?this.dr:this.blr;if(this.bRound>S-this.br)throw`err409: getProfile bRound ${L(this.bRound)} too large for erdr ${L(S)} and br ${L(this.br)}`;if(this.bRound>o-this.br)throw`err408: getProfile bRound ${L(this.bRound)} too large for eldr ${L(o)} and br ${L(this.br)}`;const i=(this.rua-this.rud)/this.involArcPairs,d=(this.lua-this.lud)/this.involArcPairs,c=de(this.cx,this.cy),n=c.translatePolar(this.initAngle+s,this.br),l=J(n.cx,n.cy);for(let h=0;h<this.TN;h++){const a=this.initAngle+h*this.as,_=c.translatePolar(a+s,this.br);l.addSegStrokeA(_.cx,_.cy).addCornerRounded(this.bRound);const g=Me(this.cx,this.cy,this.brr,a-this.rwp,!0),[r,u]=g.ptc(this.rud),f=g.ptcta(this.rud),H=de(r,u).translatePolar(f-Math.PI/2,this.skinThickness);l.addSegStrokeA(H.cx,H.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.rud+x*i,[C,$]=g.ptc(O+i),m=g.ptcta(O),U=g.ptcta(O+i)+Math.PI,F=de(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,U)}const k=a+this.as*this.adt,M=Me(this.cx,this.cy,this.blr,k-this.lwp,!1),D=this.lud+this.involArcPairs*d,[b,N]=M.ptc(D),R=M.ptcta(D)+Math.PI,v=de(b,N).translatePolar(R-Math.PI/2,this.skinThickness);l.addSegStrokeA(v.cx,v.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.lud+(this.involArcPairs-x)*d,[C,$]=M.ptc(O-d),m=M.ptcta(O)+Math.PI,U=M.ptcta(O-d),F=de(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,U)}const E=c.translatePolar(k+e,this.br);l.addSegStrokeA(E.cx,E.cy).addCornerRounded(this.bRound)}return l.closeSegStroke(),l}getMsg(){return this.msg}};function Ke(){return new kt}function Rt(s,e,S,o){s.checkInitStep(1,"helper.gw2center-1"),e.checkInitStep(1,"helper.gw2center-2");const i=s.pr+e.pr+o,d=s.cx+i*Math.cos(S),c=s.cy+i*Math.sin(S);return[d,c,i]}function Nt(s,e,S,o,i,d,c,n,l,h,a){s.checkInitStep(3,"helper.baseCircles-1"),e.checkInitStep(3,"helper.baseCircles-2");let _=S,g=i,r=o,u=d;const f=s.pr+e.pr,H=h,k=a;switch(H){case 0:e.TN>s.TN?(_=s.dr,g=_*e.TN/s.TN):(g=e.dr,_=g*s.TN/e.TN);break;case 1:g=_*e.TN/s.TN;break;case 2:_=g*s.TN/e.TN;break;case 3:_=f*s.TN/(s.TN+e.TN)*Math.cos(Pe(c)),g=_*e.TN/s.TN;break;case 4:break;default:console.log(`err337: involROpt2 case ${H} is not implemented!`)}switch(k){case 0:e.TN>s.TN?(r=s.dr,u=r*e.TN/s.TN):(u=e.dr,r=u*s.TN/e.TN);break;case 1:u=r*e.TN/s.TN;break;case 2:r=u*s.TN/e.TN;break;case 3:r=f*s.TN/(s.TN+e.TN)*Math.cos(Pe(n)),u=r*e.TN/s.TN;break;case 4:break;default:console.log(`err358: involLOpt2 case ${k} is not implemented!`)}return l===1&&(r=_,u=g),[_,r,g,u]}var Ct=class{gw1;gw2;initAngle1;angleCenterCenter;interAxis;rightLeftCenter2;msg;apr;apl;lBDr=0;lBDl=0;laStartRr1=0;laStartRr2=0;laStartRl1=0;laStartRl2=0;aFODr1=0;aFODr2=0;aFODl1=0;aFODl2=0;lasr1=0;lasr2=0;lasl1=0;lasl2=0;firstToothUr1=0;firstToothUl1=0;ftdr1=0;ftdl1=0;constructor(s,e,S,o,i,d){this.gw1=s,this.gw2=e,this.initAngle1=S,this.angleCenterCenter=o,this.interAxis=i,this.rightLeftCenter2=d,this.msg="",this.apr=0,this.apl=0}check1(){this.gw1.checkInitStep(4,"ActionLine.check1-1"),this.gw2.checkInitStep(4,"ActionLine.check1-2"),this.interAxis>this.gw1.ar+this.gw2.ar&&(this.msg+=`warn333: initAngle2 interAxis ${L(this.interAxis)} is too large compare to gw1.ar ${L(this.gw1.ar)} and gw2.ar ${L(this.gw2.ar)}
4
4
  `),_e(this.gw1.brr*this.gw2.TN-this.gw2.brr*this.gw1.TN)!==0&&(this.msg+=`warn407: right ratios differ N1/N2 = ${this.gw1.TN} / ${this.gw2.TN} = ${L(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${L(this.gw1.brr)}/${L(this.gw2.brr)} = ${L(this.gw1.brr/this.gw2.brr)}
@@ -30,7 +30,7 @@ import{p as t,a as z,b as ve,c as xe,i as ue,f as L,d as J,g as B,E as ce,h as G
30
30
  `,o.calcErr=!1}catch(d){o.logstr+=d,console.log(d)}return o}var zt={pTitle:"Gear-epicycloid",pDescription:"The epicycloid gear system",pDef:st,pGeom:mt};function Gt(s){let e="";const S=s.PHD1/2,o=s.PHD5/2,i=2*Math.asin(s.PHR4/S),d=2*Math.asin(s.PHL2/(2*o)),c=2*Math.PI/s.PHN1-d,n=s.PHL2/2,l=Math.sqrt(o**2-n**2)-S,h=Math.sqrt(n**2+l**2),a=Math.acos(l/h),_=Math.acos(s.PHR4/h),g=Math.PI-a-_;if(o<S+s.PHR4)throw`err211: PHD5 ${s.PHD5} too small compare to PHD1 ${s.PHD1} or PHR4 ${s.PHR4}`;if(c<d)throw`err212: PHL2 ${s.PHL2} too large compare to PHN1 ${s.PHN1}`;if(s.PHD3>2*s.PHR4)throw`err213: PHD3 ${s.PHD3} too large compare to PHR4 ${s.PHR4}`;g>Math.PI/2-i&&(e+=`warn345: PHL2 is quiet small ${L(s.PHL2)} mm
31
31
  `),e+=`petal angle: ${L(he(d))} degree
32
32
  `,e+=`hollow angle: ${L(he(c))} degree
33
- `;const r=de(0,0),f=de(o,0).rotate(r,-d/2),H=de(S,0),k=de(S-s.PHR4,0),M=k.rotate(H,g),D=k.rotate(H,-g),b=J(f.cx,f.cy).addCornerRounded(s.PHR6).addSegStrokeA(M.cx,M.cy).addPointA(S-s.PHR4,0).addPointA(D.cx,D.cy).addSegArc2().addSegStrokeAP(d/2,o).addCornerRounded(s.PHR6).addPointAP(d/2+c/2,o).addPointAP(d/2+c,o).addSegArc2(),N=J(f.cx,f.cy),R=[...Array(s.PHN1).keys()].map(v=>v*(d+c));for(const v of R)N.addPartial(b.rotate(0,0,v));return[e,N,R]}function it(s){const e="",S=s.D1/2,o=s.D2/2,i=s.D4/2,d=2*Math.PI/s.N1,c=s.L1/2,n=Math.sqrt(o**2-c**2),l=Math.asin(c/o),h=S-n,a=Math.atan2(c,h),_=Math.sqrt(c**2+h**2),g=Math.acos(i/_),r=a+g,u=(d-2*l)/2;if(u<0)throw`err464: N1 ${s.N1} is too large compare to D2 ${s.D2}, L1 ${s.L1}`;if(S<o)throw`err465: D2 ${s.D2} is too large compare to D1 ${s.D1}`;const f=J(n,-c),H=de(0,0),k=de(o,0),M=de(S,0),b=de(S-i,0).rotate(M,r),N=k.rotate(H,l+u),R=k.rotate(H,d-l),v=J(n,-c).addCornerRounded(s.R5).addSegStrokeA(b.cx,b.cy).addPointA(S+i,0).addPointA(b.cx,-b.cy).addSegArc2().addSegStrokeA(n,c).addCornerRounded(s.R5).addPointA(N.cx,N.cy).addPointA(R.cx,R.cy).addSegArc2();for(let E=0;E<s.N1;E++)f.addPartial(v.rotate(0,0,E*d));return[e,f,d]}function Oe(s,e){let S="";const o=s.SD2/2,i=o+s.SE1,d=2*i;let c=!1,n=-o,l=-i;if(e&&(c=!0,n=i,l=o),s.SL2<i)throw`err421: SL2 ${s.SL2} is too small compare to SD2 ${s.SD2} and SE1 ${s.SE1}`;S+=`info309: spring height: ${L(s.SL1+d)} length: ${L(s.SN1*2*(s.SD2+s.SE1))}
33
+ `;const r=de(0,0),f=de(o,0).rotate(r,-d/2),H=de(S,0),k=de(S-s.PHR4,0),M=k.rotate(H,g),D=k.rotate(H,-g),b=J(f.cx,f.cy).addCornerRounded(s.PHR6).addSegStrokeA(M.cx,M.cy).addPointA(S-s.PHR4,0).addPointA(D.cx,D.cy).addSegArc2().addSegStrokeAP(d/2,o).addCornerRounded(s.PHR6).addPointAP(d/2+c/2,o).addPointAP(d/2+c,o).addSegArc2(),N=J(f.cx,f.cy),R=[...Array(s.PHN1).keys()].map(v=>v*(d+c));for(const v of R)N.addPartial(b.rotate(0,0,v));return[e,N,R]}function it(s){const S=s.D1/2,o=s.D2/2,i=s.D4/2,d=2*Math.PI/s.N1,c=s.L1/2,n=Math.sqrt(o**2-c**2),l=Math.asin(c/o),h=S-n,a=Math.atan2(c,h),_=Math.sqrt(c**2+h**2),g=Math.acos(i/_),r=a+g,u=(d-2*l)/2;if(u<0)throw`err464: N1 ${s.N1} is too large compare to D2 ${s.D2}, L1 ${s.L1}`;if(S<o)throw`err465: D2 ${s.D2} is too large compare to D1 ${s.D1}`;const f=J(n,-c),H=de(0,0),k=de(o,0),M=de(S,0),b=de(S-i,0).rotate(M,r),N=k.rotate(H,l+u),R=k.rotate(H,d-l),v=J(n,-c).addCornerRounded(s.R5).addSegStrokeA(b.cx,b.cy).addPointA(S+i,0).addPointA(b.cx,-b.cy).addSegArc2().addSegStrokeA(n,c).addCornerRounded(s.R5).addPointA(N.cx,N.cy).addPointA(R.cx,R.cy).addSegArc2();for(let E=0;E<s.N1;E++)f.addPartial(v.rotate(0,0,E*d));return["",f,d]}function Oe(s,e){let S="";const o=s.SD2/2,i=o+s.SE1,d=2*i;let c=!1,n=-o,l=-i;if(e&&(c=!0,n=i,l=o),s.SL2<i)throw`err421: SL2 ${s.SL2} is too small compare to SD2 ${s.SD2} and SE1 ${s.SE1}`;S+=`info309: spring height: ${L(s.SL1+d)} length: ${L(s.SN1*2*(s.SD2+s.SE1))}
34
34
  `;const h=J(0,0);for(let a=0;a<s.SN1;a++)h.addSegStrokeR(0,-s.SL1).addPointR(2*n,0).addSegArc(Math.abs(n),!1,c),a<s.SN1-1?h.addSegStrokeR(0,s.SL1).addPointR(2*l,0).addSegArc(Math.abs(l),!1,!c):s.Send===1?h.addSegStrokeR(0,s.SL2):h.addSegStrokeR(0,s.SL2-i).addPointR(2*l,0).addSegArc(Math.abs(l),!1,!c);s.Send===1?h.addSegStrokeR(-s.SE1,0):h.addSegStrokeR(s.SE1,0);for(let a=0;a<s.SN1;a++)a>0?h.addPointR(-2*n,0).addSegArc(Math.abs(n),!1,c).addSegStrokeR(0,-s.SL1):s.Send===1?h.addSegStrokeR(0,-s.SL2):h.addPointR(-2*n,0).addSegArc(Math.abs(n),!1,c).addSegStrokeR(0,-s.SL2+i),h.addPointR(-2*l,0).addSegArc(Math.abs(l),!1,!c).addSegStrokeR(0,s.SL1);return[S,h]}function Ut(s){let e="";const S=s.D6/2,o=2*Math.PI/s.N2,i=s.E2/2,d=2*Math.asin(i/S),c=(o-d)/2,l=(s.N2<3?0:Math.PI/s.N2)+Pe(s.SA1),h=Math.PI/2-l,a=-Math.PI/2+l,_=s.SD1/2;if(c<0)throw`err564: N2 ${s.N2} is too large compare to D6 ${s.D6}, E2 ${s.E2}`;if(s.orientation===2&&s.N2%2===1)throw`err565: N2 ${s.N2} is odd and orientation is alt`;const[g,r]=Oe(s,!1),[,u]=Oe(s,!0);e+=g;const f=de(0,-S),H=de(0,0),k=f.rotate(H,d),M=f.translate(0,s.L2),D=M.translate(-_,0),b=D.translate(0,_),N=D.translate(0,_+s.SE1),R=N.rotate(D,h),v=M.translate(0,_+s.SE1).translate(s.SE1,0),E=f.rotate(H,-d),x=M.translate(_,0),O=x.translate(0,_),C=O.rotate(x,a),$=x.translate(0,_+s.SE1),m=M.translate(0,_+s.SE1).translate(-s.SE1,0),U=J(k.cx,k.cy).addSegStrokeA(v.cx,v.cy).addSegStrokeA(N.cx,N.cy),F=J(N.cx,N.cy).addPointA(R.cx,R.cy).addSegArc(_+s.SE1,!1,!0);F.addPartial(r.rotate(0,0,-l).translate(R.cx,R.cy)),F.addPointA(b.cx,b.cy).addPointA(M.cx,M.cy).addSegArc2().addSegStrokeA(f.cx,f.cy),U.addPartial(F);const T=J(f.cx,f.cy).addSegStrokeA(M.cx,M.cy).addPointA(O.cx,O.cy).addPointA(C.cx,C.cy).addSegArc2();T.addPartial(u.rotate(0,0,l).translate(C.cx,C.cy)),T.addPointA($.cx,$.cy).addSegArc(_+s.SE1,!1,!0);const p=J($.cx,$.cy).addSegStrokeA(m.cx,m.cy).addSegStrokeA(E.cx,E.cy),W=J(f.cx,f.cy).addPartial(T).addPartial(p),I=J(S,0);if(s.orientation===2)for(let Z=0;Z<s.N2/2;Z++){I.addPointAP(-2*Z*o-2*c,S).addPointAP(-2*Z*o-4*c,S).addSegArc2(),I.addCornerRounded(s.R7);const se=Math.PI/2-(2*Z+2)*o,V=se+2*d;I.addPartial(T.rotate(0,0,V));const ee=F.rotate(0,0,se),w=ee.getFirstPoint();I.addCornerRounded(s.R7),I.addSegStrokeA(w.cx,w.cy),I.addCornerRounded(s.R7),I.addPartial(ee),I.addCornerRounded(s.R7)}else for(let Z=0;Z<s.N2;Z++)I.addPointAP(-Z*o-c,S).addPointAP(-Z*o-2*c,S).addSegArc2().addCornerRounded(s.R7),s.orientation===0?I.addPartial(W.rotate(0,0,Math.PI/2-(Z+1)*o+d)):s.orientation===1&&I.addPartial(U.rotate(0,0,Math.PI/2-(Z+1)*o)),I.addCornerRounded(s.R7);return[e,I]}var nt={partName:"vaxis_holder",params:[t("PHD1","mm",700,1,2e3,1),t("PHD2","mm",900,1,4e3,1),t("PHD5","mm",800,1,4e3,1),t("PHN1","holes",6,1,24,1),z("screw holes"),t("PHD3","mm",40,1,100,1),t("PHR4","mm",40,1,100,1),t("PHL2","mm",120,1,400,1),t("PHR6","mm",20,0,400,1),z("section"),t("PHE1","mm",10,1,80,1),t("PHH1","mm",50,1,200,1),t("PHA","degree",5,-45,45,.1),t("PHL1","mm",300,1,500,1),t("PHE2","mm",10,1,80,1),t("PHE3","mm",10,1,80,1),z("for reuse"),ve("withOuterCone",!0)],paramSvg:{PHD1:"vaxis_holder_top.svg",PHD2:"vaxis_holder_top.svg",PHD5:"vaxis_holder_top.svg",PHD3:"vaxis_holder_top.svg",PHR4:"vaxis_holder_top.svg",PHN1:"vaxis_holder_top.svg",PHL2:"vaxis_holder_top.svg",PHR6:"vaxis_holder_top.svg",PHE1:"vaxis_holder_section.svg",PHH1:"vaxis_holder_section.svg",PHA:"vaxis_holder_section.svg",PHL1:"vaxis_holder_section.svg",PHE2:"vaxis_holder_section.svg",PHE3:"vaxis_holder_top.svg",withOuterCone:"vaxis_holder_section.svg"},sim:{tMax:180,tStep:.5,tUpdate:500}};function qt(s,e,S=""){const o=ue(nt.partName+S),i=B(),d=B(),c=B(),n=B(),l=B();o.logstr+=`${o.partName} simTime: ${s}
35
35
  `;try{const h=Pe(e.PHA),a=e.PHD1/2,_=e.PHD2/2,g=e.PHD3/2,r=e.PHD5/2,u=_+e.PHL1/2*Math.sin(h),f=_-e.PHL1/2*Math.sin(h),H=e.PHL1*Math.cos(h),k=_-e.PHE2/Math.cos(h)+e.PHE1/2*Math.tan(h),M=_-e.PHE2/Math.cos(h)-e.PHE1/2*Math.tan(h),D=Math.min(k,M),b=(e.PHL1-e.PHE1/Math.cos(h))/2,N=_-e.PHE2/Math.cos(h);if(D<r)throw`err210: PHD5 ${e.PHD5} too large compare to PHE2 ${e.PHE2} or PHA ${e.PHA}`;o.logstr+=`vaxis_holder's height: ${L(H)} mm
36
36
  `,o.logstr+=`vaxis_holder outerD1: ${L(2*u)} mm
@@ -0,0 +1 @@
1
+ import{l as a,u as g,g as e,h as i,i as v,j as d,k as f,m as y,n as c,o as b,q as x,v as h,w as C,x as k,y as S,z as w,A,B as j,C as z}from"./DzKmXKVN.js";import{c as D}from"./D6f3qz9z.js";function E(){return i===null&&v(),(i.ac??=new AbortController).signal}function _(t){e===null&&a(),y&&e.l!==null?u(e).m.push(t):g(()=>{const n=c(t);if(typeof n=="function")return n})}function M(t){e===null&&a(),_(()=>()=>c(t))}function O(t,n,{bubbles:l=!1,cancelable:s=!1}={}){return new CustomEvent(t,{detail:n,bubbles:l,cancelable:s})}function P(){const t=e;return t===null&&a(),(n,l,s)=>{const o=t.s.$$events?.[n];if(o){const p=d(o)?o.slice():[o],r=O(n,l,s);for(const m of p)m.call(t.x,r);return!r.defaultPrevented}return!0}}function U(t){e===null&&a(),e.l===null&&f(),u(e).b.push(t)}function $(t){e===null&&a(),e.l===null&&f(),u(e).a.push(t)}function u(t){var n=t.l;return n.u??={a:[],b:[],m:[]}}const R=Object.freeze(Object.defineProperty({__proto__:null,afterUpdate:$,beforeUpdate:U,createEventDispatcher:P,createRawSnippet:D,flushSync:b,getAbortSignal:E,getAllContexts:x,getContext:h,hasContext:C,hydrate:k,mount:S,onDestroy:M,onMount:_,setContext:w,settled:A,tick:j,unmount:z,untrack:c},Symbol.toStringTag,{value:"Module"}));export{M as a,_ as o,R as s};