diff --git a/200.html b/200.html index 59bbeec..e8296d6 100644 --- a/200.html +++ b/200.html @@ -2,6 +2,6 @@ Resistor optimization - -
+ +
\ No newline at end of file diff --git a/404.html b/404.html index 59bbeec..e8296d6 100644 --- a/404.html +++ b/404.html @@ -2,6 +2,6 @@ Resistor optimization - -
+ +
\ No newline at end of file diff --git a/_nuxt/entry.4d9dde02.js b/_nuxt/entry.f670504c.js similarity index 99% rename from _nuxt/entry.4d9dde02.js rename to _nuxt/entry.f670504c.js index a8234d5..9594f75 100644 --- a/_nuxt/entry.4d9dde02.js +++ b/_nuxt/entry.f670504c.js @@ -2,6 +2,6 @@ function ms(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s{},Ke=Array.isArray,rh=/\/$/,sh=e=>e.replace(rh,"");function Br(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=ch(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function oh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Jo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ih(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Jt(t.matched[r],n.matched[s])&&Ql(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ql(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lh(e[n],t[n]))return!1;return!0}function lh(e,t){return Ke(e)?Qo(e,t):Ke(t)?Qo(t,e):e===t}function Qo(e,t){return Ke(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ch(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Tn;(function(e){e.pop="pop",e.push="push"})(Tn||(Tn={}));var gn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(gn||(gn={}));function ah(e){if(!e)if($t){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sh(e)}const uh=/^[^#]+#/;function fh(e,t){return e.replace(uh,"#")+t}function dh(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Rr=()=>({left:window.pageXOffset,top:window.pageYOffset});function hh(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=dh(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Yo(e,t){return(history.state?history.state.position-t:-1)+e}const ds=new Map;function ph(e,t){ds.set(e,t)}function gh(e){const t=ds.get(e);return ds.delete(e),t}let mh=()=>location.protocol+"//"+location.host;function Yl(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),Jo(c,"")}return Jo(n,e)+r+s}function yh(e,t,n,r){let s=[],o=[],i=null;const l=({state:p})=>{const _=Yl(e,location),b=n.value,w=t.value;let S=0;if(p){if(n.value=_,t.value=p,i&&i===b){i=null;return}S=w?p.position-w.position:0}else r(_);s.forEach(m=>{m(n.value,b,{delta:S,type:Tn.pop,direction:S?S>0?gn.forward:gn.back:gn.unknown})})};function c(){i=n.value}function a(p){s.push(p);const _=()=>{const b=s.indexOf(p);b>-1&&s.splice(b,1)};return o.push(_),_}function u(){const{history:p}=window;p.state&&p.replaceState(se({},p.state,{scroll:Rr()}),"")}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:f}}function Xo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Rr():null}}function _h(e){const{history:t,location:n}=window,r={value:Yl(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:mh()+e+c;try{t[u?"replaceState":"pushState"](a,"",p),s.value=a}catch(_){console.error(_),n[u?"replace":"assign"](p)}}function i(c,a){const u=se({},t.state,Xo(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});o(c,u,!0),r.value=c}function l(c,a){const u=se({},s.value,t.state,{forward:c,scroll:Rr()});o(u.current,u,!0);const f=se({},Xo(r.value,c,null),{position:u.position+1},a);o(c,f,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function Xl(e){e=ah(e);const t=_h(e),n=yh(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=se({location:"",base:e,go:r,createHref:fh.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function bh(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Xl(e)}function vh(e){return typeof e=="string"||e&&typeof e=="object"}function Zl(e){return typeof e=="string"||typeof e=="symbol"}const Ve={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Gl=Symbol("");var Zo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zo||(Zo={}));function Qt(e,t){return se(new Error,{type:e,[Gl]:!0},t)}function Xe(e,t){return e instanceof Error&&Gl in e&&(t==null||!!(e.type&t))}const Go="[^/]+?",wh={sensitive:!1,strict:!1,start:!0,end:!0},Eh=/[.+*?^${}()[\]/\\]/g;function Ch(e,t){const n=se({},wh,t),r=[];let s=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Th(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const xh={type:0,value:""},Ph=/[a-zA-Z0-9_]/;function Ah(e){if(!e)return[[]];if(e==="/")return[[xh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(_){throw new Error(`ERR (${n})/"${a}": ${_}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,a="",u="";function f(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=c}for(;l{i(g)}:pn}function i(u){if(Zl(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function c(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!ec(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!ni(u)&&r.set(u.record.name,u)}function a(u,f){let p,_={},b,w;if("name"in u&&u.name){if(p=r.get(u.name),!p)throw Qt(1,{location:u});w=p.record.name,_=se(ti(f.params,p.keys.filter(g=>!g.optional).map(g=>g.name)),u.params&&ti(u.params,p.keys.map(g=>g.name))),b=p.stringify(_)}else if("path"in u)b=u.path,p=n.find(g=>g.re.test(b)),p&&(_=p.parse(b),w=p.record.name);else{if(p=f.name?r.get(f.name):n.find(g=>g.re.test(f.path)),!p)throw Qt(1,{location:u,currentLocation:f});w=p.record.name,_=se({},f.params,u.params),b=p.stringify(_)}const S=[];let m=p;for(;m;)S.unshift(m.record),m=m.parent;return{name:w,path:b,params:_,matched:S,meta:Ih(S)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:l,getRecordMatcher:s}}function ti(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Sh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Hh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Hh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ni(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ih(e){return e.reduce((t,n)=>se(t,n.meta),{})}function ri(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ec(e,t){return t.children.some(n=>n===e||ec(e,n))}const tc=/#/g,$h=/&/g,Mh=/\//g,Nh=/=/g,Lh=/\?/g,nc=/\+/g,jh=/%5B/g,Fh=/%5D/g,rc=/%5E/g,Bh=/%60/g,sc=/%7B/g,Uh=/%7C/g,oc=/%7D/g,Dh=/%20/g;function Ks(e){return encodeURI(""+e).replace(Uh,"|").replace(jh,"[").replace(Fh,"]")}function Kh(e){return Ks(e).replace(sc,"{").replace(oc,"}").replace(rc,"^")}function hs(e){return Ks(e).replace(nc,"%2B").replace(Dh,"+").replace(tc,"%23").replace($h,"%26").replace(Bh,"`").replace(sc,"{").replace(oc,"}").replace(rc,"^")}function Wh(e){return hs(e).replace(Nh,"%3D")}function qh(e){return Ks(e).replace(tc,"%23").replace(Lh,"%3F")}function Vh(e){return e==null?"":qh(e).replace(Mh,"%2F")}function cr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function zh(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&hs(o)):[r&&hs(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ke(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Qh=Symbol(""),oi=Symbol(""),Ws=Symbol(""),qs=Symbol(""),ps=Symbol("");function on(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function at(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,l)=>{const c=f=>{f===!1?l(Qt(4,{from:n,to:t})):f instanceof Error?l(f):vh(f)?l(Qt(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),i())},a=e.call(r&&r.instances[s],t,n,c);let u=Promise.resolve(a);e.length<3&&(u=u.then(c)),u.catch(f=>l(f))})}function Ur(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let l=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(Yh(l)){const a=(l.__vccOpts||l)[t];a&&s.push(at(a,n,r,o,i))}else{let c=l();s.push(()=>c.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=nh(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&at(p,n,r,o,i)()}))}}return s}function Yh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ii(e){const t=Ee(Ws),n=Ee(qs),r=Ie(()=>t.resolve(ae(e.to))),s=Ie(()=>{const{matched:c}=r.value,{length:a}=c,u=c[a-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(Jt.bind(null,u));if(p>-1)return p;const _=li(c[a-2]);return a>1&&li(u)===_&&f[f.length-1].path!==_?f.findIndex(Jt.bind(null,c[a-2])):p}),o=Ie(()=>s.value>-1&&ep(n.params,r.value.params)),i=Ie(()=>s.value>-1&&s.value===n.matched.length-1&&Ql(n.params,r.value.params));function l(c={}){return Gh(c)?t[ae(e.replace)?"replace":"push"](ae(e.to)).catch(pn):Promise.resolve()}return{route:r,href:Ie(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Xh=Pt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ii,setup(e,{slots:t}){const n=pt(ii(e)),{options:r}=Ee(Ws),s=Ie(()=>({[ci(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ci(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Ne("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Zh=Xh;function Gh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ep(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ke(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function li(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ci=(e,t,n)=>e??t??n,tp=Pt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ee(ps),s=Ie(()=>e.route||r.value),o=Ee(oi,0),i=Ie(()=>{let a=ae(o);const{matched:u}=s.value;let f;for(;(f=u[a])&&!f.components;)a++;return a}),l=Ie(()=>s.value.matched[i.value]);Ct(oi,Ie(()=>i.value+1)),Ct(Qh,l),Ct(ps,s);const c=De();return Dt(()=>[c.value,l.value,e.name],([a,u,f],[p,_,b])=>{u&&(u.instances[f]=a,_&&_!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=_.leaveGuards),u.updateGuards.size||(u.updateGuards=_.updateGuards))),a&&u&&(!_||!Jt(u,_)||!p)&&(u.enterCallbacks[f]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=s.value,u=e.name,f=l.value,p=f&&f.components[u];if(!p)return ai(n.default,{Component:p,route:a});const _=f.props[u],b=_?_===!0?a.params:typeof _=="function"?_(a):_:null,S=Ne(p,se({},b,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return ai(n.default,{Component:S,route:a})||S}}});function ai(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ic=tp;function np(e){const t=Oh(e.routes,e),n=e.parseQuery||zh,r=e.stringifyQuery||si,s=e.history,o=on(),i=on(),l=on(),c=bn(Ve);let a=Ve;$t&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fr.bind(null,R=>""+R),f=Fr.bind(null,Vh),p=Fr.bind(null,cr);function _(R,j){let I,K;return Zl(R)?(I=t.getRecordMatcher(R),K=j):K=R,t.addRoute(K,I)}function b(R){const j=t.getRecordMatcher(R);j&&t.removeRoute(j)}function w(){return t.getRoutes().map(R=>R.record)}function S(R){return!!t.getRecordMatcher(R)}function m(R,j){if(j=se({},j||c.value),typeof R=="string"){const y=Br(n,R,j.path),E=t.resolve({path:y.path},j),x=s.createHref(y.fullPath);return se(y,E,{params:p(E.params),hash:cr(y.hash),redirectedFrom:void 0,href:x})}let I;if("path"in R)I=se({},R,{path:Br(n,R.path,j.path).path});else{const y=se({},R.params);for(const E in y)y[E]==null&&delete y[E];I=se({},R,{params:f(y)}),j.params=f(j.params)}const K=t.resolve(I,j),re=R.hash||"";K.params=u(p(K.params));const d=oh(r,se({},R,{hash:Kh(re),path:K.path})),h=s.createHref(d);return se({fullPath:d,hash:re,query:r===si?Jh(R.query):R.query||{}},K,{redirectedFrom:void 0,href:h})}function g(R){return typeof R=="string"?Br(n,R,c.value.path):se({},R)}function C(R,j){if(a!==R)return Qt(8,{from:j,to:R})}function v(R){return $(R)}function P(R){return v(se(g(R),{replace:!0}))}function M(R){const j=R.matched[R.matched.length-1];if(j&&j.redirect){const{redirect:I}=j;let K=typeof I=="function"?I(R):I;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=g(K):{path:K},K.params={}),se({query:R.query,hash:R.hash,params:"path"in K?{}:R.params},K)}}function $(R,j){const I=a=m(R),K=c.value,re=R.state,d=R.force,h=R.replace===!0,y=M(I);if(y)return $(se(g(y),{state:typeof y=="object"?se({},re,y.state):re,force:d,replace:h}),j||I);const E=I;E.redirectedFrom=j;let x;return!d&&ih(r,K,I)&&(x=Qt(16,{to:E,from:K}),We(K,K,!0,!1)),(x?Promise.resolve(x):D(E,K)).catch(A=>Xe(A)?Xe(A,2)?A:rt(A):ne(A,E,K)).then(A=>{if(A){if(Xe(A,2))return $(se({replace:h},g(A.to),{state:typeof A.to=="object"?se({},re,A.to.state):re,force:d}),j||E)}else A=L(E,K,!0,h,re);return J(E,K,A),A})}function T(R,j){const I=C(R,j);return I?Promise.reject(I):Promise.resolve()}function F(R){const j=Ot.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(R):R()}function D(R,j){let I;const[K,re,d]=rp(R,j);I=Ur(K.reverse(),"beforeRouteLeave",R,j);for(const y of K)y.leaveGuards.forEach(E=>{I.push(at(E,R,j))});const h=T.bind(null,R,j);return I.push(h),be(I).then(()=>{I=[];for(const y of o.list())I.push(at(y,R,j));return I.push(h),be(I)}).then(()=>{I=Ur(re,"beforeRouteUpdate",R,j);for(const y of re)y.updateGuards.forEach(E=>{I.push(at(E,R,j))});return I.push(h),be(I)}).then(()=>{I=[];for(const y of d)if(y.beforeEnter)if(Ke(y.beforeEnter))for(const E of y.beforeEnter)I.push(at(E,R,j));else I.push(at(y.beforeEnter,R,j));return I.push(h),be(I)}).then(()=>(R.matched.forEach(y=>y.enterCallbacks={}),I=Ur(d,"beforeRouteEnter",R,j),I.push(h),be(I))).then(()=>{I=[];for(const y of i.list())I.push(at(y,R,j));return I.push(h),be(I)}).catch(y=>Xe(y,8)?y:Promise.reject(y))}function J(R,j,I){for(const K of l.list())F(()=>K(R,j,I))}function L(R,j,I,K,re){const d=C(R,j);if(d)return d;const h=j===Ve,y=$t?history.state:{};I&&(K||h?s.replace(R.fullPath,se({scroll:h&&y&&y.scroll},re)):s.push(R.fullPath,re)),c.value=R,We(R,j,I,h),rt()}let z;function B(){z||(z=s.listen((R,j,I)=>{if(!$n.listening)return;const K=m(R),re=M(K);if(re){$(se(re,{replace:!0}),K).catch(pn);return}a=K;const d=c.value;$t&&ph(Yo(d.fullPath,I.delta),Rr()),D(K,d).catch(h=>Xe(h,12)?h:Xe(h,2)?($(h.to,K).then(y=>{Xe(y,20)&&!I.delta&&I.type===Tn.pop&&s.go(-1,!1)}).catch(pn),Promise.reject()):(I.delta&&s.go(-I.delta,!1),ne(h,K,d))).then(h=>{h=h||L(K,d,!1),h&&(I.delta&&!Xe(h,8)?s.go(-I.delta,!1):I.type===Tn.pop&&Xe(h,20)&&s.go(-1,!1)),J(K,d,h)}).catch(pn)}))}let he=on(),Z=on(),te;function ne(R,j,I){rt(R);const K=Z.list();return K.length?K.forEach(re=>re(R,j,I)):console.error(R),Promise.reject(R)}function Ye(){return te&&c.value!==Ve?Promise.resolve():new Promise((R,j)=>{he.add([R,j])})}function rt(R){return te||(te=!R,B(),he.list().forEach(([j,I])=>R?I(R):j()),he.reset()),R}function We(R,j,I,K){const{scrollBehavior:re}=e;if(!$t||!re)return Promise.resolve();const d=!I&&gh(Yo(R.fullPath,0))||(K||!I)&&history.state&&history.state.scroll||null;return xt().then(()=>re(R,j,d)).then(h=>h&&hh(h)).catch(h=>ne(h,R,j))}const Ce=R=>s.go(R);let kt;const Ot=new Set,$n={currentRoute:c,listening:!0,addRoute:_,removeRoute:b,hasRoute:S,getRoutes:w,resolve:m,options:e,push:v,replace:P,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:Z.add,isReady:Ye,install(R){const j=this;R.component("RouterLink",Zh),R.component("RouterView",ic),R.config.globalProperties.$router=j,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ae(c)}),$t&&!kt&&c.value===Ve&&(kt=!0,v(s.location).catch(re=>{}));const I={};for(const re in Ve)Object.defineProperty(I,re,{get:()=>c.value[re],enumerable:!0});R.provide(Ws,j),R.provide(qs,An(I)),R.provide(ps,c);const K=R.unmount;Ot.add(R),R.unmount=function(){Ot.delete(R),Ot.size<1&&(a=Ve,z&&z(),z=null,c.value=Ve,kt=!1,te=!1),K()}}};function be(R){return R.reduce((j,I)=>j.then(()=>F(I)),Promise.resolve())}return $n}function rp(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iJt(a,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Jt(a,c))||s.push(c))}return[n,r,s]}function sp(){return Ee(qs)}const ui=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>or(()=>import("./index.2c297755.js"),["./index.2c297755.js","./index.9ecc198b.css"],import.meta.url).then(e=>e.default||e)}],op={scrollBehavior(e,t,n){const r=de();let s=n||void 0;if(!s&&t&&e&&e.meta.scrollToTop!==!1&&ip(t,e)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:fi(e.hash)}}const o=l=>!!(l.meta.pageTransition??ls),i=o(t)&&o(e)?"page:transition:finish":"page:finish";return new Promise(l=>{r.hooks.hookOnce(i,async()=>{await xt(),e.hash&&(s={el:e.hash,top:fi(e.hash)}),l(s)})})}};function fi(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function ip(e,t){const n=t.matched.every((r,s)=>{var o,i,l;return((o=r.components)==null?void 0:o.default)===((l=(i=e.matched[s])==null?void 0:i.components)==null?void 0:l.default)});return!!(!n||n&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const lp={},Re={...lp,...op},cp=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=de(),s=en();if(([t,n]=sr(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=Ds({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),l=s.beforeResolve(a=>{if(l(),a===e){const u=s.afterEach(async()=>{u(),await r.runWithContext(()=>Mt(i)),window.history.pushState({},"",e.fullPath)});return!1}})},ap=[cp],mn={};function up(e,t,n){const{pathname:r,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){const c=o.includes(e.slice(i))?e.slice(i).length:1;let a=o.slice(c);return a[0]!=="/"&&(a="/"+a),Mo(a,"")}const l=n||Mo(r,e);return l+(l.includes("?")?"":s)+o}const fp=At({name:"nuxt:router",enforce:"pre",async setup(e){var w,S;let t,n,r=Bs().app.baseURL;Re.hashMode&&!r.includes("#")&&(r+="#");const s=((w=Re.history)==null?void 0:w.call(Re,r))??(Re.hashMode?bh(r):Xl(r)),o=((S=Re.routes)==null?void 0:S.call(Re,ui))??ui;let i;const l=up(r,window.location,e.payload.path),c=np({...Re,scrollBehavior:(m,g,C)=>{var v;if(g===Ve){i=C;return}return c.options.scrollBehavior=Re.scrollBehavior,(v=Re.scrollBehavior)==null?void 0:v.call(Re,m,Ve,i||C)},history:s,routes:o});e.vueApp.use(c);const a=bn(c.currentRoute.value);c.afterEach((m,g)=>{a.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>a.value});const u=bn(c.resolve(l)),f=()=>{u.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((m,g)=>{var C,v,P,M;((v=(C=m.matched[0])==null?void 0:C.components)==null?void 0:v.default)===((M=(P=g.matched[0])==null?void 0:P.components)==null?void 0:M.default)&&f()});const p={};for(const m in u.value)Object.defineProperty(p,m,{get:()=>u.value[m]});e._route=An(p),e._middleware=e._middleware||{global:[],named:{}};const _=Cr();try{[t,n]=sr(()=>c.isReady()),await t,n()}catch(m){[t,n]=sr(()=>e.runWithContext(()=>Mt(m))),await t,n()}const b=Xd("_layout");return c.beforeEach(async(m,g)=>{var C;m.meta=pt(m.meta),e.isHydrating&&b.value&&!Tt(m.meta.layout)&&(m.meta.layout=b.value),e._processingMiddleware=!0;{const v=new Set([...ap,...e._middleware.global]);for(const P of m.matched){const M=P.meta.middleware;if(M)if(Array.isArray(M))for(const $ of M)v.add($);else v.add(M)}for(const P of v){const M=typeof P=="string"?e._middleware.named[P]||await((C=mn[P])==null?void 0:C.call(mn).then(T=>T.default||T)):P;if(!M)throw new Error(`Unknown route middleware: '${P}'.`);const $=await e.runWithContext(()=>M(m,g));if(!e.payload.serverRendered&&e.isHydrating&&($===!1||$ instanceof Error)){const T=$||us({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Mt(T)),!1}if($||$===!1)return $}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(m,g,C)=>{delete e._processingMiddleware,!e.isHydrating&&_.value&&await e.runWithContext(Gd),m.matched.length===0&&await e.runWithContext(()=>Mt(us({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(l),name:void 0,force:!0}),c.options.scrollBehavior=Re.scrollBehavior}catch(m){await e.runWithContext(()=>Mt(m))}}),{provide:{router:c}}}}),dp=At({name:"nuxt:payload",setup(e){Kd()&&(e.hooks.hook("link:prefetch",async t=>{Er(t).protocol||await qo(t)}),en().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await qo(t.path);r&&Object.assign(e.static.data,r.data)}))}}),hp=At({name:"nuxt:global-components"}),pp=At({name:"nuxt:head",setup(e){const n=Id();n.push(Ld),e.vueApp.use(n);{let r=!0;const s=()=>{r=!1,n.hooks.callHook("entries:updated",n)};n.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",s),e.hooks.hook("app:suspense:resolve",s)}}}),wt={},gp=At({name:"nuxt:prefetch",setup(e){const t=en();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof wt[r]=="function"&&await wt[r]()})}),e.hooks.hook("link:prefetch",n=>{var i,l,c,a;if(Sn(n))return;const r=t.resolve(n);if(!r)return;const s=(i=r==null?void 0:r.meta)==null?void 0:i.layout;let o=Array.isArray((l=r==null?void 0:r.meta)==null?void 0:l.middleware)?(c=r==null?void 0:r.meta)==null?void 0:c.middleware:[(a=r==null?void 0:r.meta)==null?void 0:a.middleware];o=o.filter(u=>typeof u=="string");for(const u of o)typeof mn[u]=="function"&&mn[u]();s&&typeof wt[s]=="function"&&wt[s]()})}});function mp(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)}),t.onError((s,o)=>{if(r.has(s)){const l="href"in o&&o.href.startsWith("#")?n.app.baseURL+o.href:Hn(n.app.baseURL,o.fullPath);mp({path:l,persistState:!0})}})}}),_p=[th,fp,dp,hp,pp,gp,yp],bp=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),gs=(e,t)=>{const n=e.route.matched.find(s=>{var o;return((o=s.components)==null?void 0:o.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&bp(e.route,n));return typeof r=="function"?r(e.route):r},vp=(e,t)=>({default:()=>e?Ne(xa,e===!0?{}:e,t):t}),wp=Pt({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s]});return Ct(In,An(r)),()=>Ne(e.vnode,{ref:e.vnodeRef})}}),lc=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ne(e,t,n):(r=n.default)==null?void 0:r.call(n)}}),Ep=Pt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=de(),s=De(),o=Ee(In,null);n({pageRef:s});const i=Ee(zl,null);let l;return()=>Ne(ic,{name:e.name,route:e.route,...t},{default:c=>{const a=Tp(o,c.route,c.Component),u=o&&o.matched.length===c.route.matched.length;if(!c.Component)return l&&!u?l:void 0;if(l&&i&&!i.isCurrent(c.route))return l;if(a&&o&&(!i||i!=null&&i.isCurrent(o)))return u?l:null;const f=gs(c,e.pageKey),p=r.deferHydration(),_=!!(e.transition??c.route.meta.pageTransition??ls),b=_&&Rp([e.transition,c.route.meta.pageTransition,ls,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return l=lc(wr,_&&b,vp(e.keepalive??c.route.meta.keepalive??Fd,Ne(Ss,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{xt(()=>r.callHook("page:finish",c.Component).finally(p))}},{default:()=>Ne(wp,{key:f,vnode:c.Component,route:c.route,renderKey:f,trackRootNodes:_,vnodeRef:s})}))).default(),l}})}});function Cp(e){return Array.isArray(e)?e:e?[e]:[]}function Rp(e){const t=e.map(n=>({...n,onAfterLeave:Cp(n.onAfterLeave)}));return zd(...t)}function Tp(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var o;return((o=s.components)==null?void 0:o.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,o)=>{var i,l,c;return((i=s.components)==null?void 0:i.default)!==((c=(l=e.matched[o])==null?void 0:l.components)==null?void 0:c.default)})||n&&gs({route:t,Component:n})!==gs({route:e,Component:n})}const xp=Pt({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const n=de(),r=Ee(In),s=r===Jl()?sp():r,o=Ie(()=>ae(e.name)??s.meta.layout??"default"),i=De();return t.expose({layoutRef:i}),()=>{const l=n.deferHydration(),c=o.value&&o.value in wt,a=s.meta.layoutTransition??jd;return lc(wr,c&&a,{default:()=>Ne(Ss,{suspensible:!0,onResolve:()=>{xt(l)}},{default:()=>Ne(Pp,{layoutProps:vl(t.attrs,{ref:i}),key:o.value,name:o.value,shouldProvide:!e.name,hasTransition:!!a},t.slots)})}).default()}}}),Pp=Pt({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Ct(zl,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in wt)?(s=(r=t.slots).default)==null?void 0:s.call(r):Ne(wt[n],e.layoutProps,t.slots)}}}),Ap=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},kp={};function Op(e,t){const n=Ep,r=xp;return Ge(),ut(r,null,{default:ks(()=>[fe(n)]),_:1})}const Sp=Ap(kp,[["render",Op]]),Hp={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(` + */const $t=typeof window<"u";function nh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const se=Object.assign;function Fr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Ke(s)?s.map(e):e(s)}return n}const pn=()=>{},Ke=Array.isArray,rh=/\/$/,sh=e=>e.replace(rh,"");function Br(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=ch(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function oh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Jo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ih(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Jt(t.matched[r],n.matched[s])&&Ql(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ql(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lh(e[n],t[n]))return!1;return!0}function lh(e,t){return Ke(e)?Qo(e,t):Ke(t)?Qo(t,e):e===t}function Qo(e,t){return Ke(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function ch(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Tn;(function(e){e.pop="pop",e.push="push"})(Tn||(Tn={}));var gn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(gn||(gn={}));function ah(e){if(!e)if($t){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sh(e)}const uh=/^[^#]+#/;function fh(e,t){return e.replace(uh,"#")+t}function dh(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Rr=()=>({left:window.pageXOffset,top:window.pageYOffset});function hh(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=dh(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Yo(e,t){return(history.state?history.state.position-t:-1)+e}const ds=new Map;function ph(e,t){ds.set(e,t)}function gh(e){const t=ds.get(e);return ds.delete(e),t}let mh=()=>location.protocol+"//"+location.host;function Yl(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),Jo(c,"")}return Jo(n,e)+r+s}function yh(e,t,n,r){let s=[],o=[],i=null;const l=({state:p})=>{const _=Yl(e,location),b=n.value,w=t.value;let S=0;if(p){if(n.value=_,t.value=p,i&&i===b){i=null;return}S=w?p.position-w.position:0}else r(_);s.forEach(m=>{m(n.value,b,{delta:S,type:Tn.pop,direction:S?S>0?gn.forward:gn.back:gn.unknown})})};function c(){i=n.value}function a(p){s.push(p);const _=()=>{const b=s.indexOf(p);b>-1&&s.splice(b,1)};return o.push(_),_}function u(){const{history:p}=window;p.state&&p.replaceState(se({},p.state,{scroll:Rr()}),"")}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:f}}function Xo(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Rr():null}}function _h(e){const{history:t,location:n}=window,r={value:Yl(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:mh()+e+c;try{t[u?"replaceState":"pushState"](a,"",p),s.value=a}catch(_){console.error(_),n[u?"replace":"assign"](p)}}function i(c,a){const u=se({},t.state,Xo(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});o(c,u,!0),r.value=c}function l(c,a){const u=se({},s.value,t.state,{forward:c,scroll:Rr()});o(u.current,u,!0);const f=se({},Xo(r.value,c,null),{position:u.position+1},a);o(c,f,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function Xl(e){e=ah(e);const t=_h(e),n=yh(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=se({location:"",base:e,go:r,createHref:fh.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function bh(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Xl(e)}function vh(e){return typeof e=="string"||e&&typeof e=="object"}function Zl(e){return typeof e=="string"||typeof e=="symbol"}const Ve={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Gl=Symbol("");var Zo;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zo||(Zo={}));function Qt(e,t){return se(new Error,{type:e,[Gl]:!0},t)}function Xe(e,t){return e instanceof Error&&Gl in e&&(t==null||!!(e.type&t))}const Go="[^/]+?",wh={sensitive:!1,strict:!1,start:!0,end:!0},Eh=/[.+*?^${}()[\]/\\]/g;function Ch(e,t){const n=se({},wh,t),r=[];let s=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Th(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const xh={type:0,value:""},Ph=/[a-zA-Z0-9_]/;function Ah(e){if(!e)return[[]];if(e==="/")return[[xh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(_){throw new Error(`ERR (${n})/"${a}": ${_}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,a="",u="";function f(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=c}for(;l{i(g)}:pn}function i(u){if(Zl(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function c(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!ec(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!ni(u)&&r.set(u.record.name,u)}function a(u,f){let p,_={},b,w;if("name"in u&&u.name){if(p=r.get(u.name),!p)throw Qt(1,{location:u});w=p.record.name,_=se(ti(f.params,p.keys.filter(g=>!g.optional).map(g=>g.name)),u.params&&ti(u.params,p.keys.map(g=>g.name))),b=p.stringify(_)}else if("path"in u)b=u.path,p=n.find(g=>g.re.test(b)),p&&(_=p.parse(b),w=p.record.name);else{if(p=f.name?r.get(f.name):n.find(g=>g.re.test(f.path)),!p)throw Qt(1,{location:u,currentLocation:f});w=p.record.name,_=se({},f.params,u.params),b=p.stringify(_)}const S=[];let m=p;for(;m;)S.unshift(m.record),m=m.parent;return{name:w,path:b,params:_,matched:S,meta:Ih(S)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:l,getRecordMatcher:s}}function ti(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Sh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Hh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Hh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function ni(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ih(e){return e.reduce((t,n)=>se(t,n.meta),{})}function ri(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ec(e,t){return t.children.some(n=>n===e||ec(e,n))}const tc=/#/g,$h=/&/g,Mh=/\//g,Nh=/=/g,Lh=/\?/g,nc=/\+/g,jh=/%5B/g,Fh=/%5D/g,rc=/%5E/g,Bh=/%60/g,sc=/%7B/g,Uh=/%7C/g,oc=/%7D/g,Dh=/%20/g;function Ks(e){return encodeURI(""+e).replace(Uh,"|").replace(jh,"[").replace(Fh,"]")}function Kh(e){return Ks(e).replace(sc,"{").replace(oc,"}").replace(rc,"^")}function hs(e){return Ks(e).replace(nc,"%2B").replace(Dh,"+").replace(tc,"%23").replace($h,"%26").replace(Bh,"`").replace(sc,"{").replace(oc,"}").replace(rc,"^")}function Wh(e){return hs(e).replace(Nh,"%3D")}function qh(e){return Ks(e).replace(tc,"%23").replace(Lh,"%3F")}function Vh(e){return e==null?"":qh(e).replace(Mh,"%2F")}function cr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function zh(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&hs(o)):[r&&hs(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jh(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ke(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Qh=Symbol(""),oi=Symbol(""),Ws=Symbol(""),qs=Symbol(""),ps=Symbol("");function on(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function at(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,l)=>{const c=f=>{f===!1?l(Qt(4,{from:n,to:t})):f instanceof Error?l(f):vh(f)?l(Qt(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),i())},a=e.call(r&&r.instances[s],t,n,c);let u=Promise.resolve(a);e.length<3&&(u=u.then(c)),u.catch(f=>l(f))})}function Ur(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let l=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(Yh(l)){const a=(l.__vccOpts||l)[t];a&&s.push(at(a,n,r,o,i))}else{let c=l();s.push(()=>c.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=nh(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&at(p,n,r,o,i)()}))}}return s}function Yh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ii(e){const t=Ee(Ws),n=Ee(qs),r=Ie(()=>t.resolve(ae(e.to))),s=Ie(()=>{const{matched:c}=r.value,{length:a}=c,u=c[a-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(Jt.bind(null,u));if(p>-1)return p;const _=li(c[a-2]);return a>1&&li(u)===_&&f[f.length-1].path!==_?f.findIndex(Jt.bind(null,c[a-2])):p}),o=Ie(()=>s.value>-1&&ep(n.params,r.value.params)),i=Ie(()=>s.value>-1&&s.value===n.matched.length-1&&Ql(n.params,r.value.params));function l(c={}){return Gh(c)?t[ae(e.replace)?"replace":"push"](ae(e.to)).catch(pn):Promise.resolve()}return{route:r,href:Ie(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Xh=Pt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:ii,setup(e,{slots:t}){const n=pt(ii(e)),{options:r}=Ee(Ws),s=Ie(()=>({[ci(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ci(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Ne("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Zh=Xh;function Gh(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ep(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Ke(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function li(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ci=(e,t,n)=>e??t??n,tp=Pt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ee(ps),s=Ie(()=>e.route||r.value),o=Ee(oi,0),i=Ie(()=>{let a=ae(o);const{matched:u}=s.value;let f;for(;(f=u[a])&&!f.components;)a++;return a}),l=Ie(()=>s.value.matched[i.value]);Ct(oi,Ie(()=>i.value+1)),Ct(Qh,l),Ct(ps,s);const c=De();return Dt(()=>[c.value,l.value,e.name],([a,u,f],[p,_,b])=>{u&&(u.instances[f]=a,_&&_!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=_.leaveGuards),u.updateGuards.size||(u.updateGuards=_.updateGuards))),a&&u&&(!_||!Jt(u,_)||!p)&&(u.enterCallbacks[f]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=s.value,u=e.name,f=l.value,p=f&&f.components[u];if(!p)return ai(n.default,{Component:p,route:a});const _=f.props[u],b=_?_===!0?a.params:typeof _=="function"?_(a):_:null,S=Ne(p,se({},b,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[u]=null)},ref:c}));return ai(n.default,{Component:S,route:a})||S}}});function ai(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ic=tp;function np(e){const t=Oh(e.routes,e),n=e.parseQuery||zh,r=e.stringifyQuery||si,s=e.history,o=on(),i=on(),l=on(),c=bn(Ve);let a=Ve;$t&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Fr.bind(null,R=>""+R),f=Fr.bind(null,Vh),p=Fr.bind(null,cr);function _(R,j){let I,K;return Zl(R)?(I=t.getRecordMatcher(R),K=j):K=R,t.addRoute(K,I)}function b(R){const j=t.getRecordMatcher(R);j&&t.removeRoute(j)}function w(){return t.getRoutes().map(R=>R.record)}function S(R){return!!t.getRecordMatcher(R)}function m(R,j){if(j=se({},j||c.value),typeof R=="string"){const y=Br(n,R,j.path),E=t.resolve({path:y.path},j),x=s.createHref(y.fullPath);return se(y,E,{params:p(E.params),hash:cr(y.hash),redirectedFrom:void 0,href:x})}let I;if("path"in R)I=se({},R,{path:Br(n,R.path,j.path).path});else{const y=se({},R.params);for(const E in y)y[E]==null&&delete y[E];I=se({},R,{params:f(y)}),j.params=f(j.params)}const K=t.resolve(I,j),re=R.hash||"";K.params=u(p(K.params));const d=oh(r,se({},R,{hash:Kh(re),path:K.path})),h=s.createHref(d);return se({fullPath:d,hash:re,query:r===si?Jh(R.query):R.query||{}},K,{redirectedFrom:void 0,href:h})}function g(R){return typeof R=="string"?Br(n,R,c.value.path):se({},R)}function C(R,j){if(a!==R)return Qt(8,{from:j,to:R})}function v(R){return $(R)}function P(R){return v(se(g(R),{replace:!0}))}function M(R){const j=R.matched[R.matched.length-1];if(j&&j.redirect){const{redirect:I}=j;let K=typeof I=="function"?I(R):I;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=g(K):{path:K},K.params={}),se({query:R.query,hash:R.hash,params:"path"in K?{}:R.params},K)}}function $(R,j){const I=a=m(R),K=c.value,re=R.state,d=R.force,h=R.replace===!0,y=M(I);if(y)return $(se(g(y),{state:typeof y=="object"?se({},re,y.state):re,force:d,replace:h}),j||I);const E=I;E.redirectedFrom=j;let x;return!d&&ih(r,K,I)&&(x=Qt(16,{to:E,from:K}),We(K,K,!0,!1)),(x?Promise.resolve(x):D(E,K)).catch(A=>Xe(A)?Xe(A,2)?A:rt(A):ne(A,E,K)).then(A=>{if(A){if(Xe(A,2))return $(se({replace:h},g(A.to),{state:typeof A.to=="object"?se({},re,A.to.state):re,force:d}),j||E)}else A=L(E,K,!0,h,re);return J(E,K,A),A})}function T(R,j){const I=C(R,j);return I?Promise.reject(I):Promise.resolve()}function F(R){const j=Ot.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(R):R()}function D(R,j){let I;const[K,re,d]=rp(R,j);I=Ur(K.reverse(),"beforeRouteLeave",R,j);for(const y of K)y.leaveGuards.forEach(E=>{I.push(at(E,R,j))});const h=T.bind(null,R,j);return I.push(h),be(I).then(()=>{I=[];for(const y of o.list())I.push(at(y,R,j));return I.push(h),be(I)}).then(()=>{I=Ur(re,"beforeRouteUpdate",R,j);for(const y of re)y.updateGuards.forEach(E=>{I.push(at(E,R,j))});return I.push(h),be(I)}).then(()=>{I=[];for(const y of d)if(y.beforeEnter)if(Ke(y.beforeEnter))for(const E of y.beforeEnter)I.push(at(E,R,j));else I.push(at(y.beforeEnter,R,j));return I.push(h),be(I)}).then(()=>(R.matched.forEach(y=>y.enterCallbacks={}),I=Ur(d,"beforeRouteEnter",R,j),I.push(h),be(I))).then(()=>{I=[];for(const y of i.list())I.push(at(y,R,j));return I.push(h),be(I)}).catch(y=>Xe(y,8)?y:Promise.reject(y))}function J(R,j,I){for(const K of l.list())F(()=>K(R,j,I))}function L(R,j,I,K,re){const d=C(R,j);if(d)return d;const h=j===Ve,y=$t?history.state:{};I&&(K||h?s.replace(R.fullPath,se({scroll:h&&y&&y.scroll},re)):s.push(R.fullPath,re)),c.value=R,We(R,j,I,h),rt()}let z;function B(){z||(z=s.listen((R,j,I)=>{if(!$n.listening)return;const K=m(R),re=M(K);if(re){$(se(re,{replace:!0}),K).catch(pn);return}a=K;const d=c.value;$t&&ph(Yo(d.fullPath,I.delta),Rr()),D(K,d).catch(h=>Xe(h,12)?h:Xe(h,2)?($(h.to,K).then(y=>{Xe(y,20)&&!I.delta&&I.type===Tn.pop&&s.go(-1,!1)}).catch(pn),Promise.reject()):(I.delta&&s.go(-I.delta,!1),ne(h,K,d))).then(h=>{h=h||L(K,d,!1),h&&(I.delta&&!Xe(h,8)?s.go(-I.delta,!1):I.type===Tn.pop&&Xe(h,20)&&s.go(-1,!1)),J(K,d,h)}).catch(pn)}))}let he=on(),Z=on(),te;function ne(R,j,I){rt(R);const K=Z.list();return K.length?K.forEach(re=>re(R,j,I)):console.error(R),Promise.reject(R)}function Ye(){return te&&c.value!==Ve?Promise.resolve():new Promise((R,j)=>{he.add([R,j])})}function rt(R){return te||(te=!R,B(),he.list().forEach(([j,I])=>R?I(R):j()),he.reset()),R}function We(R,j,I,K){const{scrollBehavior:re}=e;if(!$t||!re)return Promise.resolve();const d=!I&&gh(Yo(R.fullPath,0))||(K||!I)&&history.state&&history.state.scroll||null;return xt().then(()=>re(R,j,d)).then(h=>h&&hh(h)).catch(h=>ne(h,R,j))}const Ce=R=>s.go(R);let kt;const Ot=new Set,$n={currentRoute:c,listening:!0,addRoute:_,removeRoute:b,hasRoute:S,getRoutes:w,resolve:m,options:e,push:v,replace:P,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:Z.add,isReady:Ye,install(R){const j=this;R.component("RouterLink",Zh),R.component("RouterView",ic),R.config.globalProperties.$router=j,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ae(c)}),$t&&!kt&&c.value===Ve&&(kt=!0,v(s.location).catch(re=>{}));const I={};for(const re in Ve)Object.defineProperty(I,re,{get:()=>c.value[re],enumerable:!0});R.provide(Ws,j),R.provide(qs,An(I)),R.provide(ps,c);const K=R.unmount;Ot.add(R),R.unmount=function(){Ot.delete(R),Ot.size<1&&(a=Ve,z&&z(),z=null,c.value=Ve,kt=!1,te=!1),K()}}};function be(R){return R.reduce((j,I)=>j.then(()=>F(I)),Promise.resolve())}return $n}function rp(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iJt(a,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Jt(a,c))||s.push(c))}return[n,r,s]}function sp(){return Ee(qs)}const ui=[{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>or(()=>import("./index.672b397f.js"),["./index.672b397f.js","./index.9ecc198b.css"],import.meta.url).then(e=>e.default||e)}],op={scrollBehavior(e,t,n){const r=de();let s=n||void 0;if(!s&&t&&e&&e.meta.scrollToTop!==!1&&ip(t,e)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:fi(e.hash)}}const o=l=>!!(l.meta.pageTransition??ls),i=o(t)&&o(e)?"page:transition:finish":"page:finish";return new Promise(l=>{r.hooks.hookOnce(i,async()=>{await xt(),e.hash&&(s={el:e.hash,top:fi(e.hash)}),l(s)})})}};function fi(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function ip(e,t){const n=t.matched.every((r,s)=>{var o,i,l;return((o=r.components)==null?void 0:o.default)===((l=(i=e.matched[s])==null?void 0:i.components)==null?void 0:l.default)});return!!(!n||n&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const lp={},Re={...lp,...op},cp=async e=>{var c;let t,n;if(!((c=e.meta)!=null&&c.validate))return;const r=de(),s=en();if(([t,n]=sr(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=Ds({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),l=s.beforeResolve(a=>{if(l(),a===e){const u=s.afterEach(async()=>{u(),await r.runWithContext(()=>Mt(i)),window.history.pushState({},"",e.fullPath)});return!1}})},ap=[cp],mn={};function up(e,t,n){const{pathname:r,search:s,hash:o}=t,i=e.indexOf("#");if(i>-1){const c=o.includes(e.slice(i))?e.slice(i).length:1;let a=o.slice(c);return a[0]!=="/"&&(a="/"+a),Mo(a,"")}const l=n||Mo(r,e);return l+(l.includes("?")?"":s)+o}const fp=At({name:"nuxt:router",enforce:"pre",async setup(e){var w,S;let t,n,r=Bs().app.baseURL;Re.hashMode&&!r.includes("#")&&(r+="#");const s=((w=Re.history)==null?void 0:w.call(Re,r))??(Re.hashMode?bh(r):Xl(r)),o=((S=Re.routes)==null?void 0:S.call(Re,ui))??ui;let i;const l=up(r,window.location,e.payload.path),c=np({...Re,scrollBehavior:(m,g,C)=>{var v;if(g===Ve){i=C;return}return c.options.scrollBehavior=Re.scrollBehavior,(v=Re.scrollBehavior)==null?void 0:v.call(Re,m,Ve,i||C)},history:s,routes:o});e.vueApp.use(c);const a=bn(c.currentRoute.value);c.afterEach((m,g)=>{a.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>a.value});const u=bn(c.resolve(l)),f=()=>{u.value=c.currentRoute.value};e.hook("page:finish",f),c.afterEach((m,g)=>{var C,v,P,M;((v=(C=m.matched[0])==null?void 0:C.components)==null?void 0:v.default)===((M=(P=g.matched[0])==null?void 0:P.components)==null?void 0:M.default)&&f()});const p={};for(const m in u.value)Object.defineProperty(p,m,{get:()=>u.value[m]});e._route=An(p),e._middleware=e._middleware||{global:[],named:{}};const _=Cr();try{[t,n]=sr(()=>c.isReady()),await t,n()}catch(m){[t,n]=sr(()=>e.runWithContext(()=>Mt(m))),await t,n()}const b=Xd("_layout");return c.beforeEach(async(m,g)=>{var C;m.meta=pt(m.meta),e.isHydrating&&b.value&&!Tt(m.meta.layout)&&(m.meta.layout=b.value),e._processingMiddleware=!0;{const v=new Set([...ap,...e._middleware.global]);for(const P of m.matched){const M=P.meta.middleware;if(M)if(Array.isArray(M))for(const $ of M)v.add($);else v.add(M)}for(const P of v){const M=typeof P=="string"?e._middleware.named[P]||await((C=mn[P])==null?void 0:C.call(mn).then(T=>T.default||T)):P;if(!M)throw new Error(`Unknown route middleware: '${P}'.`);const $=await e.runWithContext(()=>M(m,g));if(!e.payload.serverRendered&&e.isHydrating&&($===!1||$ instanceof Error)){const T=$||us({statusCode:404,statusMessage:`Page Not Found: ${l}`});return await e.runWithContext(()=>Mt(T)),!1}if($||$===!1)return $}}}),c.onError(()=>{delete e._processingMiddleware}),c.afterEach(async(m,g,C)=>{delete e._processingMiddleware,!e.isHydrating&&_.value&&await e.runWithContext(Gd),m.matched.length===0&&await e.runWithContext(()=>Mt(us({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`})))}),e.hooks.hookOnce("app:created",async()=>{try{await c.replace({...c.resolve(l),name:void 0,force:!0}),c.options.scrollBehavior=Re.scrollBehavior}catch(m){await e.runWithContext(()=>Mt(m))}}),{provide:{router:c}}}}),dp=At({name:"nuxt:payload",setup(e){Kd()&&(e.hooks.hook("link:prefetch",async t=>{Er(t).protocol||await qo(t)}),en().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await qo(t.path);r&&Object.assign(e.static.data,r.data)}))}}),hp=At({name:"nuxt:global-components"}),pp=At({name:"nuxt:head",setup(e){const n=Id();n.push(Ld),e.vueApp.use(n);{let r=!0;const s=()=>{r=!1,n.hooks.callHook("entries:updated",n)};n.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",s),e.hooks.hook("app:suspense:resolve",s)}}}),wt={},gp=At({name:"nuxt:prefetch",setup(e){const t=en();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof wt[r]=="function"&&await wt[r]()})}),e.hooks.hook("link:prefetch",n=>{var i,l,c,a;if(Sn(n))return;const r=t.resolve(n);if(!r)return;const s=(i=r==null?void 0:r.meta)==null?void 0:i.layout;let o=Array.isArray((l=r==null?void 0:r.meta)==null?void 0:l.middleware)?(c=r==null?void 0:r.meta)==null?void 0:c.middleware:[(a=r==null?void 0:r.meta)==null?void 0:a.middleware];o=o.filter(u=>typeof u=="string");for(const u of o)typeof mn[u]=="function"&&mn[u]();s&&typeof wt[s]=="function"&&wt[s]()})}});function mp(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)}),t.onError((s,o)=>{if(r.has(s)){const l="href"in o&&o.href.startsWith("#")?n.app.baseURL+o.href:Hn(n.app.baseURL,o.fullPath);mp({path:l,persistState:!0})}})}}),_p=[th,fp,dp,hp,pp,gp,yp],bp=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),gs=(e,t)=>{const n=e.route.matched.find(s=>{var o;return((o=s.components)==null?void 0:o.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&bp(e.route,n));return typeof r=="function"?r(e.route):r},vp=(e,t)=>({default:()=>e?Ne(xa,e===!0?{}:e,t):t}),wp=Pt({name:"RouteProvider",props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s]});return Ct(In,An(r)),()=>Ne(e.vnode,{ref:e.vnodeRef})}}),lc=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ne(e,t,n):(r=n.default)==null?void 0:r.call(n)}}),Ep=Pt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=de(),s=De(),o=Ee(In,null);n({pageRef:s});const i=Ee(zl,null);let l;return()=>Ne(ic,{name:e.name,route:e.route,...t},{default:c=>{const a=Tp(o,c.route,c.Component),u=o&&o.matched.length===c.route.matched.length;if(!c.Component)return l&&!u?l:void 0;if(l&&i&&!i.isCurrent(c.route))return l;if(a&&o&&(!i||i!=null&&i.isCurrent(o)))return u?l:null;const f=gs(c,e.pageKey),p=r.deferHydration(),_=!!(e.transition??c.route.meta.pageTransition??ls),b=_&&Rp([e.transition,c.route.meta.pageTransition,ls,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean));return l=lc(wr,_&&b,vp(e.keepalive??c.route.meta.keepalive??Fd,Ne(Ss,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{xt(()=>r.callHook("page:finish",c.Component).finally(p))}},{default:()=>Ne(wp,{key:f,vnode:c.Component,route:c.route,renderKey:f,trackRootNodes:_,vnodeRef:s})}))).default(),l}})}});function Cp(e){return Array.isArray(e)?e:e?[e]:[]}function Rp(e){const t=e.map(n=>({...n,onAfterLeave:Cp(n.onAfterLeave)}));return zd(...t)}function Tp(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var o;return((o=s.components)==null?void 0:o.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,o)=>{var i,l,c;return((i=s.components)==null?void 0:i.default)!==((c=(l=e.matched[o])==null?void 0:l.components)==null?void 0:c.default)})||n&&gs({route:t,Component:n})!==gs({route:e,Component:n})}const xp=Pt({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const n=de(),r=Ee(In),s=r===Jl()?sp():r,o=Ie(()=>ae(e.name)??s.meta.layout??"default"),i=De();return t.expose({layoutRef:i}),()=>{const l=n.deferHydration(),c=o.value&&o.value in wt,a=s.meta.layoutTransition??jd;return lc(wr,c&&a,{default:()=>Ne(Ss,{suspensible:!0,onResolve:()=>{xt(l)}},{default:()=>Ne(Pp,{layoutProps:vl(t.attrs,{ref:i}),key:o.value,name:o.value,shouldProvide:!e.name,hasTransition:!!a},t.slots)})}).default()}}}),Pp=Pt({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Ct(zl,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in wt)?(s=(r=t.slots).default)==null?void 0:s.call(r):Ne(wt[n],e.layoutProps,t.slots)}}}),Ap=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},kp={};function Op(e,t){const n=Ep,r=xp;return Ge(),ut(r,null,{default:ks(()=>[fe(n)]),_:1})}const Sp=Ap(kp,[["render",Op]]),Hp={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;(n.stack||"").split(` `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` -`);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),l=void 0,u=s?lo(()=>or(()=>import("./error-404.758b2265.js"),["./error-404.758b2265.js","./error-404.23f2309d.css"],import.meta.url).then(f=>f.default||f)):lo(()=>or(()=>import("./error-500.ea14cd99.js"),["./error-500.ea14cd99.js","./error-500.aa16ed4d.css"],import.meta.url).then(f=>f.default||f));return(f,p)=>(Ge(),ut(ae(u),bc(_l({statusCode:ae(r),statusMessage:ae(o),description:ae(i),stack:ae(l)})),null,16))}},di={__name:"nuxt-root",setup(e){const t=()=>null,n=de(),r=n.deferHydration(),s=!1;Ct(In,Jl()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const o=Cr();tl((l,c,a)=>{if(n.hooks.callHook("vue:error",l,c,a).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),eh(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Mt(l)),!1});const{islandContext:i}=!1;return(l,c)=>(Ge(),ut(Ss,{onResolve:ae(r)},{default:ks(()=>[ae(o)?(Ge(),ut(ae(Hp),{key:0,error:ae(o)},null,8,["error"])):ae(i)?(Ge(),ut(ae(t),{key:1,context:ae(i)},null,8,["context"])):ae(s)?(Ge(),ut(Ia(ae(s)),{key:2})):(Ge(),ut(ae(Sp),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=Ef.create({baseURL:Rf()}));let hi;{let e;hi=async function(){var o,i;if(e)return e;const r=!!((o=window.__NUXT__)!=null&&o.serverRendered||((i=document.getElementById("__NUXT_DATA__"))==null?void 0:i.dataset.ssr)==="true")?$u(di):Iu(di),s=Lf({vueApp:r});try{await Ff(s,_p)}catch(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||l}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount("#"+Bd),await s.hooks.callHook("app:mounted",r),await xt()}catch(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||l}return r},e=hi().catch(t=>{console.error("Error while mounting app:",t)})}export{Up as A,jp as B,Bp as C,Se as F,Ap as _,en as a,_r as b,Ie as c,Pt as d,Ne as e,Lp as f,Yu as g,Sn as h,kl as i,Dp as j,Ge as k,Fp as l,yl as m,Kp as n,$s as o,Er as p,fe as q,De as r,ks as s,Ip as t,de as u,bl as v,rf as w,$p as x,Mp as y,Np as z}; +`);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),l=void 0,u=s?lo(()=>or(()=>import("./error-404.4f1df0f6.js"),["./error-404.4f1df0f6.js","./error-404.23f2309d.css"],import.meta.url).then(f=>f.default||f)):lo(()=>or(()=>import("./error-500.cbd91397.js"),["./error-500.cbd91397.js","./error-500.aa16ed4d.css"],import.meta.url).then(f=>f.default||f));return(f,p)=>(Ge(),ut(ae(u),bc(_l({statusCode:ae(r),statusMessage:ae(o),description:ae(i),stack:ae(l)})),null,16))}},di={__name:"nuxt-root",setup(e){const t=()=>null,n=de(),r=n.deferHydration(),s=!1;Ct(In,Jl()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const o=Cr();tl((l,c,a)=>{if(n.hooks.callHook("vue:error",l,c,a).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),eh(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>Mt(l)),!1});const{islandContext:i}=!1;return(l,c)=>(Ge(),ut(Ss,{onResolve:ae(r)},{default:ks(()=>[ae(o)?(Ge(),ut(ae(Hp),{key:0,error:ae(o)},null,8,["error"])):ae(i)?(Ge(),ut(ae(t),{key:1,context:ae(i)},null,8,["context"])):ae(s)?(Ge(),ut(Ia(ae(s)),{key:2})):(Ge(),ut(ae(Sp),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=Ef.create({baseURL:Rf()}));let hi;{let e;hi=async function(){var o,i;if(e)return e;const r=!!((o=window.__NUXT__)!=null&&o.serverRendered||((i=document.getElementById("__NUXT_DATA__"))==null?void 0:i.dataset.ssr)==="true")?$u(di):Iu(di),s=Lf({vueApp:r});try{await Ff(s,_p)}catch(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||l}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount("#"+Bd),await s.hooks.callHook("app:mounted",r),await xt()}catch(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||l}return r},e=hi().catch(t=>{console.error("Error while mounting app:",t)})}export{Up as A,jp as B,Bp as C,Se as F,Ap as _,en as a,_r as b,Ie as c,Pt as d,Ne as e,Lp as f,Yu as g,Sn as h,kl as i,Dp as j,Ge as k,Fp as l,yl as m,Kp as n,$s as o,Er as p,fe as q,De as r,ks as s,Ip as t,de as u,bl as v,rf as w,$p as x,Mp as y,Np as z}; diff --git a/_nuxt/error-404.758b2265.js b/_nuxt/error-404.4f1df0f6.js similarity index 99% rename from _nuxt/error-404.758b2265.js rename to _nuxt/error-404.4f1df0f6.js index 2e54b3a..05e9bea 100644 --- a/_nuxt/error-404.758b2265.js +++ b/_nuxt/error-404.4f1df0f6.js @@ -1 +1 @@ -import{u as y,a as k,d as q,c as w,h as P,r as S,o as T,b as A,e as C,f as R,p as I,g as B,w as E,i as z,n as j,_ as L,j as U,k as V,l as D,m as p,t as x,q as H,s as M,v as O,x as $,y as F}from"./entry.4d9dde02.js";const b=globalThis.requestIdleCallback||(e=>{const a=Date.now(),l={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-a))};return setTimeout(()=>{e(l)},1)}),G=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Q=e=>{const a=y();a.isHydrating?a.hooks.hookOnce("app:suspense:resolve",()=>{b(e)}):b(e)};async function N(e,a=k()){const{path:l,matched:t}=a.resolve(e);if(!t.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(l)))return;const r=a._preloadPromises=a._preloadPromises||[];if(r.length>4)return Promise.all(r).then(()=>N(e,a));a._routePreloaded.add(l);const s=t.map(n=>{var i;return(i=n.components)==null?void 0:i.default}).filter(n=>typeof n=="function");for(const n of s){const i=Promise.resolve(n()).catch(()=>{}).finally(()=>r.splice(r.indexOf(i)));r.push(i)}await Promise.all(r)}const X=(...e)=>e.find(a=>a!==void 0),J="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function K(e){const a=e.componentName||"NuxtLink",l=(t,r)=>{if(!t||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return t;const s=e.trailingSlash==="append"?E:z;if(typeof t=="string")return s(t,!0);const n="path"in t?t.path:r(t).path;return{...t,name:void 0,path:s(n,!0)}};return q({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(t,{slots:r}){const s=k(),n=w(()=>{const o=t.to||t.href||"";return l(o,s.resolve)}),i=w(()=>t.external||t.target&&t.target!=="_self"?!0:typeof n.value=="object"?!1:n.value===""||P(n.value,{acceptRelative:!0})),h=S(!1),d=S(null),_=o=>{var f;d.value=t.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(t.prefetch!==!1&&t.noPrefetch!==!0&&t.target!=="_blank"&&!Z()){const f=y();let m,c=null;T(()=>{const g=Y();Q(()=>{m=b(()=>{var v;(v=d==null?void 0:d.value)!=null&&v.tagName&&(c=g.observe(d.value,async()=>{c==null||c(),c=null;const u=typeof n.value=="string"?n.value:s.resolve(n.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",u).catch(()=>{}),!i.value&&N(n.value,s).catch(()=>{})]),h.value=!0}))})})}),A(()=>{m&&G(m),c==null||c(),c=null})}return()=>{var g,v;if(!i.value){const u={ref:_,to:n.value,activeClass:t.activeClass||e.activeClass,exactActiveClass:t.exactActiveClass||e.exactActiveClass,replace:t.replace,ariaCurrentValue:t.ariaCurrentValue,custom:t.custom};return t.custom||(h.value&&(u.class=t.prefetchedClass||e.prefetchedClass),u.rel=t.rel),C(R("RouterLink"),u,r.default)}const o=typeof n.value=="object"?((g=s.resolve(n.value))==null?void 0:g.href)??null:n.value||null,f=t.target||null,m=t.noRel?null:X(t.rel,e.externalRelAttribute,o?J:"")||null,c=()=>j(o,{replace:t.replace});return t.custom?r.default?r.default({href:o,navigate:c,get route(){if(!o)return;const u=I(o);return{path:u.pathname,fullPath:u.pathname,get query(){return B(u.search)},hash:u.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:m,target:f,isExternal:i.value,isActive:!1,isExactActive:!1}):null:C("a",{ref:d,href:o,rel:m,target:f},(v=r.default)==null?void 0:v.call(r))}}})}const W=K({componentName:"NuxtLink"});function Y(){const e=y();if(e._observer)return e._observer;let a=null;const l=new Map,t=(s,n)=>(a||(a=new IntersectionObserver(i=>{for(const h of i){const d=l.get(h.target);(h.isIntersecting||h.intersectionRatio>0)&&d&&d()}})),l.set(s,n),a.observe(s),()=>{l.delete(s),a.unobserve(s),l.size===0&&(a.disconnect(),a=null)});return e._observer={observe:t}}function Z(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const ee=e=>($("data-v-30d2164e"),e=e(),F(),e),te={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},ae=ee(()=>p("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),ne={class:"max-w-520px text-center z-20"},re=["textContent"],oe=["textContent"],se={class:"w-full flex items-center justify-center"},le={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const a=e;return U({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(l,t)=>{const r=W;return V(),D("div",te,[ae,p("div",ne,[p("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:x(e.statusCode)},null,8,re),p("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:x(e.description)},null,8,oe),p("div",se,[H(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:M(()=>[O(x(e.backHome),1)]),_:1})])])])}}},ce=L(le,[["__scopeId","data-v-30d2164e"]]);export{ce as default}; +import{u as y,a as k,d as q,c as w,h as P,r as S,o as T,b as A,e as C,f as R,p as I,g as B,w as E,i as z,n as j,_ as L,j as U,k as V,l as D,m as p,t as x,q as H,s as M,v as O,x as $,y as F}from"./entry.f670504c.js";const b=globalThis.requestIdleCallback||(e=>{const a=Date.now(),l={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-a))};return setTimeout(()=>{e(l)},1)}),G=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Q=e=>{const a=y();a.isHydrating?a.hooks.hookOnce("app:suspense:resolve",()=>{b(e)}):b(e)};async function N(e,a=k()){const{path:l,matched:t}=a.resolve(e);if(!t.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(l)))return;const r=a._preloadPromises=a._preloadPromises||[];if(r.length>4)return Promise.all(r).then(()=>N(e,a));a._routePreloaded.add(l);const s=t.map(n=>{var i;return(i=n.components)==null?void 0:i.default}).filter(n=>typeof n=="function");for(const n of s){const i=Promise.resolve(n()).catch(()=>{}).finally(()=>r.splice(r.indexOf(i)));r.push(i)}await Promise.all(r)}const X=(...e)=>e.find(a=>a!==void 0),J="noopener noreferrer";/*! @__NO_SIDE_EFFECTS__ */function K(e){const a=e.componentName||"NuxtLink",l=(t,r)=>{if(!t||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return t;const s=e.trailingSlash==="append"?E:z;if(typeof t=="string")return s(t,!0);const n="path"in t?t.path:r(t).path;return{...t,name:void 0,path:s(n,!0)}};return q({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(t,{slots:r}){const s=k(),n=w(()=>{const o=t.to||t.href||"";return l(o,s.resolve)}),i=w(()=>t.external||t.target&&t.target!=="_self"?!0:typeof n.value=="object"?!1:n.value===""||P(n.value,{acceptRelative:!0})),h=S(!1),d=S(null),_=o=>{var f;d.value=t.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(t.prefetch!==!1&&t.noPrefetch!==!0&&t.target!=="_blank"&&!Z()){const f=y();let m,c=null;T(()=>{const g=Y();Q(()=>{m=b(()=>{var v;(v=d==null?void 0:d.value)!=null&&v.tagName&&(c=g.observe(d.value,async()=>{c==null||c(),c=null;const u=typeof n.value=="string"?n.value:s.resolve(n.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",u).catch(()=>{}),!i.value&&N(n.value,s).catch(()=>{})]),h.value=!0}))})})}),A(()=>{m&&G(m),c==null||c(),c=null})}return()=>{var g,v;if(!i.value){const u={ref:_,to:n.value,activeClass:t.activeClass||e.activeClass,exactActiveClass:t.exactActiveClass||e.exactActiveClass,replace:t.replace,ariaCurrentValue:t.ariaCurrentValue,custom:t.custom};return t.custom||(h.value&&(u.class=t.prefetchedClass||e.prefetchedClass),u.rel=t.rel),C(R("RouterLink"),u,r.default)}const o=typeof n.value=="object"?((g=s.resolve(n.value))==null?void 0:g.href)??null:n.value||null,f=t.target||null,m=t.noRel?null:X(t.rel,e.externalRelAttribute,o?J:"")||null,c=()=>j(o,{replace:t.replace});return t.custom?r.default?r.default({href:o,navigate:c,get route(){if(!o)return;const u=I(o);return{path:u.pathname,fullPath:u.pathname,get query(){return B(u.search)},hash:u.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:m,target:f,isExternal:i.value,isActive:!1,isExactActive:!1}):null:C("a",{ref:d,href:o,rel:m,target:f},(v=r.default)==null?void 0:v.call(r))}}})}const W=K({componentName:"NuxtLink"});function Y(){const e=y();if(e._observer)return e._observer;let a=null;const l=new Map,t=(s,n)=>(a||(a=new IntersectionObserver(i=>{for(const h of i){const d=l.get(h.target);(h.isIntersecting||h.intersectionRatio>0)&&d&&d()}})),l.set(s,n),a.observe(s),()=>{l.delete(s),a.unobserve(s),l.size===0&&(a.disconnect(),a=null)});return e._observer={observe:t}}function Z(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const ee=e=>($("data-v-30d2164e"),e=e(),F(),e),te={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},ae=ee(()=>p("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),ne={class:"max-w-520px text-center z-20"},re=["textContent"],oe=["textContent"],se={class:"w-full flex items-center justify-center"},le={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const a=e;return U({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(l,t)=>{const r=W;return V(),D("div",te,[ae,p("div",ne,[p("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:x(e.statusCode)},null,8,re),p("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:x(e.description)},null,8,oe),p("div",se,[H(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:M(()=>[O(x(e.backHome),1)]),_:1})])])])}}},ce=L(le,[["__scopeId","data-v-30d2164e"]]);export{ce as default}; diff --git a/_nuxt/error-500.ea14cd99.js b/_nuxt/error-500.cbd91397.js similarity index 96% rename from _nuxt/error-500.ea14cd99.js rename to _nuxt/error-500.cbd91397.js index 4a7231d..d072bc4 100644 --- a/_nuxt/error-500.ea14cd99.js +++ b/_nuxt/error-500.cbd91397.js @@ -1 +1 @@ -import{_ as i,j as a,k as r,l as n,m as e,t as s,x as l,y as d}from"./entry.4d9dde02.js";const c=t=>(l("data-v-32388612"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-32388612"]]);export{w as default}; +import{_ as i,j as a,k as r,l as n,m as e,t as s,x as l,y as d}from"./entry.f670504c.js";const c=t=>(l("data-v-32388612"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],x={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(u,b)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(x,[["__scopeId","data-v-32388612"]]);export{w as default}; diff --git a/_nuxt/index.2c297755.js b/_nuxt/index.672b397f.js similarity index 98% rename from _nuxt/index.2c297755.js rename to _nuxt/index.672b397f.js index 497e9cb..c4ebe45 100644 --- a/_nuxt/index.2c297755.js +++ b/_nuxt/index.672b397f.js @@ -1 +1 @@ -import{_ as d,k as a,l as r,z as g,A as h,m as e,x as v,y as x,F as V,B as k,v as b,C as R,t as L,q as m}from"./entry.4d9dde02.js";const $={props:{modelValue:{type:Number,default:null}},emits:["update:modelValue"],data(){return{resistance:this.modelValue}},watch:{resistance(t){localStorage.setItem("targetResistance",JSON.stringify(t)),this.$emit("update:modelValue",parseFloat(t))}}},N=t=>(v("data-v-648000fe"),t=t(),x(),t),M={class:"input-container"},E=N(()=>e("h2",null,"Target resistance",-1));function J(t,s,l,_,n,o){return a(),r("div",M,[E,g(e("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>n.resistance=i),class:"input-field",type:"number",min:"0.01",step:"0.01"},null,512),[[h,n.resistance]])])}const w=d($,[["render",J],["__scopeId","data-v-648000fe"]]);const O={props:{modelValue:{type:Number,default:null}},emits:["update:modelValue"],data(){return{maxResistors:this.modelValue}},watch:{maxResistors(t){localStorage.setItem("maxResistors",JSON.stringify(t)),this.$emit("update:modelValue",parseInt(t))}}},W=t=>(v("data-v-5df5ddc0"),t=t(),x(),t),T={class:"input-container"},U=W(()=>e("h2",null,"Max resistors",-1));function B(t,s,l,_,n,o){return a(),r("div",T,[U,g(e("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>n.maxResistors=i),class:"input-field",type:"number",min:"1",step:"1"},null,512),[[h,n.maxResistors]])])}const I=d(O,[["render",B],["__scopeId","data-v-5df5ddc0"]]);const z={props:{modelValue:{type:Array,default:()=>[0]}},emits:["update:modelValue"],data(){return{resistors:this.modelValue,e12:[1,1.2,1.5,1.8,2.2,2.7,3.3,3.9,4.7,5.6,6.8,8.2],currentE12Index:JSON.parse(localStorage.getItem("currentE12Index")||1)}},watch:{resistors:{handler(){this.$emit("update:modelValue",this.resistors)},deep:!0}},methods:{addResistor(){this.resistors.push(this.e12[this.currentE12Index]),localStorage.setItem("resistors",JSON.stringify([...new Set(this.resistors)])),this.$emit("update:modelValue",this.resistors),this.currentE12Index1&&(this.resistors.splice(t,1),localStorage.setItem("resistors",JSON.stringify([...new Set(this.resistors)])),this.$emit("update:modelValue",this.resistors))}}},f=t=>(v("data-v-ae62d85a"),t=t(),x(),t),A=f(()=>e("h2",null,"Resistor values",-1)),F={id:"list"},D=["onUpdate:modelValue"],H=["onClick"],j=f(()=>e("g",null,[e("g",null,[e("path",{d:"M500,10C229.3,10,10,229.4,10,500s219.3,490,490,490c270.7,0,490-219.4,490-490S770.7,10,500,10z M727.1,640.4c23.9,23.9,23.9,62.7,0,86.6C715.1,739,699.4,745,683.8,745s-31.4-6-43.3-17.9L500,586.6L359.6,727.1C347.6,739,331.9,745,316.3,745s-31.4-6-43.3-17.9c-23.9-23.9-23.9-62.7,0-86.6L413.4,500L272.9,359.6c-23.9-23.9-23.9-62.7,0-86.6s62.7-23.9,86.6,0L500,413.4l140.4-140.4c23.9-23.9,62.7-23.9,86.6,0c23.9,23.9,23.9,62.7,0,86.6L586.6,500L727.1,640.4z"})]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")],-1)),q=[j],G=f(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"24px",height:"24px",viewBox:"0 0 122.875 122.875","enable-background":"new 0 0 122.875 122.648","xml:space":"preserve"},[e("g",null,[e("path",{"fill-rule":"evenodd",fill:"white","clip-rule":"evenodd",d:"M108.993,47.079c7.683-0.059,13.898,6.12,13.882,13.805 c-0.018,7.683-6.26,13.959-13.942,14.019L75.24,75.138l-0.235,33.73c-0.063,7.619-6.338,13.789-14.014,13.78 c-7.678-0.01-13.848-6.197-13.785-13.818l0.233-33.497l-33.558,0.235C6.2,75.628-0.016,69.448,0,61.764 c0.018-7.683,6.261-13.959,13.943-14.018l33.692-0.236l0.236-33.73C47.935,6.161,54.209-0.009,61.885,0 c7.678,0.009,13.848,6.197,13.784,13.818l-0.233,33.497L108.993,47.079L108.993,47.079z"})])],-1)),K=[G];function P(t,s,l,_,n,o){return a(),r("div",null,[A,e("div",F,[(a(!0),r(V,null,k(n.resistors,(i,u)=>(a(),r("div",{key:u},[g(e("input",{"onUpdate:modelValue":p=>n.resistors[u]=p,class:"input-field",type:"number",min:"0.01",step:"0.01"},null,8,D),[[h,n.resistors[u],void 0,{number:!0}]]),(a(),r("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000","xml:space":"preserve",class:"del-icon",onClick:p=>o.removeResistor(u)},q,8,H))]))),128)),e("button",{id:"add-button",onClick:s[0]||(s[0]=(...i)=>o.addResistor&&o.addResistor(...i))},K)])])}const C=d(z,[["render",P],["__scopeId","data-v-ae62d85a"]]);const Q={props:{svgCode:{type:String,default:""},calculating:{type:Boolean,default:!1},resistance:{type:Number,default:null}},emits:["cancel:calculation"],methods:{cancelCalculation(){this.$emit("cancel:calculation")}}},X={class:"result-container"},Y={key:0,class:"calculating"},Z={key:1,class:"resistance-info"},ee=["innerHTML"];function te(t,s,l,_,n,o){return a(),r("div",X,[l.calculating?(a(),r("div",Y,[b(" Calculating... "),e("button",{class:"cancel-button",onClick:s[0]||(s[0]=(...i)=>o.cancelCalculation&&o.cancelCalculation(...i))}," Cancel ")])):R("",!0),l.svgCode!==""?(a(),r("p",Z," Resistance: "+L(l.resistance),1)):R("",!0),e("div",{class:"svg-code",innerHTML:l.svgCode},null,8,ee)])}const S=d(Q,[["render",te],["__scopeId","data-v-43fee675"]]);function se(){return new Worker(""+new URL("resistor-optimization-6f757161.js",import.meta.url).href)}const ne={components:{ResistorInputList:C,ResistanceTargetInput:w,MaxResistorCountInput:I,ResultSchematic:S},data(){return{resistors:JSON.parse(localStorage.getItem("resistors"))||[1],targetResistance:JSON.parse(localStorage.getItem("targetResistance"))||null,maxResistors:JSON.parse(localStorage.getItem("maxResistors"))||3,svgCalculating:!1,svgCode:"",resistance:0,wasm:null,worker:null}},computed:{isFilled(){return this.resistors.length>0&&!this.resistors.includes(0)&&this.targetResistance>0&&this.maxResistors>0}},watch:{resistors:{deep:!0,handler(t){this.updateResistorList(t)}}},created(){this.initWASMWorker()},methods:{initWASMWorker(){this.worker=new se,this.worker.onmessage=t=>{this.svgCode=t.data.svg,this.resistance=t.data.resistance,this.svgCalculating=!1},this.updateResistorList(this.resistors)},updateResistorList(t){this.worker.postMessage({type:"updateResistorList",resistors:[...t]})},calculate(){this.svgCalculating=!0,this.svgCode="",this.worker.postMessage({type:"calculate",targetResistance:this.targetResistance,maxResistors:this.maxResistors})},cancelCalculation(){this.worker.terminate(),this.initWASMWorker(),this.svgCalculating=!1}}},oe={class:"container"},ie={class:"input-fields"},ae=["disabled"];function re(t,s,l,_,n,o){const i=w,u=I,p=C,y=S;return a(),r("div",oe,[e("div",ie,[m(i,{modelValue:n.targetResistance,"onUpdate:modelValue":s[0]||(s[0]=c=>n.targetResistance=c)},null,8,["modelValue"]),m(u,{modelValue:n.maxResistors,"onUpdate:modelValue":s[1]||(s[1]=c=>n.maxResistors=c)},null,8,["modelValue"]),m(p,{modelValue:n.resistors,"onUpdate:modelValue":s[2]||(s[2]=c=>n.resistors=c)},null,8,["modelValue"]),e("button",{class:"calculate-button",disabled:!o.isFilled,onClick:s[3]||(s[3]=(...c)=>o.calculate&&o.calculate(...c))}," Calculate ",8,ae)]),m(y,{calculating:n.svgCalculating,"svg-code":n.svgCode,resistance:n.resistance,"onCancel:calculation":s[4]||(s[4]=c=>o.cancelCalculation())},null,8,["calculating","svg-code","resistance"])])}const ce=d(ne,[["render",re],["__scopeId","data-v-b9041023"]]);export{ce as default}; +import{_ as d,k as a,l as r,z as g,A as h,m as e,x as v,y as x,F as V,B as k,v as b,C as R,t as L,q as m}from"./entry.f670504c.js";const $={props:{modelValue:{type:Number,default:null}},emits:["update:modelValue"],data(){return{resistance:this.modelValue}},watch:{resistance(t){localStorage.setItem("targetResistance",JSON.stringify(t)),this.$emit("update:modelValue",parseFloat(t))}}},N=t=>(v("data-v-648000fe"),t=t(),x(),t),M={class:"input-container"},E=N(()=>e("h2",null,"Target resistance",-1));function J(t,s,l,_,n,o){return a(),r("div",M,[E,g(e("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>n.resistance=i),class:"input-field",type:"number",min:"0.01",step:"0.01"},null,512),[[h,n.resistance]])])}const w=d($,[["render",J],["__scopeId","data-v-648000fe"]]);const O={props:{modelValue:{type:Number,default:null}},emits:["update:modelValue"],data(){return{maxResistors:this.modelValue}},watch:{maxResistors(t){localStorage.setItem("maxResistors",JSON.stringify(t)),this.$emit("update:modelValue",parseInt(t))}}},W=t=>(v("data-v-5df5ddc0"),t=t(),x(),t),T={class:"input-container"},U=W(()=>e("h2",null,"Max resistors",-1));function B(t,s,l,_,n,o){return a(),r("div",T,[U,g(e("input",{"onUpdate:modelValue":s[0]||(s[0]=i=>n.maxResistors=i),class:"input-field",type:"number",min:"1",step:"1"},null,512),[[h,n.maxResistors]])])}const I=d(O,[["render",B],["__scopeId","data-v-5df5ddc0"]]);const z={props:{modelValue:{type:Array,default:()=>[0]}},emits:["update:modelValue"],data(){return{resistors:this.modelValue,e12:[1,1.2,1.5,1.8,2.2,2.7,3.3,3.9,4.7,5.6,6.8,8.2],currentE12Index:JSON.parse(localStorage.getItem("currentE12Index")||1)}},watch:{resistors:{handler(){this.$emit("update:modelValue",this.resistors)},deep:!0}},methods:{addResistor(){this.resistors.push(this.e12[this.currentE12Index]),localStorage.setItem("resistors",JSON.stringify([...new Set(this.resistors)])),this.$emit("update:modelValue",this.resistors),this.currentE12Index1&&(this.resistors.splice(t,1),localStorage.setItem("resistors",JSON.stringify([...new Set(this.resistors)])),this.$emit("update:modelValue",this.resistors))}}},f=t=>(v("data-v-ae62d85a"),t=t(),x(),t),A=f(()=>e("h2",null,"Resistor values",-1)),F={id:"list"},D=["onUpdate:modelValue"],H=["onClick"],j=f(()=>e("g",null,[e("g",null,[e("path",{d:"M500,10C229.3,10,10,229.4,10,500s219.3,490,490,490c270.7,0,490-219.4,490-490S770.7,10,500,10z M727.1,640.4c23.9,23.9,23.9,62.7,0,86.6C715.1,739,699.4,745,683.8,745s-31.4-6-43.3-17.9L500,586.6L359.6,727.1C347.6,739,331.9,745,316.3,745s-31.4-6-43.3-17.9c-23.9-23.9-23.9-62.7,0-86.6L413.4,500L272.9,359.6c-23.9-23.9-23.9-62.7,0-86.6s62.7-23.9,86.6,0L500,413.4l140.4-140.4c23.9-23.9,62.7-23.9,86.6,0c23.9,23.9,23.9,62.7,0,86.6L586.6,500L727.1,640.4z"})]),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g"),e("g")],-1)),q=[j],G=f(()=>e("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"24px",height:"24px",viewBox:"0 0 122.875 122.875","enable-background":"new 0 0 122.875 122.648","xml:space":"preserve"},[e("g",null,[e("path",{"fill-rule":"evenodd",fill:"white","clip-rule":"evenodd",d:"M108.993,47.079c7.683-0.059,13.898,6.12,13.882,13.805 c-0.018,7.683-6.26,13.959-13.942,14.019L75.24,75.138l-0.235,33.73c-0.063,7.619-6.338,13.789-14.014,13.78 c-7.678-0.01-13.848-6.197-13.785-13.818l0.233-33.497l-33.558,0.235C6.2,75.628-0.016,69.448,0,61.764 c0.018-7.683,6.261-13.959,13.943-14.018l33.692-0.236l0.236-33.73C47.935,6.161,54.209-0.009,61.885,0 c7.678,0.009,13.848,6.197,13.784,13.818l-0.233,33.497L108.993,47.079L108.993,47.079z"})])],-1)),K=[G];function P(t,s,l,_,n,o){return a(),r("div",null,[A,e("div",F,[(a(!0),r(V,null,k(n.resistors,(i,u)=>(a(),r("div",{key:u},[g(e("input",{"onUpdate:modelValue":p=>n.resistors[u]=p,class:"input-field",type:"number",min:"0.01",step:"0.01"},null,8,D),[[h,n.resistors[u],void 0,{number:!0}]]),(a(),r("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"12px",viewBox:"0 0 1000 1000","enable-background":"new 0 0 1000 1000","xml:space":"preserve",class:"del-icon",onClick:p=>o.removeResistor(u)},q,8,H))]))),128)),e("button",{id:"add-button",onClick:s[0]||(s[0]=(...i)=>o.addResistor&&o.addResistor(...i))},K)])])}const C=d(z,[["render",P],["__scopeId","data-v-ae62d85a"]]);const Q={props:{svgCode:{type:String,default:""},calculating:{type:Boolean,default:!1},resistance:{type:Number,default:null}},emits:["cancel:calculation"],methods:{cancelCalculation(){this.$emit("cancel:calculation")}}},X={class:"result-container"},Y={key:0,class:"calculating"},Z={key:1,class:"resistance-info"},ee=["innerHTML"];function te(t,s,l,_,n,o){return a(),r("div",X,[l.calculating?(a(),r("div",Y,[b(" Calculating... "),e("button",{class:"cancel-button",onClick:s[0]||(s[0]=(...i)=>o.cancelCalculation&&o.cancelCalculation(...i))}," Cancel ")])):R("",!0),l.svgCode!==""?(a(),r("p",Z," Resistance: "+L(l.resistance),1)):R("",!0),e("div",{class:"svg-code",innerHTML:l.svgCode},null,8,ee)])}const S=d(Q,[["render",te],["__scopeId","data-v-43fee675"]]);function se(){return new Worker(""+new URL("resistor-optimization-185b2140.js",import.meta.url).href)}const ne={components:{ResistorInputList:C,ResistanceTargetInput:w,MaxResistorCountInput:I,ResultSchematic:S},data(){return{resistors:JSON.parse(localStorage.getItem("resistors"))||[1],targetResistance:JSON.parse(localStorage.getItem("targetResistance"))||null,maxResistors:JSON.parse(localStorage.getItem("maxResistors"))||3,svgCalculating:!1,svgCode:"",resistance:0,wasm:null,worker:null}},computed:{isFilled(){return this.resistors.length>0&&!this.resistors.includes(0)&&this.targetResistance>0&&this.maxResistors>0}},watch:{resistors:{deep:!0,handler(t){this.updateResistorList(t)}}},created(){this.initWASMWorker()},methods:{initWASMWorker(){this.worker=new se,this.worker.onmessage=t=>{this.svgCode=t.data.svg,this.resistance=t.data.resistance,this.svgCalculating=!1},this.updateResistorList(this.resistors)},updateResistorList(t){this.worker.postMessage({type:"updateResistorList",resistors:[...t]})},calculate(){this.svgCalculating=!0,this.svgCode="",this.worker.postMessage({type:"calculate",targetResistance:this.targetResistance,maxResistors:this.maxResistors})},cancelCalculation(){this.worker.terminate(),this.initWASMWorker(),this.svgCalculating=!1}}},oe={class:"container"},ie={class:"input-fields"},ae=["disabled"];function re(t,s,l,_,n,o){const i=w,u=I,p=C,y=S;return a(),r("div",oe,[e("div",ie,[m(i,{modelValue:n.targetResistance,"onUpdate:modelValue":s[0]||(s[0]=c=>n.targetResistance=c)},null,8,["modelValue"]),m(u,{modelValue:n.maxResistors,"onUpdate:modelValue":s[1]||(s[1]=c=>n.maxResistors=c)},null,8,["modelValue"]),m(p,{modelValue:n.resistors,"onUpdate:modelValue":s[2]||(s[2]=c=>n.resistors=c)},null,8,["modelValue"]),e("button",{class:"calculate-button",disabled:!o.isFilled,onClick:s[3]||(s[3]=(...c)=>o.calculate&&o.calculate(...c))}," Calculate ",8,ae)]),m(y,{calculating:n.svgCalculating,"svg-code":n.svgCode,resistance:n.resistance,"onCancel:calculation":s[4]||(s[4]=c=>o.cancelCalculation())},null,8,["calculating","svg-code","resistance"])])}const ce=d(ne,[["render",re],["__scopeId","data-v-b9041023"]]);export{ce as default}; diff --git a/_nuxt/resistor-optimization-185b2140.js b/_nuxt/resistor-optimization-185b2140.js new file mode 100644 index 0000000..ff4f950 --- /dev/null +++ b/_nuxt/resistor-optimization-185b2140.js @@ -0,0 +1,16 @@ +(function(){"use strict";var u=typeof u<"u"?u:{},He=Object.assign({},u),Te="./this.program",te=(e,r)=>{throw r},Me=typeof window=="object",L=typeof importScripts=="function",Ye=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",A="";function Sr(e){return u.locateFile?u.locateFile(e,A):A+e}var Ce,ne,ie;if(Ye){var xe=require("fs"),Pe=require("path");L?A=Pe.dirname(A)+"/":A=__dirname+"/",Ce=(e,r)=>(e=oe(e)?new URL(e):Pe.normalize(e),xe.readFileSync(e,r?void 0:"utf8")),ie=e=>{var r=Ce(e,!0);return r.buffer||(r=new Uint8Array(r)),r},ne=(e,r,t,n=!0)=>{e=oe(e)?new URL(e):Pe.normalize(e),xe.readFile(e,n?void 0:"utf8",(i,s)=>{i?t(i):r(n?s.buffer:s)})},!u.thisProgram&&process.argv.length>1&&(Te=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),typeof module<"u"&&(module.exports=u),process.on("uncaughtException",e=>{if(e!=="unwind"&&!(e instanceof ue)&&!(e.context instanceof ue))throw e}),te=(e,r)=>{throw process.exitCode=e,r}}else(Me||L)&&(L?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),A.startsWith("blob:")?A="":A=A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),Ce=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},L&&(ie=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ne=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{if(n.status==200||n.status==0&&n.response){r(n.response);return}t()},n.onerror=t,n.send(null)});u.print||console.log.bind(console);var B=u.printErr||console.error.bind(console);Object.assign(u,He),He=null,u.arguments&&u.arguments,u.thisProgram&&(Te=u.thisProgram),u.quit&&(te=u.quit);var N;u.wasmBinary&&(N=u.wasmBinary),typeof WebAssembly!="object"&&X("no native wasm support detected");var Ve,Ae=!1,ae,R,b,q,se,$,y,ze,Le;function Rr(){var e=Ve.buffer;u.HEAP8=R=new Int8Array(e),u.HEAP16=q=new Int16Array(e),u.HEAPU8=b=new Uint8Array(e),u.HEAPU16=se=new Uint16Array(e),u.HEAP32=$=new Int32Array(e),u.HEAPU32=y=new Uint32Array(e),u.HEAPF32=ze=new Float32Array(e),u.HEAPF64=Le=new Float64Array(e)}var Be=[],Ne=[],Fr=[],qe=[];function Dr(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)Ir(u.preRun.shift());le(Be)}function Or(){le(Ne)}function Wr(){le(Fr)}function kr(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)jr(u.postRun.shift());le(qe)}function Ir(e){Be.unshift(e)}function Ur(e){Ne.unshift(e)}function jr(e){qe.unshift(e)}var U=0,G=null;function Hr(e){var r;U++,(r=u.monitorRunDependencies)==null||r.call(u,U)}function Mr(e){var t;if(U--,(t=u.monitorRunDependencies)==null||t.call(u,U),U==0&&G){var r=G;G=null,r()}}function X(e){var t;(t=u.onAbort)==null||t.call(u,e),e="Aborted("+e+")",B(e),Ae=!0,ae=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw r}var Yr="data:application/octet-stream;base64,",Ge=e=>e.startsWith(Yr),oe=e=>e.startsWith("file://"),M;M="resistor-optimization.wasm",Ge(M)||(M=Sr(M));function Xe(e){if(e==M&&N)return new Uint8Array(N);if(ie)return ie(e);throw"both async and sync fetching of the wasm failed"}function xr(e){if(!N&&(Me||L)){if(typeof fetch=="function"&&!oe(e))return fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>Xe(e));if(ne)return new Promise((r,t)=>{ne(e,n=>r(new Uint8Array(n)),t)})}return Promise.resolve().then(()=>Xe(e))}function Je(e,r,t){return xr(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{B(`failed to asynchronously prepare wasm: ${n}`),X(n)})}function Vr(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Ge(r)&&!oe(r)&&!Ye&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(i=>{var s=WebAssembly.instantiateStreaming(i,t);return s.then(n,function(o){return B(`wasm streaming compile failed: ${o}`),B("falling back to ArrayBuffer instantiation"),Je(r,t,n)})}):Je(r,t,n)}function zr(){var e={a:wn};function r(n,i){return T=n.exports,Ve=T.B,Rr(),or=T.G,Ur(T.C),Mr(),T}Hr();function t(n){r(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(e,r)}catch(n){return B(`Module.instantiateWasm callback failed with error: ${n}`),!1}return Vr(N,M,e,t),{}}function ue(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var le=e=>{for(;e.length>0;)e.shift()(u)},Lr=u.noExitRuntime||!0,Ke=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Br=(e,r,t)=>{for(var n=r+t,i=r;e[i]&&!(i>=n);)++i;if(i-r>16&&e.buffer&&Ke)return Ke.decode(e.subarray(r,i));for(var s="";r>10,56320|c&1023)}}return s},Y=(e,r)=>e?Br(b,e,r):"",Nr=(e,r,t,n)=>{X(`Assertion failed: ${Y(e)}, at: `+[r?Y(r):"unknown filename",t,n?Y(n):"unknown function"])};class qr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,R[this.ptr+12]=r}get_caught(){return R[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,R[this.ptr+13]=r}get_rethrown(){return R[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Tr(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Qe=0,Gr=(e,r,t)=>{var n=new qr(e);throw n.init(r,t),Qe=e,Qe},fe={},Ze=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function J(e){return this.fromWireType(y[e>>2])}var x={},j={},ce={},er,ve=e=>{throw new er(e)},V=(e,r,t)=>{e.forEach(function(a){ce[a]=r});function n(a){var l=t(a);l.length!==e.length&&ve("Mismatched type converter count");for(var c=0;c{j.hasOwnProperty(a)?i[l]=j[a]:(s.push(a),x.hasOwnProperty(a)||(x[a]=[]),x[a].push(()=>{i[l]=j[a],++o,o===s.length&&n(i)}))}),s.length===0&&n(i)},Xr=e=>{var r=fe[e];delete fe[e];var t=r.rawConstructor,n=r.rawDestructor,i=r.fields,s=i.map(o=>o.getterReturnType).concat(i.map(o=>o.setterArgumentType));V([e],s,o=>{var a={};return i.forEach((l,c)=>{var v=l.fieldName,p=o[c],h=l.getter,m=l.getterContext,_=o[c+i.length],D=l.setter,E=l.setterContext;a[v]={read:S=>p.fromWireType(h(m,S)),write:(S,f)=>{var d=[];D(E,S,_.toWireType(d,f)),Ze(d)}}}),[{name:r.name,fromWireType:l=>{var c={};for(var v in a)c[v]=a[v].read(l);return n(l),c},toWireType:(l,c)=>{for(var v in a)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var p=t();for(v in a)a[v].write(p,c[v]);return l!==null&&l.push(n,p),p},argPackAdvance:W,readValueFromPointer:J,destructorFunction:n}]})},Jr=(e,r,t,n,i)=>{},Kr=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);rr=e},rr,P=e=>{for(var r="",t=e;b[t];)r+=rr[b[t++]];return r},z,g=e=>{throw new z(e)};function Qr(e,r,t={}){var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),j.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(j[e]=r,delete ce[e],x.hasOwnProperty(e)){var i=x[e];delete x[e],i.forEach(s=>s())}}function O(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Qr(e,r,t)}var W=8,Zr=(e,r,t,n)=>{r=P(r),O(e,{name:r,fromWireType:function(i){return!!i},toWireType:function(i,s){return s?t:n},argPackAdvance:W,readValueFromPointer:function(i){return this.fromWireType(b[i])},destructorFunction:null})},et=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Ee=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Se=!1,tr=e=>{},rt=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},nr=e=>{e.count.value-=1;var r=e.count.value===0;r&&rt(e)},ir=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=ir(e,r,t.baseClass);return n===null?null:t.downcast(n)},ar={},tt=()=>Object.keys(Z).length,nt=()=>{var e=[];for(var r in Z)Z.hasOwnProperty(r)&&e.push(Z[r]);return e},K=[],Re=()=>{for(;K.length;){var e=K.pop();e.$$.deleteScheduled=!1,e.delete()}},Q,it=e=>{Q=e,K.length&&Q&&Q(Re)},at=()=>{u.getInheritedInstanceCount=tt,u.getLiveInheritedInstances=nt,u.flushPendingDeletes=Re,u.setDelayFunction=it},Z={},st=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},ot=(e,r)=>(r=st(e,r),Z[r]),de=(e,r)=>{(!r.ptrType||!r.ptr)&&ve("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&ve("Both smartPtrType and smartPtr must be specified"),r.count={value:1},ee(Object.create(e,{$$:{value:r,writable:!0}}))};function ut(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=ot(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?de(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):de(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var s=this.registeredClass.getActualType(r),o=ar[s];if(!o)return i.call(this);var a;this.isConst?a=o.constPointerType:a=o.pointerType;var l=ir(r,this.registeredClass,a.registeredClass);return l===null?i.call(this):this.isSmartPointer?de(a.registeredClass.instancePrototype,{ptrType:a,ptr:l,smartPtrType:this,smartPtr:e}):de(a.registeredClass.instancePrototype,{ptrType:a,ptr:l})}var ee=e=>typeof FinalizationRegistry>"u"?(ee=r=>r,e):(Se=new FinalizationRegistry(r=>{nr(r.$$)}),ee=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var i={$$:t};Se.register(r,i,r)}return r},tr=r=>Se.unregister(r),ee(e)),lt=()=>{Object.assign(pe.prototype,{isAliasOf(e){if(!(this instanceof pe)||!(e instanceof pe))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,i=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return r===n&&t===i},clone(){if(this.$$.ptr||Ee(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=ee(Object.create(Object.getPrototypeOf(this),{$$:{value:et(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),tr(this),nr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),K.push(this),K.length===1&&Q&&Q(Re),this.$$.deleteScheduled=!0,this}})};function pe(){}var he=(e,r)=>Object.defineProperty(r,"name",{value:e}),sr=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(...i){return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},ft=(e,r,t)=>{u.hasOwnProperty(e)?((t===void 0||u[e].overloadTable!==void 0&&u[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),sr(u,e,e),u.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[e].overloadTable[t]=r):(u[e]=r,t!==void 0&&(u[e].numArguments=t))},ct=48,vt=57,dt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=ct&&r<=vt?`_${e}`:e};function pt(e,r,t,n,i,s,o,a){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=s,this.upcast=o,this.downcast=a,this.pureVirtualFunctions=[]}var Fe=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function ht(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${We(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=Fe(r.$$.ptr,t,this.registeredClass);return n}function gt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${We(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=Fe(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var i=r.clone();t=this.rawShare(t,me.toHandle(()=>i.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function yt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${We(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=Fe(r.$$.ptr,t,this.registeredClass);return n}var mt=()=>{Object.assign(ge.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)==null||r.call(this,e)},argPackAdvance:W,readValueFromPointer:J,fromWireType:ut})};function ge(e,r,t,n,i,s,o,a,l,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=s,this.sharingPolicy=o,this.rawGetPointee=a,this.rawConstructor=l,this.rawShare=c,this.rawDestructor=v,!i&&r.baseClass===void 0?n?(this.toWireType=ht,this.destructorFunction=null):(this.toWireType=yt,this.destructorFunction=null):this.toWireType=gt}var _t=(e,r,t)=>{u.hasOwnProperty(e)||ve("Replacing nonexistant public symbol"),u[e].overloadTable!==void 0&&t!==void 0?u[e].overloadTable[t]=r:(u[e]=r,u[e].argCount=t)},wt=(e,r,t)=>{var n=u["dynCall_"+e];return n(r,...t)},ye=[],or,ur=e=>{var r=ye[e];return r||(e>=ye.length&&(ye.length=e+1),ye[e]=r=or.get(e)),r},$t=(e,r,t=[])=>{if(e.includes("j"))return wt(e,r,t);var n=ur(r)(...t);return n},bt=(e,r)=>(...t)=>$t(e,r,t),F=(e,r)=>{e=P(e);function t(){return e.includes("j")?bt(e,r):ur(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},Tt=(e,r)=>{var t=he(r,function(n){this.name=r,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` +`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},lr,fr=e=>{var r=br(e),t=P(r);return I(r),t},De=(e,r)=>{var t=[],n={};function i(s){if(!n[s]&&!j[s]){if(ce[s]){ce[s].forEach(i);return}t.push(s),n[s]=!0}}throw r.forEach(i),new lr(`${e}: `+t.map(fr).join([", "]))},Ct=(e,r,t,n,i,s,o,a,l,c,v,p,h)=>{v=P(v),s=F(i,s),a&&(a=F(o,a)),c&&(c=F(l,c)),h=F(p,h);var m=dt(v);ft(m,function(){De(`Cannot construct ${v} due to unbound types`,[n])}),V([e,r,t],n?[n]:[],_=>{var be;_=_[0];var D,E;n?(D=_.registeredClass,E=D.instancePrototype):E=pe.prototype;var S=he(v,function(...je){if(Object.getPrototypeOf(this)!==f)throw new z("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new z(v+" has no accessible constructor");var Er=d.constructor_body[je.length];if(Er===void 0)throw new z(`Tried to invoke ctor of ${v} with invalid number of parameters (${je.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Er.apply(this,je)}),f=Object.create(E,{constructor:{value:S}});S.prototype=f;var d=new pt(v,S,f,h,D,s,a,c);d.baseClass&&((be=d.baseClass).__derivedClasses??(be.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d));var C=new ge(v,d,!0,!1,!1),w=new ge(v+"*",d,!1,!1,!1),H=new ge(v+" const*",d,!1,!0,!1);return ar[e]={pointerType:w,constPointerType:H},_t(m,S),[C,w,H]})},cr=(e,r)=>{for(var t=[],n=0;n>2]);return t};function vr(e){for(var r=1;r0?", ":"")+a),c+=(t||n?"var rv = ":"")+"invoker(fn"+(a.length>0?", ":"")+a+`); +`,i)c+=`runDestructors(destructors); +`;else for(var l=r?1:2;l{var o=cr(r,t);i=F(n,i),V([],[e],a=>{a=a[0];var l=`constructor ${a.name}`;if(a.registeredClass.constructor_body===void 0&&(a.registeredClass.constructor_body=[]),a.registeredClass.constructor_body[r-1]!==void 0)throw new z(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${a.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a.registeredClass.constructor_body[r-1]=()=>{De(`Cannot construct ${a.name} due to unbound types`,o)},V([],o,c=>(c.splice(1,0,null),a.registeredClass.constructor_body[r-1]=dr(l,c,null,i,s),[])),[]})},St=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},Rt=(e,r,t,n,i,s,o,a,l)=>{var c=cr(t,n);r=P(r),r=St(r),s=F(i,s),V([],[e],v=>{v=v[0];var p=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),a&&v.registeredClass.pureVirtualFunctions.push(r);function h(){De(`Cannot call ${p} due to unbound types`,c)}var m=v.registeredClass.instancePrototype,_=m[r];return _===void 0||_.overloadTable===void 0&&_.className!==v.name&&_.argCount===t-2?(h.argCount=t-2,h.className=v.name,m[r]=h):(sr(m,r,p),m[r].overloadTable[t-2]=h),V([],c,D=>{var E=dr(p,D,v,s,o,l);return m[r].overloadTable===void 0?(E.argCount=t-2,m[r]=E):m[r].overloadTable[t-2]=E,[]}),[]})},Oe=[],k=[],pr=e=>{e>9&&--k[e+1]===0&&(k[e]=void 0,Oe.push(e))},Ft=()=>k.length/2-5-Oe.length,Dt=()=>{k.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=Ft},me={toValue:e=>(e||g("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:{const r=Oe.pop()||k.length;return k[r]=e,k[r+1]=1,r}}}},Ot={name:"emscripten::val",fromWireType:e=>{var r=me.toValue(e);return pr(e),r},toWireType:(e,r)=>me.toHandle(r),argPackAdvance:W,readValueFromPointer:J,destructorFunction:null},hr=e=>O(e,Ot),We=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Wt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(ze[t>>2])};case 8:return function(t){return this.fromWireType(Le[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},kt=(e,r,t)=>{r=P(r),O(e,{name:r,fromWireType:n=>n,toWireType:(n,i)=>i,argPackAdvance:W,readValueFromPointer:Wt(r,t),destructorFunction:null})},It=(e,r,t)=>{switch(r){case 1:return t?n=>R[n]:n=>b[n];case 2:return t?n=>q[n>>1]:n=>se[n>>1];case 4:return t?n=>$[n>>2]:n=>y[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Ut=(e,r,t,n,i)=>{r=P(r);var s=v=>v;if(n===0){var o=32-8*t;s=v=>v<>>o}var a=r.includes("unsigned"),l=(v,p)=>{},c;a?c=function(v,p){return l(p,this.name),p>>>0}:c=function(v,p){return l(p,this.name),p},O(e,{name:r,fromWireType:s,toWireType:c,argPackAdvance:W,readValueFromPointer:It(r,t,n!==0),destructorFunction:null})},jt=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[r];function s(o){var a=y[o>>2],l=y[o+4>>2];return new i(R.buffer,l,a)}t=P(t),O(e,{name:t,fromWireType:s,argPackAdvance:W,readValueFromPointer:s},{ignoreDuplicateRegistrations:!0})},Ht=(e,r)=>{hr(e)},gr=(e,r,t,n)=>{if(!(n>0))return 0;for(var i=t,s=t+n-1,o=0;o=55296&&a<=57343){var l=e.charCodeAt(++o);a=65536+((a&1023)<<10)|l&1023}if(a<=127){if(t>=s)break;r[t++]=a}else if(a<=2047){if(t+1>=s)break;r[t++]=192|a>>6,r[t++]=128|a&63}else if(a<=65535){if(t+2>=s)break;r[t++]=224|a>>12,r[t++]=128|a>>6&63,r[t++]=128|a&63}else{if(t+3>=s)break;r[t++]=240|a>>18,r[t++]=128|a>>12&63,r[t++]=128|a>>6&63,r[t++]=128|a&63}}return r[t]=0,t-i},Mt=(e,r,t)=>gr(e,b,r,t),yr=e=>{for(var r=0,t=0;t=55296&&n<=57343?(r+=4,++t):r+=3}return r},Yt=(e,r)=>{r=P(r);var t=r==="std::string";O(e,{name:r,fromWireType(n){var i=y[n>>2],s=n+4,o;if(t)for(var a=s,l=0;l<=i;++l){var c=s+l;if(l==i||b[c]==0){var v=c-a,p=Y(a,v);o===void 0?o=p:(o+=String.fromCharCode(0),o+=p),a=c+1}}else{for(var h=new Array(i),l=0;l>2]=s,t&&o)Mt(i,l,s+1);else if(o)for(var c=0;c255&&(I(l),g("String has UTF-16 code units that do not fit in 8 bits")),b[l+c]=v}else for(var c=0;c{for(var t=e,n=t>>1,i=n+r/2;!(n>=i)&&se[n];)++n;if(t=n<<1,t-e>32&&mr)return mr.decode(b.subarray(e,t));for(var s="",o=0;!(o>=r/2);++o){var a=q[e+o*2>>1];if(a==0)break;s+=String.fromCharCode(a)}return s},Vt=(e,r,t)=>{if(t??(t=2147483647),t<2)return 0;t-=2;for(var n=r,i=t>1]=o,r+=2}return q[r>>1]=0,r-n},zt=e=>e.length*2,Lt=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var i=$[e+t*4>>2];if(i==0)break;if(++t,i>=65536){var s=i-65536;n+=String.fromCharCode(55296|s>>10,56320|s&1023)}else n+=String.fromCharCode(i)}return n},Bt=(e,r,t)=>{if(t??(t=2147483647),t<4)return 0;for(var n=r,i=n+t-4,s=0;s=55296&&o<=57343){var a=e.charCodeAt(++s);o=65536+((o&1023)<<10)|a&1023}if($[r>>2]=o,r+=4,r+4>i)break}return $[r>>2]=0,r-n},Nt=e=>{for(var r=0,t=0;t=55296&&n<=57343&&++t,r+=4}return r},qt=(e,r,t)=>{t=P(t);var n,i,s,o;r===2?(n=xt,i=Vt,o=zt,s=a=>se[a>>1]):r===4&&(n=Lt,i=Bt,o=Nt,s=a=>y[a>>2]),O(e,{name:t,fromWireType:a=>{for(var l=y[a>>2],c,v=a+4,p=0;p<=l;++p){var h=a+4+p*r;if(p==l||s(h)==0){var m=h-v,_=n(v,m);c===void 0?c=_:(c+=String.fromCharCode(0),c+=_),v=h+r}}return I(a),c},toWireType:(a,l)=>{typeof l!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var c=o(l),v=Ie(4+c+r);return y[v>>2]=c/r,i(l,v+4,c+r),a!==null&&a.push(I,v),v},argPackAdvance:W,readValueFromPointer:J,destructorFunction(a){I(a)}})},Gt=(e,r,t,n,i,s)=>{fe[e]={name:P(r),rawConstructor:F(t,n),rawDestructor:F(i,s),fields:[]}},Xt=(e,r,t,n,i,s,o,a,l,c)=>{fe[e].fields.push({fieldName:P(r),getterReturnType:t,getter:F(n,i),getterContext:s,setterArgumentType:o,setter:F(a,l),setterContext:c})},Jt=(e,r)=>{r=P(r),O(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Kt=e=>{e>9&&(k[e+1]+=1)},Qt=(e,r)=>{var t=j[e];return t===void 0&&g(`${r} has unknown type ${fr(e)}`),t},Zt=(e,r)=>{e=Qt(e,"_emval_take_value");var t=e.readValueFromPointer(r);return me.toHandle(t)},en=()=>{X("")},rn=(e,r,t)=>b.copyWithin(e,r,r+t),tn=e=>{X("OOM")},nn=e=>{b.length,tn()},ke={},an=()=>Te||"./this.program",re=()=>{if(!re.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:an()};for(var t in ke)ke[t]===void 0?delete r[t]:r[t]=ke[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);re.strings=n}return re.strings},sn=(e,r)=>{for(var t=0;t{var t=0;return re().forEach((n,i)=>{var s=r+t;y[e+i*4>>2]=s,sn(n,s),t+=n.length+1}),0},un=(e,r)=>{var t=re();y[e>>2]=t.length;var n=0;return t.forEach(i=>n+=i.length+1),y[r>>2]=n,0},_e=e=>e%4===0&&(e%100!==0||e%400===0),ln=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},_r=[31,29,31,30,31,30,31,31,30,31,30,31],wr=[31,28,31,30,31,30,31,31,30,31,30,31],fn=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=_e(t.getFullYear()),i=t.getMonth(),s=(n?_r:wr)[i];if(r>s-t.getDate())r-=s-t.getDate()+1,t.setDate(1),i<11?t.setMonth(i+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function cn(e,r,t){var n=t>0?t:yr(e)+1,i=new Array(n),s=gr(e,i,0,i.length);return r&&(i.length=s),i}var vn=(e,r)=>{R.set(e,r)},dn=(e,r,t,n)=>{var i=y[n+40>>2],s={tm_sec:$[n>>2],tm_min:$[n+4>>2],tm_hour:$[n+8>>2],tm_mday:$[n+12>>2],tm_mon:$[n+16>>2],tm_year:$[n+20>>2],tm_wday:$[n+24>>2],tm_yday:$[n+28>>2],tm_isdst:$[n+32>>2],tm_gmtoff:$[n+36>>2],tm_zone:i?Y(i):""},o=Y(t),a={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in a)o=o.replace(new RegExp(l,"g"),a[l]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function p(f,d,C){for(var w=typeof f=="number"?f.toString():f||"";w.length0?1:0}var w;return(w=C(f.getFullYear()-d.getFullYear()))===0&&(w=C(f.getMonth()-d.getMonth()))===0&&(w=C(f.getDate()-d.getDate())),w}function _(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function D(f){var d=fn(new Date(f.tm_year+1900,0,1),f.tm_yday),C=new Date(d.getFullYear(),0,4),w=new Date(d.getFullYear()+1,0,4),H=_(C),be=_(w);return m(H,d)<=0?m(be,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var E={"%a":f=>c[f.tm_wday].substring(0,3),"%A":f=>c[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return h(d/100|0,2)},"%d":f=>h(f.tm_mday,2),"%e":f=>p(f.tm_mday,2," "),"%g":f=>D(f).toString().substring(2),"%G":D,"%H":f=>h(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),h(d,2)},"%j":f=>h(f.tm_mday+ln(_e(f.tm_year+1900)?_r:wr,f.tm_mon-1),3),"%m":f=>h(f.tm_mon+1,2),"%M":f=>h(f.tm_min,2),"%n":()=>` +`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>h(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return h(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var w=(f.tm_wday+371-f.tm_yday)%7;w!=4&&(w!=3||!_e(f.tm_year))&&(d=1)}}else{d=52;var C=(f.tm_wday+7-f.tm_yday-1)%7;(C==4||C==5&&_e(f.tm_year%400-1))&&d++}return h(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return h(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,C=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(C?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var l in E)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),E[l](s)));o=o.replace(/\0\0/g,"%");var S=cn(o,!1);return S.length>r?0:(vn(S,e),S.length-1)},pn=(e,r,t,n,i)=>dn(e,r,t,n),hn=0,gn=()=>Lr||hn>0,yn=e=>{var r;ae=e,gn()||((r=u.onExit)==null||r.call(u,e),Ae=!0),te(e,new ue(e))},mn=(e,r)=>{ae=e,yn(e)},_n=e=>{if(e instanceof ue||e=="unwind")return ae;te(1,e)};er=u.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},Kr(),z=u.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},lt(),at(),mt(),lr=u.UnboundTypeError=Tt(Error,"UnboundTypeError"),Dt();var wn={d:Nr,e:Gr,A:Xr,q:Jr,y:Zr,i:Ct,h:Et,c:Rt,x:hr,k:kt,b:Ut,a:jt,w:Ht,l:Yt,f:qt,n:Gt,m:Xt,z:Jt,o:pr,g:Kt,p:Zt,j:en,v:rn,u:nn,s:on,t:un,r:pn},T=zr(),$r=u._main=(e,r)=>($r=u._main=T.D)(e,r),Ie=e=>(Ie=T.E)(e),br=e=>(br=T.F)(e),I=e=>(I=T.H)(e),Tr=e=>(Tr=T.I)(e);u.dynCall_viijii=(e,r,t,n,i,s,o)=>(u.dynCall_viijii=T.J)(e,r,t,n,i,s,o),u.dynCall_iiiiij=(e,r,t,n,i,s,o)=>(u.dynCall_iiiiij=T.K)(e,r,t,n,i,s,o),u.dynCall_iiiiijj=(e,r,t,n,i,s,o,a,l)=>(u.dynCall_iiiiijj=T.L)(e,r,t,n,i,s,o,a,l),u.dynCall_iiiiiijj=(e,r,t,n,i,s,o,a,l,c)=>(u.dynCall_iiiiiijj=T.M)(e,r,t,n,i,s,o,a,l,c);var we;G=function e(){we||Cr(),we||(G=e)};function $n(){var e=$r,r=0,t=0;try{var n=e(r,t);return mn(n,!0),n}catch(i){return _n(i)}}function Cr(){if(U>0||(Dr(),U>0))return;function e(){we||(we=!0,u.calledRun=!0,!Ae&&(Or(),Wr(),u.onRuntimeInitialized&&u.onRuntimeInitialized(),Pr&&$n(),kr()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),e()},1)):e()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();var Pr=!0;u.noInitialRun&&(Pr=!1),Cr();let $e=null,Ue=[];u.onRuntimeInitialized=function(){for(const e of Ue)Ar(e);Ue=[]},self.addEventListener("message",function(e){u.calledRun?Ar(e):Ue.push(e)});function Ar(e){if(e.data.type==="updateResistorList"){$e!==null&&$e.delete();const r=new u.DoubleVector;for(const t of new Set(e.data.resistors))r.push_back(t);$e=new u.ResistanceOptimizer(r),r.delete()}else if(e.data.type==="calculate"){const r=$e.optimize(e.data.targetResistance,e.data.maxResistors);postMessage(r)}}})(); diff --git a/_nuxt/resistor-optimization-6f757161.js b/_nuxt/resistor-optimization-6f757161.js deleted file mode 100644 index 1a0face..0000000 --- a/_nuxt/resistor-optimization-6f757161.js +++ /dev/null @@ -1,16 +0,0 @@ -(function(){"use strict";var a=typeof a<"u"?a:{},Me=Object.assign({},a),we="./this.program",te=(e,r)=>{throw r},Ie=typeof window=="object",B=typeof importScripts=="function",je=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",S="";function Cr(e){return a.locateFile?a.locateFile(e,S):S+e}var be,ne,ie;if(je){var Ye=require("fs"),$e=require("path");B?S=$e.dirname(S)+"/":S=__dirname+"/",be=(e,r)=>(e=oe(e)?new URL(e):$e.normalize(e),Ye.readFileSync(e,r?void 0:"utf8")),ie=e=>{var r=be(e,!0);return r.buffer||(r=new Uint8Array(r)),r},ne=(e,r,t,n=!0)=>{e=oe(e)?new URL(e):$e.normalize(e),Ye.readFile(e,n?void 0:"utf8",(i,o)=>{i?t(i):r(n?o.buffer:o)})},!a.thisProgram&&process.argv.length>1&&(we=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),typeof module<"u"&&(module.exports=a),process.on("uncaughtException",e=>{if(e!=="unwind"&&!(e instanceof ue)&&!(e.context instanceof ue))throw e}),te=(e,r)=>{throw process.exitCode=e,r},a.inspect=()=>"[Emscripten Module object]"}else(Ie||B)&&(B?S=self.location.href:typeof document<"u"&&document.currentScript&&(S=document.currentScript.src),S.indexOf("blob:")!==0?S=S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1):S="",be=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},B&&(ie=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),ne=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{if(n.status==200||n.status==0&&n.response){r(n.response);return}t()},n.onerror=t,n.send(null)});a.print||console.log.bind(console);var q=a.printErr||console.error.bind(console);Object.assign(a,Me),Me=null,a.arguments&&a.arguments,a.thisProgram&&(we=a.thisProgram),a.quit&&(te=a.quit);var G;a.wasmBinary&&(G=a.wasmBinary);var Tr=a.noExitRuntime||!0;typeof WebAssembly!="object"&&M("no native wasm support detected");var Ve,Pe=!1,ae;function Ar(e,r){e||M(r)}var F,E,Y,se,b,_,xe,ze;function Er(){var e=Ve.buffer;a.HEAP8=F=new Int8Array(e),a.HEAP16=Y=new Int16Array(e),a.HEAP32=b=new Int32Array(e),a.HEAPU8=E=new Uint8Array(e),a.HEAPU16=se=new Uint16Array(e),a.HEAPU32=_=new Uint32Array(e),a.HEAPF32=xe=new Float32Array(e),a.HEAPF64=ze=new Float64Array(e)}var Le,Ne=[],Be=[],Sr=[],qe=[],Rr=0;function Fr(){return Tr||Rr>0}function Dr(){if(a.preRun)for(typeof a.preRun=="function"&&(a.preRun=[a.preRun]);a.preRun.length;)kr(a.preRun.shift());fe(Ne)}function Or(){fe(Be)}function Wr(){fe(Sr)}function Ur(){if(a.postRun)for(typeof a.postRun=="function"&&(a.postRun=[a.postRun]);a.postRun.length;)Mr(a.postRun.shift());fe(qe)}function kr(e){Ne.unshift(e)}function Hr(e){Be.unshift(e)}function Mr(e){qe.unshift(e)}var H=0,X=null;function Ir(e){H++,a.monitorRunDependencies&&a.monitorRunDependencies(H)}function jr(e){if(H--,a.monitorRunDependencies&&a.monitorRunDependencies(H),H==0&&X){var r=X;X=null,r()}}function M(e){a.onAbort&&a.onAbort(e),e="Aborted("+e+")",q(e),Pe=!0,ae=1,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw r}var Yr="data:application/octet-stream;base64,";function Ge(e){return e.startsWith(Yr)}function oe(e){return e.startsWith("file://")}var V;V="resistor-optimization.wasm",Ge(V)||(V=Cr(V));function Xe(e){try{if(e==V&&G)return new Uint8Array(G);if(ie)return ie(e);throw"both async and sync fetching of the wasm failed"}catch(r){M(r)}}function Vr(e){if(!G&&(Ie||B)){if(typeof fetch=="function"&&!oe(e))return fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()}).catch(()=>Xe(e));if(ne)return new Promise((r,t)=>{ne(e,n=>r(new Uint8Array(n)),t)})}return Promise.resolve().then(()=>Xe(e))}function Je(e,r,t){return Vr(e).then(n=>WebAssembly.instantiate(n,r)).then(n=>n).then(t,n=>{q("failed to asynchronously prepare wasm: "+n),M(n)})}function xr(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Ge(r)&&!oe(r)&&!je&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(i=>{var o=WebAssembly.instantiateStreaming(i,t);return o.then(n,function(u){return q("wasm streaming compile failed: "+u),q("falling back to ArrayBuffer instantiation"),Je(r,t,n)})}):Je(r,t,n)}function zr(){var e={a:wn};function r(n,i){var o=n.exports;return a.asm=o,Ve=a.asm.A,Er(),Le=a.asm.G,Hr(a.asm.B),jr(),o}Ir();function t(n){r(n.instance)}if(a.instantiateWasm)try{return a.instantiateWasm(e,r)}catch(n){return q("Module.instantiateWasm callback failed with error: "+n),!1}return xr(G,V,e,t),{}}function ue(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var fe=e=>{for(;e.length>0;)e.shift()(a)},Ke=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Lr=(e,r,t)=>{for(var n=r+t,i=r;e[i]&&!(i>=n);)++i;if(i-r>16&&e.buffer&&Ke)return Ke.decode(e.subarray(r,i));for(var o="";r>10,56320|l&1023)}}return o},x=(e,r)=>e?Lr(E,e,r):"",Nr=(e,r,t,n)=>{M(`Assertion failed: ${x(e)}, at: `+[r?x(r):"unknown filename",t,n?x(n):"unknown function"])};function Br(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(r){_[this.ptr+4>>2]=r},this.get_type=function(){return _[this.ptr+4>>2]},this.set_destructor=function(r){_[this.ptr+8>>2]=r},this.get_destructor=function(){return _[this.ptr+8>>2]},this.set_caught=function(r){r=r?1:0,F[this.ptr+12>>0]=r},this.get_caught=function(){return F[this.ptr+12>>0]!=0},this.set_rethrown=function(r){r=r?1:0,F[this.ptr+13>>0]=r},this.get_rethrown=function(){return F[this.ptr+13>>0]!=0},this.init=function(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)},this.set_adjusted_ptr=function(r){_[this.ptr+16>>2]=r},this.get_adjusted_ptr=function(){return _[this.ptr+16>>2]},this.get_exception_ptr=function(){var r=wr(this.get_type());if(r)return _[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Qe=0;function qr(e,r,t){var n=new Br(e);throw n.init(r,t),Qe=e,Qe}var le={};function Ze(e){for(;e.length;){var r=e.pop(),t=e.pop();t(r)}}function J(e){return this.fromWireType(b[e>>2])}var z={},I={},ce={},Gr=48,Xr=57;function Ce(e){if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=Gr&&r<=Xr?`_${e}`:e}function Te(e,r){return e=Ce(e),{[e]:function(){return r.apply(this,arguments)}}[e]}function Ae(e,r){var t=Te(r,function(n){this.name=r,this.message=n;var i=new Error(n).stack;i!==void 0&&(this.stack=this.toString()+` -`+i.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t}var er=void 0;function de(e){throw new er(e)}function L(e,r,t){e.forEach(function(s){ce[s]=r});function n(s){var c=t(s);c.length!==e.length&&de("Mismatched type converter count");for(var l=0;l{I.hasOwnProperty(s)?i[c]=I[s]:(o.push(s),z.hasOwnProperty(s)||(z[s]=[]),z[s].push(()=>{i[c]=I[s],++u,u===o.length&&n(i)}))}),o.length===0&&n(i)}var Jr=function(e){var r=le[e];delete le[e];var t=r.rawConstructor,n=r.rawDestructor,i=r.fields,o=i.map(u=>u.getterReturnType).concat(i.map(u=>u.setterArgumentType));L([e],o,u=>{var s={};return i.forEach((c,l)=>{var v=c.fieldName,h=u[l],p=c.getter,y=c.getterContext,m=u[l+i.length],$=c.setter,w=c.setterContext;s[v]={read:C=>h.fromWireType(p(y,C)),write:(C,f)=>{var d=[];$(w,C,m.toWireType(d,f)),Ze(d)}}}),[{name:r.name,fromWireType:function(c){var l={};for(var v in s)l[v]=s[v].read(c);return n(c),l},toWireType:function(c,l){for(var v in s)if(!(v in l))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,l[v]);return c!==null&&c.push(n,h),h},argPackAdvance:8,readValueFromPointer:J,destructorFunction:n}]})};function Kr(e,r,t,n,i){}function Ee(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${e}`)}}function Qr(){for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);rr=e}var rr=void 0;function T(e){for(var r="",t=e;E[t];)r+=rr[E[t++]];return r}var N=void 0;function g(e){throw new N(e)}function O(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),I.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(I[e]=r,delete ce[e],z.hasOwnProperty(e)){var i=z[e];delete z[e],i.forEach(o=>o())}}function Zr(e,r,t,n,i){var o=Ee(t);r=T(r),O(e,{name:r,fromWireType:function(u){return!!u},toWireType:function(u,s){return s?n:i},argPackAdvance:8,readValueFromPointer:function(u){var s;if(t===1)s=F;else if(t===2)s=Y;else if(t===4)s=b;else throw new TypeError("Unknown boolean type size: "+r);return this.fromWireType(s[u>>o])},destructorFunction:null})}function et(e){if(!(this instanceof k)||!(e instanceof k))return!1;for(var r=this.$$.ptrType.registeredClass,t=this.$$.ptr,n=e.$$.ptrType.registeredClass,i=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return r===n&&t===i}function rt(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function Se(e){function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")}var Re=!1;function tr(e){}function tt(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function nr(e){e.count.value-=1;var r=e.count.value===0;r&&tt(e)}function ir(e,r,t){if(r===t)return e;if(t.baseClass===void 0)return null;var n=ir(e,r,t.baseClass);return n===null?null:t.downcast(n)}var ar={};function nt(){return Object.keys(Z).length}function it(){var e=[];for(var r in Z)Z.hasOwnProperty(r)&&e.push(Z[r]);return e}var K=[];function Fe(){for(;K.length;){var e=K.pop();e.$$.deleteScheduled=!1,e.delete()}}var Q=void 0;function at(e){Q=e,K.length&&Q&&Q(Fe)}function st(){a.getInheritedInstanceCount=nt,a.getLiveInheritedInstances=it,a.flushPendingDeletes=Fe,a.setDelayFunction=at}var Z={};function ot(e,r){for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r}function ut(e,r){return r=ot(e,r),Z[r]}function ve(e,r){(!r.ptrType||!r.ptr)&&de("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&de("Both smartPtrType and smartPtr must be specified"),r.count={value:1},ee(Object.create(e,{$$:{value:r}}))}function ft(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=ut(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?ve(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):ve(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o=this.registeredClass.getActualType(r),u=ar[o];if(!u)return i.call(this);var s;this.isConst?s=u.constPointerType:s=u.pointerType;var c=ir(r,this.registeredClass,s.registeredClass);return c===null?i.call(this):this.isSmartPointer?ve(s.registeredClass.instancePrototype,{ptrType:s,ptr:c,smartPtrType:this,smartPtr:e}):ve(s.registeredClass.instancePrototype,{ptrType:s,ptr:c})}var ee=function(e){return typeof FinalizationRegistry>"u"?(ee=r=>r,e):(Re=new FinalizationRegistry(r=>{nr(r.$$)}),ee=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var i={$$:t};Re.register(r,i,r)}return r},tr=r=>Re.unregister(r),ee(e))};function lt(){if(this.$$.ptr||Se(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=ee(Object.create(Object.getPrototypeOf(this),{$$:{value:rt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function ct(){this.$$.ptr||Se(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),tr(this),nr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function dt(){return!this.$$.ptr}function vt(){return this.$$.ptr||Se(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),K.push(this),K.length===1&&Q&&Q(Fe),this.$$.deleteScheduled=!0,this}function pt(){k.prototype.isAliasOf=et,k.prototype.clone=lt,k.prototype.delete=ct,k.prototype.isDeleted=dt,k.prototype.deleteLater=vt}function k(){}function sr(e,r,t){if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||g(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}}function ht(e,r,t){a.hasOwnProperty(e)?((t===void 0||a[e].overloadTable!==void 0&&a[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),sr(a,e,e),a.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[e].overloadTable[t]=r):(a[e]=r,t!==void 0&&(a[e].numArguments=t))}function gt(e,r,t,n,i,o,u,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=u,this.downcast=s,this.pureVirtualFunctions=[]}function De(e,r,t){for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e}function yt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${We(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=De(r.$$.ptr,t,this.registeredClass);return n}function mt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;r.$$||g(`Cannot pass "${We(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=De(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var i=r.clone();t=this.rawShare(t,he.toHandle(function(){i.delete()})),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function _t(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${We(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=De(r.$$.ptr,t,this.registeredClass);return n}function wt(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function bt(e){this.rawDestructor&&this.rawDestructor(e)}function $t(e){e!==null&&e.delete()}function Pt(){W.prototype.getPointee=wt,W.prototype.destructor=bt,W.prototype.argPackAdvance=8,W.prototype.readValueFromPointer=J,W.prototype.deleteObject=$t,W.prototype.fromWireType=ft}function W(e,r,t,n,i,o,u,s,c,l,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=u,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=l,this.rawDestructor=v,!i&&r.baseClass===void 0?n?(this.toWireType=yt,this.destructorFunction=null):(this.toWireType=_t,this.destructorFunction=null):this.toWireType=mt}function Ct(e,r,t){a.hasOwnProperty(e)||de("Replacing nonexistant public symbol"),a[e].overloadTable!==void 0&&t!==void 0?a[e].overloadTable[t]=r:(a[e]=r,a[e].argCount=t)}var Tt=(e,r,t)=>{var n=a["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)},pe=[],or=e=>{var r=pe[e];return r||(e>=pe.length&&(pe.length=e+1),pe[e]=r=Le.get(e)),r},At=(e,r,t)=>{if(e.includes("j"))return Tt(e,r,t);var n=or(r).apply(null,t);return n},Et=(e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),At(e,r,t)}};function D(e,r){e=T(e);function t(){return e.includes("j")?Et(e,r):or(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n}var ur=void 0;function fr(e){var r=_r(e),t=T(r);return U(r),t}function Oe(e,r){var t=[],n={};function i(o){if(!n[o]&&!I[o]){if(ce[o]){ce[o].forEach(i);return}t.push(o),n[o]=!0}}throw r.forEach(i),new ur(`${e}: `+t.map(fr).join([", "]))}function St(e,r,t,n,i,o,u,s,c,l,v,h,p){v=T(v),o=D(i,o),s&&(s=D(u,s)),l&&(l=D(c,l)),p=D(h,p);var y=Ce(v);ht(y,function(){Oe(`Cannot construct ${v} due to unbound types`,[n])}),L([e,r,t],n?[n]:[],function(m){m=m[0];var $,w;n?($=m.registeredClass,w=$.instancePrototype):w=k.prototype;var C=Te(y,function(){if(Object.getPrototypeOf(this)!==f)throw new N("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new N(v+" has no accessible constructor");var _e=d.constructor_body[arguments.length];if(_e===void 0)throw new N(`Tried to invoke ctor of ${v} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return _e.apply(this,arguments)}),f=Object.create(w,{constructor:{value:C}});C.prototype=f;var d=new gt(v,C,f,p,$,o,s,l);d.baseClass&&(d.baseClass.__derivedClasses===void 0&&(d.baseClass.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d));var A=new W(v,d,!0,!1,!1),P=new W(v+"*",d,!1,!1,!1),j=new W(v+" const*",d,!1,!0,!1);return ar[e]={pointerType:P,constPointerType:j},Ct(y,C),[A,P,j]})}function lr(e,r){for(var t=[],n=0;n>2]);return t}function Rt(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=Te(e.name||"unknownFunctionName",function(){});t.prototype=e.prototype;var n=new t,i=e.apply(n,r);return i instanceof Object?i:n}function cr(e,r,t,n,i,o){var u=r.length;u<2&&g("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=r[1]!==null&&t!==null,c=!1,l=1;l0?", ":"")+p),y+=(v||o?"var rv = ":"")+"invoker(fn"+(p.length>0?", ":"")+p+`); -`,c)y+=`runDestructors(destructors); -`;else for(var l=s?1:2;l0);var u=lr(r,t);i=D(n,i),L([],[e],function(s){s=s[0];var c=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new N(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Oe(`Cannot construct ${s.name} due to unbound types`,u)},L([],u,function(l){return l.splice(1,0,null),s.registeredClass.constructor_body[r-1]=cr(c,l,null,i,o),[]}),[]})}function Dt(e,r,t,n,i,o,u,s,c){var l=lr(t,n);r=T(r),o=D(i,o),L([],[e],function(v){v=v[0];var h=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function p(){Oe(`Cannot call ${h} due to unbound types`,l)}var y=v.registeredClass.instancePrototype,m=y[r];return m===void 0||m.overloadTable===void 0&&m.className!==v.name&&m.argCount===t-2?(p.argCount=t-2,p.className=v.name,y[r]=p):(sr(y,r,h),y[r].overloadTable[t-2]=p),L([],l,function($){var w=cr(h,$,v,o,u,c);return y[r].overloadTable===void 0?(w.argCount=t-2,y[r]=w):y[r].overloadTable[t-2]=w,[]}),[]})}function Ot(){this.allocated=[void 0],this.freelist=[],this.get=function(e){return this.allocated[e]},this.has=function(e){return this.allocated[e]!==void 0},this.allocate=function(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},this.free=function(e){this.allocated[e]=void 0,this.freelist.push(e)}}var R=new Ot;function dr(e){e>=R.reserved&&--R.get(e).refcount===0&&R.free(e)}function Wt(){for(var e=0,r=R.reserved;r(e||g("Cannot use deleted val. handle = "+e),R.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return R.allocate({refcount:1,value:e})}}};function kt(e,r){r=T(r),O(e,{name:r,fromWireType:function(t){var n=he.toValue(t);return dr(t),n},toWireType:function(t,n){return he.toHandle(n)},argPackAdvance:8,readValueFromPointer:J,destructorFunction:null})}function We(e){if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e}function Ht(e,r){switch(r){case 2:return function(t){return this.fromWireType(xe[t>>2])};case 3:return function(t){return this.fromWireType(ze[t>>3])};default:throw new TypeError("Unknown float type: "+e)}}function Mt(e,r,t){var n=Ee(t);r=T(r),O(e,{name:r,fromWireType:function(i){return i},toWireType:function(i,o){return o},argPackAdvance:8,readValueFromPointer:Ht(r,n),destructorFunction:null})}function It(e,r,t){switch(r){case 0:return t?function(i){return F[i]}:function(i){return E[i]};case 1:return t?function(i){return Y[i>>1]}:function(i){return se[i>>1]};case 2:return t?function(i){return b[i>>2]}:function(i){return _[i>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function jt(e,r,t,n,i){r=T(r);var o=Ee(t),u=h=>h;if(n===0){var s=32-8*t;u=h=>h<>>s}var c=r.includes("unsigned"),l=(h,p)=>{},v;c?v=function(h,p){return l(p,this.name),p>>>0}:v=function(h,p){return l(p,this.name),p},O(e,{name:r,fromWireType:u,toWireType:v,argPackAdvance:8,readValueFromPointer:It(r,o,n!==0),destructorFunction:null})}function Yt(e,r,t){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[r];function o(u){u=u>>2;var s=_,c=s[u],l=s[u+1];return new i(s.buffer,l,c)}t=T(t),O(e,{name:t,fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}var vr=(e,r,t,n)=>{if(!(n>0))return 0;for(var i=t,o=t+n-1,u=0;u=55296&&s<=57343){var c=e.charCodeAt(++u);s=65536+((s&1023)<<10)|c&1023}if(s<=127){if(t>=o)break;r[t++]=s}else if(s<=2047){if(t+1>=o)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=o)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=o)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-i},Vt=(e,r,t)=>vr(e,E,r,t),pr=e=>{for(var r=0,t=0;t=55296&&n<=57343?(r+=4,++t):r+=3}return r};function xt(e,r){r=T(r);var t=r==="std::string";O(e,{name:r,fromWireType:function(n){var i=_[n>>2],o=n+4,u;if(t)for(var s=o,c=0;c<=i;++c){var l=o+c;if(c==i||E[l]==0){var v=l-s,h=x(s,v);u===void 0?u=h:(u+=String.fromCharCode(0),u+=h),s=l+1}}else{for(var p=new Array(i),c=0;c>2]=o,t&&u)Vt(i,c,o+1);else if(u)for(var l=0;l255&&(U(c),g("String has UTF-16 code units that do not fit in 8 bits")),E[c+l]=v}else for(var l=0;l{for(var t=e,n=t>>1,i=n+r/2;!(n>=i)&&se[n];)++n;if(t=n<<1,t-e>32&&hr)return hr.decode(E.subarray(e,t));for(var o="",u=0;!(u>=r/2);++u){var s=Y[e+u*2>>1];if(s==0)break;o+=String.fromCharCode(s)}return o},Lt=(e,r,t)=>{if(t===void 0&&(t=2147483647),t<2)return 0;t-=2;for(var n=r,i=t>1]=u,r+=2}return Y[r>>1]=0,r-n},Nt=e=>e.length*2,Bt=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var i=b[e+t*4>>2];if(i==0)break;if(++t,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|o&1023)}else n+=String.fromCharCode(i)}return n},qt=(e,r,t)=>{if(t===void 0&&(t=2147483647),t<4)return 0;for(var n=r,i=n+t-4,o=0;o=55296&&u<=57343){var s=e.charCodeAt(++o);u=65536+((u&1023)<<10)|s&1023}if(b[r>>2]=u,r+=4,r+4>i)break}return b[r>>2]=0,r-n},Gt=e=>{for(var r=0,t=0;t=55296&&n<=57343&&++t,r+=4}return r},Xt=function(e,r,t){t=T(t);var n,i,o,u,s;r===2?(n=zt,i=Lt,u=Nt,o=()=>se,s=1):r===4&&(n=Bt,i=qt,u=Gt,o=()=>_,s=2),O(e,{name:t,fromWireType:function(c){for(var l=_[c>>2],v=o(),h,p=c+4,y=0;y<=l;++y){var m=c+4+y*r;if(y==l||v[m>>s]==0){var $=m-p,w=n(p,$);h===void 0?h=w:(h+=String.fromCharCode(0),h+=w),p=m+r}}return U(c),h},toWireType:function(c,l){typeof l!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var v=u(l),h=ke(4+v+r);return _[h>>2]=v>>s,i(l,h+4,v+r),c!==null&&c.push(U,h),h},argPackAdvance:8,readValueFromPointer:J,destructorFunction:function(c){U(c)}})};function Jt(e,r,t,n,i,o){le[e]={name:T(r),rawConstructor:D(t,n),rawDestructor:D(i,o),fields:[]}}function Kt(e,r,t,n,i,o,u,s,c,l){le[e].fields.push({fieldName:T(r),getterReturnType:t,getter:D(n,i),getterContext:o,setterArgumentType:u,setter:D(s,c),setterContext:l})}function Qt(e,r){r=T(r),O(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:function(){},toWireType:function(t,n){}})}function Zt(e){e>4&&(R.get(e).refcount+=1)}function en(e,r){var t=I[e];return t===void 0&&g(r+" has unknown type "+fr(e)),t}function rn(e,r){e=en(e,"_emval_take_value");var t=e.readValueFromPointer(r);return he.toHandle(t)}var tn=()=>{M("")},nn=(e,r,t)=>E.copyWithin(e,r,r+t),an=e=>{M("OOM")},sn=e=>{E.length,an()},Ue={},on=()=>we||"./this.program",re=()=>{if(!re.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:on()};for(var t in Ue)Ue[t]===void 0?delete r[t]:r[t]=Ue[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);re.strings=n}return re.strings},un=(e,r)=>{for(var t=0;t>0]=e.charCodeAt(t);F[r>>0]=0},fn=(e,r)=>{var t=0;return re().forEach(function(n,i){var o=r+t;_[e+i*4>>2]=o,un(n,o),t+=n.length+1}),0},ln=(e,r)=>{var t=re();_[e>>2]=t.length;var n=0;return t.forEach(function(i){n+=i.length+1}),_[r>>2]=n,0},ge=e=>e%4===0&&(e%100!==0||e%400===0),cn=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},gr=[31,29,31,30,31,30,31,31,30,31,30,31],yr=[31,28,31,30,31,30,31,31,30,31,30,31],dn=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=ge(t.getFullYear()),i=t.getMonth(),o=(n?gr:yr)[i];if(r>o-t.getDate())r-=o-t.getDate()+1,t.setDate(1),i<11?t.setMonth(i+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function vn(e,r,t){var n=t>0?t:pr(e)+1,i=new Array(n),o=vr(e,i,0,i.length);return r&&(i.length=o),i}var pn=(e,r)=>{F.set(e,r)},hn=(e,r,t,n)=>{var i=b[n+40>>2],o={tm_sec:b[n>>2],tm_min:b[n+4>>2],tm_hour:b[n+8>>2],tm_mday:b[n+12>>2],tm_mon:b[n+16>>2],tm_year:b[n+20>>2],tm_wday:b[n+24>>2],tm_yday:b[n+28>>2],tm_isdst:b[n+32>>2],tm_gmtoff:b[n+36>>2],tm_zone:i?x(i):""},u=x(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var c in s)u=u.replace(new RegExp(c,"g"),s[c]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,d,A){for(var P=typeof f=="number"?f.toString():f||"";P.length0?1:0}var P;return(P=A(f.getFullYear()-d.getFullYear()))===0&&(P=A(f.getMonth()-d.getMonth()))===0&&(P=A(f.getDate()-d.getDate())),P}function m(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function $(f){var d=dn(new Date(f.tm_year+1900,0,1),f.tm_yday),A=new Date(d.getFullYear(),0,4),P=new Date(d.getFullYear()+1,0,4),j=m(A),_e=m(P);return y(j,d)<=0?y(_e,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var w={"%a":f=>l[f.tm_wday].substring(0,3),"%A":f=>l[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return p(d/100|0,2)},"%d":f=>p(f.tm_mday,2),"%e":f=>h(f.tm_mday,2," "),"%g":f=>$(f).toString().substring(2),"%G":f=>$(f),"%H":f=>p(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":f=>p(f.tm_mday+cn(ge(f.tm_year+1900)?gr:yr,f.tm_mon-1),3),"%m":f=>p(f.tm_mon+1,2),"%M":f=>p(f.tm_min,2),"%n":()=>` -`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>p(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return p(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var P=(f.tm_wday+371-f.tm_yday)%7;P!=4&&(P!=3||!ge(f.tm_year))&&(d=1)}}else{d=52;var A=(f.tm_wday+7-f.tm_yday-1)%7;(A==4||A==5&&ge(f.tm_year%400-1))&&d++}return p(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};u=u.replace(/%%/g,"\0\0");for(var c in w)u.includes(c)&&(u=u.replace(new RegExp(c,"g"),w[c](o)));u=u.replace(/\0\0/g,"%");var C=vn(u,!1);return C.length>r?0:(pn(C,e),C.length-1)},gn=(e,r,t,n,i)=>hn(e,r,t,n),yn=e=>{ae=e,Fr()||(a.onExit&&a.onExit(e),Pe=!0),te(e,new ue(e))},mn=(e,r)=>{ae=e,yn(e)},_n=e=>{if(e instanceof ue||e=="unwind")return ae;te(1,e)};er=a.InternalError=Ae(Error,"InternalError"),Qr(),N=a.BindingError=Ae(Error,"BindingError"),pt(),st(),Pt(),ur=a.UnboundTypeError=Ae(Error,"UnboundTypeError"),Ut();var wn={d:Nr,e:qr,z:Jr,q:Kr,x:Zr,j:St,h:Ft,c:Dt,w:kt,k:Mt,b:jt,a:Yt,l:xt,f:Xt,m:Jt,g:Kt,y:Qt,o:dr,p:Zt,n:rn,i:tn,v:nn,u:sn,s:fn,t:ln,r:gn};zr();var mr=a._main=function(){return(mr=a._main=a.asm.C).apply(null,arguments)},ke=function(){return(ke=a.asm.D).apply(null,arguments)},_r=function(){return(_r=a.asm.E).apply(null,arguments)};a.__embind_initialize_bindings=function(){return(a.__embind_initialize_bindings=a.asm.F).apply(null,arguments)};var U=function(){return(U=a.asm.H).apply(null,arguments)},wr=function(){return(wr=a.asm.I).apply(null,arguments)};a.dynCall_viijii=function(){return(a.dynCall_viijii=a.asm.J).apply(null,arguments)},a.dynCall_iiiiij=function(){return(a.dynCall_iiiiij=a.asm.K).apply(null,arguments)},a.dynCall_iiiiijj=function(){return(a.dynCall_iiiiijj=a.asm.L).apply(null,arguments)},a.dynCall_iiiiiijj=function(){return(a.dynCall_iiiiiijj=a.asm.M).apply(null,arguments)};var ye;X=function e(){ye||br(),ye||(X=e)};function bn(){var e=mr,r=0,t=0;try{var n=e(r,t);return mn(n,!0),n}catch(i){return _n(i)}}function br(){if(H>0||(Dr(),H>0))return;function e(){ye||(ye=!0,a.calledRun=!0,!Pe&&(Or(),Wr(),a.onRuntimeInitialized&&a.onRuntimeInitialized(),$r&&bn(),Ur()))}a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),e()},1)):e()}if(a.preInit)for(typeof a.preInit=="function"&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();var $r=!0;a.noInitialRun&&($r=!1),br();let me=null,He=[];a.onRuntimeInitialized=function(){for(const e of He)Pr(e);He=[]},self.addEventListener("message",function(e){a.calledRun?Pr(e):He.push(e)});function Pr(e){if(e.data.type==="updateResistorList"){me!==null&&me.delete();const r=new a.DoubleVector;for(const t of new Set(e.data.resistors))r.push_back(t);me=new a.ResistanceOptimizer(r),r.delete()}else if(e.data.type==="calculate"){const r=me.optimize(e.data.targetResistance,e.data.maxResistors);postMessage(r)}}})(); diff --git a/_nuxt/resistor-optimization.wasm b/_nuxt/resistor-optimization.wasm index d76c7a3..f4bb94d 100755 Binary files a/_nuxt/resistor-optimization.wasm and b/_nuxt/resistor-optimization.wasm differ diff --git a/index.html b/index.html index 59bbeec..e8296d6 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,6 @@ Resistor optimization - -
+ +
\ No newline at end of file