designix-uis 1.0.19 → 1.0.21

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 (54) hide show
  1. package/dist/designix-uis.js +8 -8
  2. package/dist/public/_app/immutable/chunks/5B5AdHSA.js +3 -0
  3. package/dist/public/_app/immutable/chunks/9bBEqoCM.js +1 -0
  4. package/dist/public/_app/immutable/chunks/{CzoZ8ljP.js → B8G2Sjpx.js} +1 -1
  5. package/dist/public/_app/immutable/chunks/BMeoROdI.js +1 -0
  6. package/dist/public/_app/immutable/chunks/Cd9UBKFE.js +1 -0
  7. package/dist/public/_app/immutable/chunks/D7zLLAQ4.js +1 -0
  8. package/dist/public/_app/immutable/chunks/DUh4Zae0.js +216 -0
  9. package/dist/public/_app/immutable/chunks/{Db6fmjrM.js → DWPiqmJ1.js} +1 -1
  10. package/dist/public/_app/immutable/chunks/K45ZhT9R.js +1 -0
  11. package/dist/public/_app/immutable/chunks/{Btf5jqtv.js → ftxVTuWM.js} +1 -1
  12. package/dist/public/_app/immutable/chunks/{B3Efbb8S.js → s_uONAcq.js} +1 -1
  13. package/dist/public/_app/immutable/entry/{app.DSA-CYHg.js → app.B5CS7YKv.js} +2 -2
  14. package/dist/public/_app/immutable/entry/start.c5BT8wWD.js +1 -0
  15. package/dist/public/_app/immutable/nodes/0.BgkqF2QY.js +2 -0
  16. package/dist/public/_app/immutable/nodes/1.CWhP_fAL.js +1 -0
  17. package/dist/public/_app/immutable/nodes/2.Dh0s2Wro.js +1 -0
  18. package/dist/public/_app/immutable/nodes/3.D8XvA1WK.js +10 -0
  19. package/dist/public/_app/version.json +1 -1
  20. package/dist/public/gear/gear_bar.html +21 -21
  21. package/dist/public/gear/gear_epicycloid.html +21 -21
  22. package/dist/public/gear/gear_ring.html +21 -21
  23. package/dist/public/gear/gear_wheel.html +21 -21
  24. package/dist/public/heliostat/base.html +21 -21
  25. package/dist/public/heliostat/haxis_guidance.html +21 -21
  26. package/dist/public/heliostat/heliostat.html +24 -24
  27. package/dist/public/heliostat/heliostat_2.html +23 -23
  28. package/dist/public/heliostat/pole_static.html +23 -23
  29. package/dist/public/heliostat/rake.html +21 -21
  30. package/dist/public/heliostat/rake_stopper.html +21 -21
  31. package/dist/public/heliostat/ring.html +21 -21
  32. package/dist/public/heliostat/ring_guidance.html +21 -21
  33. package/dist/public/heliostat/rod.html +21 -21
  34. package/dist/public/heliostat/spider.html +21 -21
  35. package/dist/public/heliostat/surface.html +21 -21
  36. package/dist/public/heliostat/swing.html +21 -21
  37. package/dist/public/heliostat/trapeze.html +21 -21
  38. package/dist/public/heliostat/vaxis.html +21 -21
  39. package/dist/public/heliostat/vaxis_guidance.html +21 -21
  40. package/dist/public/heliostat/vaxis_holder.html +21 -21
  41. package/dist/public/index.html +18 -18
  42. package/package.json +8 -8
  43. package/dist/public/_app/immutable/chunks/BNnJ_9yS.js +0 -3
  44. package/dist/public/_app/immutable/chunks/BmJkgPor.js +0 -216
  45. package/dist/public/_app/immutable/chunks/CkRv3O9q.js +0 -1
  46. package/dist/public/_app/immutable/chunks/CnI9cTAB.js +0 -1
  47. package/dist/public/_app/immutable/chunks/DH2Z7V03.js +0 -1
  48. package/dist/public/_app/immutable/chunks/DXdwfPBL.js +0 -1
  49. package/dist/public/_app/immutable/chunks/ed-LGUv5.js +0 -1
  50. package/dist/public/_app/immutable/entry/start.BzFHEsJj.js +0 -1
  51. package/dist/public/_app/immutable/nodes/0.BRsZONir.js +0 -2
  52. package/dist/public/_app/immutable/nodes/1.DxhxU2NR.js +0 -1
  53. package/dist/public/_app/immutable/nodes/2.oFiijxem.js +0 -1
  54. package/dist/public/_app/immutable/nodes/3.D4-RTWzj.js +0 -10
@@ -12,7 +12,7 @@ import getport from "get-port";
12
12
  // package.json
