aotds-docks/docs/_app/pages/index.svelte-de0f4c9d.js

2 lines
93 KiB
JavaScript
Raw Normal View History

2021-06-13 17:04:00 +00:00
var t=Object.defineProperty,e=Object.defineProperties,s=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,c=(e,s,n)=>s in e?t(e,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[s]=n,l=(t,e)=>{for(var s in e||(e={}))a.call(e,s)&&c(t,s,e[s]);if(n)for(var s of n(e))r.call(e,s)&&c(t,s,e[s]);return t},o=(t,n)=>e(t,s(n));import{S as i,i as u,s as $,e as h,t as f,k as p,c as d,a as m,g,d as v,n as y,b,f as w,F as x,G as E,H as I,I as O,J as k,K as D,L as A,M,N as P,O as S,P as T,Q as j,R as N,T as V,U as q,V as C,W as L,X as F,Y as U,Z as B,_ as z,$ as H,a0 as G,a1 as R,a2 as W,a3 as Y,a4 as J,a5 as X,a6 as Z,h as K,a7 as Q,a8 as tt,a9 as et,aa as st,j as nt,m as at,o as rt,v as ct,r as lt,w as ot,ab as it,ac as ut,ad as $t,ae as ht,af as ft,ag as pt,l as dt,D as mt,B as gt,ah as vt,u as yt,E as _t,p as bt,q as wt,ai as xt,A as Et,aj as It,ak as Ot,al as kt,am as Dt,an as At,ao as Mt,ap as Pt,aq as St,ar as Tt,as as jt,x as Nt}from"../chunks/vendor-d574e9c5.js";function Vt(t){let e,s,n,a,r,c,l,o,i;return{c(){e=h("header"),s=h("h1"),n=f("The Docks"),a=p(),r=h("h2"),c=f("a "),l=h("a"),o=f("Full Thrust"),i=f(" ship builder"),this.h()},l(t){e=d(t,"HEADER",{class:!0});var u=m(e);s=d(u,"H1",{class:!0});var $=m(s);n=g($,"The Docks"),$.forEach(v),a=y(u),r=d(u,"H2",{class:!0});var h=m(r);c=g(h,"a "),l=d(h,"A",{href:!0});var f=m(l);o=g(f,"Full Thrust"),f.forEach(v),i=g(h," ship builder"),h.forEach(v),u.forEach(v),this.h()},h(){b(s,"class","svelte-1me5k9w"),b(l,"href","https://shop.groundzerogames.co.uk/rules.html"),b(r,"class","svelte-1me5k9w"),b(e,"class","svelte-1me5k9w")},m(t,u){w(t,e,u),x(e,s),x(s,n),x(e,a),x(e,r),x(r,c),x(r,l),x(l,o),x(r,i)},p:E,i:E,o:E,d(t){t&&v(e)}}}class qt extends i{constructor(t){super(),u(this,t,null,Vt,$,{})}}const Ct=(t={})=>[M(["cost","mass"],t),...Object.values(t||{}).filter((t=>"object"==typeof t)).map((t=>Ct(t)))];function Lt(t){console.log(t);let e=t,{general:s}=e,c=((t,e)=>{var s={};for(var c in t)a.call(t,c)&&e.indexOf(c)<0&&(s[c]=t[c]);if(null!=t&&n)for(var c of n(t))e.indexOf(c)<0&&r.call(t,c)&&(s[c]=t[c]);return s})(e,["general"]);const i=I(Ct,O,k(D("cost")))(o(l({},c),{cost:s.mass,mass:0}));return{mass:A("mass",i),cost:A("cost",i)}}const Ft=t=>Math.ceil(Math.round(10*t)/10);function Ut(t){var e=t;return function(){return e}}function Bt(t){return Array.isArray(t)?t:P((""+t).split("."),(function(t){return!t}))}var zt=S.placeholder;function Ht(t,e){return void 0===e&&(e=t.length),S(t,e)}var Gt=Ht((function(t,e,s){for(var n=Bt(t),a=s,r=0;r<n.length;r+=1){if(void 0===a)return!1;a=a[n[r]]}return"function"==typeof e?e(a):e===a}));function Rt(t,e){return void 0===e&&(e=t.length),Ht((function(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];return t.apply(void 0,e)}),e)}var Wt=function(){return(Wt=Object.assign||function(t){for(var e,s=1,n=arguments.length;s<n;s++)for(var a in e=arguments[s])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)},Yt=function(){for(var t=0,e=0,s=arguments.length;e<s;e++)t+=arguments[e].length;var n=Array(t),a=0;for(e=0;e<s;e++)for(var r=arguments[e],c=0,l=r.length;c<l;c++,a++)n[a]=r[c];return n},Jt={__omitted:!0},Xt=Ut(Jt);function Zt(t){return!Object.keys(t).length}function Kt(t,e){return function(t,e,s){return Object.keys(t).reduce((function(s,n){return e(s,t[n],n)}),s)}(t,(function(t,s,n){var a=s;return Array.isArray(s)||null===s||"object"!=typeof s?"function"==typeof s&&(a=s(e[n])):a=te(s,e[n]),e[n]!==a&&(t[n]=a),t}),{})}function Qt(t,e){var s=Yt(e);return Object.keys(t).forEach((function(e){s[e]=t[e]})),s}function te(t,e){for(var s=[],n=2;n<arguments.length;n++)s[n-2]=arguments[n];if("function"==typeof t)return t.apply(void 0,Yt([e],s));if(!T(t))return t;var a=null==e?{}:e,r=Kt(t,a);return Zt(r)?a:Array.isArray(a)?Qt(r,a).filter((function(t){return t!==Jt})):j(Wt(Wt({},a),r),(function(t){return t===Jt}))}var ee=Rt(te,2);var se=Rt((function(t,e,s,n){var a="function"==typeof t?t(n):"boolean"==typeof t?t:N(n,t);return ee(a?e:s,n)})),