13
13
  var package_default = {
14
14
  name: "designix-uis",
15
- version: "1.0.19",
15
+ version: "1.0.21",
16
16
  description: "mini-server for static content of designix-ui",
17
17
  private: false,
18
18
  repository: {
@@ -91,25 +91,25 @@ var package_default = {
91
91
  "fs-extra": "^11.3.0",
92
92
  "get-port": "^7.1.0",
93
93
  open: "^10.1.2",
94
- yargs: "^17.7.2"
94
+ yargs: "^18.0.0"
95
95
  },
96
96
  devDependencies: {
97
97
  "@atao60/fse-cli": "^0.1.9",
98
98
  "@eslint/js": "^9.10.0",
99
99
  "@types/eslint__js": "^8.42.3",
100
- "@types/express": "^5.0.2",
100
+ "@types/express": "^5.0.3",
101
101
  "@types/fs-extra": "^11.0.4",
102
- "@types/node": "^22.15.18",
102
+ "@types/node": "^24.0.1",
103
103
  "@types/yargs": "^17.0.33",
104
- eslint: "^9.27.0",
104
+ eslint: "^9.28.0",
105
105
  "eslint-config-prettier": "^10.1.5",
106
- "npm-run-all2": "^8.0.2",
106
+ "npm-run-all2": "^8.0.4",
107
107
  prettier: "^3.5.3",
108
108
  rimraf: "^6.0.1",
109
109
  tsup: "^8.5.0",
110
110
  typescript: "^5.8.3",
111
- "typescript-eslint": "^8.32.1",
112
- vitest: "^3.1.3"
111
+ "typescript-eslint": "^8.34.0",
112
+ vitest: "^3.2.3"
113
113
  }
114
114
  };
115
115
 
@@ -0,0 +1,3 @@
1
+ var ee=t=>{throw TypeError(t)};var je=(t,e,n)=>e.has(t)||ee("Cannot "+n);var A=(t,e,n)=>(je(t,e,"read from private field"),n?n.call(t):e.get(t)),x=(t,e,n)=>e.has(t)?ee("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{o as Nt}from"./s_uONAcq.js";import{n as Lt,aJ as $e,a2 as C,j as N,V as O,a3 as De}from"./K45ZhT9R.js";import{a as Ve,b as P}from"./Cd9UBKFE.js";const q=[];function Vt(t,e=Lt){let n=null;const a=new Set;function r(o){if($e(t,o)&&(t=o,n)){const c=!q.length;for(const l of a)l[1](),q.push(l,t);if(c){for(let l=0;l<q.length;l+=2)q[l][0](q[l+1]);q.length=0}}}function s(o){r(o(t))}function i(o,c=Lt){const l=[o,c];return a.add(l),a.size===1&&(n=e(r,s)||Lt),o(t),()=>{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:s,subscribe:i}}new URL("sveltekit-internal://");function Be(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function Fe(t){return t.split("%25").map(decodeURI).join("%25")}function qe(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Tt({href:t}){return t.split("#")[0]}function Me(t,e,n,a=!1){const r=new URL(t);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));e();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];a&&s.push("hash");for(const i of s)Object.defineProperty(r,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return r}function Ge(...t){let e=5381;for(const n of t)if(typeof n=="string"){let a=n.length;for(;a;)e=e*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)e=e*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}function He(t){const e=atob(t),n=new Uint8Array(e.length);for(let a=0;a<e.length;a++)n[a]=e.charCodeAt(a);return n.buffer}const Ke=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&z.delete(Bt(t)),Ke(t,e));const z=new Map;function We(t,e){const n=Bt(t,e),a=document.querySelector(n);if(a!=null&&a.textContent){let{body:r,...s}=JSON.parse(a.textContent);const i=a.getAttribute("data-ttl");return i&&z.set(n,{body:r,init:s,ttl:1e3*Number(i)}),a.getAttribute("data-b64")!==null&&(r=He(r)),Promise.resolve(new Response(r,s))}return window.fetch(t,e)}function Ye(t,e,n){if(z.size>0){const a=Bt(t,n),r=z.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(r.body,r.init);z.delete(a)}}return window.fetch(e,n)}function Bt(t,e){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const r=[];e.headers&&r.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&r.push(e.body),a+=`[data-hash="${Ge(...r)}"]`}return a}const ze=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Je(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Ze(t).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return e.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const i=a.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return xt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return xt(String.fromCharCode(...c.slice(2).split("-").map(p=>parseInt(p,16))));const d=ze.exec(c),[,u,y,f,m]=d;return e.push({name:f,matcher:m,optional:!!u,rest:!!y,chained:y?l===1&&i[0]==="":!1}),y?"(.*?)":u?"([^/]*)?":"([^/]+?)"}return xt(c)}).join("")}).join("")}/?$`),params:e}}function Xe(t){return!/^\([^)]+\)$/.test(t)}function Ze(t){return t.slice(1).split("/").filter(Xe)}function Qe(t,e,n){const a={},r=t.slice(1),s=r.filter(o=>o!==void 0);let i=0;for(let o=0;o<e.length;o+=1){const c=e[o];let l=r[o-i];if(c.chained&&c.rest&&i&&(l=r.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const d=e[o+1],u=r[o+1];d&&!d.rest&&d.optional&&u&&c.chained&&(i=0),!d&&!u&&Object.keys(a).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return a}function xt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function tn({nodes:t,server_loads:e,dictionary:n,matchers:a}){const r=new Set(e);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:u,params:y}=Je(o),f={id:o,exec:m=>{const p=u.exec(m);if(p)return Qe(p,y,a)},errors:[1,...d||[]].map(m=>t[m]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,t[o]]}function i(o){return o===void 0?o:[r.has(o),t[o]]}}function pe(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ne(t,e,n=JSON.stringify){const a=n(e);try{sessionStorage[t]=a}catch{}}const en="1749807892814",ge="sveltekit:snapshot",me="sveltekit:scroll",ye="sveltekit:states",nn="sveltekit:pageurl",G="sveltekit:history",Z="sveltekit:navigation",V={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ht=location.origin;function Ft(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function At(){return{x:pageXOffset,y:pageYOffset}}function M(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const re={...V,"":V.hover};function we(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function _e(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=we(t)}}function Ot(t,e,n){let a;try{if(a=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";a.hash=`#${o}${a.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,s=!a||!!r||St(a,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(a==null?void 0:a.origin)===ht&&t.hasAttribute("download");return{url:a,external:s,target:r,download:i}}function pt(t){let e=null,n=null,a=null,r=null,s=null,i=null,o=t;for(;o&&o!==document.documentElement;)a===null&&(a=M(o,"preload-code")),r===null&&(r=M(o,"preload-data")),e===null&&(e=M(o,"keepfocus")),n===null&&(n=M(o,"noscroll")),s===null&&(s=M(o,"reload")),i===null&&(i=M(o,"replacestate")),o=we(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:re[a??"off"],preload_data:re[r??"off"],keepfocus:c(e),noscroll:c(n),reload:c(s),replace_state:c(i)}}function ae(t){const e=Vt(t);let n=!0;function a(){n=!0,e.update(i=>i)}function r(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:a,set:r,subscribe:s}}const ve={v:()=>{}};function rn(){const{set:t,subscribe:e}=Vt(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ve}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const i=(await r.json()).version!==en;return i&&(t(!0),ve.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:a}}function St(t,e,n){return t.origin!==ht||!t.pathname.startsWith(e)?!0:n?!(t.pathname===e+"/"||t.pathname===e+"/index.html"||t.protocol==="file:"&&t.pathname.replace(/\/[^/]+\.html?$/,"")===e):!1}function Gn(t){}function oe(t){const e=on(t),n=new ArrayBuffer(e.length),a=new DataView(n);for(let r=0;r<n.byteLength;r++)a.setUint8(r,e.charCodeAt(r));return n}const an="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function on(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,a=0;for(let r=0;r<t.length;r++)n<<=6,n|=an.indexOf(t[r]),a+=6,a===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=a=0);return a===12?(n>>=4,e+=String.fromCharCode(n)):a===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const sn=-1,cn=-2,ln=-3,fn=-4,un=-5,hn=-6;function dn(t,e){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,a=Array(n.length);function r(s,i=!1){if(s===sn)return;if(s===ln)return NaN;if(s===fn)return 1/0;if(s===un)return-1/0;if(s===hn)return-0;if(i)throw new Error("Invalid input");if(s in a)return a[s];const o=n[s];if(!o||typeof o!="object")a[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=e==null?void 0:e[c];if(l)return a[s]=l(r(o[1]));switch(c){case"Date":a[s]=new Date(o[1]);break;case"Set":const d=new Set;a[s]=d;for(let f=1;f<o.length;f+=1)d.add(r(o[f]));break;case"Map":const u=new Map;a[s]=u;for(let f=1;f<o.length;f+=2)u.set(r(o[f]),r(o[f+1]));break;case"RegExp":a[s]=new RegExp(o[1],o[2]);break;case"Object":a[s]=Object(o[1]);break;case"BigInt":a[s]=BigInt(o[1]);break;case"null":const y=Object.create(null);a[s]=y;for(let f=1;f<o.length;f+=2)y[o[f]]=r(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],m=o[1],p=oe(m),h=new f(p);a[s]=h;break}case"ArrayBuffer":{const f=o[1],m=oe(f);a[s]=m;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);a[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==cn&&(c[l]=r(d))}}else{const c={};a[s]=c;for(const l in o){const d=o[l];c[l]=r(d)}}return a[s]}return r(0)}const be=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...be];const pn=new Set([...be]);[...pn];function gn(t){return t.filter(e=>e!=null)}class Et{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class qt{constructor(e,n){this.status=e,this.location=n}}class Mt extends Error{constructor(e,n,a){super(a),this.status=e,this.text=n}}const mn="x-sveltekit-invalidated",yn="x-sveltekit-trailing-slash";function gt(t){return t instanceof Et||t instanceof Mt?t.status:500}function wn(t){return t instanceof Mt?t.text:"Internal Error"}let U,Q,Pt;const _n=Nt.toString().includes("$$")||/function \w+\(\) \{\}/.test(Nt.toString());var nt,rt,at,ot,st,it,ct,lt,ue,ft,he,ut,de;_n?(U={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Q={current:null},Pt={current:!1}):(U=new(ue=class{constructor(){x(this,nt,C({}));x(this,rt,C(null));x(this,at,C(null));x(this,ot,C({}));x(this,st,C({id:null}));x(this,it,C({}));x(this,ct,C(-1));x(this,lt,C(new URL("https://example.com")))}get data(){return N(A(this,nt))}set data(e){O(A(this,nt),e)}get form(){return N(A(this,rt))}set form(e){O(A(this,rt),e)}get error(){return N(A(this,at))}set error(e){O(A(this,at),e)}get params(){return N(A(this,ot))}set params(e){O(A(this,ot),e)}get route(){return N(A(this,st))}set route(e){O(A(this,st),e)}get state(){return N(A(this,it))}set state(e){O(A(this,it),e)}get status(){return N(A(this,ct))}set status(e){O(A(this,ct),e)}get url(){return N(A(this,lt))}set url(e){O(A(this,lt),e)}},nt=new WeakMap,rt=new WeakMap,at=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,ct=new WeakMap,lt=new WeakMap,ue),Q=new(he=class{constructor(){x(this,ft,C(null))}get current(){return N(A(this,ft))}set current(e){O(A(this,ft),e)}},ft=new WeakMap,he),Pt=new(de=class{constructor(){x(this,ut,C(!1))}get current(){return N(A(this,ut))}set current(e){O(A(this,ut),e)}},ut=new WeakMap,de),ve.v=()=>Pt.current=!0);function vn(t){Object.assign(U,t)}const bn="/__data.json",An=".html__data.json";function Sn(t){return t.endsWith(".html")?t.replace(/\.html$/,An):t.replace(/\/$/,"")+bn}const En=new Set(["icon","shortcut icon","apple-touch-icon"]),F=pe(me)??{},tt=pe(ge)??{},$={url:ae({}),page:ae({}),navigating:Vt(null),updated:rn()};function Gt(t){F[t]=At()}function kn(t,e){let n=t+1;for(;F[n];)delete F[n],n+=1;for(n=e+1;tt[n];)delete tt[n],n+=1}function W(t){return location.href=t.href,new Promise(()=>{})}async function Ae(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(P||"/");t&&await t.update()}}function se(){}let Ht,jt,mt,j,$t,S;const yt=[],wt=[];let L=null;const dt=new Map,Se=new Set,Rn=new Set,H=new Set;let v={branch:[],error:null,url:null},Kt=!1,_t=!1,ie=!0,et=!1,Y=!1,Ee=!1,Wt=!1,ke,k,T,B;const J=new Set;async function Yn(t,e,n){var s,i,o,c;document.URL!==location.href&&(location.href=location.href),S=t,await((i=(s=t.hooks).init)==null?void 0:i.call(s)),Ht=tn(t),j=document.documentElement,$t=e,jt=t.nodes[0],mt=t.nodes[1],jt(),mt(),k=(o=history.state)==null?void 0:o[G],T=(c=history.state)==null?void 0:c[Z],k||(k=T=Date.now(),history.replaceState({...history.state,[G]:k,[Z]:T},""));const a=F[k];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await $n($t,n)):(await X({type:"enter",url:Ft(S.hash?Vn(new URL(location.href)):location.href),replace_state:!0}),r()),jn()}function In(){yt.length=0,Wt=!1}function Re(t){wt.some(e=>e==null?void 0:e.snapshot)&&(tt[t]=wt.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Ie(t){var e;(e=tt[t])==null||e.forEach((n,a)=>{var r,s;(s=(r=wt[a])==null?void 0:r.snapshot)==null||s.restore(n)})}function ce(){Gt(k),ne(me,F),Re(T),ne(ge,tt)}async function Yt(t,e,n,a){return X({type:"goto",url:Ft(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:a,accept:()=>{e.invalidateAll&&(Wt=!0),e.invalidate&&e.invalidate.forEach(On)}})}async function Un(t){if(t.id!==(L==null?void 0:L.id)){const e={};J.add(e),L={id:t.id,token:e,promise:Te({...t,preload:e}).then(n=>(J.delete(e),n.type==="loaded"&&n.state.error&&(L=null),n))}}return L.promise}async function Ct(t){var n;const e=(n=await Rt(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(a=>a==null?void 0:a[1]()))}function Ue(t,e,n){var r;v=t.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(U,t.props.page),ke=new S.root({target:e,props:{...t.props,stores:$,components:wt},hydrate:n,sync:!1}),Ie(T),n){const s={from:null,to:{params:v.params,route:{id:((r=v.route)==null?void 0:r.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};H.forEach(i=>i(s))}_t=!0}function vt({url:t,params:e,branch:n,status:a,error:r,route:s,form:i}){let o="never";if(P&&(t.pathname===P||t.pathname===P+"/"))o="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(o=f.slash);t.pathname=Be(t.pathname,o),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:r,route:s},props:{constructors:gn(n).map(f=>f.node.component),page:Zt(U)}};i!==void 0&&(c.props.form=i);let l={},d=!U,u=0;for(let f=0;f<Math.max(n.length,v.branch.length);f+=1){const m=n[f],p=v.branch[f];(m==null?void 0:m.data)!==(p==null?void 0:p.data)&&(d=!0),m&&(l={...l,...m.data},d&&(c.props[`data_${u}`]=l),u+=1)}return(!v.url||t.href!==v.url.href||v.error!==r||i!==void 0&&i!==U.form||d)&&(c.props.page={error:r,params:e,route:{id:(s==null?void 0:s.id)??null},state:{},status:a,url:new URL(t),form:i??null,data:d?l:U.data}),c}async function zt({loader:t,parent:e,url:n,params:a,route:r,server_data_node:s}){var d,u,y;let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await t();if((d=l.universal)!=null&&d.load){let f=function(...p){for(const h of p){const{href:_}=new URL(h,n);c.dependencies.add(_)}};const m={route:new Proxy(r,{get:(p,h)=>(o&&(c.route=!0),p[h])}),params:new Proxy(a,{get:(p,h)=>(o&&c.params.add(h),p[h])}),data:(s==null?void 0:s.data)??null,url:Me(n,()=>{o&&(c.url=!0)},p=>{o&&c.search_params.add(p)},S.hash),async fetch(p,h){p instanceof Request&&(h={body:p.method==="GET"||p.method==="HEAD"?void 0:await p.blob(),cache:p.cache,credentials:p.credentials,headers:[...p.headers].length?p.headers:void 0,integrity:p.integrity,keepalive:p.keepalive,method:p.method,mode:p.mode,redirect:p.redirect,referrer:p.referrer,referrerPolicy:p.referrerPolicy,signal:p.signal,...h});const{resolved:_,promise:R}=Le(p,h,n);return o&&f(_.href),R},setHeaders:()=>{},depends:f,parent(){return o&&(c.parent=!0),e()},untrack(p){o=!1;try{return p()}finally{o=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:t,server:s,universal:(u=l.universal)!=null&&u.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((y=l.universal)==null?void 0:y.trailingSlash)??(s==null?void 0:s.slash)}}function Le(t,e,n){let a=t instanceof Request?t.url:t;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const s=_t?Ye(a,r.href,e):We(a,e);return{resolved:r,promise:s}}function le(t,e,n,a,r,s){if(Wt)return!0;if(!r)return!1;if(r.parent&&t||r.route&&e||r.url&&n)return!0;for(const i of r.search_params)if(a.has(i))return!0;for(const i of r.params)if(s[i]!==v.params[i])return!0;for(const i of r.dependencies)if(yt.some(o=>o(new URL(i))))return!0;return!1}function Jt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function Ln(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const a of n){const r=t.searchParams.getAll(a),s=e.searchParams.getAll(a);r.every(i=>s.includes(i))&&s.every(i=>r.includes(i))&&n.delete(a)}return n}function fe({error:t,url:e,route:n,params:a}){return{type:"loaded",state:{error:t,url:e,route:n,params:a,branch:[]},props:{page:Zt(U),constructors:[]}}}async function Te({id:t,invalidating:e,url:n,params:a,route:r,preload:s}){if((L==null?void 0:L.id)===t)return J.delete(L.token),L.promise;const{errors:i,layouts:o,leaf:c}=r,l=[...o,c];i.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));let d=null;const u=v.url?t!==bt(v.url):!1,y=v.route?r.id!==v.route.id:!1,f=Ln(v.url,n);let m=!1;const p=l.map((g,w)=>{var D;const b=v.branch[w],E=!!(g!=null&&g[0])&&((b==null?void 0:b.loader)!==g[1]||le(m,y,u,f,(D=b.server)==null?void 0:D.uses,a));return E&&(m=!0),E});if(p.some(Boolean)){try{d=await Ce(n,p)}catch(g){const w=await K(g,{url:n,params:a,route:{id:t}});return J.has(s)?fe({error:w,url:n,params:a,route:r}):kt({status:gt(g),error:w,url:n,route:r})}if(d.type==="redirect")return d}const h=d==null?void 0:d.nodes;let _=!1;const R=l.map(async(g,w)=>{var It;if(!g)return;const b=v.branch[w],E=h==null?void 0:h[w];if((!E||E.type==="skip")&&g[1]===(b==null?void 0:b.loader)&&!le(_,y,u,f,(It=b.universal)==null?void 0:It.uses,a))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return zt({loader:g[1],url:n,params:a,route:r,parent:async()=>{var te;const Qt={};for(let Ut=0;Ut<w;Ut+=1)Object.assign(Qt,(te=await R[Ut])==null?void 0:te.data);return Qt},server_data_node:Jt(E===void 0&&g[0]?{type:"skip"}:E??null,g[0]?b==null?void 0:b.server:void 0)})});for(const g of R)g.catch(()=>{});const I=[];for(let g=0;g<l.length;g+=1)if(l[g])try{I.push(await R[g])}catch(w){if(w instanceof qt)return{type:"redirect",location:w.location};if(J.has(s))return fe({error:await K(w,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let b=gt(w),E;if(h!=null&&h.includes(w))b=w.status??b,E=w.error;else if(w instanceof Et)E=w.body;else{if(await $.updated.check())return await Ae(),await W(n);E=await K(w,{params:a,url:n,route:{id:r.id}})}const D=await Tn(g,I,i);return D?vt({url:n,params:a,branch:I.slice(0,D.idx).concat(D.node),status:b,error:E,route:r}):await Pe(n,{id:r.id},E,b)}else I.push(void 0);return vt({url:n,params:a,branch:I,status:200,error:null,route:r,form:e?void 0:null})}async function Tn(t,e,n){for(;t--;)if(n[t]){let a=t;for(;!e[a];)a-=1;try{return{idx:a+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function kt({status:t,error:e,url:n,route:a}){const r={};let s=null;if(S.server_loads[0]===0)try{const o=await Ce(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==ht||n.pathname!==location.pathname||Kt)&&await W(n)}try{const o=await zt({loader:jt,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Jt(s)}),c={node:await mt(),loader:mt,universal:null,server:null,data:null};return vt({url:n,params:r,branch:[o,c],status:t,error:e,route:null})}catch(o){if(o instanceof qt)return Yt(new URL(o.location,location.href),{},0);throw o}}async function xn(t){const e=t.href;if(dt.has(e))return dt.get(e);let n;try{const a=(async()=>{let r=await S.hooks.reroute({url:new URL(t),fetch:async(s,i)=>Le(s,i,t).promise})??t;if(typeof r=="string"){const s=new URL(t);S.hash?s.hash=r:s.pathname=r,r=s}return r})();dt.set(e,a),n=await a}catch{dt.delete(e);return}return n}async function Rt(t,e){if(t&&!St(t,P,S.hash)){const n=await xn(t);if(!n)return;const a=Pn(n);for(const r of Ht){const s=r.exec(a);if(s)return{id:bt(t),invalidating:e,route:r,params:qe(s),url:t}}}}function Pn(t){return Fe(S.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(P.length))||"/"}function bt(t){return(S.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function xe({url:t,type:e,intent:n,delta:a}){let r=!1;const s=Xt(v,n,t,e);a!==void 0&&(s.navigation.delta=a);const i={...s.navigation,cancel:()=>{r=!0,s.reject(new Error("navigation cancelled"))}};return et||Se.forEach(o=>o(i)),r?null:s}async function X({type:t,url:e,popped:n,keepfocus:a,noscroll:r,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=se,block:d=se}){const u=B;B=c;const y=await Rt(e,!1),f=t==="enter"?Xt(v,y,e,t):xe({url:e,type:t,delta:n==null?void 0:n.delta,intent:y});if(!f){d(),B===c&&(B=u);return}const m=k,p=T;l(),et=!0,_t&&f.navigation.type!=="enter"&&$.navigating.set(Q.current=f.navigation);let h=y&&await Te(y);if(!h){if(St(e,P,S.hash))return await W(e);h=await Pe(e,{id:null},await K(new Mt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(y==null?void 0:y.url)||e,B!==c)return f.reject(new Error("navigation aborted")),!1;if(h.type==="redirect")if(o>=20)h=await kt({status:500,error:await K(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return await Yt(new URL(h.location,e).href,{},o+1,c),!1;else h.props.page.status>=400&&await $.updated.check()&&(await Ae(),await W(e));if(In(),Gt(m),Re(p),h.props.page.url.pathname!==e.pathname&&(e.pathname=h.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,w={[G]:k+=g,[Z]:T+=g,[ye]:i};(s?history.replaceState:history.pushState).call(history,w,"",e),s||kn(k,T)}if(L=null,h.props.page.state=i,_t){v=h.state,h.props.page&&(h.props.page.url=e);const g=(await Promise.all(Array.from(Rn,w=>w(f.navigation)))).filter(w=>typeof w=="function");if(g.length>0){let w=function(){g.forEach(b=>{H.delete(b)})};g.push(w),g.forEach(b=>{H.add(b)})}ke.$set(h.props),vn(h.props.page),Ee=!0}else Ue(h,$t,!1);const{activeElement:_}=document;await De();const R=n?n.scroll:r?At():null;if(ie){const g=e.hash&&document.getElementById(Oe(e));R?scrollTo(R.x,R.y):g?g.scrollIntoView():scrollTo(0,0)}const I=document.activeElement!==_&&document.activeElement!==document.body;!a&&!I&&Dn(e),ie=!0,h.props.page&&Object.assign(U,h.props.page),et=!1,t==="popstate"&&Ie(T),f.fulfil(void 0),H.forEach(g=>g(f.navigation)),$.navigating.set(Q.current=null)}async function Pe(t,e,n,a){return t.origin===ht&&t.pathname===location.pathname&&!Kt?await kt({status:a,error:n,url:t,route:e}):await W(t)}function Cn(){let t,e,n;j.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(t),t=setTimeout(()=>{s(c,V.hover)},20)});function a(o){o.defaultPrevented||s(o.composedPath()[0],V.tap)}j.addEventListener("mousedown",a),j.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(Ct(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function s(o,c){const l=_e(o,j),d=l===e&&c>=n;if(!l||d)return;const{url:u,external:y,download:f}=Ot(l,P,S.hash);if(y||f)return;const m=pt(l),p=u&&bt(v.url)===bt(u);if(!(m.reload||p))if(c<=m.preload_data){e=l,n=V.tap;const h=await Rt(u,!1);if(!h)return;Un(h)}else c<=m.preload_code&&(e=l,n=c,Ct(u))}function i(){r.disconnect();for(const o of j.querySelectorAll("a")){const{url:c,external:l,download:d}=Ot(o,P,S.hash);if(l||d)continue;const u=pt(o);u.reload||(u.preload_code===V.viewport&&r.observe(o),u.preload_code===V.eager&&Ct(c))}}H.add(i),i()}function K(t,e){if(t instanceof Et)return t.body;const n=gt(t),a=wn(t);return S.hooks.handleError({error:t,event:e,status:n,message:a})??{message:a}}function Nn(t,e){Nt(()=>(t.add(e),()=>{t.delete(e)}))}function zn(t){Nn(H,t)}function Jn(t,e={}){return t=new URL(Ft(t)),t.origin!==ht?Promise.reject(new Error("goto: invalid URL")):Yt(t,e,0)}function On(t){if(typeof t=="function")yt.push(t);else{const{href:e}=new URL(t,location.href);yt.push(n=>n.href===e)}}function jn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ce(),!et){const r=Xt(v,void 0,null,"leave"),s={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};Se.forEach(i=>i(s))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ce()}),(e=navigator.connection)!=null&&e.saveData||Cn(),j.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=_e(n.composedPath()[0],j);if(!a)return;const{url:r,external:s,target:i,download:o}=Ot(a,P,S.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=pt(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[d,u]=(S.hash?r.hash.replace(/^#/,""):r.href).split("#"),y=d===Tt(location);if(s||c.reload&&(!y||!u)){xe({url:r,type:"link"})?et=!0:n.preventDefault();return}if(u!==void 0&&y){const[,f]=v.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&a.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const m=a.ownerDocument.getElementById(decodeURIComponent(u));m&&(m.scrollIntoView(),m.focus())}return}if(Y=!0,Gt(k),t(r),!c.replace_state)return;Y=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await X({type:"link",url:r,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??r.href===location.href})}),j.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const o=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(St(o,P,!1))return;const c=n.target,l=pt(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(c),u=r==null?void 0:r.getAttribute("name");u&&d.append(u,(r==null?void 0:r.getAttribute("value"))??""),o.search=new URLSearchParams(d).toString(),X({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var a;if(!Dt){if((a=n.state)!=null&&a[G]){const r=n.state[G];if(B={},r===k)return;const s=F[r],i=n.state[ye]??{},o=new URL(n.state[nn]??location.href),c=n.state[Z],l=v.url?Tt(location)===Tt(v.url):!1;if(c===T&&(Ee||l)){i!==U.state&&(U.state=i),t(o),F[k]=At(),s&&scrollTo(s.x,s.y),k=r;return}const u=r-k;await X({type:"popstate",url:o,popped:{state:i,scroll:s,delta:u},accept:()=>{k=r,T=c},block:()=>{history.go(-u)},nav_token:B})}else if(!Y){const r=new URL(location.href);t(r),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[G]:++k,[Z]:T},"",location.href))});for(const n of document.querySelectorAll("link"))En.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&$.navigating.set(Q.current=null)});function t(n){v.url=U.url=n,$.page.set(Zt(U)),$.page.notify()}}async function $n(t,{status:e=200,error:n,node_ids:a,params:r,route:s,server_route:i,data:o,form:c}){Kt=!0;const l=new URL(location.href);let d;({params:r={},route:s={id:null}}=await Rt(l,!1)||{}),d=Ht.find(({id:f})=>f===s.id);let u,y=!0;try{const f=a.map(async(p,h)=>{const _=o[h];return _!=null&&_.uses&&(_.uses=Ne(_.uses)),zt({loader:S.nodes[p],url:l,params:r,route:s,parent:async()=>{const R={};for(let I=0;I<h;I+=1)Object.assign(R,(await f[I]).data);return R},server_data_node:Jt(_)})}),m=await Promise.all(f);if(d){const p=d.layouts;for(let h=0;h<p.length;h++)p[h]||m.splice(h,0,void 0)}u=vt({url:l,params:r,branch:m,status:e,error:n,form:c,route:d??null})}catch(f){if(f instanceof qt){await W(new URL(f.location,location.href));return}u=await kt({status:gt(f),error:await K(f,{url:l,params:r,route:s}),url:l,route:s}),t.textContent="",y=!1}u.props.page&&(u.props.page.state={}),Ue(u,t,y)}async function Ce(t,e){var s;const n=new URL(t);n.pathname=Sn(t.pathname),t.pathname.endsWith("/")&&n.searchParams.append(yn,"1"),n.searchParams.append(mn,e.map(i=>i?"1":"0").join(""));const a=window.fetch,r=await a(n.href,{});if(!r.ok){let i;throw(s=r.headers.get("content-type"))!=null&&s.includes("application/json")?i=await r.json():r.status===404?i="Not Found":r.status===500&&(i="Internal Error"),new Et(r.status,i)}return new Promise(async i=>{var y;const o=new Map,c=r.body.getReader(),l=new TextDecoder;function d(f){return dn(f,{...S.decoders,Promise:m=>new Promise((p,h)=>{o.set(m,{fulfil:p,reject:h})})})}let u="";for(;;){const{done:f,value:m}=await c.read();if(f&&!u)break;for(u+=!m&&u?`
2
+ `:l.decode(m,{stream:!0});;){const p=u.indexOf(`
3
+ `);if(p===-1)break;const h=JSON.parse(u.slice(0,p));if(u=u.slice(p+1),h.type==="redirect")return i(h);if(h.type==="data")(y=h.nodes)==null||y.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=Ne(_.uses),_.data=d(_.data))}),i(h);else if(h.type==="chunk"){const{id:_,data:R,error:I}=h,g=o.get(_);o.delete(_),I?g.reject(d(I)):g.fulfil(d(R))}}}})}function Ne(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Dt=!1;function Dn(t){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=Oe(t);if(n&&document.getElementById(n)){const{x:r,y:s}=At();setTimeout(()=>{const i=history.state;Dt=!0,location.replace(`#${n}`),S.hash&&location.replace(t.hash),history.replaceState(i,"",t.hash),scrollTo(r,s),Dt=!1})}else{const r=document.body,s=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),s!==null?r.setAttribute("tabindex",s):r.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const r=[];for(let s=0;s<a.rangeCount;s+=1)r.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===r.length){for(let s=0;s<a.rangeCount;s+=1){const i=r[s],o=a.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}a.removeAllRanges()}})}}}function Xt(t,e,n,a){var c,l;let r,s;const i=new Promise((d,u)=>{r=d,s=u});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((l=e==null?void 0:e.route)==null?void 0:l.id)??null},url:n},willUnload:!e,type:a,complete:i},fulfil:r,reject:s}}function Zt(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Vn(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function Oe(t){let e;if(S.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Et as H,zn as a,Yn as b,Jn as g,Gn as l,U as p,$ as s};
@@ -0,0 +1 @@
1
+ import{h,a5 as L,a6 as C,a7 as V,a8 as b,a9 as N,aa as W,ab as E,L as U,a1 as $,ac as z,ad as G,ae as S,af as J,ag as K,g as u,z as B,D as A,ah as O,H as Q,ai as X,aj as R,F as T,ak as Z,al as ee,am as re,an as te,ao as ae,d as ne,p as ie,k as oe,a as se}from"./K45ZhT9R.js";const fe=["touchstart","touchmove"];function ue(e){return fe.includes(e)}function pe(e){h&&L(e)!==null&&C(e)}let k=!1;function ce(){k||(k=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var r;if(!e.defaultPrevented)for(const t of e.target.elements)(r=t.__on_r)==null||r.call(t)})},{capture:!0}))}function me(e,r,t,i=!0){i&&t();for(var n of r)e.addEventListener(n,t);V(()=>{for(var a of r)e.removeEventListener(a,t)})}function F(e){var r=W,t=E;b(null),N(null);try{return e()}finally{b(r),N(t)}}function ge(e,r,t,i=t){e.addEventListener(r,()=>F(t));const n=e.__on_r;n?e.__on_r=()=>{n(),i(!0)}:e.__on_r=()=>i(!0),ce()}const Y=new Set,P=new Set;function de(e,r,t,i={}){function n(a){if(i.capture||y.call(r,a),!a.cancelBubble)return F(()=>t==null?void 0:t.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?U(()=>{r.addEventListener(e,n,i)}):r.addEventListener(e,n,i),n}function ye(e,r,t,i,n){var a={capture:i,passive:n},o=de(e,r,t,a);(r===document.body||r===window||r===document||r instanceof HTMLMediaElement)&&V(()=>{r.removeEventListener(e,o,a)})}function Ee(e){for(var r=0;r<e.length;r++)Y.add(e[r]);for(var t of P)t(e)}function y(e){var I;var r=this,t=r.ownerDocument,i=e.type,n=((I=e.composedPath)==null?void 0:I.call(e))||[],a=n[0]||e.target,o=0,_=e.__root;if(_){var d=n.indexOf(_);if(d!==-1&&(r===document||r===window)){e.__root=r;return}var m=n.indexOf(r);if(m===-1)return;d<=m&&(o=d)}if(a=n[o]||e.target,a!==r){$(e,"currentTarget",{configurable:!0,get(){return a||t}});var M=W,c=E;b(null),N(null);try{for(var s,f=[];a!==null;){var l=a.assignedSlot||a.parentNode||a.host||null;try{var p=a["__"+i];if(p!=null&&(!a.disabled||e.target===a))if(z(p)){var[q,...x]=p;q.apply(a,[e,...x])}else p.call(a,e)}catch(w){s?f.push(w):s=w}if(e.cancelBubble||l===r||l===null)break;a=l}if(s){for(let w of f)queueMicrotask(()=>{throw w});throw s}}finally{e.__root=r,delete e.currentTarget,b(M),N(c)}}}function le(e){var r=document.createElement("template");return r.innerHTML=e.replaceAll("<!>","<!---->"),r.content}function v(e,r){var t=E;t.nodes_start===null&&(t.nodes_start=e,t.nodes_end=r)}function we(e,r){var t=(r&J)!==0,i=(r&K)!==0,n,a=!e.startsWith("<!>");return()=>{if(h)return v(u,null),u;n===void 0&&(n=le(a?e:"<!>"+e),t||(n=L(n)));var o=i||G?document.importNode(n,!0):n.cloneNode(!0);if(t){var _=L(o),d=o.lastChild;v(_,d)}else v(o,o);return o}}function Te(e=""){if(!h){var r=S(e+"");return v(r,r),r}var t=u;return t.nodeType!==3&&(t.before(t=S()),A(t)),v(t,t),t}function Le(){if(h)return v(u,null),u;var e=document.createDocumentFragment(),r=document.createComment(""),t=S();return e.append(r,t),v(r,t),e}function be(e,r){if(h){E.nodes_end=u,B();return}e!==null&&e.before(r)}function Ne(e,r){var t=r==null?"":typeof r=="object"?r+"":r;t!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=t,e.nodeValue=t+"")}function _e(e,r){return j(e,r)}function Se(e,r){O(),r.intro=r.intro??!1;const t=r.target,i=h,n=u;try{for(var a=L(t);a&&(a.nodeType!==8||a.data!==Q);)a=X(a);if(!a)throw R;T(!0),A(a),B();const o=j(e,{...r,anchor:a});if(u===null||u.nodeType!==8||u.data!==Z)throw ee(),R;return T(!1),o}catch(o){if(o===R)return r.recover===!1&&re(),O(),C(t),T(!1),_e(e,r);throw o}finally{T(i),A(n)}}const g=new Map;function j(e,{target:r,anchor:t,props:i={},events:n,context:a,intro:o=!0}){O();var _=new Set,d=c=>{for(var s=0;s<c.length;s++){var f=c[s];if(!_.has(f)){_.add(f);var l=ue(f);r.addEventListener(f,y,{passive:l});var p=g.get(f);p===void 0?(document.addEventListener(f,y,{passive:l}),g.set(f,1)):g.set(f,p+1)}}};d(te(Y)),P.add(d);var m=void 0,M=ae(()=>{var c=t??r.appendChild(S());return ne(()=>{if(a){ie({});var s=oe;s.c=a}n&&(i.$$events=n),h&&v(c,null),m=e(c,i)||{},h&&(E.nodes_end=u),a&&se()}),()=>{var l;for(var s of _){r.removeEventListener(s,y);var f=g.get(s);--f===0?(document.removeEventListener(s,y),g.delete(s)):g.set(s,f)}P.delete(d),c!==t&&((l=c.parentNode)==null||l.removeChild(c))}});return D.set(m,M),m}let D=new WeakMap;function Me(e,r){const t=D.get(e);return t?(D.delete(e),t(r)):Promise.resolve()}const ve="5";var H;typeof window<"u"&&((H=window.__svelte??(window.__svelte={})).v??(H.v=new Set)).add(ve);export{be as a,ce as b,Le as c,me as d,Ee as e,we as f,ye as g,Se as h,ge as l,_e as m,pe as r,Ne as s,Te as t,Me as u,F as w};
@@ -1,4 +1,4 @@
1
- var Et=Object.defineProperty;var bt=(s,e,_)=>e in s?Et(s,e,{enumerable:!0,configurable:!0,writable:!0,value:_}):s[e]=_;var G=(s,e,_)=>bt(s,typeof e!="symbol"?e+"":e,_);import{p as t,a as z,b as xe,c as $e,i as _e,f as L,d as J,g as B,E as re,h as U,r as ae,j as P,k as ge,l as le,m as ve,n as X,o as Le,q as He,t as De,u as At,v as Me,w as Ke,x as kt,y as Se,z as ye,A as Oe,B as ze,S as ke,C as Rt}from"./BmJkgPor.js";var Nt=class{constructor(s,e,_,o,i){G(this,"base_center_x");G(this,"base_center_y");G(this,"base_radius");G(this,"initial_angle");G(this,"right_nleft");this.base_center_x=s,this.base_center_y=e,this.base_radius=_,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),_=this.w2FromU(s),o=this.base_center_x+Math.cos(_)*e,i=this.base_center_y+Math.sin(_)*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 _=Math.PI/3,o=_/2,i=this.wFromU(_),d=0;for(;Math.abs(i-s)>1e-4;)i<s?_+=o:_-=o,i=this.wFromU(_),o=o/2,d+=1;return console.log(`dbg072: uFromWslow itcnt ${d}`),_}laptc(s,e,_,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=_*this.base_radius,h=d+Math.cos(n)*l,a=c+Math.sin(n)*l,g=this.lFromU(_)*o,r=_,u=Math.cos(r)*g,f=Math.sin(r)*g;return[h,a,u,f]}};function Ee(s,e,_,o,i){return new Nt(s,e,_,o,i)}var Ct=class{constructor(){G(this,"mod",1);G(this,"TN",23);G(this,"as",1);G(this,"cx",0);G(this,"cy",0);G(this,"brr",50);G(this,"blr",50);G(this,"ar",54);G(this,"pr",53);G(this,"dr",52);G(this,"br",51);G(this,"bRound",1);G(this,"adt",.5);G(this,"initAngle",0);G(this,"axisAngle",0);G(this,"involArcPairs",1);G(this,"skinThickness",0);G(this,"involuteR",Ee(0,0,50,0,!0));G(this,"involuteL",Ee(0,0,50,0,!1));G(this,"rud",0);G(this,"rup",0);G(this,"rua",0);G(this,"rwd",0);G(this,"rwp",0);G(this,"rwa",0);G(this,"lud",0);G(this,"lup",0);G(this,"lua",0);G(this,"lwd",0);G(this,"lwp",0);G(this,"lwa",0);G(this,"msg");G(this,"initStep",0);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,_,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*e,this.br=this.dr-this.mod*_,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=Ee(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=Ee(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,_=Math.abs(this.lwa-this.lwp),o=s-e-_;if(o<0)throw`err554: No remaining Addendum reserve ${L(o)}
1
+ var Et=Object.defineProperty;var bt=(s,e,_)=>e in s?Et(s,e,{enumerable:!0,configurable:!0,writable:!0,value:_}):s[e]=_;var G=(s,e,_)=>bt(s,typeof e!="symbol"?e+"":e,_);import{p as t,a as z,b as xe,c as $e,i as _e,f as L,d as J,g as B,E as re,h as U,r as ae,j as P,k as ge,l as le,m as ve,n as X,o as Le,q as He,t as De,u as At,v as Me,w as Ke,x as kt,y as Se,z as ye,A as Oe,B as ze,S as ke,C as Rt}from"./DUh4Zae0.js";var Nt=class{constructor(s,e,_,o,i){G(this,"base_center_x");G(this,"base_center_y");G(this,"base_radius");G(this,"initial_angle");G(this,"right_nleft");this.base_center_x=s,this.base_center_y=e,this.base_radius=_,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),_=this.w2FromU(s),o=this.base_center_x+Math.cos(_)*e,i=this.base_center_y+Math.sin(_)*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 _=Math.PI/3,o=_/2,i=this.wFromU(_),d=0;for(;Math.abs(i-s)>1e-4;)i<s?_+=o:_-=o,i=this.wFromU(_),o=o/2,d+=1;return console.log(`dbg072: uFromWslow itcnt ${d}`),_}laptc(s,e,_,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=_*this.base_radius,h=d+Math.cos(n)*l,a=c+Math.sin(n)*l,g=this.lFromU(_)*o,r=_,u=Math.cos(r)*g,f=Math.sin(r)*g;return[h,a,u,f]}};function Ee(s,e,_,o,i){return new Nt(s,e,_,o,i)}var Ct=class{constructor(){G(this,"mod",1);G(this,"TN",23);G(this,"as",1);G(this,"cx",0);G(this,"cy",0);G(this,"brr",50);G(this,"blr",50);G(this,"ar",54);G(this,"pr",53);G(this,"dr",52);G(this,"br",51);G(this,"bRound",1);G(this,"adt",.5);G(this,"initAngle",0);G(this,"axisAngle",0);G(this,"involArcPairs",1);G(this,"skinThickness",0);G(this,"involuteR",Ee(0,0,50,0,!0));G(this,"involuteL",Ee(0,0,50,0,!1));G(this,"rud",0);G(this,"rup",0);G(this,"rua",0);G(this,"rwd",0);G(this,"rwp",0);G(this,"rwa",0);G(this,"lud",0);G(this,"lup",0);G(this,"lua",0);G(this,"lwd",0);G(this,"lwp",0);G(this,"lwa",0);G(this,"msg");G(this,"initStep",0);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,_,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*e,this.br=this.dr-this.mod*_,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=Ee(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=Ee(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,_=Math.abs(this.lwa-this.lwp),o=s-e-_;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 _=(this.rua-this.rud)/s,o=(this.lua-this.lud)/s,i=this.initAngle+e*this.as,d=Ee(this.cx,this.cy,this.brr,i-this.rwp,!0),[c,n]=d.ptc(this.rud+0*_),l=J(c,n,"Gold");for(let S=0;S<s;S++){const[g,r]=d.ptc(this.rud+(S+1)*_);l.addSegStrokeA(g,r)}const h=i+this.as*this.adt,a=Ee(this.cx,this.cy,this.blr,h-this.lwp,!1);for(let S=0;S<s+1;S++){const[g,r]=a.ptc(this.lud+(s-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,_=this.dr>this.brr?this.dr:this.brr,o=this.dr>this.blr?this.dr:this.blr;if(this.bRound>_-this.br)throw`err409: getProfile bRound ${L(this.bRound)} too large for erdr ${L(_)} 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=le(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,S=c.translatePolar(a+s,this.br);l.addSegStrokeA(S.cx,S.cy).addCornerRounded(this.bRound);const g=Ee(this.cx,this.cy,this.brr,a-this.rwp,!0),[r,u]=g.ptc(this.rud),f=g.ptcta(this.rud),H=le(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),q=g.ptcta(O+i)+Math.PI,F=le(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,q)}const k=a+this.as*this.adt,M=Ee(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=le(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,q=M.ptcta(O-d),F=le(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,q)}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 Qe(){return new Ct}function It(s,e,_,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(_),c=s.cy+i*Math.sin(_);return[d,c,i]}function Vt(s,e,_,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=s.dr,g=S*e.TN/s.TN):(g=e.dr,S=g*s.TN/e.TN);break;case 1:g=S*e.TN/s.TN;break;case 2:S=g*s.TN/e.TN;break;case 3:S=f*s.TN/(s.TN+e.TN)*Math.cos(ve(c)),g=S*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(ve(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=S,u=g),[S,r,g,u]}var Bt=class{constructor(s,e,_,o,i,d){G(this,"gw1");G(this,"gw2");G(this,"initAngle1");G(this,"angleCenterCenter");G(this,"interAxis");G(this,"rightLeftCenter2");G(this,"msg");G(this,"apr");G(this,"apl");G(this,"lBDr",0);G(this,"lBDl",0);G(this,"laStartRr1",0);G(this,"laStartRr2",0);G(this,"laStartRl1",0);G(this,"laStartRl2",0);G(this,"aFODr1",0);G(this,"aFODr2",0);G(this,"aFODl1",0);G(this,"aFODl2",0);G(this,"lasr1",0);G(this,"lasr2",0);G(this,"lasl1",0);G(this,"lasl2",0);G(this,"firstToothUr1",0);G(this,"firstToothUl1",0);G(this,"ftdr1",0);G(this,"ftdl1",0);this.gw1=s,this.gw2=e,this.initAngle1=_,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
  `),Se(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)}
@@ -0,0 +1 @@
1
+ import{i as a}from"./K45ZhT9R.js";a();
@@ -0,0 +1 @@
1
+ var s;const a=((s=globalThis.__sveltekit_tg3xrz)==null?void 0:s.base)??"";var t;const e=((t=globalThis.__sveltekit_tg3xrz)==null?void 0:t.assets)??a;export{e as a,a as b};
@@ -0,0 +1 @@
1
+ import{b as o,E as f,d as i,n as p,e as c,h as d,g as h}from"./K45ZhT9R.js";function _(r,s,...t){var n=r,e=p,a;o(()=>{e!==(e=s())&&(a&&(c(a),a=null),a=i(()=>e(n,...t)))},f),d&&(n=h)}export{_ as s};