From 923a1de92736969c22074a445af0763ca2843642 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 20 Jun 2024 12:38:33 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20pages=20from=20@=20thepaperpil?= =?UTF-8?q?ot/pages@831060a57ea3b801f343d139ca89db3261d18cbf=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 6 +- about/index.html | 10 +- assets/{app.DaQ395hX.js => app.BWgSvyDc.js} | 2 +- .../chunks/@localSearchIndexroot.B-h4d9iN.js | 1 - .../chunks/@localSearchIndexroot.D6-2_xS5.js | 1 + ...3w-sDv.js => VPLocalSearchBox.CqtzcjrV.js} | 2 +- .../{theme.Drk7y7Ch.js => theme.BXTgxh1Z.js} | 352 +++++++++--------- ...{style.C6bSF-s6.css => style.WieSGy2g.css} | 2 +- changelog/atom | 330 ++++++++-------- changelog/index.html | 10 +- changelog/json | 80 ++-- changelog/rss | 330 ++++++++-------- garden/activitypub/index.html | 12 +- garden/advent-incremental/index.html | 12 +- garden/artificial-intelligence/index.html | 12 +- garden/atproto/index.html | 12 +- garden/babble-buds/index.html | 12 +- garden/capture-the-citadel/index.html | 12 +- garden/chat-glue/index.html | 12 +- garden/chronological/index.html | 12 +- garden/cinny/index.html | 12 +- garden/command-palettes/index.html | 12 +- garden/commune/index.html | 12 +- garden/davey-wreden/index.html | 12 +- garden/decentralized/index.html | 12 +- garden/dice-armor/index.html | 12 +- garden/digital-gardens/index.html | 12 +- garden/federated-identity/index.html | 12 +- garden/fedi-v2/index.html | 12 +- garden/fediverse/index.html | 12 +- garden/forgejo/index.html | 12 +- .../index.html | 12 +- garden/freeform/index.html | 12 +- garden/game-dev-tree/index.html | 12 +- garden/garden-rss/index.html | 12 +- .../appeal-to-developers/index.html | 12 +- .../appeal-to-players/index.html | 12 +- .../defining-the-genre/index.html | 12 +- garden/guide-to-incrementals/index.html | 12 +- .../navigating-criticism/index.html | 12 +- .../what-is-content/index.html | 12 +- garden/incremental-social/index.html | 12 +- garden/ivy-road/index.html | 12 +- garden/kronos/index.html | 12 +- garden/life-is-strange/index.html | 12 +- garden/logseq/index.html | 12 +- garden/matrix/index.html | 12 +- garden/mbin/index.html | 12 +- garden/mtx/index.html | 12 +- garden/my-personal-website/index.html | 12 +- garden/my-projects/index.html | 12 +- garden/nostr/index.html | 12 +- garden/open-source/index.html | 12 +- garden/opti-speech/index.html | 12 +- garden/planar-pioneers/index.html | 12 +- garden/pre-order-bonuses/index.html | 12 +- garden/premium-currency/index.html | 12 +- garden/profectus/index.html | 12 +- garden/social-media/index.html | 12 +- garden/synapse/index.html | 12 +- garden/the-beginner-s-guide/index.html | 12 +- garden/the-cozy-web/index.html | 12 +- garden/the-indieweb/amplification/index.html | 12 +- .../the-indieweb/signature-blocks/index.html | 12 +- garden/the-small-web/index.html | 12 +- garden/this-knowledge-hub/index.html | 12 +- garden/v-ecs/index.html | 12 +- garden/video-game-monetization/index.html | 12 +- garden/vitepress/index.html | 12 +- garden/wanderstop/index.html | 12 +- garden/webrings/index.html | 12 +- garden/weird/index.html | 12 +- .../design/criticism/index.html | 12 +- guide-to-incrementals/index.html | 12 +- .../ludology/appeal-developers/index.html | 12 +- .../ludology/appeal-gamers/index.html | 12 +- .../ludology/content/index.html | 12 +- .../ludology/definition/index.html | 12 +- hashmap.json | 2 +- index.html | 10 +- now/index.html | 12 +- public/gamedevtree/2.0-format-changes.html | 10 +- public/gamedevtree/README.html | 10 +- public/gamedevtree/changelog.html | 10 +- public/gamedevtree/docs/!general-info.html | 10 +- public/gamedevtree/docs/achievements.html | 12 +- public/gamedevtree/docs/bars.html | 12 +- .../docs/basic-layer-breakdown.html | 12 +- public/gamedevtree/docs/buyables.html | 12 +- public/gamedevtree/docs/challenges.html | 12 +- public/gamedevtree/docs/clickables.html | 12 +- .../gamedevtree/docs/custom-tab-layouts.html | 12 +- public/gamedevtree/docs/getting-started.html | 10 +- public/gamedevtree/docs/infoboxes.html | 12 +- public/gamedevtree/docs/layer-features.html | 12 +- public/gamedevtree/docs/main-mod-info.html | 12 +- public/gamedevtree/docs/milestones.html | 12 +- .../docs/subtabs-and-microtabs.html | 12 +- public/gamedevtree/docs/updating-tmt.html | 10 +- public/gamedevtree/docs/upgrades.html | 12 +- .../kronos/Old Things/2.0-format-changes.html | 10 +- public/kronos/README.html | 10 +- public/kronos/changelog.html | 10 +- public/kronos/docs/!general-info.html | 10 +- public/kronos/docs/achievements.html | 12 +- public/kronos/docs/bars.html | 12 +- public/kronos/docs/basic-layer-breakdown.html | 12 +- public/kronos/docs/buyables.html | 12 +- public/kronos/docs/challenges.html | 12 +- public/kronos/docs/clickables.html | 12 +- public/kronos/docs/custom-tab-layouts.html | 12 +- public/kronos/docs/getting-started.html | 10 +- public/kronos/docs/grids.html | 12 +- public/kronos/docs/infoboxes.html | 12 +- public/kronos/docs/layer-features.html | 12 +- public/kronos/docs/main-mod-info.html | 12 +- public/kronos/docs/milestones.html | 12 +- public/kronos/docs/particles.html | 12 +- public/kronos/docs/subtabs-and-microtabs.html | 12 +- .../docs/trees-and-tree-customization.html | 12 +- public/kronos/docs/updating-tmt.html | 10 +- public/kronos/docs/upgrades.html | 12 +- public/lit/Old Things/2.0-format-changes.html | 10 +- public/lit/README.html | 10 +- public/lit/changelog.html | 10 +- public/lit/docs/!general-info.html | 10 +- public/lit/docs/achievements.html | 12 +- public/lit/docs/bars.html | 12 +- public/lit/docs/basic-layer-breakdown.html | 12 +- public/lit/docs/buyables.html | 12 +- public/lit/docs/challenges.html | 12 +- public/lit/docs/clickables.html | 12 +- public/lit/docs/custom-tab-layouts.html | 12 +- public/lit/docs/getting-started.html | 10 +- public/lit/docs/infoboxes.html | 12 +- public/lit/docs/layer-features.html | 12 +- public/lit/docs/main-mod-info.html | 12 +- public/lit/docs/milestones.html | 12 +- public/lit/docs/subtabs-and-microtabs.html | 12 +- .../docs/trees-and-tree-customization.html | 12 +- public/lit/docs/updating-tmt.html | 10 +- public/lit/docs/upgrades.html | 12 +- 142 files changed, 1319 insertions(+), 1319 deletions(-) rename assets/{app.DaQ395hX.js => app.BWgSvyDc.js} (95%) delete mode 100644 assets/chunks/@localSearchIndexroot.B-h4d9iN.js create mode 100644 assets/chunks/@localSearchIndexroot.D6-2_xS5.js rename assets/chunks/{VPLocalSearchBox.zY3w-sDv.js => VPLocalSearchBox.CqtzcjrV.js} (99%) rename assets/chunks/{theme.Drk7y7Ch.js => theme.BXTgxh1Z.js} (55%) rename assets/{style.C6bSF-s6.css => style.WieSGy2g.css} (96%) diff --git a/404.html b/404.html index be0c9d13..7afb8ec4 100644 --- a/404.html +++ b/404.html @@ -6,9 +6,9 @@ 404 | The Paper Pilot - + - + @@ -32,7 +32,7 @@
- + \ No newline at end of file diff --git a/about/index.html b/about/index.html index 4c80d115..991ab1b2 100644 --- a/about/index.html +++ b/about/index.html @@ -6,12 +6,12 @@ About Me | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

About Me

I'm a software developer who likes making games and tools! I have a variety of interests, from game development to the fediverse to digital gardens.

I live in Dallas, Texas, USA with my wife and baby son. I work at Topaz Labs LLC as a Product Engineer. I develop their flagship product Topaz Photo AI.

Reach out to me:

These are old accounts I don't use anymore, but they are me:

CC 2024 The Paper Pilot. CC BY-NC-SA 4.0.
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

About Me

I'm a software developer who likes making games and tools! I have a variety of interests, from game development to the fediverse to digital gardens.

I live in Dallas, Texas, USA with my wife and baby son. I work at Topaz Labs LLC as a Product Engineer. I develop their flagship product Topaz Photo AI.

Reach out to me:

These are old accounts I don't use anymore, but they are me:

CC 2024 The Paper Pilot. CC BY-NC-SA 4.0.
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/assets/app.DaQ395hX.js b/assets/app.BWgSvyDc.js similarity index 95% rename from assets/app.DaQ395hX.js rename to assets/app.BWgSvyDc.js index e293d540..9054377f 100644 --- a/assets/app.DaQ395hX.js +++ b/assets/app.BWgSvyDc.js @@ -1 +1 @@ -import{U as o,aB as p,aC as u,aD as l,aE as c,aF as f,aG as d,aH as m,aI as h,aJ as g,aK as A,d as P,u as v,y,x as C,aL as w,aM as R,aN as E,ac as b}from"./chunks/framework.VBE0TPts.js";import{R as S}from"./chunks/theme.Drk7y7Ch.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&w(),R(),E(),s.setup&&s.setup(),()=>b(s.Layout)}});async function _(){globalThis.__VITEPRESS__=!0;const e=x(),a=D();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return h(T)}function x(){let e=o,a;return g(t=>{let n=A(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&_().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{_ as createApp}; +import{U as o,aB as p,aC as u,aD as l,aE as c,aF as f,aG as d,aH as m,aI as h,aJ as g,aK as A,d as P,u as v,y,x as C,aL as w,aM as R,aN as E,ac as b}from"./chunks/framework.VBE0TPts.js";import{R as S}from"./chunks/theme.BXTgxh1Z.js";function i(e){if(e.extends){const a=i(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const s=i(S),T=P({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=v();return y(()=>{C(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&w(),R(),E(),s.setup&&s.setup(),()=>b(s.Layout)}});async function _(){globalThis.__VITEPRESS__=!0;const e=x(),a=D();a.provide(u,e);const t=l(e.route);return a.provide(c,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),s.enhanceApp&&await s.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return h(T)}function x(){let e=o,a;return g(t=>{let n=A(t),r=null;return n&&(e&&(a=n),(e||a===n)&&(n=n.replace(/\.js$/,".lean.js")),r=import(n)),o&&(e=!1),r},s.NotFound)}o&&_().then(({app:e,router:a,data:t})=>{a.go().then(()=>{p(a.route,t.site),e.mount("#app")})});export{_ as createApp}; diff --git a/assets/chunks/@localSearchIndexroot.B-h4d9iN.js b/assets/chunks/@localSearchIndexroot.B-h4d9iN.js deleted file mode 100644 index 4ad052de..00000000 --- a/assets/chunks/@localSearchIndexroot.B-h4d9iN.js +++ /dev/null @@ -1 +0,0 @@ -const e='{"documentCount":62,"nextId":62,"documentIds":{"0":"/about/#about-me","1":"/garden/fedi-v2/#inspiration","2":"/garden/fedi-v2/#identity","3":"/garden/fedi-v2/#servers","4":"/garden/fedi-v2/#content","5":"/garden/fedi-v2/#moderation","6":"/garden/fedi-v2/#problems-to-solve","7":"/garden/guide-to-incrementals/appeal-to-developers/#incrementals-are-easy-to-make","8":"/garden/guide-to-incrementals/appeal-to-developers/#players-are-easy-to-find","9":"/garden/guide-to-incrementals/appeal-to-developers/#monetization","10":"/garden/guide-to-incrementals/appeal-to-players/#numbers-going-up","11":"/garden/guide-to-incrementals/appeal-to-players/#effortlessness","12":"/garden/guide-to-incrementals/appeal-to-players/#strategy","13":"/garden/guide-to-incrementals/appeal-to-players/#avoiding-staleness","14":"/garden/guide-to-incrementals/appeal-to-players/#good-game-design","15":"/garden/guide-to-incrementals/appeal-to-players/#artistic-merit","16":"/garden/guide-to-incrementals/#why-am-i-making-this","17":"/garden/guide-to-incrementals/#ludology","18":"/garden/guide-to-incrementals/#making-an-incremental","19":"/garden/guide-to-incrementals/defining-the-genre/#incrementals-vs-idlers-vs-clickers","20":"/garden/guide-to-incrementals/defining-the-genre/#incrementals-as-ngu","21":"/garden/guide-to-incrementals/defining-the-genre/#roguelites-as-incrementals","22":"/garden/guide-to-incrementals/defining-the-genre/#the-berlin-interpretation","23":"/garden/guide-to-incrementals/defining-the-genre/#the-incremental-games-canon","24":"/garden/guide-to-incrementals/defining-the-genre/#the-paradigm-shift","25":"/garden/guide-to-incrementals/defining-the-genre/#high-value-factors","26":"/garden/guide-to-incrementals/defining-the-genre/#low-value-factors","27":"/garden/guide-to-incrementals/defining-the-genre/#are-roguelites-incrementals","28":"/garden/guide-to-incrementals/defining-the-genre/#sub-genres","29":"/garden/guide-to-incrementals/defining-the-genre/#other-related-genres","30":"/garden/guide-to-incrementals/navigating-criticism/#reading-feedback","31":"/garden/guide-to-incrementals/navigating-criticism/#seeking-feedback","32":"/garden/guide-to-incrementals/navigating-criticism/#responding-to-feedback","33":"/garden/guide-to-incrementals/what-is-content/#interaction","34":"/garden/guide-to-incrementals/what-is-content/#repeatable-purchases","35":"/garden/guide-to-incrementals/what-is-content/#following-instructions","36":"/garden/guide-to-incrementals/what-is-content/#tips-for-developers","37":"/garden/life-is-strange/#the-ending","38":"/garden/life-is-strange/#life-is-strange-before-the-storm","39":"/garden/life-is-strange/#the-awesome-adventures-of-captain-spirit","40":"/garden/life-is-strange/#life-is-strange-2","41":"/garden/life-is-strange/#life-is-strange-true-colors","42":"/garden/life-is-strange/#life-is-strange-double-exposure","43":"/garden/my-projects/#games","44":"/garden/my-projects/#tools-and-other-non-games","45":"/garden/opti-speech/#the-original-project","46":"/garden/opti-speech/#my-work","47":"/garden/the-small-web/#browsing-the-small-web","48":"/garden/the-small-web/#building-personal-websites","49":"/garden/the-small-web/#the-future","50":"/garden/the-small-web/#why-people-want-the-small-web","51":"/garden/the-small-web/#recommended-videos-about-the-small-web","52":"/garden/video-game-monetization/#aaa-games","53":"/garden/video-game-monetization/#free-to-play-games","54":"/garden/video-game-monetization/#indie-developers","55":"/garden/video-game-monetization/#ethical-game-monetization","56":"/#hello","57":"/now/#indieweb","58":"/now/#commune","59":"/now/#incremental-social","60":"/now/#chromatic-lattice","61":"/now/#kronos"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[2,1,83],"1":[1,1,117],"2":[1,1,161],"3":[1,1,102],"4":[1,1,126],"5":[1,1,121],"6":[3,1,126],"7":[5,1,138],"8":[5,1,109],"9":[1,1,133],"10":[3,1,212],"11":[1,1,290],"12":[1,1,113],"13":[2,1,47],"14":[3,1,256],"15":[2,1,230],"16":[6,1,71],"17":[1,1,13],"18":[3,1,6],"19":[4,1,403],"20":[3,1,236],"21":[4,1,136],"22":[3,4,122],"23":[4,4,127],"24":[3,4,200],"25":[3,4,143],"26":[3,4,134],"27":[4,4,82],"28":[2,1,138],"29":[3,1,40],"30":[2,1,168],"31":[2,1,90],"32":[3,1,98],"33":[1,1,198],"34":[2,1,266],"35":[2,1,398],"36":[3,1,121],"37":[2,1,96],"38":[6,1,93],"39":[6,1,34],"40":[4,1,33],"41":[5,1,28],"42":[5,1,95],"43":[1,1,49],"44":[6,1,10],"45":[3,1,92],"46":[2,1,60],"47":[4,1,30],"48":[3,1,58],"49":[2,3,20],"50":[6,1,75],"51":[6,1,13],"52":[2,1,51],"53":[4,1,10],"54":[2,1,24],"55":[3,1,11],"56":[2,1,50],"57":[1,1,38],"58":[1,1,49],"59":[2,1,15],"60":[2,1,18],"61":[1,1,18]},"averageFieldLength":[2.8225806451612905,1.32258064516129,106.83870967741939],"storedFields":{"0":{"title":"About Me","titles":[]},"1":{"title":"Inspiration","titles":[]},"2":{"title":"Identity","titles":[]},"3":{"title":"Servers","titles":[]},"4":{"title":"Content","titles":[]},"5":{"title":"Moderation","titles":[]},"6":{"title":"Problems to solve","titles":[]},"7":{"title":"Incrementals are Easy to Make","titles":[]},"8":{"title":"Players are Easy to Find","titles":[]},"9":{"title":"Monetization","titles":[]},"10":{"title":"Numbers Going Up","titles":[]},"11":{"title":"Effortlessness","titles":[]},"12":{"title":"Strategy","titles":[]},"13":{"title":"Avoiding Staleness","titles":[]},"14":{"title":"Good Game Design","titles":[]},"15":{"title":"Artistic Merit","titles":[]},"16":{"title":"Why am I making this?","titles":[]},"17":{"title":"Ludology","titles":[]},"18":{"title":"Making an Incremental","titles":[]},"19":{"title":"Incrementals vs Idlers vs Clickers","titles":[]},"20":{"title":"Incrementals as NGU","titles":[]},"21":{"title":"Roguelites as Incrementals?","titles":[]},"22":{"title":"The Berlin Interpretation","titles":["Roguelites as Incrementals?"]},"23":{"title":"The Incremental Games Canon","titles":["Roguelites as Incrementals?"]},"24":{"title":"The Paradigm Shift","titles":["Roguelites as Incrementals?"]},"25":{"title":"High-Value Factors","titles":["Roguelites as Incrementals?"]},"26":{"title":"Low-Value Factors","titles":["Roguelites as Incrementals?"]},"27":{"title":"Are Roguelites Incrementals?","titles":["Roguelites as Incrementals?"]},"28":{"title":"Sub-Genres","titles":[]},"29":{"title":"Other Related Genres","titles":[]},"30":{"title":"Reading Feedback","titles":[]},"31":{"title":"Seeking Feedback","titles":[]},"32":{"title":"Responding to Feedback","titles":[]},"33":{"title":"Interaction","titles":[]},"34":{"title":"Repeatable Purchases","titles":["Interaction"]},"35":{"title":"Following Instructions","titles":[]},"36":{"title":"Tips for Developers","titles":[]},"37":{"title":"The ending","titles":[]},"38":{"title":"Life is Strange: Before the Storm","titles":[]},"39":{"title":"The Awesome Adventures of Captain Spirit","titles":[]},"40":{"title":"Life is Strange 2","titles":[]},"41":{"title":"Life is Strange: True Colors","titles":[]},"42":{"title":"Life is Strange: Double Exposure","titles":[]},"43":{"title":"Games","titles":[]},"44":{"title":"Tools (and other non-games)","titles":[]},"45":{"title":"The Original Project","titles":[]},"46":{"title":"My Work","titles":[]},"47":{"title":"Browsing the small web","titles":[]},"48":{"title":"Building personal websites","titles":[]},"49":{"title":"The future","titles":["Building personal websites"]},"50":{"title":"Why people want the small web","titles":[]},"51":{"title":"Recommended videos about the small web","titles":[]},"52":{"title":"AAA games","titles":[]},"53":{"title":"Free-to-play games","titles":[]},"54":{"title":"Indie developers","titles":[]},"55":{"title":"Ethical game monetization","titles":[]},"56":{"title":"Hello!","titles":[]},"57":{"title":"IndieWeb","titles":[]},"58":{"title":"Commune","titles":[]},"59":{"title":"Incremental Social","titles":[]},"60":{"title":"Chromatic Lattice","titles":[]},"61":{"title":"Kronos","titles":[]}},"dirtCount":0,"index":[["😜",{"2":{"60":1}}],["😃",{"2":{"56":1}}],["😉",{"2":{"27":1}}],["7l1i6k",{"2":{"38":1}}],["7l0vgq",{"2":{"38":1}}],["5",{"2":{"38":1}}],["5x",{"2":{"34":1}}],["3",{"2":{"38":2}}],["10x",{"2":{"34":1}}],["100",{"2":{"33":2}}],["10",{"2":{"23":2}}],["1e10",{"2":{"10":1}}],["1e100",{"2":{"10":1}}],["1e1001",{"2":{"10":1}}],["1e1000",{"2":{"10":1}}],["2",{"0":{"40":1},"2":{"12":1}}],["zero",{"2":{"10":1}}],["0",{"2":{"7":1,"33":1}}],["yet",{"2":{"7":1}}],["yourself",{"2":{"32":1}}],["your",{"2":{"1":1,"2":2,"5":1,"6":1,"7":2,"8":3,"10":2,"11":3,"19":3,"30":5,"31":2,"32":4,"33":1,"35":4,"36":1,"56":2,"57":1}}],["you",{"2":{"1":2,"2":9,"5":1,"6":5,"7":7,"8":3,"10":4,"11":11,"12":4,"14":2,"15":1,"16":1,"19":13,"23":2,"24":1,"25":1,"28":3,"30":13,"31":4,"32":4,"33":2,"34":9,"35":15,"36":4,"43":1,"50":1,"51":1}}],["qualifier",{"2":{"35":1}}],["qualifiers",{"2":{"35":1}}],["qualify",{"2":{"15":1,"22":1,"24":1,"27":1}}],["queue",{"2":{"34":1}}],["questions",{"2":{"16":1}}],["question",{"2":{"16":1,"35":1}}],["quickly",{"2":{"34":1,"36":1}}],["quite",{"2":{"7":1,"8":1,"9":1,"10":1,"11":1,"14":1,"20":1,"24":1,"34":1,"38":2}}],["quoting",{"2":{"19":1}}],["quot",{"2":{"2":6,"4":2,"9":2,"11":8,"12":2,"13":4,"14":2,"15":6,"19":28,"20":18,"22":10,"23":4,"24":6,"25":2,"27":2,"33":2,"34":6,"35":8,"36":2,"41":2,"47":2}}],["kronos",{"0":{"61":1},"2":{"43":1}}],["knight",{"2":{"28":1}}],["known",{"2":{"47":1,"60":1}}],["knowledge",{"2":{"7":1,"11":1}}],["know",{"2":{"3":1,"8":1,"16":1,"35":1,"52":1}}],["kidding",{"2":{"23":1}}],["kitten",{"2":{"23":1}}],["kittens",{"2":{"9":1}}],["kind",{"2":{"19":2,"31":1}}],["kinds",{"2":{"12":1}}],["keeps",{"2":{"11":1}}],["keep",{"2":{"4":1,"11":1,"13":2,"19":2,"25":1,"30":1,"32":2}}],["keypairs",{"2":{"6":1}}],["key",{"2":{"2":2,"4":1,"5":3,"6":2}}],["keys",{"2":{"2":2}}],["x",{"2":{"2":1}}],["jumping",{"2":{"35":1}}],["judge",{"2":{"22":1}}],["justify",{"2":{"52":1}}],["justified",{"2":{"35":1}}],["justifiably",{"2":{"23":1}}],["justifications",{"2":{"35":1}}],["justification",{"2":{"20":1,"35":2}}],["just",{"2":{"2":1,"4":3,"7":1,"8":1,"10":3,"11":1,"19":3,"20":2,"21":1,"23":2,"24":4,"25":1,"27":1,"28":1,"30":1,"33":2,"34":3,"35":3,"36":2,"38":1}}],["journey",{"2":{"32":1}}],["journal",{"2":{"2":1}}],["job",{"2":{"14":3}}],["javascript",{"2":{"7":2}}],["gci",{"2":{"35":1}}],["guidance",{"2":{"31":1}}],["guiding",{"2":{"20":1}}],["guides",{"2":{"35":1}}],["guide",{"2":{"10":1,"16":1,"17":4,"18":1,"19":2,"24":1,"26":1,"35":2}}],["guy",{"2":{"14":1}}],["geocities",{"2":{"50":1}}],["gets",{"2":{"10":1,"24":1,"34":2,"35":1}}],["get",{"2":{"10":1,"11":2,"19":1,"20":1,"23":2,"26":1,"29":1,"30":2,"31":1,"32":1,"33":1,"35":4,"38":1,"42":1}}],["getting",{"2":{"8":1,"11":1,"14":2,"29":1,"31":1,"32":2,"34":1,"35":1,"42":1}}],["generic",{"2":{"35":2}}],["generate",{"2":{"6":1}}],["general",{"2":{"5":1,"8":1,"24":1,"38":1,"46":1}}],["genre",{"2":{"7":1,"9":1,"11":1,"14":1,"17":1,"19":12,"20":4,"21":3,"22":4,"23":1,"24":1,"25":1,"28":4,"29":1,"35":1}}],["genres",{"0":{"28":1,"29":1},"2":{"7":3,"11":1,"14":1,"15":1,"16":1,"19":3,"20":1,"21":1,"22":2,"26":1,"28":1,"35":1}}],["genuine",{"2":{"6":1}}],["glitch",{"2":{"8":1}}],["give",{"2":{"14":1,"35":3,"36":1}}],["given",{"2":{"3":1}}],["giving",{"2":{"14":1,"19":2,"34":1}}],["github",{"2":{"8":1,"48":1}}],["got",{"2":{"37":2,"39":1}}],["gotten",{"2":{"35":1}}],["gods",{"2":{"28":1}}],["goes",{"2":{"11":1,"33":1,"34":1,"57":1}}],["gone",{"2":{"11":1}}],["good",{"0":{"14":1},"2":{"11":2,"12":1,"14":8,"16":1,"19":1,"21":1,"31":1,"34":1,"35":1,"38":1,"39":1}}],["goals",{"2":{"33":2}}],["goal",{"2":{"11":1,"19":1,"26":2,"27":1}}],["going",{"0":{"10":1},"2":{"7":1,"10":2,"20":5,"24":1,"33":1,"35":4,"43":1,"46":1}}],["go",{"2":{"7":1,"19":1,"28":1,"33":1,"34":1,"35":2,"36":1}}],["graphics",{"2":{"52":2}}],["grasshopping",{"2":{"35":1}}],["grasshop",{"2":{"35":1}}],["grass",{"2":{"35":6}}],["grain",{"2":{"30":1}}],["granting",{"2":{"5":1}}],["groundhog",{"2":{"28":1}}],["group",{"2":{"4":1}}],["groups",{"2":{"4":1,"5":1}}],["grown",{"2":{"37":1}}],["grow",{"2":{"26":1}}],["growth",{"2":{"26":2,"28":1}}],["growing",{"2":{"23":1}}],["grinder",{"2":{"23":1}}],["green",{"2":{"45":2}}],["grey",{"2":{"15":1}}],["great",{"2":{"14":1,"19":1,"30":1}}],["g",{"2":{"2":1,"45":1}}],["garden",{"2":{"56":1}}],["gardens",{"2":{"0":1,"58":1}}],["gathering",{"2":{"35":1}}],["gain",{"2":{"12":1,"36":1}}],["gaining",{"2":{"10":1,"20":1}}],["gambling",{"2":{"11":2}}],["gameplay",{"2":{"11":2,"13":4,"14":1,"15":1,"19":1,"20":2,"24":2,"25":1,"33":1,"35":2}}],["gamers",{"2":{"9":1,"14":1,"15":1,"33":1}}],["gamedev",{"2":{"0":1,"7":1}}],["game",{"0":{"14":1,"55":1},"2":{"0":1,"7":1,"8":4,"9":2,"10":6,"11":10,"12":3,"13":2,"14":13,"15":4,"16":3,"19":13,"20":2,"22":5,"23":2,"24":5,"25":9,"26":5,"27":3,"28":1,"30":6,"31":4,"32":2,"33":2,"34":1,"35":10,"36":1,"37":2,"38":2,"40":1,"41":1,"42":5,"43":1,"55":1,"60":1,"61":1}}],["games",{"0":{"23":1,"43":1,"44":1,"52":1,"53":1},"2":{"0":1,"7":1,"8":5,"9":7,"10":5,"11":19,"12":5,"13":1,"14":7,"15":11,"16":3,"19":43,"20":16,"21":3,"22":5,"23":5,"24":8,"25":1,"26":4,"27":1,"28":9,"29":3,"30":1,"31":1,"33":5,"35":4,"36":1,"42":1,"52":3}}],["rsi",{"2":{"33":1}}],["rocket",{"2":{"35":2}}],["roblox",{"2":{"35":1}}],["route",{"2":{"35":1}}],["room",{"2":{"23":1,"24":1}}],["roguetemple",{"2":{"22":1}}],["rogue",{"2":{"21":1}}],["roguelite",{"2":{"27":1}}],["roguelites",{"0":{"21":1,"27":1},"1":{"22":1,"23":1,"24":1,"25":1,"26":1,"27":1},"2":{"21":5}}],["roguelike",{"2":{"22":4}}],["roguelikeness",{"2":{"22":1}}],["roguelikes",{"2":{"10":2,"21":1,"22":2}}],["rpgs",{"2":{"20":6,"29":1}}],["ridge",{"2":{"45":1}}],["rise",{"2":{"14":1}}],["right",{"2":{"1":1,"34":1}}],["raising",{"2":{"52":1}}],["race",{"2":{"52":1}}],["rarely",{"2":{"25":1}}],["rarer",{"2":{"20":1}}],["rather",{"2":{"11":2,"22":1,"33":1,"38":1}}],["random",{"2":{"47":1}}],["ran",{"2":{"2":1}}],["r",{"2":{"8":1,"11":2,"19":1,"38":2}}],["rule",{"2":{"28":1}}],["rules",{"2":{"5":1,"6":1,"58":1}}],["ruined",{"2":{"14":1,"19":1}}],["running",{"2":{"59":1}}],["runs",{"2":{"10":1,"11":1}}],["run",{"2":{"1":1,"7":1}}],["red",{"2":{"45":2}}],["reddit",{"2":{"38":2}}],["reduce",{"2":{"24":1}}],["reduced",{"2":{"19":1,"25":2}}],["redundancy",{"2":{"6":1}}],["returning",{"2":{"42":1}}],["returns",{"2":{"34":1}}],["rethinking",{"2":{"1":1}}],["reveals",{"2":{"21":1}}],["revealing",{"2":{"19":1,"42":1}}],["reward",{"2":{"19":1,"34":1,"35":1}}],["rewards",{"2":{"19":2}}],["rewarding",{"2":{"11":1,"35":1}}],["referred",{"2":{"24":1}}],["refer",{"2":{"19":2,"24":1}}],["recent",{"2":{"35":1}}],["receive",{"2":{"30":1}}],["received",{"2":{"3":1,"32":2}}],["receiving",{"2":{"6":2,"31":1}}],["recognize",{"2":{"31":1}}],["recommended",{"0":{"51":1},"2":{"56":1}}],["recommend",{"2":{"14":1}}],["regard",{"2":{"35":1}}],["regardless",{"2":{"30":1,"39":1}}],["regen",{"2":{"14":1}}],["regularly",{"2":{"32":1}}],["regular",{"2":{"9":1}}],["rest",{"2":{"28":1,"40":1}}],["resume",{"2":{"26":1}}],["result",{"2":{"15":1}}],["resource",{"2":{"25":1,"26":1,"27":1,"35":1}}],["resources",{"2":{"11":1,"19":2,"20":1,"25":1,"37":1,"48":1}}],["resets",{"2":{"35":1}}],["resetting",{"2":{"35":1}}],["reset",{"2":{"21":1,"24":2,"35":7}}],["responsibility",{"2":{"37":1}}],["response",{"2":{"10":1,"19":1,"32":1}}],["responding",{"0":{"32":1}}],["respectively",{"2":{"34":1}}],["respect",{"2":{"5":1}}],["respected",{"2":{"4":1}}],["remember",{"2":{"32":1}}],["remind",{"2":{"32":1}}],["reminder",{"2":{"25":1}}],["reminded",{"2":{"11":1}}],["removing",{"2":{"5":1,"14":1}}],["reliant",{"2":{"26":1}}],["relying",{"2":{"37":1}}],["rely",{"2":{"14":1,"37":1}}],["relevant",{"2":{"10":1,"15":1,"35":1}}],["relation",{"2":{"20":1}}],["relates",{"2":{"20":1}}],["related",{"0":{"29":1},"2":{"7":1,"20":1,"28":2}}],["relaying",{"2":{"5":1,"6":1}}],["relays",{"2":{"2":1,"3":2,"4":1,"5":1}}],["relay",{"2":{"1":1,"3":2,"5":1,"6":2}}],["reiterate",{"2":{"10":1}}],["re",{"2":{"8":1,"11":3,"12":2,"14":1,"21":1,"24":1,"26":1,"30":2,"31":1,"33":2,"34":5,"35":5,"36":1,"42":1}}],["rendering",{"2":{"7":1}}],["repurcussions",{"2":{"25":1}}],["representation",{"2":{"25":2}}],["repetitive",{"2":{"13":1}}],["repeatable",{"0":{"34":1},"2":{"34":6}}],["repeat",{"2":{"11":1}}],["report",{"2":{"30":1}}],["reports",{"2":{"5":4}}],["reportedly",{"2":{"10":1}}],["reported",{"2":{"5":1}}],["replacing",{"2":{"10":1,"35":2}}],["replaced",{"2":{"22":1,"23":1,"26":1}}],["replace",{"2":{"4":1,"24":1}}],["replit",{"2":{"8":1}}],["replied",{"2":{"4":1}}],["replies",{"2":{"3":2,"4":1,"5":3}}],["replying",{"2":{"4":1,"5":1}}],["reply",{"2":{"4":1,"5":1}}],["requiring",{"2":{"19":1}}],["requirements",{"2":{"36":1,"55":1}}],["require",{"2":{"3":1,"7":1}}],["required",{"2":{"3":1,"26":1,"52":1}}],["requires",{"2":{"1":1,"19":1,"26":1}}],["request",{"2":{"5":1}}],["requests",{"2":{"5":1}}],["reasoning",{"2":{"25":1}}],["reason",{"2":{"20":1,"35":1}}],["reasonable",{"2":{"15":1}}],["reasons",{"2":{"11":1,"24":1,"32":1}}],["read",{"2":{"30":1}}],["reading",{"0":{"30":1},"2":{"33":1,"35":1}}],["readily",{"2":{"14":1}}],["readable",{"2":{"2":1}}],["realm",{"2":{"23":1}}],["really",{"2":{"11":1,"24":1,"35":2,"38":1,"39":1}}],["real",{"2":{"10":1,"11":1,"19":1,"45":1}}],["reacting",{"2":{"4":1}}],["reached",{"2":{"34":1}}],["reach",{"2":{"0":1,"2":1,"11":1,"12":1,"16":1,"35":2}}],["utilize",{"2":{"53":1}}],["ut",{"2":{"46":1}}],["ue",{"2":{"39":1}}],["ui",{"2":{"25":2}}],["umbrella",{"2":{"19":1,"20":1,"28":1}}],["ultimately",{"2":{"14":1,"19":2,"23":1,"30":1}}],["unmanageable",{"2":{"35":1}}],["until",{"2":{"34":1}}],["unhelpful",{"2":{"30":2}}],["unfortunate",{"2":{"35":1}}],["unfortunately",{"2":{"11":1,"40":1}}],["unfolding",{"2":{"24":1}}],["unrelated",{"2":{"21":1}}],["undressing",{"2":{"19":1}}],["understanding",{"2":{"33":1}}],["understand",{"2":{"19":1,"20":1,"31":1,"33":1,"34":1}}],["underlying",{"2":{"14":1}}],["under",{"2":{"12":1,"19":1,"20":2,"28":1,"37":1}}],["unit",{"2":{"46":1}}],["unity",{"2":{"46":1}}],["units",{"2":{"34":1}}],["universal",{"2":{"23":1,"24":1}}],["universally",{"2":{"19":1}}],["uniquely",{"2":{"7":1,"20":1}}],["unique",{"2":{"3":1,"37":1}}],["unknown",{"2":{"8":1}}],["unlocks",{"2":{"36":3}}],["unlocked",{"2":{"35":1}}],["unlock",{"2":{"26":1,"35":1,"36":1}}],["unlocking",{"2":{"10":1,"35":1}}],["unlike",{"2":{"7":1,"19":1,"35":1}}],["unlikely",{"2":{"6":2}}],["unless",{"2":{"5":1,"19":1}}],["upgrade",{"2":{"28":1,"34":1,"36":4}}],["upgrades",{"2":{"28":3,"35":6}}],["upon",{"2":{"15":1,"19":1,"30":1,"35":1}}],["ups",{"2":{"32":1}}],["upset",{"2":{"13":1}}],["upsides",{"2":{"1":1}}],["uploaded",{"2":{"8":1}}],["up",{"0":{"10":1},"2":{"7":1,"10":1,"14":1,"19":1,"20":5,"23":2,"24":2,"25":2,"33":2,"34":1,"35":1,"42":1,"46":1,"48":1}}],["updating",{"2":{"4":1,"46":1}}],["upvotes",{"2":{"4":1,"6":1}}],["url",{"2":{"4":1}}],["us",{"2":{"23":1,"32":1}}],["usually",{"2":{"21":1}}],["using",{"2":{"4":1,"7":1,"8":1,"14":1,"19":1,"20":1,"34":1}}],["uses",{"2":{"11":1,"19":1}}],["useful",{"2":{"3":1,"19":2,"30":1,"32":1,"34":1,"47":1}}],["used",{"2":{"2":1,"19":2,"20":2,"21":1,"22":2,"28":2,"30":1,"34":1,"36":1}}],["usenet",{"2":{"1":1}}],["username",{"2":{"2":1}}],["users",{"2":{"1":1,"3":1,"5":2,"12":1}}],["user",{"2":{"1":1,"6":1,"58":1}}],["use",{"2":{"0":1,"4":1,"7":2,"19":4,"20":1,"30":1,"34":1,"48":2,"50":1,"52":1}}],["usa",{"2":{"0":1}}],["ndi",{"2":{"45":1}}],["nih",{"2":{"45":1}}],["nicely",{"2":{"7":1}}],["n",{"2":{"36":2,"45":1}}],["numeric",{"2":{"26":1}}],["numerous",{"2":{"15":1}}],["numbers",{"0":{"10":1},"2":{"10":2,"14":1,"19":1,"20":7,"26":2,"34":1}}],["number",{"2":{"7":1,"10":1,"36":1}}],["ngu",{"0":{"20":1},"2":{"9":1,"23":1,"28":1}}],["national",{"2":{"45":1}}],["nature",{"2":{"9":2}}],["naturally",{"2":{"4":1,"10":1,"32":1}}],["narrow",{"2":{"23":1}}],["narratively",{"2":{"42":2,"61":1}}],["narrative",{"2":{"15":2,"20":1,"35":2}}],["naked",{"2":{"19":1}}],["navigating",{"2":{"18":1}}],["namely",{"2":{"46":1}}],["name",{"2":{"2":3}}],["nameserver",{"2":{"2":1}}],["names",{"2":{"2":1,"20":1,"57":1}}],["naming",{"2":{"2":8}}],["neocities",{"2":{"48":1,"50":1}}],["neutral",{"2":{"35":1}}],["nearly",{"2":{"35":1}}],["negative",{"2":{"30":1,"32":3}}],["never",{"2":{"25":1,"27":1,"30":3,"32":1,"34":1}}],["next",{"2":{"20":1,"24":1,"33":1,"34":1,"36":2}}],["neither",{"2":{"19":1}}],["nebulous",{"2":{"15":1}}],["necessarily",{"2":{"19":1,"33":1,"35":1}}],["necessary",{"2":{"2":1,"7":1}}],["necessity",{"2":{"15":1}}],["network",{"2":{"3":1,"4":2}}],["newly",{"2":{"24":1}}],["newer",{"2":{"23":1}}],["new",{"2":{"2":3,"3":1,"4":1,"6":2,"7":1,"8":3,"10":1,"21":1,"22":1,"26":1,"35":7,"36":1,"46":1}}],["needing",{"2":{"35":1}}],["need",{"2":{"1":1,"2":2,"3":1,"7":4,"20":1,"25":1,"30":2,"33":1,"34":2}}],["nomadic",{"2":{"50":1}}],["novel",{"2":{"45":1}}],["node",{"2":{"24":2}}],["nor",{"2":{"16":1,"37":1}}],["norm",{"2":{"9":1}}],["normal",{"2":{"7":1,"34":2}}],["now",{"2":{"7":1,"8":1,"23":2,"28":1,"35":3,"46":1,"60":1}}],["no",{"2":{"2":1,"3":2,"6":1,"7":1,"15":1,"20":1,"22":1,"26":2,"32":1,"33":1,"35":3,"36":1,"55":1}}],["nostr",{"2":{"1":1}}],["nonexistent",{"2":{"35":1}}],["none",{"2":{"26":1,"35":1}}],["non",{"0":{"44":1},"2":{"1":1,"9":1,"20":1,"25":1,"26":1,"33":1,"35":1,"47":1}}],["notable",{"2":{"28":4}}],["notably",{"2":{"20":1,"24":1}}],["nothing",{"2":{"15":1}}],["notice",{"2":{"14":1}}],["notes",{"2":{"57":1}}],["note",{"2":{"10":1,"12":1,"14":1,"22":1,"35":1}}],["not",{"2":{"1":2,"2":1,"6":2,"10":3,"11":4,"12":1,"14":4,"15":2,"16":1,"19":8,"20":4,"21":1,"22":3,"24":1,"25":2,"26":1,"30":4,"33":9,"34":4,"35":4,"37":3,"45":1,"52":1,"58":1}}],["errors",{"2":{"45":1}}],["ecs",{"2":{"44":1}}],["e3",{"2":{"38":1}}],["eyes",{"2":{"38":1}}],["egregious",{"2":{"34":1}}],["ethical",{"0":{"55":1}}],["eternity",{"2":{"34":2}}],["etc",{"2":{"3":1,"5":1,"6":1,"7":1,"10":1,"15":1,"16":1,"58":1}}],["episode",{"2":{"38":1}}],["ep",{"2":{"34":5}}],["equal",{"2":{"30":1}}],["established",{"2":{"24":1}}],["essay",{"2":{"14":1}}],["essentially",{"2":{"3":1,"14":1,"35":1}}],["emails",{"2":{"58":1}}],["ema",{"2":{"46":1}}],["emotional",{"2":{"31":1}}],["emotionally",{"2":{"19":1,"30":1}}],["empathy",{"2":{"41":1}}],["empty",{"2":{"19":2}}],["emphasizes",{"2":{"10":1}}],["elements",{"2":{"25":1}}],["else",{"2":{"19":1,"20":1}}],["elicited",{"2":{"15":1}}],["education",{"2":{"16":1}}],["editions",{"2":{"42":1,"52":1}}],["edit",{"2":{"5":2}}],["edited",{"2":{"4":1}}],["edits",{"2":{"4":1,"5":1}}],["evidence",{"2":{"19":1}}],["evolutions",{"2":{"12":1}}],["ever",{"2":{"6":1,"19":2,"20":1}}],["everyone",{"2":{"30":1,"35":1,"42":1}}],["everything",{"2":{"9":1,"35":1}}],["every",{"2":{"1":1,"6":1,"11":2,"24":3,"30":1,"33":1,"34":2}}],["event",{"2":{"37":1}}],["eventually",{"2":{"19":1,"34":1,"35":1}}],["even",{"2":{"3":1,"5":1,"6":1,"7":1,"9":1,"11":3,"14":1,"15":3,"19":3,"21":1,"30":1,"35":2,"50":1}}],["either",{"2":{"11":1,"16":1,"26":1,"33":1,"35":1}}],["effortless",{"2":{"11":1}}],["effortlessness",{"0":{"11":1}}],["effects",{"2":{"14":1,"33":1,"35":5,"36":2}}],["effect",{"2":{"10":1,"35":2}}],["effectively",{"2":{"4":2,"5":1,"14":2,"34":1,"35":1,"36":1}}],["earn",{"2":{"28":1,"52":1}}],["earned",{"2":{"10":1}}],["early",{"2":{"23":1,"34":1}}],["earlier",{"2":{"11":1,"14":1,"21":1,"25":1,"26":1,"42":1}}],["easily",{"2":{"14":1,"23":1,"24":1,"46":1,"50":1}}],["easier",{"2":{"12":3,"19":1,"35":1}}],["ease",{"2":{"11":1,"15":1}}],["easy",{"0":{"7":1,"8":1},"2":{"7":1,"8":1,"11":2,"20":1,"35":1,"50":1}}],["each",{"2":{"4":1,"8":1,"24":3,"25":1,"33":2,"34":3,"35":1,"48":1,"56":1}}],["excited",{"2":{"42":1}}],["exclusive",{"2":{"25":1}}],["exception",{"2":{"43":1}}],["exceptions",{"2":{"9":1}}],["except",{"2":{"35":1}}],["excess",{"2":{"15":1}}],["exhibit",{"2":{"24":1}}],["extreme",{"2":{"15":1,"33":1}}],["extremely",{"2":{"14":1}}],["extrinsic",{"2":{"11":1,"26":1}}],["extensive",{"2":{"50":1}}],["extension",{"2":{"5":1}}],["extent",{"2":{"11":2}}],["exaggerated",{"2":{"20":2}}],["exaggerating",{"2":{"10":1}}],["example",{"2":{"14":3,"24":1,"33":1,"34":1,"35":1,"36":1}}],["examples",{"2":{"14":2,"24":2,"28":4}}],["exacerbate",{"2":{"11":1,"19":1}}],["expansions",{"2":{"55":1}}],["expanding",{"2":{"20":1}}],["exposure",{"0":{"42":1}}],["exponentially",{"2":{"34":1}}],["expression",{"2":{"15":1}}],["expensive",{"2":{"50":1,"52":1}}],["experiencing",{"2":{"30":1}}],["experiences",{"2":{"14":1}}],["experience",{"2":{"11":2,"14":4,"19":3,"31":1,"33":1,"42":1}}],["expecting",{"2":{"11":1,"27":1}}],["expected",{"2":{"9":1}}],["expect",{"2":{"8":1,"10":1,"11":1,"35":1}}],["expectations",{"2":{"7":1}}],["explicitly",{"2":{"22":1,"47":1}}],["explains",{"2":{"32":1}}],["explained",{"2":{"9":1}}],["explanation",{"2":{"21":1}}],["exploring",{"2":{"10":1,"15":1}}],["exploiting",{"2":{"9":1}}],["existing",{"2":{"1":1,"3":1,"24":1}}],["enough",{"2":{"22":1,"27":2,"34":1,"35":1}}],["endings",{"2":{"37":1,"42":1}}],["ending",{"0":{"37":1},"2":{"37":3,"38":1}}],["end",{"2":{"20":1,"22":1,"33":1,"37":2,"48":1}}],["ended",{"2":{"14":1}}],["ensuring",{"2":{"14":1}}],["encourage",{"2":{"15":1}}],["encourages",{"2":{"14":1}}],["encouraging",{"2":{"14":2}}],["english",{"2":{"29":1,"45":1}}],["engage",{"2":{"33":2}}],["engaged",{"2":{"13":1}}],["engaging",{"2":{"15":1,"33":1,"34":1,"35":1}}],["engine",{"2":{"7":1,"47":1}}],["engineer",{"2":{"0":1}}],["enemies",{"2":{"12":1}}],["enjoyed",{"2":{"38":2,"39":1}}],["enjoying",{"2":{"11":1}}],["enjoyable",{"2":{"10":2,"14":1,"35":1}}],["enjoy",{"2":{"10":1,"11":1,"14":1,"31":1}}],["entertain",{"2":{"24":1}}],["entry",{"2":{"8":1,"11":1}}],["entities",{"2":{"25":1}}],["entity",{"2":{"3":1,"34":1}}],["entire",{"2":{"11":1,"15":1,"34":1,"37":1,"38":1}}],["entirely",{"2":{"4":1}}],["e",{"2":{"2":1,"45":1}}],["hyped",{"2":{"39":1}}],["hyper",{"2":{"9":1}}],["hyping",{"2":{"24":1}}],["https",{"2":{"22":1,"38":2}}],["html",{"2":{"7":1}}],["her",{"2":{"37":5}}],["heroes",{"2":{"23":1}}],["here",{"2":{"10":1,"19":1,"21":1,"22":2,"23":2,"24":1,"33":1,"34":1,"36":1,"38":1,"43":1,"45":1,"56":1}}],["hence",{"2":{"19":1}}],["head",{"2":{"33":1,"45":1}}],["heavily",{"2":{"26":1}}],["heavy",{"2":{"11":1}}],["health",{"2":{"14":3,"45":1}}],["healthy",{"2":{"11":1,"19":1}}],["hears",{"2":{"3":1}}],["helpful",{"2":{"31":1}}],["helps",{"2":{"13":1,"14":1}}],["help",{"2":{"8":1,"11":1,"19":1,"48":1}}],["hello",{"0":{"56":1}}],["hell",{"2":{"7":1,"15":1,"19":1}}],["heuristic",{"2":{"5":1,"6":1}}],["highlighting",{"2":{"34":1}}],["highly",{"2":{"14":1}}],["high",{"0":{"25":1},"2":{"25":1}}],["highest",{"2":{"24":1}}],["higher",{"2":{"11":1,"23":1,"28":1,"34":1,"52":2}}],["hitting",{"2":{"45":1}}],["hit",{"2":{"14":1,"33":1,"45":2}}],["hide",{"2":{"14":2,"19":1}}],["hiding",{"2":{"5":1}}],["hierarchy",{"2":{"5":2}}],["history",{"2":{"4":1}}],["huge",{"2":{"37":1}}],["hurtful",{"2":{"30":1}}],["hunger",{"2":{"19":1}}],["hub",{"2":{"2":5}}],["hubs",{"2":{"2":3}}],["human",{"2":{"2":1}}],["homogenized",{"2":{"48":1}}],["hope",{"2":{"42":1}}],["horrible",{"2":{"42":1}}],["honest",{"2":{"27":1}}],["honestly",{"2":{"21":1,"35":1}}],["hobbyist",{"2":{"9":1}}],["house",{"2":{"2":1}}],["hosting",{"2":{"1":1,"48":1,"50":3}}],["however",{"2":{"9":1,"10":1,"14":1,"15":2,"19":1,"32":1,"34":1,"35":1,"36":1}}],["how",{"2":{"1":1,"2":3,"3":1,"4":1,"5":1,"12":1,"14":1,"19":4,"20":2,"22":1,"24":2,"31":1,"32":2,"34":3,"35":1,"36":1,"50":1}}],["haley",{"2":{"40":2}}],["half",{"2":{"38":1}}],["happy",{"2":{"35":1}}],["happen",{"2":{"24":1,"26":1,"35":1}}],["happens",{"2":{"19":1,"34":1,"35":1}}],["had",{"2":{"34":1,"41":1}}],["hades",{"2":{"23":1}}],["harsh",{"2":{"34":1}}],["hardly",{"2":{"19":1}}],["harder",{"2":{"12":1}}],["hard",{"2":{"6":2,"11":2,"24":1,"35":1,"54":1}}],["handful",{"2":{"22":2}}],["hand",{"2":{"19":2}}],["handled",{"2":{"4":1}}],["handle",{"2":{"1":1,"2":1,"12":1}}],["has",{"2":{"2":1,"6":1,"8":1,"9":2,"10":2,"14":3,"15":3,"19":1,"22":2,"26":2,"33":1,"34":1,"35":2,"36":1,"37":1,"41":1,"45":1,"50":1,"51":1}}],["having",{"2":{"1":1,"2":1,"8":1,"10":1,"14":3,"15":2,"20":1,"21":1,"25":1,"26":1,"27":1,"28":3,"36":1,"37":2}}],["haven",{"2":{"7":1,"16":1,"40":1,"41":1}}],["have",{"2":{"0":1,"1":1,"2":2,"3":1,"5":2,"6":2,"7":3,"8":1,"9":1,"10":2,"11":4,"12":2,"13":1,"14":4,"15":4,"16":4,"20":3,"21":1,"22":1,"23":1,"24":3,"25":4,"26":2,"28":1,"31":1,"32":1,"33":3,"34":3,"35":4,"36":4,"38":1,"43":2}}],["vulintus",{"2":{"45":1}}],["v",{"2":{"44":1}}],["voice",{"2":{"34":1}}],["vouch",{"2":{"2":1}}],["vs",{"0":{"19":2},"2":{"15":1,"20":1}}],["valid",{"2":{"33":1}}],["value",{"0":{"25":1,"26":1},"2":{"15":1,"19":2,"24":1,"25":1,"26":2,"42":1}}],["vague",{"2":{"20":1,"30":1}}],["variant",{"2":{"27":1}}],["variation",{"2":{"27":1}}],["various",{"2":{"13":1,"15":1,"33":1,"35":1,"48":1,"57":2}}],["variety",{"2":{"0":1,"23":1}}],["vampire",{"2":{"10":2,"11":1,"12":3,"15":3}}],["version",{"2":{"46":1}}],["versions",{"2":{"19":1}}],["versus",{"2":{"20":2}}],["very",{"2":{"8":1,"9":1,"10":1,"15":1,"19":2,"22":1,"25":1,"35":1,"37":1,"42":1,"61":1}}],["verifies",{"2":{"2":1,"4":1}}],["verify",{"2":{"2":2}}],["ve",{"2":{"2":1,"8":1,"9":1,"10":1,"12":1,"16":1,"23":1,"25":1,"31":2,"32":2,"34":3,"35":1,"39":1,"40":1,"57":2}}],["virtual",{"2":{"45":1}}],["virtue",{"2":{"1":1}}],["vision",{"2":{"32":1}}],["visual",{"2":{"25":2}}],["vital",{"2":{"30":1}}],["videos",{"0":{"51":1},"2":{"19":1}}],["video",{"2":{"4":1,"11":2,"14":1,"15":2,"19":2,"42":1,"45":2}}],["viable",{"2":{"7":1,"21":1}}],["via",{"2":{"2":1,"19":1}}],["viewed",{"2":{"1":1,"45":1}}],["citadel",{"2":{"43":1}}],["circumstances",{"2":{"35":1}}],["cycle",{"2":{"11":1,"35":1}}],["cardboardempress",{"2":{"59":1}}],["carstens",{"2":{"46":1}}],["care",{"2":{"20":1}}],["capture",{"2":{"43":1}}],["captain",{"0":{"39":1}}],["capitalist",{"2":{"19":2}}],["capitalism",{"2":{"15":1,"19":3}}],["causing",{"2":{"33":1}}],["cause",{"2":{"10":1}}],["category",{"2":{"28":1}}],["cavernous",{"2":{"28":1}}],["casino",{"2":{"19":1}}],["case",{"2":{"10":1,"19":1,"35":1}}],["called",{"2":{"32":1,"43":1}}],["calling",{"2":{"19":2}}],["call",{"2":{"14":1}}],["canon",{"0":{"23":1},"2":{"22":4,"23":2,"24":2,"25":1}}],["cannot",{"2":{"5":1,"6":1,"24":1}}],["can",{"2":{"1":1,"2":9,"3":2,"4":1,"5":9,"6":1,"7":4,"8":3,"9":1,"10":2,"11":3,"12":1,"13":1,"14":2,"15":5,"19":4,"21":2,"22":5,"24":2,"26":2,"27":1,"28":1,"30":1,"31":2,"32":2,"33":1,"34":4,"35":2,"36":2,"43":1,"45":1,"46":1,"48":1,"50":1}}],["celebrate",{"2":{"32":1}}],["center",{"2":{"29":1}}],["centers",{"2":{"8":1}}],["certain",{"2":{"11":1,"19":1,"26":1,"31":2,"35":1}}],["certainly",{"2":{"9":1,"10":1,"16":1,"19":3,"20":2,"27":1,"39":1}}],["cleaning",{"2":{"46":1}}],["clearly",{"2":{"37":1}}],["clearing",{"2":{"28":1}}],["clear",{"2":{"8":1,"11":1,"14":2,"19":1}}],["closely",{"2":{"56":1}}],["close",{"2":{"41":1}}],["closer",{"2":{"25":1}}],["classic",{"2":{"19":1,"34":1}}],["classifying",{"2":{"16":1}}],["clarify",{"2":{"9":1,"34":1}}],["clicks",{"2":{"33":1}}],["clickers",{"0":{"19":1}}],["clicker",{"2":{"12":1,"15":1,"19":6,"23":1,"34":1}}],["clicking",{"2":{"11":1,"33":1,"35":1}}],["click",{"2":{"11":1,"19":2,"33":3}}],["clients",{"2":{"2":1,"3":1,"4":1,"5":3,"6":3}}],["client",{"2":{"1":1,"6":4}}],["chromatic",{"0":{"60":1}}],["cheap",{"2":{"50":1}}],["check",{"2":{"33":1,"51":1}}],["china",{"2":{"29":1}}],["choosing",{"2":{"34":1}}],["choose",{"2":{"5":3,"7":1}}],["chores",{"2":{"35":1}}],["chore",{"2":{"34":1,"35":1}}],["chose",{"2":{"15":1,"23":1}}],["character",{"2":{"37":1}}],["characters",{"2":{"10":1,"15":1,"29":1,"38":1}}],["chapters",{"2":{"38":1}}],["chapter",{"2":{"37":1,"40":1}}],["change",{"2":{"13":1,"33":1,"35":1}}],["changes",{"2":{"13":1,"24":1,"45":2,"46":1}}],["channels",{"2":{"8":1}}],["challenges",{"2":{"35":1}}],["challenge",{"2":{"10":1}}],["chain",{"2":{"2":1}}],["crystallizes",{"2":{"35":1}}],["crystallize",{"2":{"35":1}}],["crypto",{"2":{"1":1}}],["crank",{"2":{"23":1}}],["critique",{"2":{"19":1}}],["criticizing",{"2":{"19":1,"34":1,"35":1}}],["criticized",{"2":{"9":2,"11":1}}],["criticisms",{"2":{"35":1,"38":1}}],["criticism",{"2":{"9":1,"10":1,"18":1,"19":1,"30":2}}],["credentials",{"2":{"16":1}}],["creating",{"2":{"50":1}}],["creative",{"2":{"50":1}}],["creator",{"2":{"4":2,"15":2}}],["created",{"2":{"3":1,"15":1}}],["create",{"2":{"2":2,"36":1}}],["cultivation",{"2":{"29":1}}],["culture",{"2":{"1":1,"9":3}}],["customers",{"2":{"19":1}}],["customize",{"2":{"5":1}}],["cutting",{"2":{"35":6}}],["cut",{"2":{"14":1}}],["current",{"2":{"49":1,"52":1}}],["currently",{"2":{"1":1}}],["currency",{"2":{"10":2,"28":1,"35":2,"36":3}}],["color",{"2":{"45":2}}],["colors",{"0":{"41":1}}],["collecting",{"2":{"31":1,"35":1,"56":1}}],["costs",{"2":{"36":1}}],["cost",{"2":{"34":1,"36":1,"52":2}}],["cool",{"2":{"32":1}}],["cookie",{"2":{"12":1,"15":1,"19":1,"34":1}}],["cod",{"2":{"14":1}}],["codeberg",{"2":{"48":1}}],["code",{"2":{"7":2}}],["cover",{"2":{"14":2}}],["copied",{"2":{"8":1}}],["cough",{"2":{"42":1}}],["counter",{"2":{"33":1}}],["count",{"2":{"33":1}}],["counts",{"2":{"19":1}}],["countless",{"2":{"7":1}}],["couple",{"2":{"16":1,"34":1,"35":1}}],["course",{"2":{"11":1,"14":1,"19":1}}],["could",{"2":{"2":1,"3":1,"4":1,"6":2,"12":1,"15":1,"20":1,"21":1,"23":2,"24":2,"27":1,"33":2,"34":1,"58":1}}],["correlated",{"2":{"26":1}}],["correct",{"2":{"5":1}}],["core",{"2":{"19":2,"28":3,"35":5}}],["corporations",{"2":{"1":1}}],["comic",{"2":{"39":1}}],["coming",{"2":{"19":1,"21":1}}],["com",{"2":{"22":1,"38":2}}],["comfortably",{"2":{"14":1}}],["come",{"2":{"11":1,"21":1,"26":1,"30":1,"42":1}}],["comes",{"2":{"10":1,"19":1,"35":1}}],["combat",{"2":{"10":2,"20":2}}],["commercial",{"2":{"47":1}}],["comments",{"2":{"30":3,"31":1,"32":1,"38":2}}],["commentary",{"2":{"19":1}}],["comment",{"2":{"15":1,"19":2,"30":1}}],["commenting",{"2":{"11":1,"15":1,"19":1}}],["commonly",{"2":{"28":1}}],["common",{"2":{"10":1,"19":1,"20":1,"24":3,"34":1}}],["communal",{"2":{"58":1}}],["communities",{"2":{"3":1,"4":1,"8":2,"31":2}}],["community",{"2":{"1":1,"4":2,"8":2,"9":4,"21":1,"30":1}}],["communication",{"2":{"2":1}}],["commune",{"0":{"58":1},"2":{"1":1,"58":1}}],["complicatedness",{"2":{"35":1}}],["complicated",{"2":{"35":2,"50":1}}],["complexity",{"2":{"24":1}}],["complex",{"2":{"20":1}}],["completed",{"2":{"35":1}}],["complete",{"2":{"10":1,"28":1,"35":1}}],["completely",{"2":{"8":1,"9":1}}],["compromise",{"2":{"34":1}}],["compromised",{"2":{"2":1}}],["compulsively",{"2":{"19":1}}],["computer",{"2":{"7":1}}],["competition",{"2":{"54":1}}],["competitive",{"2":{"11":2}}],["compelled",{"2":{"30":1}}],["compelling",{"2":{"11":1}}],["compels",{"2":{"10":1}}],["compare",{"2":{"27":1}}],["compared",{"2":{"7":1,"10":1,"13":1}}],["comparatively",{"2":{"10":1}}],["comparing",{"2":{"10":1}}],["connect",{"2":{"48":1}}],["conducted",{"2":{"45":1}}],["condensed",{"2":{"38":1}}],["conditions",{"2":{"12":1}}],["conditioned",{"2":{"11":1}}],["condition",{"2":{"11":1,"19":1,"33":1}}],["conform",{"2":{"35":1}}],["conclusion",{"2":{"37":2}}],["conclude",{"2":{"27":1}}],["concept",{"2":{"15":1,"32":1}}],["concepts",{"2":{"15":1}}],["congruent",{"2":{"23":1}}],["congress",{"2":{"2":1}}],["consolidated",{"2":{"49":1}}],["consonant",{"2":{"45":2}}],["consistently",{"2":{"48":1}}],["consider",{"2":{"21":1,"31":1}}],["considered",{"2":{"9":1,"12":1,"19":1,"20":2,"22":1,"27":2,"33":1}}],["consumer",{"2":{"42":1}}],["consumed",{"2":{"15":1}}],["consuming",{"2":{"35":1}}],["constitutes",{"2":{"33":1}}],["constructive",{"2":{"30":3,"31":1}}],["constrained",{"2":{"23":1}}],["constantly",{"2":{"34":1}}],["constant",{"2":{"13":1}}],["consecutive",{"2":{"33":1}}],["consequence",{"2":{"25":1}}],["consequences",{"2":{"20":1,"25":1,"37":2}}],["consensus",{"2":{"15":1,"21":1}}],["conservatively",{"2":{"14":1}}],["conversation",{"2":{"14":1}}],["conversations",{"2":{"2":1}}],["convey",{"2":{"4":1}}],["control",{"2":{"25":1}}],["controversial",{"2":{"23":1,"33":2,"35":1}}],["contrast",{"2":{"14":2,"37":1}}],["contributing",{"2":{"1":1,"58":1}}],["continually",{"2":{"30":1}}],["continues",{"2":{"35":1}}],["continue",{"2":{"11":1,"15":1,"19":1,"35":1}}],["continuing",{"2":{"11":1}}],["contextualize",{"2":{"35":1}}],["contextual",{"2":{"20":1}}],["contexts",{"2":{"11":1,"19":1}}],["context",{"2":{"10":1,"15":3,"19":1}}],["content",{"0":{"4":1},"2":{"1":1,"3":1,"4":4,"5":2,"10":1,"11":1,"17":1,"24":1,"33":6,"34":7,"35":13,"36":2,"47":1,"55":1}}],["contain",{"2":{"19":1}}],["contains",{"2":{"4":1,"24":1,"48":1}}],["contact",{"2":{"2":2}}],["contacts",{"2":{"2":5}}],["switching",{"2":{"39":1}}],["swarm",{"2":{"28":1,"34":1}}],["small",{"0":{"47":1,"50":1,"51":1},"2":{"24":1,"32":1,"36":1,"47":2,"48":1,"57":1}}],["smart",{"2":{"12":1}}],["slightly",{"2":{"33":1}}],["slight",{"2":{"24":1}}],["slowly",{"2":{"14":1}}],["sleep",{"2":{"11":1,"19":1}}],["slay",{"2":{"11":1}}],["skip",{"2":{"40":1}}],["skinner",{"2":{"11":2,"19":4}}],["skill",{"2":{"10":3,"24":3,"30":1}}],["skilling",{"2":{"9":1}}],["skills",{"2":{"7":1,"19":2}}],["synergism",{"2":{"23":1}}],["synergies",{"2":{"10":1,"12":1}}],["systems",{"2":{"10":1,"11":1,"46":1}}],["system",{"2":{"4":1,"10":2,"45":1,"50":1}}],["sphere",{"2":{"45":3}}],["spoilers",{"2":{"42":1}}],["spirit",{"0":{"39":1}}],["spire",{"2":{"11":1}}],["space",{"2":{"35":1}}],["span",{"2":{"19":1}}],["spawn",{"2":{"12":1}}],["spamming",{"2":{"19":2}}],["spam",{"2":{"6":2,"33":1}}],["speech",{"2":{"44":1,"45":1,"46":1}}],["speed",{"2":{"11":2}}],["spent",{"2":{"33":2,"37":1}}],["spend",{"2":{"19":1}}],["spends",{"2":{"14":1}}],["spending",{"2":{"10":1}}],["spectrum",{"2":{"19":1,"33":1,"35":2}}],["specially",{"2":{"4":1,"5":2}}],["specifically",{"2":{"11":1,"12":1,"14":1,"15":1}}],["specific",{"2":{"3":2,"6":1,"8":1,"22":1,"24":1,"30":3,"31":1,"34":1,"35":1,"36":1}}],["sprites",{"2":{"7":1}}],["shift",{"0":{"24":1},"2":{"24":6,"27":1}}],["shifts",{"2":{"13":1,"24":5}}],["shields",{"2":{"14":3}}],["share",{"2":{"31":1,"32":1}}],["sharing",{"2":{"30":1}}],["sharp",{"2":{"14":1}}],["shake",{"2":{"24":1}}],["shallow",{"2":{"3":1}}],["shoes",{"2":{"31":1}}],["shooters",{"2":{"14":1}}],["shows",{"2":{"22":1,"37":1,"45":2}}],["show",{"2":{"14":1,"24":1}}],["shown",{"2":{"8":1}}],["short",{"2":{"10":1,"33":1,"34":1}}],["shouldn",{"2":{"20":1,"21":1,"23":1}}],["should",{"2":{"1":1,"4":3,"19":1,"20":1,"22":2,"23":1,"24":1,"30":3,"33":3,"36":1,"51":1}}],["screen",{"2":{"19":1}}],["sculpture",{"2":{"15":1}}],["schedule",{"2":{"11":1,"19":1}}],["school",{"2":{"3":1}}],["scene",{"2":{"11":1,"38":1}}],["scientific",{"2":{"2":1}}],["salt",{"2":{"30":1}}],["save",{"2":{"25":1}}],["satisfy",{"2":{"30":1}}],["satisfying",{"2":{"10":2}}],["satisfactory",{"2":{"20":1}}],["satire",{"2":{"19":1}}],["sake",{"2":{"15":1,"20":1}}],["safely",{"2":{"33":1}}],["safe",{"2":{"14":1,"20":1}}],["said",{"2":{"9":1,"30":1,"33":1,"36":1}}],["say",{"2":{"2":2,"11":1,"14":1,"20":1,"24":1,"27":1,"30":1,"33":3,"34":1,"36":1,"42":1}}],["saying",{"2":{"2":2}}],["same",{"2":{"2":2,"4":1,"12":1,"19":1,"34":2,"35":3,"36":1}}],["suggest",{"2":{"36":1,"56":1}}],["suggestions",{"2":{"30":2}}],["supports",{"2":{"50":1}}],["support",{"2":{"20":1,"31":2,"45":1,"46":2}}],["superlinear",{"2":{"26":1}}],["supersedes",{"2":{"15":1}}],["supercede",{"2":{"2":1}}],["subject",{"2":{"45":1}}],["subjective",{"2":{"35":1}}],["sub",{"0":{"28":1},"2":{"20":4,"28":5}}],["subset",{"2":{"12":1}}],["subscriptions",{"2":{"3":1}}],["subscribe",{"2":{"3":2,"6":2}}],["subscribed",{"2":{"3":1}}],["subscribing",{"2":{"3":2,"4":2,"6":1}}],["sure",{"2":{"23":1,"36":1}}],["surface",{"2":{"19":1}}],["survivors",{"2":{"10":2,"11":1,"12":3,"15":3}}],["sustainable",{"2":{"54":1}}],["suspect",{"2":{"10":2}}],["susceptibility",{"2":{"9":1}}],["successes",{"2":{"32":1}}],["successful",{"2":{"12":1}}],["success",{"2":{"8":1,"30":1}}],["such",{"2":{"5":2,"6":2,"19":1,"20":3,"22":1,"26":1,"28":1,"35":1,"37":1}}],["suffice",{"2":{"14":1}}],["suffices",{"2":{"3":1}}],["sufficiently",{"2":{"12":1,"23":1,"35":3}}],["sufficient",{"2":{"2":1,"10":1}}],["suffers",{"2":{"1":1}}],["s",{"2":{"2":1,"3":1,"4":2,"6":1,"7":1,"9":1,"10":2,"11":4,"14":4,"15":3,"16":1,"19":7,"20":2,"21":2,"22":1,"23":2,"24":4,"27":1,"30":4,"31":1,"32":4,"33":3,"34":3,"35":8,"37":2,"42":2,"45":1,"60":2}}],["side",{"2":{"34":1}}],["sides",{"2":{"11":1,"20":1}}],["sim",{"2":{"34":1}}],["simply",{"2":{"20":1,"25":1,"35":1,"36":1}}],["simulator",{"2":{"15":1,"28":1}}],["similarities",{"2":{"20":1}}],["similarity",{"2":{"11":1}}],["similarly",{"2":{"15":1,"19":1,"35":1}}],["similar",{"2":{"9":1,"20":1,"21":1,"34":1}}],["since",{"2":{"11":1,"22":1,"31":1,"34":1,"42":1}}],["single",{"2":{"1":1,"15":1,"24":3,"33":1,"61":1}}],["sitting",{"2":{"11":1}}],["sites",{"2":{"48":1}}],["site",{"2":{"2":1,"16":1,"48":1,"59":1}}],["signal",{"2":{"26":1}}],["signature",{"2":{"4":2,"5":1,"57":1}}],["significantly",{"2":{"24":1}}],["significant",{"2":{"11":1,"21":1}}],["signed",{"2":{"2":1}}],["search",{"2":{"47":1}}],["second",{"2":{"33":1,"35":1}}],["section",{"2":{"14":1}}],["series",{"2":{"28":1,"34":1,"37":1,"39":1,"49":1}}],["serving",{"2":{"4":1}}],["serve",{"2":{"19":1}}],["serves",{"2":{"4":1,"45":1}}],["servers",{"0":{"3":1},"2":{"3":4,"4":2,"6":5,"50":1}}],["server",{"2":{"1":3,"2":1,"3":2,"5":1,"6":2,"48":1}}],["selected",{"2":{"24":1}}],["self",{"2":{"1":1}}],["set",{"2":{"22":1,"31":1}}],["setting",{"2":{"15":1}}],["setup",{"2":{"5":1}}],["separates",{"2":{"35":1}}],["separate",{"2":{"12":1}}],["seemed",{"2":{"39":1}}],["seem",{"2":{"19":1,"32":1,"33":1,"41":1}}],["seems",{"2":{"15":1,"21":1,"41":1}}],["seeking",{"0":{"31":1},"2":{"19":2}}],["seek",{"2":{"11":2,"19":1,"35":2}}],["seen",{"2":{"11":1,"25":1,"35":1}}],["seeing",{"2":{"10":2}}],["see",{"2":{"9":1,"11":3,"15":1,"19":2,"24":1}}],["several",{"2":{"6":1,"19":1,"25":1,"26":1,"35":1,"43":1}}],["sensors",{"2":{"45":1}}],["sense",{"2":{"10":1,"11":2,"12":2,"19":1,"20":2,"21":1,"24":2,"35":2,"36":1}}],["sends",{"2":{"6":1}}],["sending",{"2":{"3":2,"5":1,"6":1}}],["send",{"2":{"2":1,"3":1,"4":1,"5":2}}],["sent",{"2":{"2":1}}],["steel",{"2":{"35":1}}],["steelie",{"2":{"35":1}}],["steps",{"2":{"24":1}}],["step",{"2":{"21":1,"34":1}}],["style",{"2":{"35":1,"56":1}}],["stick",{"2":{"32":1}}],["stimuli",{"2":{"19":1}}],["still",{"2":{"1":2,"2":1,"9":1,"10":1,"12":1,"15":1,"19":1,"20":1,"25":1,"33":2,"35":1,"38":1}}],["strange",{"0":{"38":1,"40":1,"41":1,"42":1},"2":{"37":1}}],["strategies",{"2":{"12":1,"19":1,"20":1}}],["strategy",{"0":{"12":1},"2":{"12":4,"20":8,"22":2}}],["struggles",{"2":{"31":1}}],["struggling",{"2":{"11":1}}],["stretch",{"2":{"27":1}}],["stretching",{"2":{"11":1}}],["stronger",{"2":{"26":1,"28":1,"29":1,"35":1}}],["strong",{"2":{"21":1,"25":1}}],["strongly",{"2":{"14":1,"26":1}}],["strictly",{"2":{"19":1}}],["studios",{"2":{"52":1}}],["studying",{"2":{"11":1}}],["stuff",{"2":{"14":1}}],["stuck",{"2":{"9":1,"28":1}}],["stability",{"2":{"46":1}}],["staple",{"2":{"35":1}}],["stale",{"2":{"24":1,"34":1}}],["staleness",{"0":{"13":1}}],["staying",{"2":{"32":1}}],["stay",{"2":{"23":1}}],["stance",{"2":{"19":2,"34":1}}],["standards",{"2":{"48":1}}],["stands",{"2":{"15":1}}],["stand",{"2":{"10":1}}],["stagnating",{"2":{"13":1}}],["starcraft",{"2":{"12":1}}],["starting",{"2":{"56":1}}],["started",{"2":{"10":1}}],["start",{"2":{"7":1,"10":1,"14":1,"19":2,"23":1,"34":1,"35":2}}],["stat",{"2":{"24":1}}],["stating",{"2":{"22":1}}],["static",{"2":{"13":1,"34":1,"48":1,"50":3}}],["states",{"2":{"25":1}}],["statement",{"2":{"24":1}}],["state",{"2":{"11":1,"19":1,"21":1,"25":1,"32":1}}],["stats",{"2":{"10":1}}],["stopgaming",{"2":{"11":1,"19":1}}],["stop",{"2":{"5":1}}],["stolen",{"2":{"2":1}}],["storm",{"0":{"38":1}}],["story",{"2":{"15":1,"37":1,"38":1,"42":2}}],["storefronts",{"2":{"9":1}}],["store",{"2":{"2":2}}],["storing",{"2":{"1":1,"3":1}}],["sort",{"2":{"26":1,"28":1,"50":1}}],["sorting",{"2":{"19":1}}],["soul",{"2":{"51":1}}],["souls",{"2":{"14":2}}],["sound",{"2":{"45":1}}],["sounds",{"2":{"20":1,"42":1,"45":1}}],["source",{"2":{"2":1,"19":1}}],["sole",{"2":{"46":1}}],["solely",{"2":{"15":1,"30":1,"33":1}}],["solving",{"2":{"25":1}}],["solved",{"2":{"14":1}}],["solve",{"0":{"6":1}}],["solution",{"2":{"12":1,"30":2}}],["somewhat",{"2":{"15":1}}],["somewhere",{"2":{"12":1}}],["something",{"2":{"6":1,"11":3,"19":2,"26":1,"33":2,"36":1}}],["someone",{"2":{"5":1,"10":1,"11":1,"19":1,"24":1}}],["some",{"2":{"3":2,"4":2,"9":1,"10":1,"11":3,"14":1,"15":1,"16":1,"19":2,"20":3,"23":1,"24":3,"26":2,"27":1,"28":2,"33":1,"35":7,"36":1,"50":1}}],["so",{"2":{"2":1,"7":1,"11":3,"12":1,"14":2,"19":1,"20":2,"22":1,"23":1,"24":3,"25":1,"30":1,"32":1,"33":2,"34":2,"35":5,"37":1,"38":1,"40":1,"46":1}}],["social",{"0":{"59":1},"2":{"0":3,"1":2,"3":1,"44":1,"48":1,"59":2}}],["song",{"2":{"37":1}}],["son",{"2":{"0":1}}],["software",{"2":{"0":1}}],["bts",{"2":{"38":1}}],["blame",{"2":{"54":1}}],["blocks",{"2":{"48":1,"57":2}}],["blog",{"2":{"22":1}}],["blends",{"2":{"33":1}}],["blurriness",{"2":{"22":1}}],["blurred",{"2":{"20":1}}],["blurry",{"2":{"19":1}}],["buds",{"2":{"44":1}}],["bursts",{"2":{"33":1}}],["buy",{"2":{"28":1,"34":3,"35":3}}],["buying",{"2":{"19":1,"28":1,"34":2,"35":1}}],["buffed",{"2":{"24":1}}],["building",{"0":{"48":1},"1":{"49":1},"2":{"35":1,"48":1,"57":1}}],["buildings",{"2":{"34":1}}],["build",{"2":{"35":1}}],["builds",{"2":{"24":1}}],["builders",{"2":{"20":3,"48":1}}],["built",{"2":{"11":1}}],["buttons",{"2":{"11":1}}],["button",{"2":{"7":2,"10":1,"11":1,"34":1,"47":1}}],["but",{"2":{"0":1,"5":1,"6":1,"9":2,"10":4,"11":4,"14":2,"15":2,"16":1,"19":8,"20":3,"21":4,"22":2,"23":2,"24":2,"25":1,"32":1,"33":4,"34":2,"35":5,"37":1,"38":1,"40":1,"41":1,"42":1,"43":1,"50":2}}],["bonuses",{"2":{"52":1}}],["bought",{"2":{"34":1}}],["books",{"2":{"29":1}}],["borrow",{"2":{"21":1}}],["borders",{"2":{"19":1}}],["boils",{"2":{"14":1}}],["boxes",{"2":{"11":1,"19":2}}],["box",{"2":{"11":1,"19":2}}],["bother",{"2":{"35":1}}],["both",{"2":{"8":1,"19":2,"35":1}}],["bots",{"2":{"6":1}}],["bot",{"2":{"6":2}}],["bias",{"2":{"24":1,"32":1}}],["biasing",{"2":{"23":1}}],["bill",{"2":{"21":1}}],["biggest",{"2":{"42":1}}],["big",{"2":{"10":2,"14":1,"20":3}}],["bit",{"2":{"4":1,"11":1,"14":3,"15":1,"20":2,"35":1}}],["binary",{"2":{"4":1}}],["bring",{"2":{"14":1}}],["browsing",{"0":{"47":1},"2":{"56":1}}],["browser",{"2":{"7":2,"8":1}}],["brought",{"2":{"25":1}}],["broad",{"2":{"1":1,"20":1}}],["breached",{"2":{"2":2}}],["by",{"2":{"1":3,"4":1,"5":3,"6":1,"9":1,"10":5,"11":1,"14":3,"19":1,"20":2,"22":4,"23":1,"26":1,"28":3,"30":1,"35":2,"36":2,"57":1}}],["babble",{"2":{"44":1}}],["baby",{"2":{"0":1}}],["bar",{"2":{"38":1}}],["barrier",{"2":{"8":1,"11":1}}],["battles",{"2":{"28":1}}],["back",{"2":{"11":1,"14":1,"15":1,"19":1,"21":1,"32":1,"38":1,"49":1,"50":1,"52":1}}],["bases",{"2":{"21":1}}],["base",{"2":{"10":1,"28":1,"35":1,"52":1,"55":1}}],["based",{"2":{"2":1,"9":1,"15":1,"22":2,"28":1,"35":3,"36":1,"58":1}}],["badgood",{"2":{"19":1}}],["bad",{"2":{"1":1,"14":6,"19":4,"31":1,"35":1}}],["begs",{"2":{"35":1}}],["beginners",{"2":{"7":1}}],["berlin",{"0":{"22":1},"2":{"22":2,"27":3}}],["belong",{"2":{"19":1,"28":1}}],["believe",{"2":{"10":1,"19":1,"20":1,"21":1,"22":1,"30":1,"33":1,"34":1}}],["beyond",{"2":{"15":1,"28":1,"33":1,"34":2}}],["before",{"0":{"38":1},"2":{"15":1,"19":1,"24":2,"26":1,"31":1,"34":1,"35":2,"36":1}}],["behavior",{"2":{"19":1}}],["behave",{"2":{"14":1}}],["behind",{"2":{"14":2}}],["better",{"2":{"14":1,"19":2,"30":1,"37":1}}],["between",{"2":{"6":1,"10":1,"11":1,"12":1,"20":4,"21":1,"25":1,"30":1,"33":2,"34":2}}],["best",{"2":{"12":1,"16":1,"20":1,"23":1,"30":1,"32":1}}],["becoming",{"2":{"35":1}}],["become",{"2":{"19":1,"24":1,"28":1,"33":1,"34":2,"35":3}}],["becomes",{"2":{"11":1,"35":3}}],["because",{"2":{"11":2,"15":1,"20":1,"21":1,"33":1,"35":1}}],["beats",{"2":{"42":1}}],["beating",{"2":{"10":1}}],["beat",{"2":{"10":2}}],["been",{"2":{"9":1,"15":1,"20":1,"23":1,"31":1,"34":2,"39":1,"45":1,"57":2}}],["beehaw",{"2":{"0":1}}],["being",{"2":{"1":2,"9":3,"11":2,"12":2,"14":1,"20":1,"21":1,"26":1,"28":1,"29":1,"38":1}}],["be",{"2":{"1":2,"2":1,"4":2,"5":1,"6":8,"8":3,"9":2,"10":3,"11":6,"12":2,"14":2,"15":5,"16":1,"19":9,"20":4,"21":4,"22":10,"23":2,"24":2,"25":2,"26":1,"27":4,"28":1,"30":4,"33":6,"34":3,"35":8,"36":1,"42":1,"45":1,"50":1,"52":1}}],["\\ttwitter",{"2":{"0":1}}],["\\tgithub",{"2":{"0":1}}],["\\treddit",{"2":{"0":1}}],["\\tlemmy",{"2":{"0":1}}],["\\tlinkedin",{"2":{"0":1}}],["\\tmastodon",{"2":{"0":1}}],["\\tmatrix",{"2":{"0":1}}],["\\tforgejo",{"2":{"0":1}}],["\\tfediverse",{"2":{"0":1}}],["\\temail",{"2":{"0":1}}],[">",{"2":{"0":1}}],["oil",{"2":{"35":1}}],["oom",{"2":{"34":3}}],["oscillating",{"2":{"34":1}}],["ostensibly",{"2":{"19":1}}],["okay",{"2":{"30":1,"32":1}}],["occur",{"2":{"26":1}}],["obvious",{"2":{"35":1,"42":1}}],["obey",{"2":{"30":1}}],["objective",{"2":{"23":1}}],["observed",{"2":{"19":1}}],["omega",{"2":{"19":1}}],["oxymoronic",{"2":{"19":1}}],["our",{"2":{"27":1,"49":1}}],["ought",{"2":{"15":1,"22":1}}],["outfits",{"2":{"37":1}}],["out",{"2":{"0":1,"2":1,"6":1,"7":1,"10":1,"11":1,"12":1,"15":1,"16":1,"33":1,"35":2,"50":1,"51":1}}],["opposed",{"2":{"35":1}}],["opposite",{"2":{"33":1}}],["opinion",{"2":{"27":1,"33":1,"35":1,"37":1}}],["opinionated",{"2":{"14":1,"23":1}}],["optispeech",{"2":{"45":1}}],["opti",{"2":{"44":1}}],["option",{"2":{"34":1}}],["options",{"2":{"25":1,"50":1}}],["optimal",{"2":{"20":1,"34":1,"35":1}}],["optimizing",{"2":{"20":1}}],["optimization",{"2":{"20":1,"25":2}}],["optimized",{"2":{"12":1}}],["open",{"2":{"8":1}}],["overall",{"2":{"15":1}}],["overcoming",{"2":{"11":1}}],["overlap",{"2":{"11":1,"20":1,"21":1,"27":1}}],["over",{"2":{"11":2,"19":1,"21":1,"29":1,"34":1,"35":2}}],["others",{"2":{"14":1}}],["other",{"0":{"29":1,"44":1},"2":{"3":1,"4":1,"5":1,"7":4,"8":1,"10":2,"11":2,"14":2,"16":1,"19":3,"20":3,"22":1,"23":1,"24":1,"26":1,"27":1,"30":2,"31":1,"33":1,"34":1,"35":3,"36":2,"37":2,"42":3,"47":2,"48":2,"50":1,"56":1,"57":1}}],["otherwise",{"2":{"2":1,"26":1,"27":1}}],["order",{"2":{"34":3,"52":1,"53":1}}],["oriented",{"2":{"26":1,"27":1}}],["original",{"0":{"45":1},"2":{"4":2,"35":4}}],["originated",{"2":{"3":1}}],["or",{"2":{"2":4,"3":4,"5":4,"6":1,"7":3,"8":3,"9":3,"10":2,"11":7,"12":2,"15":3,"16":1,"19":14,"20":3,"23":1,"25":1,"26":2,"30":1,"31":1,"33":1,"34":3,"35":6,"36":1,"47":1,"48":1,"56":1,"57":1,"58":1}}],["org",{"2":{"0":1}}],["owns",{"2":{"4":1}}],["owners",{"2":{"5":1}}],["owner",{"2":{"2":1,"5":1}}],["own",{"2":{"1":1,"15":1,"19":1,"20":1,"30":1,"43":1}}],["once",{"2":{"8":1,"12":1,"34":1,"35":2,"37":1}}],["ones",{"2":{"8":1,"16":1,"19":1,"35":2}}],["one",{"2":{"4":1,"10":1,"14":1,"19":1,"20":1,"24":1,"33":1,"37":1,"42":1,"56":2}}],["only",{"2":{"2":3,"4":1,"6":2,"10":1,"19":2,"20":2,"21":1,"26":1,"34":1,"35":1,"40":1}}],["online",{"2":{"2":2,"15":1}}],["on",{"2":{"1":3,"2":1,"6":2,"8":1,"9":4,"11":2,"14":4,"15":3,"16":1,"19":7,"20":2,"21":1,"22":2,"24":3,"25":1,"26":1,"28":3,"30":1,"31":1,"33":3,"34":1,"35":13,"36":1,"37":3,"43":2,"45":1,"48":1,"50":1,"57":2,"58":3,"60":1,"61":1}}],["older",{"2":{"35":2}}],["old",{"2":{"0":1,"15":1,"35":2}}],["offense",{"2":{"34":1}}],["offers",{"2":{"30":1}}],["offer",{"2":{"3":1,"19":1,"31":1}}],["off",{"2":{"32":1,"35":1,"38":1}}],["oftentimes",{"2":{"19":1,"24":1}}],["often",{"2":{"8":1,"9":2,"10":1,"11":5,"14":1,"19":2,"20":4,"21":1,"25":2,"26":2,"28":1,"30":1,"34":1}}],["of",{"0":{"39":1},"2":{"0":1,"1":4,"2":5,"5":3,"6":2,"7":2,"8":3,"9":8,"10":8,"11":16,"12":5,"13":1,"14":12,"15":11,"16":2,"19":27,"20":12,"21":8,"22":11,"23":4,"24":10,"25":11,"26":7,"27":2,"28":5,"29":3,"30":2,"31":5,"32":2,"33":8,"34":7,"35":22,"36":7,"37":6,"38":3,"39":1,"40":2,"42":1,"43":1,"45":2,"46":1,"48":1,"49":1,"50":3,"52":2,"54":1,"56":2,"58":2}}],["plenty",{"2":{"33":1,"35":1,"50":1}}],["platformers",{"2":{"35":1}}],["platformer",{"2":{"35":1}}],["plainly",{"2":{"14":1,"19":1}}],["playing",{"2":{"11":3,"14":3,"19":3}}],["playable",{"2":{"10":1,"38":1}}],["playerbase",{"2":{"20":1}}],["player",{"2":{"10":3,"14":2,"15":1,"20":2,"21":1,"24":2,"25":1,"26":5,"28":1,"30":2,"33":2,"34":3,"35":5,"61":1}}],["players",{"0":{"8":1},"2":{"8":2,"9":2,"10":2,"11":2,"12":1,"13":1,"14":8,"15":1,"17":1,"19":1,"24":1,"31":2,"35":4}}],["played",{"2":{"8":1,"10":1,"11":1,"38":1,"40":1}}],["playstyle",{"2":{"14":1}}],["plays",{"2":{"8":1,"42":1}}],["play",{"0":{"53":1},"2":{"8":2,"10":1,"11":5,"12":1,"14":1,"15":1,"19":1,"24":1,"40":2,"41":1,"43":3}}],["planar",{"2":{"43":1}}],["plane",{"2":{"25":1}}],["plan",{"2":{"1":1}}],["placed",{"2":{"6":1,"45":1}}],["place",{"2":{"0":1,"56":1}}],["psychology",{"2":{"32":1}}],["pilot",{"2":{"56":1}}],["pioneers",{"2":{"43":1}}],["piece",{"2":{"30":1,"33":1}}],["pins",{"2":{"9":1}}],["power",{"2":{"41":1}}],["powers",{"2":{"37":2}}],["potentially",{"2":{"33":1}}],["polynomial",{"2":{"28":2}}],["portrays",{"2":{"37":1}}],["portray",{"2":{"19":2}}],["poorly",{"2":{"14":1}}],["pointed",{"2":{"15":1}}],["point",{"2":{"11":1,"12":1,"15":2,"20":1,"21":1,"24":1,"33":1,"34":1,"35":4,"36":1}}],["positive",{"2":{"31":1,"32":3}}],["possibly",{"2":{"50":1}}],["possible",{"2":{"10":1,"11":2,"19":1,"24":1}}],["possibility",{"2":{"25":1}}],["posted",{"2":{"8":1}}],["poster",{"2":{"3":2,"4":2}}],["posts",{"2":{"5":1,"11":1}}],["posting",{"2":{"4":1}}],["post",{"2":{"4":1,"45":1}}],["popularity",{"2":{"24":1}}],["popular",{"2":{"9":2,"16":1,"19":1,"22":1,"23":1,"28":1,"29":1,"33":1}}],["phrases",{"2":{"20":1}}],["physical",{"2":{"15":1}}],["physics",{"2":{"7":1}}],["philosophies",{"2":{"14":1}}],["phone",{"2":{"7":1}}],["photo",{"2":{"0":1}}],["punch",{"2":{"38":1}}],["punishes",{"2":{"34":1}}],["purposes",{"2":{"45":1}}],["purposefully",{"2":{"23":1}}],["purchased",{"2":{"34":1}}],["purchases",{"0":{"34":1},"2":{"34":4,"36":1}}],["purchase",{"2":{"25":1,"26":1,"34":5,"35":1,"36":3}}],["pure",{"2":{"25":1}}],["pushes",{"2":{"21":1}}],["put",{"2":{"15":1,"20":1,"34":2}}],["puzzle",{"2":{"12":1}}],["pull",{"2":{"5":1}}],["publish",{"2":{"4":1}}],["publicly",{"2":{"3":1,"5":1,"32":1,"60":1}}],["publickey",{"2":{"2":5}}],["public",{"2":{"2":1,"4":1,"5":6,"6":2,"56":2}}],["packed",{"2":{"54":1}}],["panel",{"2":{"25":1}}],["painting",{"2":{"15":1}}],["paid",{"2":{"9":1,"55":2}}],["paying",{"2":{"11":1}}],["paragraph",{"2":{"35":1}}],["paradigm",{"0":{"24":1},"2":{"13":1,"24":10,"27":1}}],["parody",{"2":{"19":2}}],["parodies",{"2":{"19":7}}],["partnership",{"2":{"45":1}}],["parts",{"2":{"19":1,"35":2}}],["participating",{"2":{"58":1}}],["participate",{"2":{"9":1}}],["particular",{"2":{"15":1,"19":1,"20":1}}],["particularly",{"2":{"11":1,"19":1,"34":1}}],["part",{"2":{"9":1,"10":1,"11":1,"15":1,"21":1,"35":1,"38":1}}],["parent",{"2":{"4":2,"5":1}}],["page",{"2":{"7":1,"19":1,"25":1,"43":1,"50":1}}],["pages",{"2":{"4":1,"8":1,"43":1,"48":3,"50":1,"56":2}}],["passes",{"2":{"27":1}}],["passion",{"2":{"32":2}}],["passionate",{"2":{"16":1}}],["passively",{"2":{"14":1}}],["pass",{"2":{"6":1,"20":1,"27":1}}],["password",{"2":{"3":1}}],["paperclips",{"2":{"23":1,"24":1}}],["paper",{"2":{"2":2,"56":1}}],["per",{"2":{"28":1}}],["percentage",{"2":{"24":1}}],["perceived",{"2":{"15":1}}],["performs",{"2":{"34":1}}],["performing",{"2":{"20":1}}],["perform",{"2":{"11":1,"20":1}}],["perfectly",{"2":{"7":1}}],["perfect",{"2":{"7":1}}],["persists",{"2":{"10":1}}],["personal",{"0":{"48":1},"1":{"49":1},"2":{"14":1,"58":1}}],["personally",{"2":{"10":1,"15":1}}],["person",{"2":{"2":1,"30":2}}],["permission",{"2":{"5":2}}],["perhaps",{"2":{"4":1,"5":1,"6":2,"36":1,"38":1}}],["petnames",{"2":{"2":1}}],["people",{"0":{"50":1},"2":{"1":1,"2":3,"5":1,"10":2,"11":3,"19":1,"23":1,"24":1,"32":1,"48":1,"50":2}}],["practice",{"2":{"30":1,"42":1}}],["praising",{"2":{"14":1}}],["prudent",{"2":{"11":1,"19":1}}],["prices",{"2":{"52":1}}],["price",{"2":{"52":3}}],["prioritize",{"2":{"30":1}}],["priority",{"2":{"11":1,"19":1}}],["printing",{"2":{"19":1}}],["principles",{"2":{"14":1}}],["privileges",{"2":{"7":1}}],["private",{"2":{"2":3,"3":1}}],["premium",{"2":{"42":1,"52":1}}],["premise",{"2":{"20":1}}],["previous",{"2":{"35":1}}],["previously",{"2":{"2":2}}],["pre",{"2":{"34":1,"52":1}}],["predominant",{"2":{"25":1}}],["predatory",{"2":{"11":1}}],["precludes",{"2":{"21":1}}],["press",{"2":{"34":1}}],["presents",{"2":{"25":1}}],["presentation",{"2":{"25":1}}],["present",{"2":{"22":1}}],["prestiges",{"2":{"35":1}}],["prestige",{"2":{"19":1,"35":2}}],["president",{"2":{"2":1}}],["pretty",{"2":{"15":1,"20":1,"36":1,"50":1}}],["preoccupied",{"2":{"15":1}}],["prefer",{"2":{"31":1}}],["preferences",{"2":{"14":1,"30":1}}],["preferred",{"2":{"5":1}}],["profectus",{"2":{"44":1}}],["profit",{"2":{"19":2,"53":1}}],["profile",{"2":{"2":1}}],["projects",{"2":{"56":1}}],["project",{"0":{"45":1},"2":{"43":1,"45":1,"58":1,"61":1}}],["providing",{"2":{"42":1}}],["provide",{"2":{"24":1,"34":2}}],["prominently",{"2":{"32":1}}],["proposal",{"2":{"57":1}}],["propose",{"2":{"22":1}}],["proposes",{"2":{"20":1}}],["properly",{"2":{"14":1}}],["property",{"2":{"4":1}}],["process",{"2":{"19":1,"21":1}}],["prone",{"2":{"11":3,"42":1}}],["program",{"2":{"46":2}}],["programmer",{"2":{"46":1}}],["programming",{"2":{"7":1,"8":1,"19":1}}],["progresses",{"2":{"26":1}}],["progressively",{"2":{"28":1}}],["progressing",{"2":{"25":1}}],["progression",{"2":{"10":10,"11":1,"13":1,"20":2,"21":3,"27":1,"34":1,"35":3}}],["progress",{"2":{"10":1,"11":3,"12":1,"20":1,"25":1,"26":2,"28":1,"33":1,"34":1,"35":5}}],["probably",{"2":{"6":1,"12":1,"20":1,"24":1,"25":1,"26":1,"27":1,"35":1}}],["problems",{"0":{"6":1},"2":{"20":1,"25":2}}],["problem",{"2":{"1":1,"19":1,"21":2,"30":2,"34":1,"35":1}}],["protocol",{"2":{"4":2}}],["protocols",{"2":{"1":1}}],["production",{"2":{"15":2,"20":1,"46":1}}],["productive",{"2":{"11":1}}],["product",{"2":{"0":2}}],["ludology",{"0":{"17":1},"2":{"16":1}}],["lucrative",{"2":{"9":1}}],["ll",{"2":{"11":2,"14":1,"19":1,"22":1,"30":1,"35":4}}],["llc",{"2":{"0":1}}],["located",{"2":{"45":1}}],["lost",{"2":{"34":1,"51":1}}],["losing",{"2":{"2":1,"25":1}}],["logic",{"2":{"19":1,"34":1}}],["love",{"2":{"19":1,"50":1}}],["lore",{"2":{"15":1}}],["loosely",{"2":{"35":1}}],["loops",{"2":{"28":2}}],["loop",{"2":{"13":2,"28":2,"35":1}}],["look",{"2":{"11":1,"30":1,"33":1,"48":1,"58":1}}],["looks",{"2":{"6":1}}],["looking",{"2":{"5":1,"8":1,"14":1,"19":1,"34":1}}],["longer",{"2":{"13":1,"24":1,"26":1,"35":2}}],["long",{"2":{"11":1,"19":1,"22":1,"25":1,"34":1,"43":1,"61":2}}],["lowers",{"2":{"11":1}}],["low",{"0":{"26":1},"2":{"7":2,"8":1,"10":1,"14":1,"25":1,"26":2}}],["load",{"2":{"3":1}}],["lots",{"2":{"54":1}}],["lot",{"2":{"1":1,"8":1,"9":1,"10":3,"11":3,"15":2,"16":1,"20":1,"21":1,"23":1,"25":1,"28":1,"37":1,"50":1,"52":1,"56":1,"57":1}}],["levied",{"2":{"38":1}}],["levels",{"2":{"31":1}}],["level",{"2":{"5":1,"9":1,"11":2,"19":2,"35":2}}],["lenient",{"2":{"20":1,"22":1}}],["lend",{"2":{"11":1}}],["lets",{"2":{"35":1}}],["let",{"2":{"14":2,"15":1,"19":1,"33":1,"35":1}}],["legitimate",{"2":{"11":1,"15":1}}],["lecture",{"2":{"11":1}}],["lesser",{"2":{"11":1}}],["less",{"2":{"10":1,"11":1,"14":1,"15":1,"26":1,"34":1}}],["lessons",{"2":{"1":1,"37":1}}],["leading",{"2":{"35":1}}],["lead",{"2":{"33":1}}],["leave",{"2":{"11":1,"31":1}}],["learning",{"2":{"7":1,"11":1,"12":2,"31":1,"37":1,"45":1,"57":1}}],["learn",{"2":{"7":2,"23":1,"28":1,"30":1,"37":1,"50":1}}],["learned",{"2":{"1":1,"37":1}}],["least",{"2":{"6":1,"20":1,"34":1,"35":1}}],["last",{"2":{"37":1,"38":1}}],["lashing",{"2":{"32":1}}],["lab",{"2":{"46":1}}],["label",{"2":{"15":1}}],["labs",{"2":{"0":1}}],["lack",{"2":{"15":3}}],["lattice",{"0":{"60":1}}],["latter",{"2":{"11":1,"19":1,"30":1}}],["later",{"2":{"11":1,"35":1,"40":1}}],["languages",{"2":{"7":1}}],["language",{"2":{"7":1,"45":1}}],["layer",{"2":{"28":1,"34":1,"35":2}}],["layers",{"2":{"19":1,"21":1,"35":2}}],["lay",{"2":{"7":1}}],["larger",{"2":{"26":1,"34":1}}],["largest",{"2":{"25":1}}],["large",{"2":{"1":3,"9":1,"19":1,"20":1,"24":2,"36":1}}],["lawn",{"2":{"0":1}}],["lis2",{"2":{"39":1,"40":1}}],["lis1",{"2":{"38":1,"40":1,"42":1}}],["lis",{"2":{"38":1}}],["list",{"2":{"22":3,"23":2,"24":1,"33":1}}],["living",{"2":{"37":1,"54":1}}],["live",{"2":{"0":1,"37":1}}],["little",{"2":{"35":1,"41":1}}],["literally",{"2":{"10":1}}],["limits",{"2":{"15":1}}],["lifeisstrange",{"2":{"38":2}}],["life",{"0":{"38":1,"40":1,"41":1,"42":1},"2":{"11":1,"19":2,"28":1,"37":1}}],["linearly",{"2":{"35":1}}],["linear",{"2":{"35":3}}],["line",{"2":{"20":2}}],["lines",{"2":{"7":1}}],["links",{"2":{"47":1}}],["linking",{"2":{"14":1}}],["link",{"2":{"8":1,"56":1}}],["linked",{"2":{"6":1}}],["lighten",{"2":{"3":1}}],["likely",{"2":{"6":3,"31":1,"35":1}}],["like",{"2":{"3":1,"9":5,"10":3,"11":5,"12":2,"14":3,"15":6,"19":4,"28":1,"32":1,"34":1,"35":2,"36":1,"39":1,"41":1,"48":1,"58":1}}],["likes",{"2":{"0":1,"11":1,"14":1,"21":1}}],["www",{"2":{"38":2}}],["wrt",{"2":{"24":1}}],["wrong",{"2":{"19":1,"20":1}}],["written",{"2":{"15":1}}],["write",{"2":{"2":1}}],["weird",{"2":{"48":1}}],["we",{"2":{"20":2,"21":1,"24":1,"27":1,"35":5,"40":1}}],["weapons",{"2":{"10":1}}],["welcome",{"2":{"8":1,"56":1}}],["well",{"2":{"0":1,"4":1,"8":2,"12":1,"14":1,"16":1,"22":1,"34":1,"39":1}}],["webs",{"2":{"49":1}}],["websites",{"0":{"48":1},"1":{"49":1},"2":{"28":1,"47":1,"48":1,"50":5}}],["website",{"2":{"2":1,"56":1,"57":1}}],["webrings",{"2":{"47":1}}],["web",{"0":{"47":1,"50":1,"51":1},"2":{"7":3,"9":3,"35":3,"36":1,"47":1,"48":1,"49":2,"51":2,"57":1}}],["wave",{"2":{"45":2}}],["walking",{"2":{"15":1}}],["wait",{"2":{"14":1,"26":1,"36":1}}],["waiting",{"2":{"11":1,"26":1,"33":2}}],["watch",{"2":{"11":1}}],["ware",{"2":{"9":1}}],["ways",{"2":{"3":1,"34":1,"42":1}}],["way",{"2":{"3":1,"5":1,"10":1,"11":2,"13":1,"14":1,"19":2,"20":1,"22":1}}],["wasted",{"2":{"15":1}}],["waste",{"2":{"15":1}}],["was",{"2":{"2":1,"4":1,"6":1,"19":1,"27":1,"35":1,"37":2,"42":1,"50":1}}],["wanted",{"2":{"14":1,"40":1}}],["wants",{"2":{"3":1,"35":1}}],["want",{"0":{"50":1},"2":{"2":2,"33":1,"34":1}}],["what",{"2":{"10":2,"12":2,"14":1,"15":3,"16":1,"17":1,"19":2,"20":2,"21":4,"22":2,"23":1,"24":2,"25":1,"30":1,"33":1,"34":2,"35":2,"38":1,"42":1,"58":1}}],["whatever",{"2":{"6":1,"30":1}}],["why",{"0":{"16":1,"50":1},"2":{"10":1,"11":2,"15":3,"19":2,"20":1,"35":5}}],["while",{"2":{"10":2,"11":4,"14":2,"19":3,"20":2,"24":2,"29":1,"30":1,"34":2,"45":1,"58":1}}],["which",{"2":{"8":2,"10":1,"13":1,"14":3,"15":2,"22":1,"25":1,"28":1,"34":1,"35":3,"36":1,"38":1}}],["whitelisted",{"2":{"5":1}}],["white",{"2":{"2":1}}],["whether",{"2":{"11":1,"15":2,"20":1,"27":1}}],["whenever",{"2":{"34":1}}],["when",{"2":{"3":2,"11":1,"14":1,"15":1,"19":2,"20":2,"24":1,"31":1,"34":1,"35":4,"36":1,"45":2}}],["whereas",{"2":{"7":1}}],["where",{"2":{"3":1,"10":2,"12":2,"13":1,"14":1,"19":1,"20":1,"21":1,"25":1,"26":1,"28":1,"31":1,"33":1,"35":4}}],["whole",{"2":{"19":2}}],["whom",{"2":{"14":1}}],["who",{"2":{"0":1,"7":1,"10":1,"11":2,"14":1,"15":1,"19":1,"33":1,"35":1,"42":1}}],["won",{"2":{"14":1,"25":1,"35":2}}],["worse",{"2":{"33":1,"42":1}}],["words",{"2":{"19":1}}],["worth",{"2":{"15":1}}],["world",{"2":{"11":1,"29":1}}],["worry",{"2":{"7":1}}],["works",{"2":{"30":1}}],["working",{"2":{"11":1,"33":1,"57":2,"58":1,"60":1,"61":1}}],["work",{"0":{"46":1},"2":{"0":1,"3":2,"11":1,"26":1,"30":1,"45":1}}],["wouldn",{"2":{"2":1}}],["would",{"2":{"2":1,"3":1,"4":1,"14":1,"20":2,"21":1,"24":1,"25":1,"27":4,"28":2,"30":1,"33":1,"34":4,"39":1,"41":1,"52":2}}],["wiki",{"2":{"56":1}}],["wise",{"2":{"34":1}}],["wishes",{"2":{"5":1}}],["wizard",{"2":{"28":1}}],["win",{"2":{"10":1}}],["will",{"2":{"4":1,"6":2,"9":2,"10":1,"11":1,"14":1,"19":1,"20":1,"21":1,"24":1,"26":1,"30":1,"31":2,"32":2,"34":1,"35":4,"36":1,"38":1,"42":2}}],["wife",{"2":{"0":1}}],["without",{"2":{"5":1,"10":3,"11":1,"15":2,"42":1,"52":1}}],["within",{"2":{"4":2,"12":1,"14":1,"15":2,"19":2,"22":2,"25":2,"28":1,"30":1}}],["with",{"2":{"0":1,"1":3,"2":3,"3":1,"4":4,"5":4,"6":1,"8":3,"9":1,"11":3,"13":1,"14":2,"15":3,"19":6,"21":3,"22":1,"23":1,"24":5,"25":1,"26":4,"29":1,"30":1,"32":2,"33":2,"34":1,"35":5,"36":1,"37":4,"38":1,"40":2,"42":1,"45":3,"47":1,"48":1,"54":1,"56":2,"58":2,"59":1}}],["dressing",{"2":{"19":1}}],["drops",{"2":{"14":1}}],["driven",{"2":{"42":2,"61":1}}],["drive",{"2":{"6":1,"15":1}}],["ddr",{"2":{"11":1}}],["due",{"2":{"9":2,"14":1,"15":1,"20":1,"21":1,"24":1,"30":1,"38":1,"52":1}}],["duty",{"2":{"5":1,"14":1}}],["d",{"2":{"6":2,"9":1,"10":2,"11":1,"15":2,"19":3,"21":1,"23":1,"28":1,"33":1,"35":1,"36":1,"45":1,"50":1}}],["dice",{"2":{"43":1}}],["dictate",{"2":{"4":1}}],["diminishing",{"2":{"34":1}}],["dimensions",{"2":{"28":1,"34":9}}],["diverse",{"2":{"31":1}}],["diversity",{"2":{"22":1}}],["diegetic",{"2":{"25":1}}],["didn",{"2":{"38":3}}],["did",{"2":{"14":1,"38":1}}],["differences",{"2":{"31":1}}],["difference",{"2":{"20":1,"34":1,"36":1}}],["differently",{"2":{"58":1}}],["different",{"2":{"3":2,"9":1,"14":4,"19":1,"23":1,"25":1,"28":1,"30":1,"31":2,"33":1,"34":1,"35":1}}],["difficulties",{"2":{"21":1}}],["difficulty",{"2":{"12":1,"35":2}}],["difficult",{"2":{"1":1,"7":1,"11":1,"20":1,"28":1}}],["disparate",{"2":{"42":1}}],["displays",{"2":{"3":1}}],["display",{"2":{"2":4,"3":1,"19":1,"25":1}}],["disservice",{"2":{"37":1}}],["dissipates",{"2":{"24":1}}],["disengaging",{"2":{"35":1}}],["disengage",{"2":{"35":1}}],["disregard",{"2":{"30":1}}],["distancing",{"2":{"30":1}}],["distinguish",{"2":{"30":1}}],["distinct",{"2":{"20":1}}],["distilled",{"2":{"19":1}}],["distract",{"2":{"14":1}}],["disagreeing",{"2":{"24":1}}],["disagree",{"2":{"14":1}}],["discourage",{"2":{"48":1}}],["discover",{"2":{"35":1}}],["discovering",{"2":{"10":1,"15":1}}],["discovery",{"2":{"3":1}}],["discussing",{"2":{"38":1}}],["discussion",{"2":{"10":1}}],["discussions",{"2":{"8":1,"58":1}}],["discussed",{"2":{"15":1}}],["discuss",{"2":{"14":1,"25":1}}],["direction",{"2":{"35":1}}],["directly",{"2":{"19":1,"35":1,"36":1,"58":1}}],["direct",{"2":{"1":1}}],["digital",{"2":{"0":1,"56":1,"58":1}}],["day",{"2":{"50":1}}],["days",{"2":{"1":1,"50":1}}],["dark",{"2":{"23":1,"24":1}}],["data",{"2":{"1":1}}],["dallas",{"2":{"0":1,"46":1}}],["debt",{"2":{"46":1}}],["debate",{"2":{"20":1}}],["demo",{"2":{"39":1,"55":1}}],["demonstrate",{"2":{"20":1}}],["deadbones",{"2":{"38":1}}],["deal",{"2":{"26":1}}],["defend",{"2":{"34":2}}],["defended",{"2":{"34":1}}],["defined",{"2":{"20":1,"21":1,"22":1,"28":3,"58":1}}],["define",{"2":{"15":1,"20":2,"22":1}}],["defining",{"2":{"15":1,"17":1,"19":1,"21":1,"22":2}}],["definite",{"2":{"22":1}}],["definitely",{"2":{"10":1}}],["definition",{"2":{"19":2,"20":5,"21":4,"22":2,"23":1,"24":1}}],["definitions",{"2":{"19":1}}],["definitively",{"2":{"15":1,"36":1}}],["degree",{"2":{"28":1}}],["derived",{"2":{"22":2}}],["described",{"2":{"21":1}}],["describe",{"2":{"20":1}}],["descriptive",{"2":{"19":1}}],["deserves",{"2":{"19":1}}],["designs",{"2":{"58":1}}],["designing",{"2":{"45":1}}],["designed",{"2":{"14":2}}],["designer",{"2":{"14":1}}],["design",{"0":{"14":1},"2":{"14":10,"15":1,"19":3,"28":1,"30":1,"31":1,"35":3}}],["desired",{"2":{"5":1}}],["deeply",{"2":{"28":1}}],["deep",{"2":{"15":1}}],["dev",{"2":{"43":1}}],["devs",{"2":{"16":2}}],["devolving",{"2":{"15":1}}],["device",{"2":{"11":1}}],["developed",{"2":{"7":1}}],["developers",{"0":{"36":1,"54":1},"2":{"7":1,"8":3,"9":1,"14":1,"17":1,"19":1,"30":1,"31":2}}],["developer",{"2":{"0":1,"8":1,"30":1,"36":1}}],["develop",{"2":{"0":1,"19":1}}],["development",{"2":{"0":1,"7":1,"16":1,"30":1,"32":1,"43":1,"48":1}}],["de",{"2":{"10":1}}],["depth",{"2":{"10":2,"15":3}}],["dependencies",{"2":{"2":1}}],["dedicated",{"2":{"7":1,"8":1,"37":1}}],["delaying",{"2":{"33":1}}],["delay",{"2":{"6":1}}],["deletion",{"2":{"5":2}}],["delete",{"2":{"5":5,"6":1}}],["detriment",{"2":{"19":1}}],["detract",{"2":{"10":1,"12":1}}],["determine",{"2":{"6":2,"22":1,"23":1,"24":1,"27":1,"28":1,"30":1}}],["details",{"2":{"1":1}}],["decent",{"2":{"36":1}}],["decentralized",{"2":{"1":1,"2":1}}],["deciding",{"2":{"20":1,"25":2,"28":1,"31":1}}],["decide",{"2":{"2":1,"3":1}}],["decision",{"2":{"15":1,"35":1}}],["decisions",{"2":{"12":1,"20":1,"23":1,"33":1,"35":1}}],["documentation",{"2":{"46":1}}],["dopamine",{"2":{"19":2}}],["doom",{"2":{"14":3}}],["doing",{"2":{"11":2}}],["does",{"2":{"10":2,"14":4,"20":1,"21":1,"24":1,"25":1,"33":1,"34":1,"35":1,"41":1}}],["doesn",{"2":{"1":1,"6":1,"12":1,"19":1,"20":1,"24":1,"34":1,"35":1,"42":1}}],["downs",{"2":{"32":1}}],["down",{"2":{"14":1}}],["downloading",{"2":{"6":1}}],["download",{"2":{"6":1}}],["downloaded",{"2":{"6":1}}],["downvotes",{"2":{"4":1,"6":1}}],["double",{"0":{"42":1},"2":{"5":1}}],["do",{"2":{"2":1,"6":1,"8":1,"10":1,"16":2,"19":3,"20":1,"21":1,"30":1,"33":2,"34":2,"35":4,"36":1,"40":1,"42":1}}],["donation",{"2":{"9":1}}],["done",{"2":{"6":1}}],["don",{"2":{"0":1,"1":2,"6":1,"7":3,"10":1,"14":1,"19":1,"20":1,"21":1,"30":2,"34":1,"35":2,"36":1,"54":1}}],["further",{"2":{"35":1}}],["future",{"0":{"49":1},"2":{"30":1,"35":2}}],["fulfillment",{"2":{"19":2}}],["full",{"2":{"4":1}}],["fully",{"2":{"2":1,"5":1,"33":1,"35":1}}],["funnily",{"2":{"41":1}}],["fun",{"2":{"11":2,"14":2,"15":1,"19":3,"30":1}}],["flash",{"2":{"28":1}}],["flagged",{"2":{"4":1,"5":2}}],["flag",{"2":{"4":1}}],["flagship",{"2":{"0":1}}],["fly",{"2":{"23":1,"28":1}}],["flow",{"2":{"11":1}}],["flood",{"2":{"8":1}}],["fashion",{"2":{"33":1}}],["faster",{"2":{"26":1}}],["fast",{"2":{"26":1}}],["familiarity",{"2":{"19":1}}],["famous",{"2":{"14":1}}],["fail",{"2":{"25":1}}],["fails",{"2":{"2":1}}],["fairly",{"2":{"19":1,"33":1}}],["fantasy",{"2":{"29":1}}],["fans",{"2":{"19":1,"21":1,"42":1}}],["fan",{"2":{"19":1,"29":1,"37":1}}],["fancy",{"2":{"7":1}}],["fallen",{"2":{"33":1}}],["fall",{"2":{"19":1,"20":2,"28":1}}],["factor",{"2":{"22":1,"24":2,"26":1}}],["factors",{"0":{"25":1,"26":1},"2":{"22":6,"23":1,"25":3,"26":2}}],["factorio",{"2":{"20":1}}],["factory",{"2":{"20":3,"35":1}}],["fact",{"2":{"15":2,"20":1,"33":1,"34":1,"38":1}}],["favorite",{"2":{"14":1}}],["far",{"2":{"11":1,"22":1,"33":1,"34":2,"35":1}}],["fits",{"2":{"39":1}}],["fitting",{"2":{"37":1}}],["fit",{"2":{"21":1}}],["first",{"2":{"15":1,"34":1,"35":1,"40":1}}],["figured",{"2":{"12":1}}],["fidget",{"2":{"11":1}}],["finally",{"2":{"35":1}}],["fine",{"2":{"9":1,"35":2}}],["finished",{"2":{"8":1}}],["finding",{"2":{"35":1}}],["find",{"0":{"8":1},"2":{"10":1,"19":1,"29":1,"30":1,"42":1,"43":1}}],["filtering",{"2":{"6":1}}],["filters",{"2":{"3":1,"47":2}}],["fields",{"2":{"4":1}}],["framework",{"2":{"19":1,"20":1,"35":1}}],["frankly",{"2":{"19":1}}],["frequency",{"2":{"35":2}}],["frequently",{"2":{"34":1,"35":1}}],["frequent",{"2":{"33":1}}],["freshness",{"2":{"13":1}}],["free",{"0":{"53":1},"2":{"2":1,"11":1,"16":1,"48":1,"50":2,"55":1}}],["friendly",{"2":{"8":1}}],["from",{"2":{"0":1,"1":1,"3":2,"7":1,"9":1,"10":4,"11":1,"12":1,"13":1,"14":2,"15":1,"19":5,"21":2,"22":2,"25":1,"30":2,"31":2,"34":1,"35":5,"42":3,"45":3,"47":1,"49":1}}],["feedback",{"0":{"30":1,"31":1,"32":1},"2":{"30":7,"31":3,"32":4}}],["feeding",{"2":{"11":1}}],["feels",{"2":{"20":1,"34":1,"35":1}}],["feelings",{"2":{"14":1}}],["feeling",{"2":{"10":1,"12":1,"15":1}}],["feel",{"2":{"10":3,"11":3,"12":1,"14":2,"16":1,"19":1,"30":1,"32":1,"34":1,"38":1}}],["feature",{"2":{"36":3}}],["featured",{"2":{"28":1}}],["features",{"2":{"19":1,"46":1}}],["feats",{"2":{"11":1}}],["feasibility",{"2":{"1":1}}],["few",{"2":{"1":1,"7":1,"11":1,"29":1}}],["federated",{"2":{"1":1,"2":1}}],["federation",{"2":{"1":1}}],["fediverse",{"2":{"0":1}}],["fold",{"2":{"28":1}}],["following",{"0":{"35":1},"2":{"35":1,"58":1}}],["follow",{"2":{"6":1,"24":1,"42":1,"47":1}}],["followed",{"2":{"5":1}}],["focus",{"2":{"19":1,"20":1,"30":1,"58":1}}],["focused",{"2":{"1":1,"9":2,"10":1,"28":1,"31":1}}],["focuses",{"2":{"1":1}}],["found",{"2":{"12":1,"40":1,"45":1}}],["forward",{"2":{"46":1}}],["foreign",{"2":{"45":1}}],["forefront",{"2":{"19":1}}],["forget",{"2":{"34":1}}],["former",{"2":{"30":1}}],["formally",{"2":{"20":1}}],["formal",{"2":{"16":1,"21":1}}],["forms",{"2":{"9":1}}],["form",{"2":{"5":1,"11":1}}],["forming",{"2":{"2":1}}],["for",{"0":{"36":1},"2":{"1":2,"2":3,"3":1,"4":2,"5":3,"6":4,"7":4,"8":3,"9":2,"10":2,"11":3,"13":1,"14":4,"15":2,"19":10,"20":3,"21":1,"22":3,"23":1,"24":6,"25":2,"26":1,"27":1,"30":4,"31":1,"32":1,"33":1,"34":5,"35":7,"36":1,"39":1,"42":2,"45":1,"46":1,"47":2,"48":1,"50":2,"54":1,"57":1,"60":1}}],["two",{"2":{"20":1,"21":1,"34":2,"37":1,"42":2}}],["target",{"2":{"45":2}}],["tangible",{"2":{"42":1}}],["tangent",{"2":{"19":1}}],["tab",{"2":{"34":1}}],["talker",{"2":{"45":2}}],["talks",{"2":{"45":1,"49":1}}],["talk",{"2":{"14":1,"15":1,"35":1}}],["talking",{"2":{"14":1}}],["taken",{"2":{"28":1}}],["takes",{"2":{"11":1,"30":1,"33":1}}],["take",{"2":{"11":1,"15":1,"24":2,"25":1,"26":1,"30":1,"33":2,"34":3}}],["taking",{"2":{"10":1,"11":1,"15":1,"19":2,"37":1}}],["type",{"2":{"31":1}}],["types",{"2":{"14":1,"31":1}}],["typically",{"2":{"2":2,"7":1,"11":1,"19":1,"20":3,"24":1,"25":2,"26":1,"30":1,"53":1}}],["tip",{"2":{"36":1}}],["tips",{"0":{"36":1},"2":{"36":1}}],["til",{"2":{"23":1}}],["title",{"2":{"19":1}}],["titles",{"2":{"19":2,"23":1}}],["tied",{"2":{"11":1,"24":1,"35":1}}],["timelines",{"2":{"42":1}}],["times",{"2":{"13":1,"15":1,"26":1,"33":2,"34":2,"36":1}}],["time",{"2":{"9":1,"11":3,"14":1,"15":2,"23":2,"28":1,"29":1,"30":1,"33":8,"34":4,"35":2,"38":1,"40":1,"41":1,"45":1,"46":1}}],["try",{"2":{"30":1,"33":1,"36":1}}],["trying",{"2":{"14":1,"23":1,"24":1,"33":1,"54":1}}],["trailer",{"2":{"42":1}}],["trained",{"2":{"31":1}}],["trait",{"2":{"24":1}}],["traits",{"2":{"21":1,"23":1}}],["transferrable",{"2":{"50":1}}],["transitioning",{"2":{"49":1}}],["transparent",{"2":{"45":1}}],["translated",{"2":{"29":1}}],["transaction",{"2":{"11":1}}],["track",{"2":{"25":1}}],["traditional",{"2":{"22":1,"23":1}}],["trivial",{"2":{"34":1}}],["trivially",{"2":{"11":1,"36":1}}],["tricky",{"2":{"20":1}}],["treats",{"2":{"58":1}}],["treating",{"2":{"45":1}}],["tree",{"2":{"19":2,"24":1,"43":1}}],["trends",{"2":{"28":2}}],["trended",{"2":{"19":1}}],["trend",{"2":{"19":1,"35":3}}],["tremendous",{"2":{"8":1}}],["tropes",{"2":{"15":1}}],["true",{"0":{"41":1},"2":{"32":1,"35":1,"36":1}}],["truly",{"2":{"30":1,"35":1}}],["truth",{"2":{"2":1}}],["trust",{"2":{"2":6,"6":1}}],["tutorials",{"2":{"7":1}}],["tests",{"2":{"46":1}}],["testing",{"2":{"45":1}}],["techniques",{"2":{"52":1}}],["technically",{"2":{"7":1,"10":1,"34":1}}],["tech",{"2":{"46":1}}],["templates",{"2":{"48":1}}],["temple",{"2":{"22":1}}],["temporarily",{"2":{"6":1}}],["term",{"2":{"19":6,"24":1,"35":1,"43":1,"61":1}}],["terms",{"2":{"19":3,"20":1,"33":1}}],["tell",{"2":{"15":1}}],["teaching",{"2":{"14":1,"45":1}}],["tend",{"2":{"8":1,"9":1,"13":1,"14":1,"20":1,"25":2,"26":1,"28":1}}],["tends",{"2":{"8":1,"19":1,"32":1}}],["textual",{"2":{"25":1}}],["text",{"2":{"4":2,"19":1}}],["texas",{"2":{"0":1}}],["than",{"2":{"10":1,"11":1,"12":1,"14":2,"15":2,"19":2,"20":1,"24":1,"26":1,"27":1,"32":1,"38":1,"42":1,"52":1}}],["that",{"2":{"2":2,"3":2,"4":5,"5":3,"6":4,"7":3,"8":1,"9":4,"10":6,"11":9,"12":6,"14":5,"15":8,"16":1,"19":23,"20":8,"21":5,"22":1,"23":1,"24":10,"25":1,"26":1,"27":4,"28":5,"29":1,"30":6,"32":1,"33":7,"34":8,"35":12,"36":4,"37":1,"38":1,"42":3,"45":1,"48":1,"50":2,"52":1,"56":2,"58":1,"60":2}}],["threads",{"2":{"38":1}}],["threshold",{"2":{"7":1,"20":1}}],["throughline",{"2":{"35":2}}],["throughout",{"2":{"13":1,"35":1,"37":1}}],["through",{"2":{"2":1,"15":1,"26":1,"38":1,"40":1}}],["thousands",{"2":{"8":1,"19":1}}],["thoughts",{"2":{"56":1}}],["thought",{"2":{"15":1,"34":1}}],["though",{"2":{"4":1,"10":1,"15":1,"27":1,"35":1}}],["those",{"2":{"4":1,"5":1,"7":1,"11":3,"14":1,"15":1,"19":4,"22":1,"27":1,"33":1,"34":1,"35":1,"52":1}}],["thing",{"2":{"34":1,"35":1}}],["things",{"2":{"3":1,"7":1,"11":2,"15":2,"19":2,"34":1,"35":5,"36":1,"50":1}}],["thin",{"2":{"11":1}}],["think",{"2":{"10":1,"11":1,"14":2,"15":3,"19":4,"20":1,"21":1,"23":2,"27":1,"31":1,"33":1,"35":1,"37":2,"42":1}}],["this",{"0":{"16":1},"2":{"1":1,"2":3,"3":2,"4":3,"5":1,"7":1,"8":1,"9":3,"10":4,"11":4,"12":2,"13":1,"14":8,"16":2,"19":8,"20":10,"21":1,"22":2,"23":1,"24":2,"25":1,"26":3,"28":1,"30":1,"33":5,"34":3,"35":15,"36":3,"37":1,"38":1,"40":1,"41":1,"42":4,"45":3,"52":1,"56":1,"57":1,"61":1}}],["thereof",{"2":{"15":1,"19":1}}],["therefore",{"2":{"6":1,"9":1,"19":1,"35":1}}],["there",{"2":{"6":1,"7":2,"9":1,"10":1,"11":3,"14":3,"19":1,"20":4,"21":2,"22":1,"24":2,"25":2,"26":2,"27":1,"28":1,"32":1,"34":1,"35":4,"36":1,"50":4,"56":1}}],["then",{"2":{"6":1,"15":1,"19":1,"30":1,"33":1,"34":1,"35":2,"36":2}}],["thematic",{"2":{"37":1}}],["themes",{"2":{"37":1}}],["theme",{"2":{"20":1,"39":1}}],["themselves",{"2":{"5":1,"10":1,"11":1,"14":1,"20":1,"21":1,"30":1,"31":1}}],["them",{"2":{"2":1,"3":1,"6":1,"7":1,"11":4,"12":1,"13":1,"14":1,"15":2,"19":3,"20":1,"21":1,"22":1,"25":1,"26":1,"29":1,"30":1,"34":3,"36":1,"42":1,"54":1,"58":1}}],["theoretically",{"2":{"1":1}}],["they",{"2":{"0":1,"2":4,"5":1,"10":1,"11":7,"12":2,"14":2,"15":5,"19":3,"20":3,"21":2,"22":1,"24":3,"25":2,"26":4,"28":1,"30":1,"31":3,"32":1,"33":2,"34":7,"35":6,"42":1,"48":1}}],["these",{"2":{"0":1,"1":1,"3":1,"4":1,"8":1,"9":1,"11":2,"13":1,"19":6,"20":1,"23":1,"25":4,"26":3,"28":1,"33":2,"34":1,"35":3,"38":1,"50":1}}],["thepaperpilot",{"2":{"0":9,"2":1}}],["their",{"2":{"0":1,"1":1,"2":1,"3":1,"5":2,"6":1,"8":1,"9":1,"11":2,"12":1,"14":2,"15":1,"19":2,"20":2,"21":3,"23":1,"24":1,"35":2,"42":1,"43":1,"48":1,"54":1}}],["the",{"0":{"22":1,"23":1,"24":1,"37":1,"38":1,"39":1,"45":1,"47":1,"49":1,"50":1,"51":1},"2":{"0":1,"1":5,"2":11,"3":3,"4":12,"5":3,"6":6,"7":5,"8":5,"9":6,"10":16,"11":21,"12":7,"13":5,"14":14,"15":18,"16":3,"17":1,"19":51,"20":15,"21":7,"22":16,"23":3,"24":17,"25":14,"26":9,"27":5,"28":9,"29":1,"30":12,"31":5,"32":4,"33":13,"34":28,"35":50,"36":9,"37":10,"38":8,"39":4,"40":2,"41":1,"42":6,"43":2,"45":9,"46":5,"47":1,"48":2,"49":2,"50":1,"51":2,"52":5,"54":1,"56":2,"57":4,"58":2,"59":1}}],["t",{"2":{"0":1,"1":3,"2":1,"6":2,"7":4,"10":3,"11":4,"12":1,"14":3,"16":1,"19":2,"20":3,"21":4,"23":1,"24":2,"25":2,"26":1,"27":1,"30":2,"34":2,"35":7,"36":2,"38":3,"40":1,"41":1,"42":1,"43":1,"54":1}}],["tongue",{"2":{"45":2}}],["tons",{"2":{"19":1}}],["together",{"2":{"33":1}}],["totally",{"2":{"27":1}}],["towards",{"2":{"23":1,"24":1,"26":1,"30":1,"33":2,"35":1}}],["tolerant",{"2":{"14":1}}],["tool",{"2":{"30":1}}],["tools",{"0":{"44":1},"2":{"0":1,"7":1,"34":1,"50":1}}],["too",{"2":{"14":2,"19":2,"24":2,"34":2,"35":2,"48":1}}],["top",{"2":{"14":1,"24":1}}],["topic",{"2":{"14":1}}],["topaz",{"2":{"0":2}}],["toy",{"2":{"11":1}}],["to",{"0":{"6":1,"7":1,"8":1,"32":1,"53":1},"2":{"0":3,"1":6,"2":11,"3":11,"4":10,"5":6,"6":13,"7":11,"8":6,"9":6,"10":19,"11":30,"12":8,"13":3,"14":18,"15":11,"16":2,"17":6,"18":1,"19":31,"20":11,"21":6,"22":8,"23":6,"24":13,"25":9,"26":6,"27":6,"28":9,"30":12,"31":5,"32":6,"33":16,"34":15,"35":28,"36":6,"37":6,"38":2,"39":1,"40":2,"41":3,"42":6,"43":1,"45":2,"46":2,"48":1,"49":1,"50":3,"52":4,"53":1,"54":1,"56":2,"57":1,"58":1}}],["aaa",{"0":{"52":1},"2":{"52":3}}],["aesthetic",{"2":{"39":1}}],["aesthetics",{"2":{"19":1}}],["awesome",{"0":{"39":1},"2":{"42":1}}],["away",{"2":{"19":1,"34":3,"35":3}}],["aware",{"2":{"9":2,"14":1}}],["affordable",{"2":{"34":1}}],["affect",{"2":{"28":1}}],["after",{"2":{"6":1,"14":1,"33":1,"34":3,"35":1}}],["american",{"2":{"45":1}}],["amazing",{"2":{"38":1}}],["amongst",{"2":{"24":1,"33":1,"34":1,"47":1}}],["amount",{"2":{"11":1,"26":2,"35":1,"36":2}}],["amounts",{"2":{"1":1}}],["am",{"0":{"16":1}}],["apart",{"2":{"14":1}}],["app",{"2":{"58":1}}],["appropriate",{"2":{"21":1,"32":1}}],["approach",{"2":{"20":1}}],["applicable",{"2":{"36":1}}],["applied",{"2":{"22":1}}],["applies",{"2":{"2":1,"9":1,"12":1}}],["apply",{"2":{"19":1,"25":1,"27":1,"35":1}}],["appear",{"2":{"19":1}}],["appealing",{"2":{"21":1}}],["appeals",{"2":{"11":1,"12":1,"15":1}}],["appeal",{"2":{"10":1,"11":2,"12":2,"17":2,"19":1,"24":1,"33":1,"35":1}}],["apparent",{"2":{"14":1}}],["ag501",{"2":{"46":1}}],["again",{"2":{"34":1,"35":1,"37":1}}],["against",{"2":{"14":1,"30":1,"34":1}}],["aggressively",{"2":{"14":1}}],["aggressive",{"2":{"14":1}}],["agree",{"2":{"14":1}}],["avoid",{"2":{"23":1}}],["avoiding",{"0":{"13":1}}],["available",{"2":{"7":1,"9":2,"29":1,"35":1}}],["absolutely",{"2":{"35":1}}],["abstracts",{"2":{"35":1}}],["abstract",{"2":{"35":3}}],["able",{"2":{"11":1,"12":1,"35":1}}],["abundant",{"2":{"9":1}}],["abundance",{"2":{"9":1}}],["above",{"2":{"9":1,"19":1,"20":1,"24":1,"35":2}}],["about",{"0":{"0":1,"51":1},"2":{"3":1,"7":1,"11":3,"12":2,"14":2,"15":2,"16":1,"19":1,"20":2,"22":1,"35":3,"37":1,"49":1,"57":1}}],["augmenting",{"2":{"35":1}}],["augments",{"2":{"10":1}}],["automating",{"2":{"35":2}}],["automation",{"2":{"26":1,"35":3}}],["automatic",{"2":{"20":1,"26":1}}],["automatically",{"2":{"20":1,"26":2}}],["automated",{"2":{"34":2,"35":3}}],["automate",{"2":{"19":1,"34":1,"35":1}}],["authentication",{"2":{"3":1}}],["authority",{"2":{"16":1,"22":1}}],["authoritative",{"2":{"2":1}}],["author",{"2":{"2":1}}],["audio",{"2":{"4":1}}],["admittedly",{"2":{"35":1}}],["admin",{"2":{"7":1}}],["advent",{"2":{"43":1}}],["adventures",{"0":{"39":1}}],["adventure",{"2":{"19":2}}],["advantage",{"2":{"10":1,"30":1}}],["ads",{"2":{"9":1,"53":1}}],["adds",{"2":{"10":1,"27":1}}],["addition",{"2":{"46":1}}],["additionally",{"2":{"7":1,"19":1,"20":1,"24":1}}],["additional",{"2":{"5":1,"16":1,"19":1,"46":1}}],["adding",{"2":{"35":2,"57":1}}],["addiction",{"2":{"11":5,"19":1}}],["addictive",{"2":{"9":2,"11":1}}],["added",{"2":{"2":1,"46":1}}],["add",{"2":{"2":1,"5":1,"7":1,"35":2}}],["address",{"2":{"1":1}}],["adoption",{"2":{"1":1}}],["align",{"2":{"56":1}}],["alveolar",{"2":{"45":3}}],["alone",{"2":{"35":1,"42":1}}],["alongside",{"2":{"33":1}}],["along",{"2":{"24":1,"35":1,"58":1,"59":1}}],["alright",{"2":{"23":1}}],["already",{"2":{"15":1,"24":1,"25":1}}],["almost",{"2":{"9":1,"19":1}}],["always",{"2":{"8":1,"19":1}}],["also",{"2":{"2":1,"5":1,"9":1,"10":1,"16":1,"19":3,"21":1,"27":3,"28":1,"34":1,"35":3,"57":1}}],["alternative",{"2":{"26":1}}],["although",{"2":{"10":1,"14":1,"15":1,"19":1,"21":1,"24":1,"34":1,"35":1,"39":1,"41":1,"42":1}}],["alt",{"2":{"1":1}}],["allowed",{"2":{"30":1}}],["allow",{"2":{"23":1,"28":1}}],["allowing",{"2":{"11":1,"22":1,"24":1}}],["allows",{"2":{"11":1,"12":1}}],["all",{"2":{"1":1,"2":1,"3":2,"6":4,"7":1,"8":1,"11":4,"12":1,"15":1,"19":4,"20":1,"21":1,"22":2,"25":1,"30":1,"32":2,"34":3,"35":6,"38":1,"56":2,"60":1}}],["acamaeda",{"2":{"34":1}}],["achieving",{"2":{"33":1}}],["achieve",{"2":{"11":1}}],["acknowledged",{"2":{"22":1}}],["across",{"2":{"21":1,"26":1,"30":1}}],["accomplishment",{"2":{"12":1,"32":1}}],["account",{"2":{"3":1,"6":1}}],["accounts",{"2":{"0":1,"5":1,"22":1}}],["access",{"2":{"42":1}}],["accessibility",{"2":{"33":1}}],["accessible",{"2":{"7":1}}],["accept",{"2":{"20":1}}],["accepting",{"2":{"9":1}}],["actual",{"2":{"10":1,"20":2,"30":1,"33":1}}],["actually",{"2":{"1":1,"4":1,"10":1,"11":2}}],["activity",{"2":{"33":1}}],["active",{"2":{"19":1}}],["actively",{"2":{"7":1,"11":1,"33":1}}],["actions",{"2":{"28":1,"37":1}}],["action",{"2":{"6":2,"26":1}}],["act",{"2":{"3":1,"15":1}}],["armor",{"2":{"43":1}}],["arms",{"2":{"8":1,"52":1}}],["arc",{"2":{"37":2}}],["arguably",{"2":{"27":1}}],["arguing",{"2":{"14":1,"15":1}}],["arguments",{"2":{"15":1}}],["argument",{"2":{"11":1,"14":1,"15":1,"34":1}}],["argues",{"2":{"21":1}}],["argue",{"2":{"10":2,"11":2,"14":1,"15":2,"19":1,"24":1,"28":2,"35":1}}],["argued",{"2":{"10":1,"14":1,"22":3}}],["around",{"2":{"7":1,"8":1,"29":1}}],["artificially",{"2":{"33":1}}],["articulate",{"2":{"31":1}}],["article",{"2":{"1":1}}],["artistic",{"0":{"15":1},"2":{"15":5}}],["art",{"2":{"7":1,"15":11,"19":1}}],["arbitrary",{"2":{"4":1}}],["area",{"2":{"15":1}}],["aren",{"2":{"11":2,"21":1,"24":1,"26":1,"43":1}}],["are",{"0":{"7":1,"8":1,"27":1},"2":{"0":2,"1":1,"2":1,"3":1,"4":3,"5":2,"6":1,"7":5,"8":1,"9":5,"10":2,"11":11,"12":2,"14":4,"15":6,"19":13,"20":12,"21":2,"22":1,"23":1,"24":3,"25":2,"26":3,"28":4,"29":1,"30":3,"31":1,"33":1,"34":7,"35":5,"36":1,"48":1,"50":4,"56":1}}],["announced",{"2":{"42":1}}],["answer",{"2":{"35":1}}],["answers",{"2":{"23":1}}],["angry",{"2":{"32":1}}],["anime",{"2":{"29":1}}],["analyze",{"2":{"30":1}}],["analyzing",{"2":{"5":1}}],["analytical",{"2":{"23":1}}],["anecdotal",{"2":{"19":1}}],["another",{"2":{"19":1,"20":2,"21":1,"25":1,"34":1,"36":1}}],["anonymity",{"2":{"6":2}}],["anonymous",{"2":{"5":1}}],["anonymously",{"2":{"1":1}}],["anticipate",{"2":{"31":2}}],["anticipating",{"2":{"24":1}}],["antimatter",{"2":{"28":1,"34":4}}],["anti",{"2":{"9":1,"42":1}}],["anthony",{"2":{"0":1,"56":1}}],["an",{"0":{"18":1},"2":{"3":1,"4":2,"6":1,"7":2,"9":1,"11":2,"14":4,"15":4,"19":3,"20":4,"22":1,"23":1,"24":3,"25":2,"26":3,"27":2,"30":1,"32":2,"33":1,"34":1,"35":3,"36":2,"45":2,"50":1,"58":1}}],["anyways",{"2":{"19":1}}],["anything",{"2":{"4":1,"11":2,"16":1,"27":1}}],["any",{"2":{"3":3,"5":1,"7":1,"8":1,"10":2,"11":1,"15":9,"16":1,"19":3,"22":4,"24":1,"27":2,"33":1,"34":2,"35":2,"37":1,"42":1,"48":1}}],["anyone",{"2":{"2":2,"8":1}}],["anymore",{"2":{"0":1}}],["and",{"0":{"44":1},"2":{"0":2,"1":1,"2":6,"3":1,"4":4,"5":6,"6":5,"7":3,"8":5,"9":7,"10":10,"11":16,"12":10,"13":2,"14":12,"15":13,"16":1,"19":15,"20":8,"21":1,"22":5,"23":2,"24":2,"25":2,"26":2,"27":2,"28":7,"29":1,"30":12,"31":8,"32":6,"33":6,"34":12,"35":26,"36":3,"37":6,"38":1,"39":2,"40":1,"43":1,"45":3,"46":3,"47":1,"48":1,"50":2,"52":1,"53":1,"56":2,"57":1,"58":2,"59":1}}],["ai",{"2":{"0":1,"5":1}}],["asked",{"2":{"23":1,"30":1}}],["ascension",{"2":{"19":1}}],["ascribes",{"2":{"19":1}}],["aside",{"2":{"15":1}}],["associating",{"2":{"1":1}}],["associated",{"2":{"1":1,"35":1}}],["associate",{"2":{"1":1}}],["as",{"0":{"20":1,"21":1},"1":{"22":1,"23":1,"24":1,"25":1,"26":1,"27":1},"2":{"0":2,"2":6,"3":2,"4":5,"5":5,"6":1,"8":3,"10":4,"11":9,"12":3,"14":2,"15":5,"16":2,"19":16,"20":5,"21":2,"22":3,"24":3,"25":3,"26":3,"30":3,"33":5,"34":7,"35":11,"37":1,"38":4,"45":1,"46":1}}],["attain",{"2":{"28":1}}],["attack",{"2":{"30":1,"32":1}}],["attacks",{"2":{"14":1}}],["attaching",{"2":{"15":1}}],["attention",{"2":{"11":1,"37":1}}],["atproto",{"2":{"1":1}}],["at",{"2":{"0":1,"2":1,"5":2,"6":1,"10":1,"11":3,"12":1,"13":1,"14":3,"19":3,"20":1,"21":1,"30":2,"33":1,"34":3,"35":2,"38":2,"45":1,"46":2}}],["a",{"2":{"0":3,"1":8,"2":16,"3":6,"4":7,"5":6,"6":10,"7":6,"8":1,"9":4,"10":14,"11":16,"12":3,"13":3,"14":12,"15":12,"16":4,"19":19,"20":10,"21":9,"22":13,"23":6,"24":13,"25":9,"26":5,"27":2,"28":11,"29":3,"30":6,"31":1,"32":3,"33":9,"34":19,"35":24,"36":8,"37":7,"38":2,"39":1,"41":1,"42":1,"43":1,"45":6,"46":1,"47":2,"49":1,"50":1,"52":1,"54":1,"56":2,"57":2,"58":2,"60":1,"61":2}}],["mtx",{"2":{"52":1,"53":1,"55":1}}],["mindless",{"2":{"33":1}}],["mind",{"2":{"30":1,"32":1,"35":1,"37":1}}],["minimize",{"2":{"33":1}}],["minigame",{"2":{"28":1}}],["minion",{"2":{"28":1}}],["mine",{"2":{"14":1,"43":1}}],["misplaying",{"2":{"25":1}}],["microtransactions",{"2":{"19":1}}],["micro",{"2":{"11":1}}],["might",{"2":{"10":2,"14":1,"15":1,"20":1,"24":2}}],["mutually",{"2":{"25":1}}],["multiplayer",{"2":{"60":1}}],["multiply",{"2":{"36":1}}],["multiplier",{"2":{"34":1}}],["multipliers",{"2":{"34":6}}],["multiple",{"2":{"6":1,"34":1}}],["multitasking",{"2":{"11":1}}],["must",{"2":{"10":1,"22":1,"26":1,"35":1}}],["music",{"2":{"7":1}}],["much",{"2":{"9":1,"12":1,"14":2,"19":2,"24":1,"31":1,"32":1,"34":3,"35":1,"37":1,"38":1,"52":1}}],["mockup",{"2":{"58":1}}],["mocking",{"2":{"14":1}}],["move",{"2":{"34":1,"39":1}}],["movie",{"2":{"15":1}}],["moving",{"2":{"7":1,"58":1}}],["model",{"2":{"45":1}}],["modern",{"2":{"19":1,"33":1,"46":1}}],["moderator",{"2":{"5":1,"6":1}}],["moderation",{"0":{"5":1},"2":{"5":1,"6":1,"19":1}}],["modifiers",{"2":{"35":1}}],["modifier",{"2":{"24":1}}],["moment",{"2":{"24":1}}],["motivated",{"2":{"32":1}}],["motivation",{"2":{"26":1}}],["motivations",{"2":{"11":1}}],["motivating",{"2":{"8":1}}],["motive",{"2":{"19":1}}],["mobile",{"2":{"9":7,"19":1}}],["monetized",{"2":{"9":2}}],["monetization",{"0":{"9":1,"55":1},"2":{"9":3,"42":1,"54":1}}],["money",{"2":{"2":1,"9":1,"11":1,"19":1,"28":1,"42":2,"52":2}}],["mostly",{"2":{"8":1,"52":1}}],["most",{"2":{"2":2,"11":3,"15":3,"16":2,"19":1,"20":3,"22":1,"25":2,"30":1,"34":1,"35":1,"43":1,"56":1}}],["more",{"2":{"1":1,"7":1,"10":2,"11":4,"12":3,"14":5,"15":2,"19":2,"20":3,"22":2,"24":1,"26":1,"28":3,"31":1,"32":1,"33":2,"34":2,"35":6,"36":1,"37":2,"42":1,"43":2,"46":2,"52":1}}],["marginalia",{"2":{"47":1}}],["machines",{"2":{"35":1}}],["max",{"2":{"34":3,"37":4,"42":1}}],["maintainability",{"2":{"46":1}}],["mainstream",{"2":{"19":2}}],["mainly",{"2":{"9":2,"34":1}}],["majority",{"2":{"19":1}}],["major",{"2":{"15":1,"37":2}}],["mastered",{"2":{"12":1}}],["mastodon",{"2":{"0":1,"1":1}}],["managed",{"2":{"50":1}}],["manages",{"2":{"35":1}}],["management",{"2":{"25":1,"27":1}}],["manual",{"2":{"20":1}}],["manipulation",{"2":{"19":1}}],["manipulative",{"2":{"19":3}}],["manipulating",{"2":{"11":1,"19":4}}],["manipulates",{"2":{"19":2}}],["manipulate",{"2":{"19":1}}],["many",{"2":{"1":1,"9":1,"10":4,"14":1,"15":2,"19":1,"21":1,"22":1,"24":3,"33":1,"35":1,"36":1}}],["matter",{"2":{"32":1}}],["material",{"2":{"6":2,"19":1}}],["matching",{"2":{"5":1}}],["matches",{"2":{"4":1}}],["makes",{"2":{"7":1,"8":1,"10":1,"14":1,"19":1,"20":2,"38":1}}],["make",{"0":{"7":1},"2":{"5":1,"7":4,"9":1,"10":2,"11":1,"14":1,"15":1,"19":2,"21":2,"23":2,"33":1,"35":1,"36":1,"50":3,"52":3,"54":1}}],["making",{"0":{"16":1,"18":1},"2":{"0":1,"1":1,"7":2,"10":1,"11":2,"12":1,"16":1,"20":1,"23":2,"31":1,"33":1,"34":2,"42":1,"48":1,"50":1}}],["made",{"2":{"4":1,"5":1,"10":2,"15":3,"16":2,"27":1,"30":1,"34":1,"36":3}}],["maybe",{"2":{"21":1}}],["may",{"2":{"3":2,"11":4,"12":2,"15":1,"19":3,"24":1,"26":3,"28":1,"29":1,"31":1,"32":1,"33":1,"35":2,"36":1}}],["myriad",{"2":{"34":1}}],["mystery",{"2":{"24":1}}],["myself",{"2":{"16":1}}],["my",{"0":{"46":1},"2":{"0":1,"2":3,"14":1,"16":1,"19":2,"23":1,"27":1,"31":1,"35":1,"37":2,"38":1,"43":1,"46":1,"56":2}}],["m",{"2":{"0":1,"2":1,"14":4,"15":1,"23":1,"24":1,"33":1,"34":2,"35":1,"42":1,"56":1,"57":1,"58":3,"59":1,"60":1,"61":1}}],["meet",{"2":{"38":1}}],["mental",{"2":{"34":1}}],["mentioned",{"2":{"21":1,"35":1}}],["means",{"2":{"19":2,"20":1,"21":1,"22":1,"25":1,"35":3}}],["meaning",{"2":{"15":1,"26":1}}],["meaningfully",{"2":{"33":1}}],["meaningful",{"2":{"13":1,"34":3}}],["method",{"2":{"34":1}}],["met",{"2":{"33":1}}],["metric",{"2":{"19":1}}],["meta",{"2":{"10":6,"21":2,"27":1}}],["merit",{"0":{"15":1},"2":{"15":5}}],["merely",{"2":{"3":1}}],["melee",{"2":{"14":1}}],["mechanically",{"2":{"23":1}}],["mechanic",{"2":{"14":3,"19":1,"24":3,"26":1,"28":4,"33":1,"35":8}}],["mechanics",{"2":{"10":1,"15":1,"20":1,"21":1,"24":2,"26":1,"28":1,"31":1,"35":3}}],["message",{"2":{"2":1,"3":2,"4":7,"5":3,"6":2}}],["messages",{"2":{"1":1,"3":6,"4":4,"5":9,"6":7,"58":1}}],["media",{"2":{"1":2,"59":1}}],["me",{"0":{"0":1},"2":{"0":2,"10":1,"14":1,"15":1,"39":1}}],["io",{"2":{"43":1}}],["ignores",{"2":{"35":1}}],["ignored",{"2":{"5":1}}],["ip",{"2":{"34":6}}],["irl",{"2":{"32":1}}],["ii",{"2":{"28":1}}],["illustrated",{"2":{"20":1}}],["illegal",{"2":{"6":2}}],["iap",{"2":{"9":1}}],["iaps",{"2":{"9":1}}],["immediately",{"2":{"36":1}}],["immersing",{"2":{"14":1}}],["imagine",{"2":{"34":1}}],["image",{"2":{"4":1}}],["impact",{"2":{"24":2,"34":1,"36":1}}],["implications",{"2":{"35":1}}],["implies",{"2":{"20":1}}],["implying",{"2":{"20":1}}],["implementing",{"2":{"7":1,"57":1}}],["implement",{"2":{"7":1,"35":1}}],["implemented",{"2":{"4":1}}],["implementation",{"2":{"1":1}}],["imperfectly",{"2":{"14":1}}],["improve",{"2":{"46":1}}],["improvement",{"2":{"11":1,"30":1}}],["improving",{"2":{"12":1,"30":3,"46":1,"59":1}}],["impossible",{"2":{"10":1}}],["important",{"2":{"2":2,"10":1,"31":1}}],["idling",{"2":{"28":1}}],["idler",{"2":{"19":2}}],["idlers",{"0":{"19":1}}],["idle",{"2":{"9":3,"11":1,"19":3,"23":1,"28":3,"33":1}}],["ids",{"2":{"5":1}}],["id",{"2":{"3":2,"4":4}}],["identical",{"2":{"6":1}}],["identified",{"2":{"6":1}}],["identities",{"2":{"2":3,"50":1}}],["identity",{"0":{"2":1},"2":{"1":1,"2":3,"3":1,"6":1,"30":1}}],["ideally",{"2":{"50":1}}],["ideals",{"2":{"22":1}}],["ideas",{"2":{"1":1,"35":1}}],["idea",{"2":{"1":1,"19":1,"36":1}}],["itrtg",{"2":{"28":1}}],["itch",{"2":{"8":1,"43":1}}],["its",{"2":{"3":1,"4":1,"9":1,"10":2,"14":1,"15":2,"19":1,"22":2,"32":1,"37":1,"51":1}}],["itself",{"2":{"2":1,"4":1,"7":1,"15":2,"19":1,"32":1}}],["it",{"2":{"1":1,"2":1,"4":2,"6":2,"7":1,"8":2,"9":2,"10":11,"11":10,"12":3,"14":7,"15":10,"19":10,"20":6,"21":3,"22":3,"23":1,"24":6,"27":1,"30":3,"31":1,"32":4,"33":5,"34":10,"35":16,"36":3,"37":2,"38":1,"39":1,"40":1,"41":1,"42":2,"46":1,"57":1}}],["issues",{"2":{"33":1,"38":1}}],["isn",{"2":{"10":2,"11":2,"14":1,"25":1,"27":1,"35":2,"36":1}}],["is",{"0":{"38":1,"40":1,"41":1,"42":1},"2":{"1":2,"2":5,"4":2,"5":1,"6":3,"7":2,"8":1,"9":2,"10":9,"11":5,"12":2,"14":6,"15":6,"17":1,"19":13,"20":12,"22":4,"23":2,"24":4,"25":6,"26":4,"27":1,"28":2,"30":3,"31":1,"32":2,"33":7,"34":5,"35":20,"36":2,"37":2,"38":1,"42":3,"43":1,"45":2,"47":1,"49":1,"50":1,"54":2,"56":1,"61":1}}],["if",{"2":{"1":1,"2":4,"4":1,"5":2,"6":2,"7":2,"8":1,"9":1,"10":1,"11":3,"14":2,"15":2,"16":1,"19":3,"20":2,"21":2,"23":1,"25":1,"26":1,"27":1,"30":3,"33":1,"34":1,"35":5,"36":3}}],["input",{"2":{"45":1}}],["invested",{"2":{"38":1}}],["invalidate",{"2":{"36":1}}],["involved",{"2":{"46":1}}],["involves",{"2":{"45":1}}],["involve",{"2":{"20":1}}],["innovative",{"2":{"35":1}}],["infinity",{"2":{"34":3}}],["inflating",{"2":{"34":1}}],["infrequent",{"2":{"33":1}}],["information",{"2":{"2":1}}],["inherently",{"2":{"19":2}}],["inherit",{"2":{"12":1}}],["introducing",{"2":{"35":1}}],["introduced",{"2":{"34":2,"35":1}}],["intrinsically",{"2":{"14":1}}],["intentionally",{"2":{"14":1}}],["intended",{"2":{"14":3}}],["internet",{"2":{"49":1}}],["internalize",{"2":{"30":1}}],["internal",{"2":{"3":1}}],["interpret",{"2":{"30":1}}],["interpretation",{"0":{"22":1},"2":{"19":1,"20":1,"22":2,"27":3}}],["interactions",{"2":{"33":1,"35":1}}],["interaction",{"0":{"33":1},"1":{"34":1},"2":{"26":2,"33":2}}],["interacting",{"2":{"25":1}}],["interacted",{"2":{"2":1}}],["interface",{"2":{"25":1,"46":1}}],["interchangeably",{"2":{"19":1}}],["interested",{"2":{"19":1}}],["interesting",{"2":{"19":1,"29":1,"34":1,"35":1,"41":1}}],["interest",{"2":{"16":1}}],["interests",{"2":{"0":1,"19":1,"56":1}}],["into",{"2":{"11":1,"15":2,"19":2,"28":1,"29":1,"32":1,"34":3,"58":1}}],["industry",{"2":{"54":1}}],["indeed",{"2":{"10":1,"11":1,"15":1}}],["indie",{"0":{"54":1},"2":{"49":1,"51":1}}],["indieweb",{"0":{"57":1},"2":{"4":1,"48":1,"57":2}}],["individually",{"2":{"33":1}}],["indicator",{"2":{"24":1}}],["indicate",{"2":{"4":2,"12":1,"24":1,"25":1}}],["initial",{"2":{"6":1,"8":1,"32":1}}],["inevitably",{"2":{"4":1,"35":1}}],["incoming",{"2":{"58":1}}],["inconsistencies",{"2":{"38":1}}],["increasingly",{"2":{"28":1,"35":1}}],["increasing",{"2":{"15":2,"19":1,"20":2,"24":1}}],["increase",{"2":{"10":1,"35":1}}],["increases",{"2":{"10":1,"35":2}}],["increased",{"2":{"10":1}}],["incredible",{"2":{"11":1}}],["incredibly",{"2":{"7":1,"8":1,"9":1,"11":1,"14":1,"31":1,"34":1,"42":1,"50":1}}],["increlution",{"2":{"9":1,"23":1,"24":1,"28":1}}],["incrementalness",{"2":{"22":1,"23":1,"24":1}}],["incrementals",{"0":{"7":1,"19":1,"20":1,"21":1,"27":1},"1":{"22":1,"23":1,"24":1,"25":1,"26":1,"27":1},"2":{"7":2,"9":1,"10":1,"14":1,"15":2,"17":4,"18":1,"19":2,"20":7,"21":4,"24":2,"25":4,"26":2}}],["incremental",{"0":{"18":1,"23":1,"59":1},"2":{"0":3,"7":1,"8":3,"9":3,"10":3,"11":11,"12":1,"13":1,"14":3,"15":7,"16":4,"19":24,"20":12,"21":3,"22":1,"23":1,"24":4,"25":3,"26":6,"27":4,"28":3,"29":1,"33":1,"35":6,"43":1,"44":1,"48":1,"59":1,"60":1,"61":1}}],["including",{"2":{"4":1,"19":1,"33":1}}],["includes",{"2":{"12":1,"46":1}}],["include",{"2":{"4":1,"24":1,"28":4}}],["insults",{"2":{"30":1}}],["insatiable",{"2":{"19":1}}],["institutes",{"2":{"45":1}}],["instinctively",{"2":{"11":1}}],["instructions",{"0":{"35":1},"2":{"35":1}}],["instead",{"2":{"10":1,"26":1,"30":1,"34":1,"35":3}}],["instances",{"2":{"1":1,"26":1}}],["instance",{"2":{"1":1,"48":1}}],["inspiration",{"0":{"1":1}}],["in",{"2":{"0":1,"2":1,"4":1,"5":2,"7":3,"8":3,"9":2,"10":8,"11":6,"12":1,"13":1,"14":6,"15":2,"16":2,"19":9,"20":3,"21":1,"24":5,"25":1,"26":4,"27":1,"28":3,"29":2,"30":2,"31":1,"32":3,"33":5,"34":10,"35":10,"36":1,"37":3,"38":2,"43":1,"45":3,"46":2,"48":1,"50":1,"53":1,"56":1}}],["i",{"0":{"16":1},"2":{"0":6,"2":3,"9":2,"10":8,"11":1,"14":10,"15":8,"16":4,"19":7,"20":2,"21":2,"22":2,"23":5,"24":4,"25":1,"27":2,"28":1,"33":4,"34":10,"35":3,"36":1,"37":3,"38":3,"39":2,"40":2,"41":1,"42":4,"43":1,"54":1,"56":2,"57":3,"58":3,"59":1,"60":1,"61":1}}]],"serializationVersion":2}';export{e as default}; diff --git a/assets/chunks/@localSearchIndexroot.D6-2_xS5.js b/assets/chunks/@localSearchIndexroot.D6-2_xS5.js new file mode 100644 index 00000000..55085155 --- /dev/null +++ b/assets/chunks/@localSearchIndexroot.D6-2_xS5.js @@ -0,0 +1 @@ +const e='{"documentCount":62,"nextId":62,"documentIds":{"0":"/about/#about-me","1":"/garden/fedi-v2/#inspiration","2":"/garden/fedi-v2/#identity","3":"/garden/fedi-v2/#servers","4":"/garden/fedi-v2/#content","5":"/garden/fedi-v2/#moderation","6":"/garden/fedi-v2/#problems-to-solve","7":"/garden/guide-to-incrementals/appeal-to-developers/#incrementals-are-easy-to-make","8":"/garden/guide-to-incrementals/appeal-to-developers/#players-are-easy-to-find","9":"/garden/guide-to-incrementals/appeal-to-developers/#monetization","10":"/garden/guide-to-incrementals/appeal-to-players/#numbers-going-up","11":"/garden/guide-to-incrementals/appeal-to-players/#effortlessness","12":"/garden/guide-to-incrementals/appeal-to-players/#strategy","13":"/garden/guide-to-incrementals/appeal-to-players/#avoiding-staleness","14":"/garden/guide-to-incrementals/appeal-to-players/#good-game-design","15":"/garden/guide-to-incrementals/appeal-to-players/#artistic-merit","16":"/garden/guide-to-incrementals/defining-the-genre/#incrementals-vs-idlers-vs-clickers","17":"/garden/guide-to-incrementals/defining-the-genre/#incrementals-as-ngu","18":"/garden/guide-to-incrementals/defining-the-genre/#roguelites-as-incrementals","19":"/garden/guide-to-incrementals/defining-the-genre/#the-berlin-interpretation","20":"/garden/guide-to-incrementals/defining-the-genre/#the-incremental-games-canon","21":"/garden/guide-to-incrementals/defining-the-genre/#the-paradigm-shift","22":"/garden/guide-to-incrementals/defining-the-genre/#high-value-factors","23":"/garden/guide-to-incrementals/defining-the-genre/#low-value-factors","24":"/garden/guide-to-incrementals/defining-the-genre/#are-roguelites-incrementals","25":"/garden/guide-to-incrementals/defining-the-genre/#sub-genres","26":"/garden/guide-to-incrementals/defining-the-genre/#other-related-genres","27":"/garden/guide-to-incrementals/#why-am-i-making-this","28":"/garden/guide-to-incrementals/#ludology","29":"/garden/guide-to-incrementals/#making-an-incremental","30":"/garden/guide-to-incrementals/navigating-criticism/#reading-feedback","31":"/garden/guide-to-incrementals/navigating-criticism/#seeking-feedback","32":"/garden/guide-to-incrementals/navigating-criticism/#responding-to-feedback","33":"/garden/guide-to-incrementals/what-is-content/#interaction","34":"/garden/guide-to-incrementals/what-is-content/#repeatable-purchases","35":"/garden/guide-to-incrementals/what-is-content/#following-instructions","36":"/garden/guide-to-incrementals/what-is-content/#tips-for-developers","37":"/garden/life-is-strange/#the-ending","38":"/garden/life-is-strange/#life-is-strange-before-the-storm","39":"/garden/life-is-strange/#the-awesome-adventures-of-captain-spirit","40":"/garden/life-is-strange/#life-is-strange-2","41":"/garden/life-is-strange/#life-is-strange-true-colors","42":"/garden/life-is-strange/#life-is-strange-double-exposure","43":"/garden/my-projects/#games","44":"/garden/my-projects/#tools-and-other-non-games","45":"/garden/opti-speech/#the-original-project","46":"/garden/opti-speech/#my-work","47":"/garden/the-small-web/#browsing-the-small-web","48":"/garden/the-small-web/#building-personal-websites","49":"/garden/the-small-web/#the-future","50":"/garden/the-small-web/#why-people-want-the-small-web","51":"/garden/the-small-web/#recommended-videos-about-the-small-web","52":"/garden/video-game-monetization/#aaa-games","53":"/garden/video-game-monetization/#free-to-play-games","54":"/garden/video-game-monetization/#indie-developers","55":"/garden/video-game-monetization/#ethical-game-monetization","56":"/now/#indieweb","57":"/now/#commune","58":"/now/#incremental-social","59":"/now/#chromatic-lattice","60":"/now/#kronos","61":"/#hello"},"fieldIds":{"title":0,"titles":1,"text":2},"fieldLength":{"0":[2,1,83],"1":[1,1,117],"2":[1,1,161],"3":[1,1,102],"4":[1,1,126],"5":[1,1,121],"6":[3,1,126],"7":[5,1,138],"8":[5,1,109],"9":[1,1,133],"10":[3,1,212],"11":[1,1,290],"12":[1,1,113],"13":[2,1,47],"14":[3,1,256],"15":[2,1,230],"16":[4,1,403],"17":[3,1,236],"18":[4,1,136],"19":[3,4,122],"20":[4,4,127],"21":[3,4,200],"22":[3,4,143],"23":[3,4,134],"24":[4,4,82],"25":[2,1,138],"26":[3,1,40],"27":[6,1,71],"28":[1,1,13],"29":[3,1,6],"30":[2,1,168],"31":[2,1,90],"32":[3,1,98],"33":[1,1,198],"34":[2,1,266],"35":[2,1,398],"36":[3,1,121],"37":[2,1,96],"38":[6,1,93],"39":[6,1,34],"40":[4,1,33],"41":[5,1,28],"42":[5,1,95],"43":[1,1,49],"44":[6,1,10],"45":[3,1,92],"46":[2,1,60],"47":[4,1,30],"48":[3,1,58],"49":[2,3,20],"50":[6,1,75],"51":[6,1,13],"52":[2,1,51],"53":[4,1,10],"54":[2,1,24],"55":[3,1,11],"56":[1,1,38],"57":[1,1,49],"58":[2,1,15],"59":[2,1,18],"60":[1,1,18],"61":[2,1,50]},"averageFieldLength":[2.8225806451612905,1.32258064516129,106.83870967741939],"storedFields":{"0":{"title":"About Me","titles":[]},"1":{"title":"Inspiration","titles":[]},"2":{"title":"Identity","titles":[]},"3":{"title":"Servers","titles":[]},"4":{"title":"Content","titles":[]},"5":{"title":"Moderation","titles":[]},"6":{"title":"Problems to solve","titles":[]},"7":{"title":"Incrementals are Easy to Make","titles":[]},"8":{"title":"Players are Easy to Find","titles":[]},"9":{"title":"Monetization","titles":[]},"10":{"title":"Numbers Going Up","titles":[]},"11":{"title":"Effortlessness","titles":[]},"12":{"title":"Strategy","titles":[]},"13":{"title":"Avoiding Staleness","titles":[]},"14":{"title":"Good Game Design","titles":[]},"15":{"title":"Artistic Merit","titles":[]},"16":{"title":"Incrementals vs Idlers vs Clickers","titles":[]},"17":{"title":"Incrementals as NGU","titles":[]},"18":{"title":"Roguelites as Incrementals?","titles":[]},"19":{"title":"The Berlin Interpretation","titles":["Roguelites as Incrementals?"]},"20":{"title":"The Incremental Games Canon","titles":["Roguelites as Incrementals?"]},"21":{"title":"The Paradigm Shift","titles":["Roguelites as Incrementals?"]},"22":{"title":"High-Value Factors","titles":["Roguelites as Incrementals?"]},"23":{"title":"Low-Value Factors","titles":["Roguelites as Incrementals?"]},"24":{"title":"Are Roguelites Incrementals?","titles":["Roguelites as Incrementals?"]},"25":{"title":"Sub-Genres","titles":[]},"26":{"title":"Other Related Genres","titles":[]},"27":{"title":"Why am I making this?","titles":[]},"28":{"title":"Ludology","titles":[]},"29":{"title":"Making an Incremental","titles":[]},"30":{"title":"Reading Feedback","titles":[]},"31":{"title":"Seeking Feedback","titles":[]},"32":{"title":"Responding to Feedback","titles":[]},"33":{"title":"Interaction","titles":[]},"34":{"title":"Repeatable Purchases","titles":["Interaction"]},"35":{"title":"Following Instructions","titles":[]},"36":{"title":"Tips for Developers","titles":[]},"37":{"title":"The ending","titles":[]},"38":{"title":"Life is Strange: Before the Storm","titles":[]},"39":{"title":"The Awesome Adventures of Captain Spirit","titles":[]},"40":{"title":"Life is Strange 2","titles":[]},"41":{"title":"Life is Strange: True Colors","titles":[]},"42":{"title":"Life is Strange: Double Exposure","titles":[]},"43":{"title":"Games","titles":[]},"44":{"title":"Tools (and other non-games)","titles":[]},"45":{"title":"The Original Project","titles":[]},"46":{"title":"My Work","titles":[]},"47":{"title":"Browsing the small web","titles":[]},"48":{"title":"Building personal websites","titles":[]},"49":{"title":"The future","titles":["Building personal websites"]},"50":{"title":"Why people want the small web","titles":[]},"51":{"title":"Recommended videos about the small web","titles":[]},"52":{"title":"AAA games","titles":[]},"53":{"title":"Free-to-play games","titles":[]},"54":{"title":"Indie developers","titles":[]},"55":{"title":"Ethical game monetization","titles":[]},"56":{"title":"IndieWeb","titles":[]},"57":{"title":"Commune","titles":[]},"58":{"title":"Incremental Social","titles":[]},"59":{"title":"Chromatic Lattice","titles":[]},"60":{"title":"Kronos","titles":[]},"61":{"title":"Hello!","titles":[]}},"dirtCount":0,"index":[["😃",{"2":{"61":1}}],["😜",{"2":{"59":1}}],["😉",{"2":{"24":1}}],["7l1i6k",{"2":{"38":1}}],["7l0vgq",{"2":{"38":1}}],["5",{"2":{"38":1}}],["5x",{"2":{"34":1}}],["3",{"2":{"38":2}}],["10x",{"2":{"34":1}}],["100",{"2":{"33":2}}],["10",{"2":{"20":2}}],["1e10",{"2":{"10":1}}],["1e100",{"2":{"10":1}}],["1e1001",{"2":{"10":1}}],["1e1000",{"2":{"10":1}}],["2",{"0":{"40":1},"2":{"12":1}}],["zero",{"2":{"10":1}}],["0",{"2":{"7":1,"33":1}}],["yet",{"2":{"7":1}}],["yourself",{"2":{"32":1}}],["your",{"2":{"1":1,"2":2,"5":1,"6":1,"7":2,"8":3,"10":2,"11":3,"16":3,"30":5,"31":2,"32":4,"33":1,"35":4,"36":1,"56":1,"61":2}}],["you",{"2":{"1":2,"2":9,"5":1,"6":5,"7":7,"8":3,"10":4,"11":11,"12":4,"14":2,"15":1,"16":13,"20":2,"21":1,"22":1,"25":3,"27":1,"30":13,"31":4,"32":4,"33":2,"34":9,"35":15,"36":4,"43":1,"50":1,"51":1}}],["qualifier",{"2":{"35":1}}],["qualifiers",{"2":{"35":1}}],["qualify",{"2":{"15":1,"19":1,"21":1,"24":1}}],["queue",{"2":{"34":1}}],["questions",{"2":{"27":1}}],["question",{"2":{"27":1,"35":1}}],["quickly",{"2":{"34":1,"36":1}}],["quite",{"2":{"7":1,"8":1,"9":1,"10":1,"11":1,"14":1,"17":1,"21":1,"34":1,"38":2}}],["quoting",{"2":{"16":1}}],["quot",{"2":{"2":6,"4":2,"9":2,"11":8,"12":2,"13":4,"14":2,"15":6,"16":28,"17":18,"19":10,"20":4,"21":6,"22":2,"24":2,"33":2,"34":6,"35":8,"36":2,"41":2,"47":2}}],["kronos",{"0":{"60":1},"2":{"43":1}}],["knight",{"2":{"25":1}}],["known",{"2":{"47":1,"59":1}}],["knowledge",{"2":{"7":1,"11":1}}],["know",{"2":{"3":1,"8":1,"27":1,"35":1,"52":1}}],["kidding",{"2":{"20":1}}],["kitten",{"2":{"20":1}}],["kittens",{"2":{"9":1}}],["kind",{"2":{"16":2,"31":1}}],["kinds",{"2":{"12":1}}],["keeps",{"2":{"11":1}}],["keep",{"2":{"4":1,"11":1,"13":2,"16":2,"22":1,"30":1,"32":2}}],["keypairs",{"2":{"6":1}}],["key",{"2":{"2":2,"4":1,"5":3,"6":2}}],["keys",{"2":{"2":2}}],["x",{"2":{"2":1}}],["jumping",{"2":{"35":1}}],["judge",{"2":{"19":1}}],["justify",{"2":{"52":1}}],["justified",{"2":{"35":1}}],["justifiably",{"2":{"20":1}}],["justifications",{"2":{"35":1}}],["justification",{"2":{"17":1,"35":2}}],["just",{"2":{"2":1,"4":3,"7":1,"8":1,"10":3,"11":1,"16":3,"17":2,"18":1,"20":2,"21":4,"22":1,"24":1,"25":1,"30":1,"33":2,"34":3,"35":3,"36":2,"38":1}}],["journey",{"2":{"32":1}}],["journal",{"2":{"2":1}}],["job",{"2":{"14":3}}],["javascript",{"2":{"7":2}}],["gci",{"2":{"35":1}}],["guidance",{"2":{"31":1}}],["guiding",{"2":{"17":1}}],["guides",{"2":{"35":1}}],["guide",{"2":{"10":1,"16":2,"21":1,"23":1,"27":1,"28":4,"29":1,"35":2}}],["guy",{"2":{"14":1}}],["geocities",{"2":{"50":1}}],["gets",{"2":{"10":1,"21":1,"34":2,"35":1}}],["get",{"2":{"10":1,"11":2,"16":1,"17":1,"20":2,"23":1,"26":1,"30":2,"31":1,"32":1,"33":1,"35":4,"38":1,"42":1}}],["getting",{"2":{"8":1,"11":1,"14":2,"26":1,"31":1,"32":2,"34":1,"35":1,"42":1}}],["generic",{"2":{"35":2}}],["generate",{"2":{"6":1}}],["general",{"2":{"5":1,"8":1,"21":1,"38":1,"46":1}}],["genre",{"2":{"7":1,"9":1,"11":1,"14":1,"16":12,"17":4,"18":3,"19":4,"20":1,"21":1,"22":1,"25":4,"26":1,"28":1,"35":1}}],["genres",{"0":{"25":1,"26":1},"2":{"7":3,"11":1,"14":1,"15":1,"16":3,"17":1,"18":1,"19":2,"23":1,"25":1,"27":1,"35":1}}],["genuine",{"2":{"6":1}}],["glitch",{"2":{"8":1}}],["give",{"2":{"14":1,"35":3,"36":1}}],["given",{"2":{"3":1}}],["giving",{"2":{"14":1,"16":2,"34":1}}],["github",{"2":{"8":1,"48":1}}],["got",{"2":{"37":2,"39":1}}],["gotten",{"2":{"35":1}}],["gods",{"2":{"25":1}}],["goes",{"2":{"11":1,"33":1,"34":1,"56":1}}],["gone",{"2":{"11":1}}],["good",{"0":{"14":1},"2":{"11":2,"12":1,"14":8,"16":1,"18":1,"27":1,"31":1,"34":1,"35":1,"38":1,"39":1}}],["goals",{"2":{"33":2}}],["goal",{"2":{"11":1,"16":1,"23":2,"24":1}}],["going",{"0":{"10":1},"2":{"7":1,"10":2,"17":5,"21":1,"33":1,"35":4,"43":1,"46":1}}],["go",{"2":{"7":1,"16":1,"25":1,"33":1,"34":1,"35":2,"36":1}}],["graphics",{"2":{"52":2}}],["grasshopping",{"2":{"35":1}}],["grasshop",{"2":{"35":1}}],["grass",{"2":{"35":6}}],["grain",{"2":{"30":1}}],["granting",{"2":{"5":1}}],["groundhog",{"2":{"25":1}}],["group",{"2":{"4":1}}],["groups",{"2":{"4":1,"5":1}}],["grown",{"2":{"37":1}}],["grow",{"2":{"23":1}}],["growth",{"2":{"23":2,"25":1}}],["growing",{"2":{"20":1}}],["grinder",{"2":{"20":1}}],["green",{"2":{"45":2}}],["grey",{"2":{"15":1}}],["great",{"2":{"14":1,"16":1,"30":1}}],["g",{"2":{"2":1,"45":1}}],["garden",{"2":{"61":1}}],["gardens",{"2":{"0":1,"57":1}}],["gathering",{"2":{"35":1}}],["gain",{"2":{"12":1,"36":1}}],["gaining",{"2":{"10":1,"17":1}}],["gambling",{"2":{"11":2}}],["gameplay",{"2":{"11":2,"13":4,"14":1,"15":1,"16":1,"17":2,"21":2,"22":1,"33":1,"35":2}}],["gamers",{"2":{"9":1,"14":1,"15":1,"33":1}}],["gamedev",{"2":{"0":1,"7":1}}],["game",{"0":{"14":1,"55":1},"2":{"0":1,"7":1,"8":4,"9":2,"10":6,"11":10,"12":3,"13":2,"14":13,"15":4,"16":13,"17":2,"19":5,"20":2,"21":5,"22":9,"23":5,"24":3,"25":1,"27":3,"30":6,"31":4,"32":2,"33":2,"34":1,"35":10,"36":1,"37":2,"38":2,"40":1,"41":1,"42":5,"43":1,"55":1,"59":1,"60":1}}],["games",{"0":{"20":1,"43":1,"44":1,"52":1,"53":1},"2":{"0":1,"7":1,"8":5,"9":7,"10":5,"11":19,"12":5,"13":1,"14":7,"15":11,"16":43,"17":16,"18":3,"19":5,"20":5,"21":8,"22":1,"23":4,"24":1,"25":9,"26":3,"27":3,"30":1,"31":1,"33":5,"35":4,"36":1,"42":1,"52":3}}],["rsi",{"2":{"33":1}}],["rocket",{"2":{"35":2}}],["roblox",{"2":{"35":1}}],["route",{"2":{"35":1}}],["room",{"2":{"20":1,"21":1}}],["roguetemple",{"2":{"19":1}}],["rogue",{"2":{"18":1}}],["roguelite",{"2":{"24":1}}],["roguelites",{"0":{"18":1,"24":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"2":{"18":5}}],["roguelike",{"2":{"19":4}}],["roguelikeness",{"2":{"19":1}}],["roguelikes",{"2":{"10":2,"18":1,"19":2}}],["rpgs",{"2":{"17":6,"26":1}}],["ridge",{"2":{"45":1}}],["rise",{"2":{"14":1}}],["right",{"2":{"1":1,"34":1}}],["raising",{"2":{"52":1}}],["race",{"2":{"52":1}}],["rarely",{"2":{"22":1}}],["rarer",{"2":{"17":1}}],["rather",{"2":{"11":2,"19":1,"33":1,"38":1}}],["random",{"2":{"47":1}}],["ran",{"2":{"2":1}}],["r",{"2":{"8":1,"11":2,"16":1,"38":2}}],["rule",{"2":{"25":1}}],["rules",{"2":{"5":1,"6":1,"57":1}}],["ruined",{"2":{"14":1,"16":1}}],["running",{"2":{"58":1}}],["runs",{"2":{"10":1,"11":1}}],["run",{"2":{"1":1,"7":1}}],["red",{"2":{"45":2}}],["reddit",{"2":{"38":2}}],["reduce",{"2":{"21":1}}],["reduced",{"2":{"16":1,"22":2}}],["redundancy",{"2":{"6":1}}],["returning",{"2":{"42":1}}],["returns",{"2":{"34":1}}],["rethinking",{"2":{"1":1}}],["reveals",{"2":{"18":1}}],["revealing",{"2":{"16":1,"42":1}}],["reward",{"2":{"16":1,"34":1,"35":1}}],["rewards",{"2":{"16":2}}],["rewarding",{"2":{"11":1,"35":1}}],["referred",{"2":{"21":1}}],["refer",{"2":{"16":2,"21":1}}],["recent",{"2":{"35":1}}],["receive",{"2":{"30":1}}],["received",{"2":{"3":1,"32":2}}],["receiving",{"2":{"6":2,"31":1}}],["recognize",{"2":{"31":1}}],["recommended",{"0":{"51":1},"2":{"61":1}}],["recommend",{"2":{"14":1}}],["regard",{"2":{"35":1}}],["regardless",{"2":{"30":1,"39":1}}],["regen",{"2":{"14":1}}],["regularly",{"2":{"32":1}}],["regular",{"2":{"9":1}}],["rest",{"2":{"25":1,"40":1}}],["resume",{"2":{"23":1}}],["result",{"2":{"15":1}}],["resource",{"2":{"22":1,"23":1,"24":1,"35":1}}],["resources",{"2":{"11":1,"16":2,"17":1,"22":1,"37":1,"48":1}}],["resets",{"2":{"35":1}}],["resetting",{"2":{"35":1}}],["reset",{"2":{"18":1,"21":2,"35":7}}],["responsibility",{"2":{"37":1}}],["response",{"2":{"10":1,"16":1,"32":1}}],["responding",{"0":{"32":1}}],["respectively",{"2":{"34":1}}],["respect",{"2":{"5":1}}],["respected",{"2":{"4":1}}],["remember",{"2":{"32":1}}],["remind",{"2":{"32":1}}],["reminder",{"2":{"22":1}}],["reminded",{"2":{"11":1}}],["removing",{"2":{"5":1,"14":1}}],["reliant",{"2":{"23":1}}],["relying",{"2":{"37":1}}],["rely",{"2":{"14":1,"37":1}}],["relevant",{"2":{"10":1,"15":1,"35":1}}],["relation",{"2":{"17":1}}],["relates",{"2":{"17":1}}],["related",{"0":{"26":1},"2":{"7":1,"17":1,"25":2}}],["relaying",{"2":{"5":1,"6":1}}],["relays",{"2":{"2":1,"3":2,"4":1,"5":1}}],["relay",{"2":{"1":1,"3":2,"5":1,"6":2}}],["reiterate",{"2":{"10":1}}],["re",{"2":{"8":1,"11":3,"12":2,"14":1,"18":1,"21":1,"23":1,"30":2,"31":1,"33":2,"34":5,"35":5,"36":1,"42":1}}],["rendering",{"2":{"7":1}}],["repurcussions",{"2":{"22":1}}],["representation",{"2":{"22":2}}],["repetitive",{"2":{"13":1}}],["repeatable",{"0":{"34":1},"2":{"34":6}}],["repeat",{"2":{"11":1}}],["report",{"2":{"30":1}}],["reports",{"2":{"5":4}}],["reportedly",{"2":{"10":1}}],["reported",{"2":{"5":1}}],["replacing",{"2":{"10":1,"35":2}}],["replaced",{"2":{"19":1,"20":1,"23":1}}],["replace",{"2":{"4":1,"21":1}}],["replit",{"2":{"8":1}}],["replied",{"2":{"4":1}}],["replies",{"2":{"3":2,"4":1,"5":3}}],["replying",{"2":{"4":1,"5":1}}],["reply",{"2":{"4":1,"5":1}}],["requiring",{"2":{"16":1}}],["requirements",{"2":{"36":1,"55":1}}],["require",{"2":{"3":1,"7":1}}],["required",{"2":{"3":1,"23":1,"52":1}}],["requires",{"2":{"1":1,"16":1,"23":1}}],["request",{"2":{"5":1}}],["requests",{"2":{"5":1}}],["reasoning",{"2":{"22":1}}],["reason",{"2":{"17":1,"35":1}}],["reasonable",{"2":{"15":1}}],["reasons",{"2":{"11":1,"21":1,"32":1}}],["read",{"2":{"30":1}}],["reading",{"0":{"30":1},"2":{"33":1,"35":1}}],["readily",{"2":{"14":1}}],["readable",{"2":{"2":1}}],["realm",{"2":{"20":1}}],["really",{"2":{"11":1,"21":1,"35":2,"38":1,"39":1}}],["real",{"2":{"10":1,"11":1,"16":1,"45":1}}],["reacting",{"2":{"4":1}}],["reached",{"2":{"34":1}}],["reach",{"2":{"0":1,"2":1,"11":1,"12":1,"27":1,"35":2}}],["utilize",{"2":{"53":1}}],["ut",{"2":{"46":1}}],["ue",{"2":{"39":1}}],["ui",{"2":{"22":2}}],["umbrella",{"2":{"16":1,"17":1,"25":1}}],["ultimately",{"2":{"14":1,"16":2,"20":1,"30":1}}],["unmanageable",{"2":{"35":1}}],["until",{"2":{"34":1}}],["unhelpful",{"2":{"30":2}}],["unfortunate",{"2":{"35":1}}],["unfortunately",{"2":{"11":1,"40":1}}],["unfolding",{"2":{"21":1}}],["unrelated",{"2":{"18":1}}],["undressing",{"2":{"16":1}}],["understanding",{"2":{"33":1}}],["understand",{"2":{"16":1,"17":1,"31":1,"33":1,"34":1}}],["underlying",{"2":{"14":1}}],["under",{"2":{"12":1,"16":1,"17":2,"25":1,"37":1}}],["unit",{"2":{"46":1}}],["unity",{"2":{"46":1}}],["units",{"2":{"34":1}}],["universal",{"2":{"20":1,"21":1}}],["universally",{"2":{"16":1}}],["uniquely",{"2":{"7":1,"17":1}}],["unique",{"2":{"3":1,"37":1}}],["unknown",{"2":{"8":1}}],["unlocks",{"2":{"36":3}}],["unlocked",{"2":{"35":1}}],["unlock",{"2":{"23":1,"35":1,"36":1}}],["unlocking",{"2":{"10":1,"35":1}}],["unlike",{"2":{"7":1,"16":1,"35":1}}],["unlikely",{"2":{"6":2}}],["unless",{"2":{"5":1,"16":1}}],["upgrade",{"2":{"25":1,"34":1,"36":4}}],["upgrades",{"2":{"25":3,"35":6}}],["upon",{"2":{"15":1,"16":1,"30":1,"35":1}}],["ups",{"2":{"32":1}}],["upset",{"2":{"13":1}}],["upsides",{"2":{"1":1}}],["uploaded",{"2":{"8":1}}],["up",{"0":{"10":1},"2":{"7":1,"10":1,"14":1,"16":1,"17":5,"20":2,"21":2,"22":2,"33":2,"34":1,"35":1,"42":1,"46":1,"48":1}}],["updating",{"2":{"4":1,"46":1}}],["upvotes",{"2":{"4":1,"6":1}}],["url",{"2":{"4":1}}],["us",{"2":{"20":1,"32":1}}],["usually",{"2":{"18":1}}],["using",{"2":{"4":1,"7":1,"8":1,"14":1,"16":1,"17":1,"34":1}}],["uses",{"2":{"11":1,"16":1}}],["useful",{"2":{"3":1,"16":2,"30":1,"32":1,"34":1,"47":1}}],["used",{"2":{"2":1,"16":2,"17":2,"18":1,"19":2,"25":2,"30":1,"34":1,"36":1}}],["usenet",{"2":{"1":1}}],["username",{"2":{"2":1}}],["users",{"2":{"1":1,"3":1,"5":2,"12":1}}],["user",{"2":{"1":1,"6":1,"57":1}}],["use",{"2":{"0":1,"4":1,"7":2,"16":4,"17":1,"30":1,"34":1,"48":2,"50":1,"52":1}}],["usa",{"2":{"0":1}}],["ndi",{"2":{"45":1}}],["nih",{"2":{"45":1}}],["nicely",{"2":{"7":1}}],["n",{"2":{"36":2,"45":1}}],["numeric",{"2":{"23":1}}],["numerous",{"2":{"15":1}}],["numbers",{"0":{"10":1},"2":{"10":2,"14":1,"16":1,"17":7,"23":2,"34":1}}],["number",{"2":{"7":1,"10":1,"36":1}}],["ngu",{"0":{"17":1},"2":{"9":1,"20":1,"25":1}}],["national",{"2":{"45":1}}],["nature",{"2":{"9":2}}],["naturally",{"2":{"4":1,"10":1,"32":1}}],["navigating",{"2":{"29":1}}],["narrow",{"2":{"20":1}}],["narratively",{"2":{"42":2,"60":1}}],["narrative",{"2":{"15":2,"17":1,"35":2}}],["naked",{"2":{"16":1}}],["namely",{"2":{"46":1}}],["name",{"2":{"2":3}}],["nameserver",{"2":{"2":1}}],["names",{"2":{"2":1,"17":1,"56":1}}],["naming",{"2":{"2":8}}],["neocities",{"2":{"48":1,"50":1}}],["neutral",{"2":{"35":1}}],["nearly",{"2":{"35":1}}],["negative",{"2":{"30":1,"32":3}}],["never",{"2":{"22":1,"24":1,"30":3,"32":1,"34":1}}],["next",{"2":{"17":1,"21":1,"33":1,"34":1,"36":2}}],["neither",{"2":{"16":1}}],["nebulous",{"2":{"15":1}}],["necessarily",{"2":{"16":1,"33":1,"35":1}}],["necessary",{"2":{"2":1,"7":1}}],["necessity",{"2":{"15":1}}],["network",{"2":{"3":1,"4":2}}],["newly",{"2":{"21":1}}],["newer",{"2":{"20":1}}],["new",{"2":{"2":3,"3":1,"4":1,"6":2,"7":1,"8":3,"10":1,"18":1,"19":1,"23":1,"35":7,"36":1,"46":1}}],["needing",{"2":{"35":1}}],["need",{"2":{"1":1,"2":2,"3":1,"7":4,"17":1,"22":1,"30":2,"33":1,"34":2}}],["nomadic",{"2":{"50":1}}],["novel",{"2":{"45":1}}],["nor",{"2":{"27":1,"37":1}}],["norm",{"2":{"9":1}}],["normal",{"2":{"7":1,"34":2}}],["node",{"2":{"21":2}}],["now",{"2":{"7":1,"8":1,"20":2,"25":1,"35":3,"46":1,"59":1}}],["no",{"2":{"2":1,"3":2,"6":1,"7":1,"15":1,"17":1,"19":1,"23":2,"32":1,"33":1,"35":3,"36":1,"55":1}}],["nostr",{"2":{"1":1}}],["nonexistent",{"2":{"35":1}}],["none",{"2":{"23":1,"35":1}}],["non",{"0":{"44":1},"2":{"1":1,"9":1,"17":1,"22":1,"23":1,"33":1,"35":1,"47":1}}],["notable",{"2":{"25":4}}],["notably",{"2":{"17":1,"21":1}}],["nothing",{"2":{"15":1}}],["notice",{"2":{"14":1}}],["notes",{"2":{"56":1}}],["note",{"2":{"10":1,"12":1,"14":1,"19":1,"35":1}}],["not",{"2":{"1":2,"2":1,"6":2,"10":3,"11":4,"12":1,"14":4,"15":2,"16":8,"17":4,"18":1,"19":3,"21":1,"22":2,"23":1,"27":1,"30":4,"33":9,"34":4,"35":4,"37":3,"45":1,"52":1,"57":1}}],["errors",{"2":{"45":1}}],["ecs",{"2":{"44":1}}],["e3",{"2":{"38":1}}],["eyes",{"2":{"38":1}}],["egregious",{"2":{"34":1}}],["ethical",{"0":{"55":1}}],["eternity",{"2":{"34":2}}],["etc",{"2":{"3":1,"5":1,"6":1,"7":1,"10":1,"15":1,"27":1,"57":1}}],["episode",{"2":{"38":1}}],["ep",{"2":{"34":5}}],["equal",{"2":{"30":1}}],["education",{"2":{"27":1}}],["editions",{"2":{"42":1,"52":1}}],["edit",{"2":{"5":2}}],["edited",{"2":{"4":1}}],["edits",{"2":{"4":1,"5":1}}],["established",{"2":{"21":1}}],["essay",{"2":{"14":1}}],["essentially",{"2":{"3":1,"14":1,"35":1}}],["emails",{"2":{"57":1}}],["ema",{"2":{"46":1}}],["emotional",{"2":{"31":1}}],["emotionally",{"2":{"16":1,"30":1}}],["empathy",{"2":{"41":1}}],["empty",{"2":{"16":2}}],["emphasizes",{"2":{"10":1}}],["elements",{"2":{"22":1}}],["else",{"2":{"16":1,"17":1}}],["elicited",{"2":{"15":1}}],["evidence",{"2":{"16":1}}],["evolutions",{"2":{"12":1}}],["ever",{"2":{"6":1,"16":2,"17":1}}],["everyone",{"2":{"30":1,"35":1,"42":1}}],["everything",{"2":{"9":1,"35":1}}],["every",{"2":{"1":1,"6":1,"11":2,"21":3,"30":1,"33":1,"34":2}}],["event",{"2":{"37":1}}],["eventually",{"2":{"16":1,"34":1,"35":1}}],["even",{"2":{"3":1,"5":1,"6":1,"7":1,"9":1,"11":3,"14":1,"15":3,"16":3,"18":1,"30":1,"35":2,"50":1}}],["either",{"2":{"11":1,"23":1,"27":1,"33":1,"35":1}}],["effortless",{"2":{"11":1}}],["effortlessness",{"0":{"11":1}}],["effects",{"2":{"14":1,"33":1,"35":5,"36":2}}],["effect",{"2":{"10":1,"35":2}}],["effectively",{"2":{"4":2,"5":1,"14":2,"34":1,"35":1,"36":1}}],["earn",{"2":{"25":1,"52":1}}],["earned",{"2":{"10":1}}],["early",{"2":{"20":1,"34":1}}],["earlier",{"2":{"11":1,"14":1,"18":1,"22":1,"23":1,"42":1}}],["easily",{"2":{"14":1,"20":1,"21":1,"46":1,"50":1}}],["easier",{"2":{"12":3,"16":1,"35":1}}],["ease",{"2":{"11":1,"15":1}}],["easy",{"0":{"7":1,"8":1},"2":{"7":1,"8":1,"11":2,"17":1,"35":1,"50":1}}],["each",{"2":{"4":1,"8":1,"21":3,"22":1,"33":2,"34":3,"35":1,"48":1,"61":1}}],["excited",{"2":{"42":1}}],["exclusive",{"2":{"22":1}}],["exception",{"2":{"43":1}}],["exceptions",{"2":{"9":1}}],["except",{"2":{"35":1}}],["excess",{"2":{"15":1}}],["exhibit",{"2":{"21":1}}],["extreme",{"2":{"15":1,"33":1}}],["extremely",{"2":{"14":1}}],["extrinsic",{"2":{"11":1,"23":1}}],["extensive",{"2":{"50":1}}],["extension",{"2":{"5":1}}],["extent",{"2":{"11":2}}],["exaggerated",{"2":{"17":2}}],["exaggerating",{"2":{"10":1}}],["example",{"2":{"14":3,"21":1,"33":1,"34":1,"35":1,"36":1}}],["examples",{"2":{"14":2,"21":2,"25":4}}],["exacerbate",{"2":{"11":1,"16":1}}],["expansions",{"2":{"55":1}}],["expanding",{"2":{"17":1}}],["exposure",{"0":{"42":1}}],["exponentially",{"2":{"34":1}}],["expression",{"2":{"15":1}}],["expensive",{"2":{"50":1,"52":1}}],["experiencing",{"2":{"30":1}}],["experiences",{"2":{"14":1}}],["experience",{"2":{"11":2,"14":4,"16":3,"31":1,"33":1,"42":1}}],["expecting",{"2":{"11":1,"24":1}}],["expected",{"2":{"9":1}}],["expect",{"2":{"8":1,"10":1,"11":1,"35":1}}],["expectations",{"2":{"7":1}}],["explicitly",{"2":{"19":1,"47":1}}],["explains",{"2":{"32":1}}],["explained",{"2":{"9":1}}],["explanation",{"2":{"18":1}}],["exploring",{"2":{"10":1,"15":1}}],["exploiting",{"2":{"9":1}}],["existing",{"2":{"1":1,"3":1,"21":1}}],["enough",{"2":{"19":1,"24":2,"34":1,"35":1}}],["endings",{"2":{"37":1,"42":1}}],["ending",{"0":{"37":1},"2":{"37":3,"38":1}}],["end",{"2":{"17":1,"19":1,"33":1,"37":2,"48":1}}],["ended",{"2":{"14":1}}],["ensuring",{"2":{"14":1}}],["encourage",{"2":{"15":1}}],["encourages",{"2":{"14":1}}],["encouraging",{"2":{"14":2}}],["english",{"2":{"26":1,"45":1}}],["engage",{"2":{"33":2}}],["engaged",{"2":{"13":1}}],["engaging",{"2":{"15":1,"33":1,"34":1,"35":1}}],["engine",{"2":{"7":1,"47":1}}],["engineer",{"2":{"0":1}}],["enemies",{"2":{"12":1}}],["enjoyed",{"2":{"38":2,"39":1}}],["enjoying",{"2":{"11":1}}],["enjoyable",{"2":{"10":2,"14":1,"35":1}}],["enjoy",{"2":{"10":1,"11":1,"14":1,"31":1}}],["entertain",{"2":{"21":1}}],["entry",{"2":{"8":1,"11":1}}],["entities",{"2":{"22":1}}],["entity",{"2":{"3":1,"34":1}}],["entire",{"2":{"11":1,"15":1,"34":1,"37":1,"38":1}}],["entirely",{"2":{"4":1}}],["e",{"2":{"2":1,"45":1}}],["hyped",{"2":{"39":1}}],["hyper",{"2":{"9":1}}],["hyping",{"2":{"21":1}}],["https",{"2":{"19":1,"38":2}}],["html",{"2":{"7":1}}],["her",{"2":{"37":5}}],["heroes",{"2":{"20":1}}],["here",{"2":{"10":1,"16":1,"18":1,"19":2,"20":2,"21":1,"33":1,"34":1,"36":1,"38":1,"43":1,"45":1,"61":1}}],["hence",{"2":{"16":1}}],["head",{"2":{"33":1,"45":1}}],["heavily",{"2":{"23":1}}],["heavy",{"2":{"11":1}}],["health",{"2":{"14":3,"45":1}}],["healthy",{"2":{"11":1,"16":1}}],["hears",{"2":{"3":1}}],["helpful",{"2":{"31":1}}],["helps",{"2":{"13":1,"14":1}}],["help",{"2":{"8":1,"11":1,"16":1,"48":1}}],["hello",{"0":{"61":1}}],["hell",{"2":{"7":1,"15":1,"16":1}}],["heuristic",{"2":{"5":1,"6":1}}],["highlighting",{"2":{"34":1}}],["highly",{"2":{"14":1}}],["high",{"0":{"22":1},"2":{"22":1}}],["highest",{"2":{"21":1}}],["higher",{"2":{"11":1,"20":1,"25":1,"34":1,"52":2}}],["hitting",{"2":{"45":1}}],["hit",{"2":{"14":1,"33":1,"45":2}}],["hide",{"2":{"14":2,"16":1}}],["hiding",{"2":{"5":1}}],["hierarchy",{"2":{"5":2}}],["history",{"2":{"4":1}}],["huge",{"2":{"37":1}}],["hurtful",{"2":{"30":1}}],["hunger",{"2":{"16":1}}],["hub",{"2":{"2":5}}],["hubs",{"2":{"2":3}}],["human",{"2":{"2":1}}],["homogenized",{"2":{"48":1}}],["hope",{"2":{"42":1}}],["horrible",{"2":{"42":1}}],["honest",{"2":{"24":1}}],["honestly",{"2":{"18":1,"35":1}}],["hobbyist",{"2":{"9":1}}],["house",{"2":{"2":1}}],["hosting",{"2":{"1":1,"48":1,"50":3}}],["however",{"2":{"9":1,"10":1,"14":1,"15":2,"16":1,"32":1,"34":1,"35":1,"36":1}}],["how",{"2":{"1":1,"2":3,"3":1,"4":1,"5":1,"12":1,"14":1,"16":4,"17":2,"19":1,"21":2,"31":1,"32":2,"34":3,"35":1,"36":1,"50":1}}],["haley",{"2":{"40":2}}],["half",{"2":{"38":1}}],["happy",{"2":{"35":1}}],["happen",{"2":{"21":1,"23":1,"35":1}}],["happens",{"2":{"16":1,"34":1,"35":1}}],["had",{"2":{"34":1,"41":1}}],["hades",{"2":{"20":1}}],["harsh",{"2":{"34":1}}],["hardly",{"2":{"16":1}}],["harder",{"2":{"12":1}}],["hard",{"2":{"6":2,"11":2,"21":1,"35":1,"54":1}}],["handful",{"2":{"19":2}}],["hand",{"2":{"16":2}}],["handled",{"2":{"4":1}}],["handle",{"2":{"1":1,"2":1,"12":1}}],["has",{"2":{"2":1,"6":1,"8":1,"9":2,"10":2,"14":3,"15":3,"16":1,"19":2,"23":2,"33":1,"34":1,"35":2,"36":1,"37":1,"41":1,"45":1,"50":1,"51":1}}],["having",{"2":{"1":1,"2":1,"8":1,"10":1,"14":3,"15":2,"17":1,"18":1,"22":1,"23":1,"24":1,"25":3,"36":1,"37":2}}],["haven",{"2":{"7":1,"27":1,"40":1,"41":1}}],["have",{"2":{"0":1,"1":1,"2":2,"3":1,"5":2,"6":2,"7":3,"8":1,"9":1,"10":2,"11":4,"12":2,"13":1,"14":4,"15":4,"17":3,"18":1,"19":1,"20":1,"21":3,"22":4,"23":2,"25":1,"27":4,"31":1,"32":1,"33":3,"34":3,"35":4,"36":4,"38":1,"43":2}}],["vulintus",{"2":{"45":1}}],["v",{"2":{"44":1}}],["voice",{"2":{"34":1}}],["vouch",{"2":{"2":1}}],["vs",{"0":{"16":2},"2":{"15":1,"17":1}}],["valid",{"2":{"33":1}}],["value",{"0":{"22":1,"23":1},"2":{"15":1,"16":2,"21":1,"22":1,"23":2,"42":1}}],["vague",{"2":{"17":1,"30":1}}],["variant",{"2":{"24":1}}],["variation",{"2":{"24":1}}],["various",{"2":{"13":1,"15":1,"33":1,"35":1,"48":1,"56":2}}],["variety",{"2":{"0":1,"20":1}}],["vampire",{"2":{"10":2,"11":1,"12":3,"15":3}}],["version",{"2":{"46":1}}],["versions",{"2":{"16":1}}],["versus",{"2":{"17":2}}],["very",{"2":{"8":1,"9":1,"10":1,"15":1,"16":2,"19":1,"22":1,"35":1,"37":1,"42":1,"60":1}}],["verifies",{"2":{"2":1,"4":1}}],["verify",{"2":{"2":2}}],["ve",{"2":{"2":1,"8":1,"9":1,"10":1,"12":1,"20":1,"22":1,"27":1,"31":2,"32":2,"34":3,"35":1,"39":1,"40":1,"56":2}}],["virtual",{"2":{"45":1}}],["virtue",{"2":{"1":1}}],["vision",{"2":{"32":1}}],["visual",{"2":{"22":2}}],["vital",{"2":{"30":1}}],["videos",{"0":{"51":1},"2":{"16":1}}],["video",{"2":{"4":1,"11":2,"14":1,"15":2,"16":2,"42":1,"45":2}}],["viable",{"2":{"7":1,"18":1}}],["via",{"2":{"2":1,"16":1}}],["viewed",{"2":{"1":1,"45":1}}],["citadel",{"2":{"43":1}}],["circumstances",{"2":{"35":1}}],["cycle",{"2":{"11":1,"35":1}}],["cardboardempress",{"2":{"58":1}}],["carstens",{"2":{"46":1}}],["care",{"2":{"17":1}}],["capture",{"2":{"43":1}}],["captain",{"0":{"39":1}}],["capitalist",{"2":{"16":2}}],["capitalism",{"2":{"15":1,"16":3}}],["causing",{"2":{"33":1}}],["cause",{"2":{"10":1}}],["category",{"2":{"25":1}}],["cavernous",{"2":{"25":1}}],["casino",{"2":{"16":1}}],["case",{"2":{"10":1,"16":1,"35":1}}],["called",{"2":{"32":1,"43":1}}],["calling",{"2":{"16":2}}],["call",{"2":{"14":1}}],["canon",{"0":{"20":1},"2":{"19":4,"20":2,"21":2,"22":1}}],["cannot",{"2":{"5":1,"6":1,"21":1}}],["can",{"2":{"1":1,"2":9,"3":2,"4":1,"5":9,"6":1,"7":4,"8":3,"9":1,"10":2,"11":3,"12":1,"13":1,"14":2,"15":5,"16":4,"18":2,"19":5,"21":2,"23":2,"24":1,"25":1,"30":1,"31":2,"32":2,"33":1,"34":4,"35":2,"36":2,"43":1,"45":1,"46":1,"48":1,"50":1}}],["celebrate",{"2":{"32":1}}],["center",{"2":{"26":1}}],["centers",{"2":{"8":1}}],["certain",{"2":{"11":1,"16":1,"23":1,"31":2,"35":1}}],["certainly",{"2":{"9":1,"10":1,"16":3,"17":2,"24":1,"27":1,"39":1}}],["cleaning",{"2":{"46":1}}],["clearly",{"2":{"37":1}}],["clearing",{"2":{"25":1}}],["clear",{"2":{"8":1,"11":1,"14":2,"16":1}}],["closely",{"2":{"61":1}}],["close",{"2":{"41":1}}],["closer",{"2":{"22":1}}],["classifying",{"2":{"27":1}}],["classic",{"2":{"16":1,"34":1}}],["clarify",{"2":{"9":1,"34":1}}],["clicks",{"2":{"33":1}}],["clickers",{"0":{"16":1}}],["clicker",{"2":{"12":1,"15":1,"16":6,"20":1,"34":1}}],["clicking",{"2":{"11":1,"33":1,"35":1}}],["click",{"2":{"11":1,"16":2,"33":3}}],["clients",{"2":{"2":1,"3":1,"4":1,"5":3,"6":3}}],["client",{"2":{"1":1,"6":4}}],["chromatic",{"0":{"59":1}}],["cheap",{"2":{"50":1}}],["check",{"2":{"33":1,"51":1}}],["china",{"2":{"26":1}}],["choosing",{"2":{"34":1}}],["choose",{"2":{"5":3,"7":1}}],["chores",{"2":{"35":1}}],["chore",{"2":{"34":1,"35":1}}],["chose",{"2":{"15":1,"20":1}}],["character",{"2":{"37":1}}],["characters",{"2":{"10":1,"15":1,"26":1,"38":1}}],["chapters",{"2":{"38":1}}],["chapter",{"2":{"37":1,"40":1}}],["change",{"2":{"13":1,"33":1,"35":1}}],["changes",{"2":{"13":1,"21":1,"45":2,"46":1}}],["channels",{"2":{"8":1}}],["challenges",{"2":{"35":1}}],["challenge",{"2":{"10":1}}],["chain",{"2":{"2":1}}],["crystallizes",{"2":{"35":1}}],["crystallize",{"2":{"35":1}}],["crypto",{"2":{"1":1}}],["credentials",{"2":{"27":1}}],["creating",{"2":{"50":1}}],["creative",{"2":{"50":1}}],["creator",{"2":{"4":2,"15":2}}],["created",{"2":{"3":1,"15":1}}],["create",{"2":{"2":2,"36":1}}],["crank",{"2":{"20":1}}],["critique",{"2":{"16":1}}],["criticizing",{"2":{"16":1,"34":1,"35":1}}],["criticized",{"2":{"9":2,"11":1}}],["criticisms",{"2":{"35":1,"38":1}}],["criticism",{"2":{"9":1,"10":1,"16":1,"29":1,"30":2}}],["cultivation",{"2":{"26":1}}],["culture",{"2":{"1":1,"9":3}}],["customers",{"2":{"16":1}}],["customize",{"2":{"5":1}}],["cutting",{"2":{"35":6}}],["cut",{"2":{"14":1}}],["current",{"2":{"49":1,"52":1}}],["currently",{"2":{"1":1}}],["currency",{"2":{"10":2,"25":1,"35":2,"36":3}}],["color",{"2":{"45":2}}],["colors",{"0":{"41":1}}],["collecting",{"2":{"31":1,"35":1,"61":1}}],["costs",{"2":{"36":1}}],["cost",{"2":{"34":1,"36":1,"52":2}}],["cool",{"2":{"32":1}}],["cookie",{"2":{"12":1,"15":1,"16":1,"34":1}}],["cod",{"2":{"14":1}}],["codeberg",{"2":{"48":1}}],["code",{"2":{"7":2}}],["cover",{"2":{"14":2}}],["copied",{"2":{"8":1}}],["cough",{"2":{"42":1}}],["couple",{"2":{"27":1,"34":1,"35":1}}],["counter",{"2":{"33":1}}],["count",{"2":{"33":1}}],["counts",{"2":{"16":1}}],["countless",{"2":{"7":1}}],["course",{"2":{"11":1,"14":1,"16":1}}],["could",{"2":{"2":1,"3":1,"4":1,"6":2,"12":1,"15":1,"17":1,"18":1,"20":2,"21":2,"24":1,"33":2,"34":1,"57":1}}],["correlated",{"2":{"23":1}}],["correct",{"2":{"5":1}}],["core",{"2":{"16":2,"25":3,"35":5}}],["corporations",{"2":{"1":1}}],["comic",{"2":{"39":1}}],["coming",{"2":{"16":1,"18":1}}],["com",{"2":{"19":1,"38":2}}],["comfortably",{"2":{"14":1}}],["come",{"2":{"11":1,"18":1,"23":1,"30":1,"42":1}}],["comes",{"2":{"10":1,"16":1,"35":1}}],["combat",{"2":{"10":2,"17":2}}],["commercial",{"2":{"47":1}}],["comments",{"2":{"30":3,"31":1,"32":1,"38":2}}],["commentary",{"2":{"16":1}}],["comment",{"2":{"15":1,"16":2,"30":1}}],["commenting",{"2":{"11":1,"15":1,"16":1}}],["commonly",{"2":{"25":1}}],["common",{"2":{"10":1,"16":1,"17":1,"21":3,"34":1}}],["communal",{"2":{"57":1}}],["communities",{"2":{"3":1,"4":1,"8":2,"31":2}}],["community",{"2":{"1":1,"4":2,"8":2,"9":4,"18":1,"30":1}}],["communication",{"2":{"2":1}}],["commune",{"0":{"57":1},"2":{"1":1,"57":1}}],["complicatedness",{"2":{"35":1}}],["complicated",{"2":{"35":2,"50":1}}],["complexity",{"2":{"21":1}}],["complex",{"2":{"17":1}}],["completed",{"2":{"35":1}}],["complete",{"2":{"10":1,"25":1,"35":1}}],["completely",{"2":{"8":1,"9":1}}],["compromise",{"2":{"34":1}}],["compromised",{"2":{"2":1}}],["compulsively",{"2":{"16":1}}],["computer",{"2":{"7":1}}],["competition",{"2":{"54":1}}],["competitive",{"2":{"11":2}}],["compelled",{"2":{"30":1}}],["compelling",{"2":{"11":1}}],["compels",{"2":{"10":1}}],["compare",{"2":{"24":1}}],["compared",{"2":{"7":1,"10":1,"13":1}}],["comparatively",{"2":{"10":1}}],["comparing",{"2":{"10":1}}],["connect",{"2":{"48":1}}],["conducted",{"2":{"45":1}}],["condensed",{"2":{"38":1}}],["conditions",{"2":{"12":1}}],["conditioned",{"2":{"11":1}}],["condition",{"2":{"11":1,"16":1,"33":1}}],["conform",{"2":{"35":1}}],["conclusion",{"2":{"37":2}}],["conclude",{"2":{"24":1}}],["concept",{"2":{"15":1,"32":1}}],["concepts",{"2":{"15":1}}],["congruent",{"2":{"20":1}}],["congress",{"2":{"2":1}}],["consolidated",{"2":{"49":1}}],["consonant",{"2":{"45":2}}],["consistently",{"2":{"48":1}}],["consider",{"2":{"18":1,"31":1}}],["considered",{"2":{"9":1,"12":1,"16":1,"17":2,"19":1,"24":2,"33":1}}],["consumer",{"2":{"42":1}}],["consumed",{"2":{"15":1}}],["consuming",{"2":{"35":1}}],["constitutes",{"2":{"33":1}}],["constructive",{"2":{"30":3,"31":1}}],["constrained",{"2":{"20":1}}],["constantly",{"2":{"34":1}}],["constant",{"2":{"13":1}}],["consecutive",{"2":{"33":1}}],["consequence",{"2":{"22":1}}],["consequences",{"2":{"17":1,"22":1,"37":2}}],["consensus",{"2":{"15":1,"18":1}}],["conservatively",{"2":{"14":1}}],["conversation",{"2":{"14":1}}],["conversations",{"2":{"2":1}}],["convey",{"2":{"4":1}}],["control",{"2":{"22":1}}],["controversial",{"2":{"20":1,"33":2,"35":1}}],["contrast",{"2":{"14":2,"37":1}}],["contributing",{"2":{"1":1,"57":1}}],["continually",{"2":{"30":1}}],["continues",{"2":{"35":1}}],["continue",{"2":{"11":1,"15":1,"16":1,"35":1}}],["continuing",{"2":{"11":1}}],["contextualize",{"2":{"35":1}}],["contextual",{"2":{"17":1}}],["contexts",{"2":{"11":1,"16":1}}],["context",{"2":{"10":1,"15":3,"16":1}}],["content",{"0":{"4":1},"2":{"1":1,"3":1,"4":4,"5":2,"10":1,"11":1,"21":1,"28":1,"33":6,"34":7,"35":13,"36":2,"47":1,"55":1}}],["contain",{"2":{"16":1}}],["contains",{"2":{"4":1,"21":1,"48":1}}],["contact",{"2":{"2":2}}],["contacts",{"2":{"2":5}}],["switching",{"2":{"39":1}}],["swarm",{"2":{"25":1,"34":1}}],["small",{"0":{"47":1,"50":1,"51":1},"2":{"21":1,"32":1,"36":1,"47":2,"48":1,"56":1}}],["smart",{"2":{"12":1}}],["slightly",{"2":{"33":1}}],["slight",{"2":{"21":1}}],["slowly",{"2":{"14":1}}],["sleep",{"2":{"11":1,"16":1}}],["slay",{"2":{"11":1}}],["skip",{"2":{"40":1}}],["skinner",{"2":{"11":2,"16":4}}],["skill",{"2":{"10":3,"21":3,"30":1}}],["skilling",{"2":{"9":1}}],["skills",{"2":{"7":1,"16":2}}],["synergism",{"2":{"20":1}}],["synergies",{"2":{"10":1,"12":1}}],["systems",{"2":{"10":1,"11":1,"46":1}}],["system",{"2":{"4":1,"10":2,"45":1,"50":1}}],["sphere",{"2":{"45":3}}],["spoilers",{"2":{"42":1}}],["spirit",{"0":{"39":1}}],["spire",{"2":{"11":1}}],["space",{"2":{"35":1}}],["span",{"2":{"16":1}}],["spawn",{"2":{"12":1}}],["spamming",{"2":{"16":2}}],["spam",{"2":{"6":2,"33":1}}],["speech",{"2":{"44":1,"45":1,"46":1}}],["speed",{"2":{"11":2}}],["spent",{"2":{"33":2,"37":1}}],["spend",{"2":{"16":1}}],["spends",{"2":{"14":1}}],["spending",{"2":{"10":1}}],["spectrum",{"2":{"16":1,"33":1,"35":2}}],["specially",{"2":{"4":1,"5":2}}],["specifically",{"2":{"11":1,"12":1,"14":1,"15":1}}],["specific",{"2":{"3":2,"6":1,"8":1,"19":1,"21":1,"30":3,"31":1,"34":1,"35":1,"36":1}}],["sprites",{"2":{"7":1}}],["shift",{"0":{"21":1},"2":{"21":6,"24":1}}],["shifts",{"2":{"13":1,"21":5}}],["shields",{"2":{"14":3}}],["share",{"2":{"31":1,"32":1}}],["sharing",{"2":{"30":1}}],["sharp",{"2":{"14":1}}],["shake",{"2":{"21":1}}],["shallow",{"2":{"3":1}}],["shoes",{"2":{"31":1}}],["shooters",{"2":{"14":1}}],["shows",{"2":{"19":1,"37":1,"45":2}}],["show",{"2":{"14":1,"21":1}}],["shown",{"2":{"8":1}}],["short",{"2":{"10":1,"33":1,"34":1}}],["shouldn",{"2":{"17":1,"18":1,"20":1}}],["should",{"2":{"1":1,"4":3,"16":1,"17":1,"19":2,"20":1,"21":1,"30":3,"33":3,"36":1,"51":1}}],["screen",{"2":{"16":1}}],["sculpture",{"2":{"15":1}}],["schedule",{"2":{"11":1,"16":1}}],["school",{"2":{"3":1}}],["scene",{"2":{"11":1,"38":1}}],["scientific",{"2":{"2":1}}],["salt",{"2":{"30":1}}],["save",{"2":{"22":1}}],["satisfy",{"2":{"30":1}}],["satisfying",{"2":{"10":2}}],["satisfactory",{"2":{"17":1}}],["satire",{"2":{"16":1}}],["sake",{"2":{"15":1,"17":1}}],["safely",{"2":{"33":1}}],["safe",{"2":{"14":1,"17":1}}],["said",{"2":{"9":1,"30":1,"33":1,"36":1}}],["say",{"2":{"2":2,"11":1,"14":1,"17":1,"21":1,"24":1,"30":1,"33":3,"34":1,"36":1,"42":1}}],["saying",{"2":{"2":2}}],["same",{"2":{"2":2,"4":1,"12":1,"16":1,"34":2,"35":3,"36":1}}],["suggest",{"2":{"36":1,"61":1}}],["suggestions",{"2":{"30":2}}],["supports",{"2":{"50":1}}],["support",{"2":{"17":1,"31":2,"45":1,"46":2}}],["superlinear",{"2":{"23":1}}],["supersedes",{"2":{"15":1}}],["supercede",{"2":{"2":1}}],["subject",{"2":{"45":1}}],["subjective",{"2":{"35":1}}],["sub",{"0":{"25":1},"2":{"17":4,"25":5}}],["subset",{"2":{"12":1}}],["subscriptions",{"2":{"3":1}}],["subscribe",{"2":{"3":2,"6":2}}],["subscribed",{"2":{"3":1}}],["subscribing",{"2":{"3":2,"4":2,"6":1}}],["sure",{"2":{"20":1,"36":1}}],["surface",{"2":{"16":1}}],["survivors",{"2":{"10":2,"11":1,"12":3,"15":3}}],["sustainable",{"2":{"54":1}}],["suspect",{"2":{"10":2}}],["susceptibility",{"2":{"9":1}}],["successes",{"2":{"32":1}}],["successful",{"2":{"12":1}}],["success",{"2":{"8":1,"30":1}}],["such",{"2":{"5":2,"6":2,"16":1,"17":3,"19":1,"23":1,"25":1,"35":1,"37":1}}],["suffice",{"2":{"14":1}}],["suffices",{"2":{"3":1}}],["sufficiently",{"2":{"12":1,"20":1,"35":3}}],["sufficient",{"2":{"2":1,"10":1}}],["suffers",{"2":{"1":1}}],["s",{"2":{"2":1,"3":1,"4":2,"6":1,"7":1,"9":1,"10":2,"11":4,"14":4,"15":3,"16":7,"17":2,"18":2,"19":1,"20":2,"21":4,"24":1,"27":1,"30":4,"31":1,"32":4,"33":3,"34":3,"35":8,"37":2,"42":2,"45":1,"59":2}}],["side",{"2":{"34":1}}],["sides",{"2":{"11":1,"17":1}}],["sim",{"2":{"34":1}}],["simply",{"2":{"17":1,"22":1,"35":1,"36":1}}],["simulator",{"2":{"15":1,"25":1}}],["similarities",{"2":{"17":1}}],["similarity",{"2":{"11":1}}],["similarly",{"2":{"15":1,"16":1,"35":1}}],["similar",{"2":{"9":1,"17":1,"18":1,"34":1}}],["since",{"2":{"11":1,"19":1,"31":1,"34":1,"42":1}}],["single",{"2":{"1":1,"15":1,"21":3,"33":1,"60":1}}],["sitting",{"2":{"11":1}}],["sites",{"2":{"48":1}}],["site",{"2":{"2":1,"27":1,"48":1,"58":1}}],["signal",{"2":{"23":1}}],["signature",{"2":{"4":2,"5":1,"56":1}}],["significantly",{"2":{"21":1}}],["significant",{"2":{"11":1,"18":1}}],["signed",{"2":{"2":1}}],["search",{"2":{"47":1}}],["second",{"2":{"33":1,"35":1}}],["section",{"2":{"14":1}}],["series",{"2":{"25":1,"34":1,"37":1,"39":1,"49":1}}],["serving",{"2":{"4":1}}],["serve",{"2":{"16":1}}],["serves",{"2":{"4":1,"45":1}}],["servers",{"0":{"3":1},"2":{"3":4,"4":2,"6":5,"50":1}}],["server",{"2":{"1":3,"2":1,"3":2,"5":1,"6":2,"48":1}}],["selected",{"2":{"21":1}}],["self",{"2":{"1":1}}],["set",{"2":{"19":1,"31":1}}],["setting",{"2":{"15":1}}],["setup",{"2":{"5":1}}],["separates",{"2":{"35":1}}],["separate",{"2":{"12":1}}],["seemed",{"2":{"39":1}}],["seem",{"2":{"16":1,"32":1,"33":1,"41":1}}],["seems",{"2":{"15":1,"18":1,"41":1}}],["seeking",{"0":{"31":1},"2":{"16":2}}],["seek",{"2":{"11":2,"16":1,"35":2}}],["seen",{"2":{"11":1,"22":1,"35":1}}],["seeing",{"2":{"10":2}}],["see",{"2":{"9":1,"11":3,"15":1,"16":2,"21":1}}],["several",{"2":{"6":1,"16":1,"22":1,"23":1,"35":1,"43":1}}],["sensors",{"2":{"45":1}}],["sense",{"2":{"10":1,"11":2,"12":2,"16":1,"17":2,"18":1,"21":2,"35":2,"36":1}}],["sends",{"2":{"6":1}}],["sending",{"2":{"3":2,"5":1,"6":1}}],["send",{"2":{"2":1,"3":1,"4":1,"5":2}}],["sent",{"2":{"2":1}}],["steel",{"2":{"35":1}}],["steelie",{"2":{"35":1}}],["steps",{"2":{"21":1}}],["step",{"2":{"18":1,"34":1}}],["style",{"2":{"35":1,"61":1}}],["stick",{"2":{"32":1}}],["stimuli",{"2":{"16":1}}],["still",{"2":{"1":2,"2":1,"9":1,"10":1,"12":1,"15":1,"16":1,"17":1,"22":1,"33":2,"35":1,"38":1}}],["strange",{"0":{"38":1,"40":1,"41":1,"42":1},"2":{"37":1}}],["strategies",{"2":{"12":1,"16":1,"17":1}}],["strategy",{"0":{"12":1},"2":{"12":4,"17":8,"19":2}}],["struggles",{"2":{"31":1}}],["struggling",{"2":{"11":1}}],["stretch",{"2":{"24":1}}],["stretching",{"2":{"11":1}}],["stronger",{"2":{"23":1,"25":1,"26":1,"35":1}}],["strong",{"2":{"18":1,"22":1}}],["strongly",{"2":{"14":1,"23":1}}],["strictly",{"2":{"16":1}}],["studios",{"2":{"52":1}}],["studying",{"2":{"11":1}}],["stuff",{"2":{"14":1}}],["stuck",{"2":{"9":1,"25":1}}],["stability",{"2":{"46":1}}],["staple",{"2":{"35":1}}],["stale",{"2":{"21":1,"34":1}}],["staleness",{"0":{"13":1}}],["staying",{"2":{"32":1}}],["stay",{"2":{"20":1}}],["stance",{"2":{"16":2,"34":1}}],["standards",{"2":{"48":1}}],["stands",{"2":{"15":1}}],["stand",{"2":{"10":1}}],["stagnating",{"2":{"13":1}}],["starcraft",{"2":{"12":1}}],["starting",{"2":{"61":1}}],["started",{"2":{"10":1}}],["start",{"2":{"7":1,"10":1,"14":1,"16":2,"20":1,"34":1,"35":2}}],["stat",{"2":{"21":1}}],["stating",{"2":{"19":1}}],["static",{"2":{"13":1,"34":1,"48":1,"50":3}}],["states",{"2":{"22":1}}],["statement",{"2":{"21":1}}],["state",{"2":{"11":1,"16":1,"18":1,"22":1,"32":1}}],["stats",{"2":{"10":1}}],["stopgaming",{"2":{"11":1,"16":1}}],["stop",{"2":{"5":1}}],["stolen",{"2":{"2":1}}],["storm",{"0":{"38":1}}],["story",{"2":{"15":1,"37":1,"38":1,"42":2}}],["storefronts",{"2":{"9":1}}],["store",{"2":{"2":2}}],["storing",{"2":{"1":1,"3":1}}],["sort",{"2":{"23":1,"25":1,"50":1}}],["sorting",{"2":{"16":1}}],["soul",{"2":{"51":1}}],["souls",{"2":{"14":2}}],["sound",{"2":{"45":1}}],["sounds",{"2":{"17":1,"42":1,"45":1}}],["source",{"2":{"2":1,"16":1}}],["sole",{"2":{"46":1}}],["solely",{"2":{"15":1,"30":1,"33":1}}],["solving",{"2":{"22":1}}],["solved",{"2":{"14":1}}],["solve",{"0":{"6":1}}],["solution",{"2":{"12":1,"30":2}}],["somewhat",{"2":{"15":1}}],["somewhere",{"2":{"12":1}}],["something",{"2":{"6":1,"11":3,"16":2,"23":1,"33":2,"36":1}}],["someone",{"2":{"5":1,"10":1,"11":1,"16":1,"21":1}}],["some",{"2":{"3":2,"4":2,"9":1,"10":1,"11":3,"14":1,"15":1,"16":2,"17":3,"20":1,"21":3,"23":2,"24":1,"25":2,"27":1,"33":1,"35":7,"36":1,"50":1}}],["so",{"2":{"2":1,"7":1,"11":3,"12":1,"14":2,"16":1,"17":2,"19":1,"20":1,"21":3,"22":1,"30":1,"32":1,"33":2,"34":2,"35":5,"37":1,"38":1,"40":1,"46":1}}],["social",{"0":{"58":1},"2":{"0":3,"1":2,"3":1,"44":1,"48":1,"58":2}}],["song",{"2":{"37":1}}],["son",{"2":{"0":1}}],["software",{"2":{"0":1}}],["bts",{"2":{"38":1}}],["blame",{"2":{"54":1}}],["blocks",{"2":{"48":1,"56":2}}],["blog",{"2":{"19":1}}],["blends",{"2":{"33":1}}],["blurriness",{"2":{"19":1}}],["blurred",{"2":{"17":1}}],["blurry",{"2":{"16":1}}],["buds",{"2":{"44":1}}],["bursts",{"2":{"33":1}}],["buy",{"2":{"25":1,"34":3,"35":3}}],["buying",{"2":{"16":1,"25":1,"34":2,"35":1}}],["buffed",{"2":{"21":1}}],["building",{"0":{"48":1},"1":{"49":1},"2":{"35":1,"48":1,"56":1}}],["buildings",{"2":{"34":1}}],["build",{"2":{"35":1}}],["builds",{"2":{"21":1}}],["builders",{"2":{"17":3,"48":1}}],["built",{"2":{"11":1}}],["buttons",{"2":{"11":1}}],["button",{"2":{"7":2,"10":1,"11":1,"34":1,"47":1}}],["but",{"2":{"0":1,"5":1,"6":1,"9":2,"10":4,"11":4,"14":2,"15":2,"16":8,"17":3,"18":4,"19":2,"20":2,"21":2,"22":1,"27":1,"32":1,"33":4,"34":2,"35":5,"37":1,"38":1,"40":1,"41":1,"42":1,"43":1,"50":2}}],["bonuses",{"2":{"52":1}}],["bought",{"2":{"34":1}}],["books",{"2":{"26":1}}],["borrow",{"2":{"18":1}}],["borders",{"2":{"16":1}}],["boils",{"2":{"14":1}}],["boxes",{"2":{"11":1,"16":2}}],["box",{"2":{"11":1,"16":2}}],["bother",{"2":{"35":1}}],["both",{"2":{"8":1,"16":2,"35":1}}],["bots",{"2":{"6":1}}],["bot",{"2":{"6":2}}],["bias",{"2":{"21":1,"32":1}}],["biasing",{"2":{"20":1}}],["bill",{"2":{"18":1}}],["biggest",{"2":{"42":1}}],["big",{"2":{"10":2,"14":1,"17":3}}],["bit",{"2":{"4":1,"11":1,"14":3,"15":1,"17":2,"35":1}}],["binary",{"2":{"4":1}}],["bring",{"2":{"14":1}}],["browsing",{"0":{"47":1},"2":{"61":1}}],["browser",{"2":{"7":2,"8":1}}],["brought",{"2":{"22":1}}],["broad",{"2":{"1":1,"17":1}}],["breached",{"2":{"2":2}}],["by",{"2":{"1":3,"4":1,"5":3,"6":1,"9":1,"10":5,"11":1,"14":3,"16":1,"17":2,"19":4,"20":1,"23":1,"25":3,"30":1,"35":2,"36":2,"56":1}}],["babble",{"2":{"44":1}}],["baby",{"2":{"0":1}}],["bar",{"2":{"38":1}}],["barrier",{"2":{"8":1,"11":1}}],["battles",{"2":{"25":1}}],["back",{"2":{"11":1,"14":1,"15":1,"16":1,"18":1,"32":1,"38":1,"49":1,"50":1,"52":1}}],["bases",{"2":{"18":1}}],["base",{"2":{"10":1,"25":1,"35":1,"52":1,"55":1}}],["based",{"2":{"2":1,"9":1,"15":1,"19":2,"25":1,"35":3,"36":1,"57":1}}],["badgood",{"2":{"16":1}}],["bad",{"2":{"1":1,"14":6,"16":4,"31":1,"35":1}}],["begs",{"2":{"35":1}}],["beginners",{"2":{"7":1}}],["berlin",{"0":{"19":1},"2":{"19":2,"24":3}}],["belong",{"2":{"16":1,"25":1}}],["believe",{"2":{"10":1,"16":1,"17":1,"18":1,"19":1,"30":1,"33":1,"34":1}}],["beyond",{"2":{"15":1,"25":1,"33":1,"34":2}}],["before",{"0":{"38":1},"2":{"15":1,"16":1,"21":2,"23":1,"31":1,"34":1,"35":2,"36":1}}],["behavior",{"2":{"16":1}}],["behave",{"2":{"14":1}}],["behind",{"2":{"14":2}}],["better",{"2":{"14":1,"16":2,"30":1,"37":1}}],["between",{"2":{"6":1,"10":1,"11":1,"12":1,"17":4,"18":1,"22":1,"30":1,"33":2,"34":2}}],["best",{"2":{"12":1,"17":1,"20":1,"27":1,"30":1,"32":1}}],["becoming",{"2":{"35":1}}],["become",{"2":{"16":1,"21":1,"25":1,"33":1,"34":2,"35":3}}],["becomes",{"2":{"11":1,"35":3}}],["because",{"2":{"11":2,"15":1,"17":1,"18":1,"33":1,"35":1}}],["beats",{"2":{"42":1}}],["beating",{"2":{"10":1}}],["beat",{"2":{"10":2}}],["been",{"2":{"9":1,"15":1,"17":1,"20":1,"31":1,"34":2,"39":1,"45":1,"56":2}}],["beehaw",{"2":{"0":1}}],["being",{"2":{"1":2,"9":3,"11":2,"12":2,"14":1,"17":1,"18":1,"23":1,"25":1,"26":1,"38":1}}],["be",{"2":{"1":2,"2":1,"4":2,"5":1,"6":8,"8":3,"9":2,"10":3,"11":6,"12":2,"14":2,"15":5,"16":9,"17":4,"18":4,"19":10,"20":2,"21":2,"22":2,"23":1,"24":4,"25":1,"27":1,"30":4,"33":6,"34":3,"35":8,"36":1,"42":1,"45":1,"50":1,"52":1}}],["\\ttwitter",{"2":{"0":1}}],["\\tgithub",{"2":{"0":1}}],["\\treddit",{"2":{"0":1}}],["\\tlemmy",{"2":{"0":1}}],["\\tlinkedin",{"2":{"0":1}}],["\\tmastodon",{"2":{"0":1}}],["\\tmatrix",{"2":{"0":1}}],["\\tforgejo",{"2":{"0":1}}],["\\tfediverse",{"2":{"0":1}}],["\\temail",{"2":{"0":1}}],[">",{"2":{"0":1}}],["oil",{"2":{"35":1}}],["oom",{"2":{"34":3}}],["oscillating",{"2":{"34":1}}],["ostensibly",{"2":{"16":1}}],["okay",{"2":{"30":1,"32":1}}],["occur",{"2":{"23":1}}],["obvious",{"2":{"35":1,"42":1}}],["obey",{"2":{"30":1}}],["objective",{"2":{"20":1}}],["observed",{"2":{"16":1}}],["omega",{"2":{"16":1}}],["oxymoronic",{"2":{"16":1}}],["our",{"2":{"24":1,"49":1}}],["ought",{"2":{"15":1,"19":1}}],["outfits",{"2":{"37":1}}],["out",{"2":{"0":1,"2":1,"6":1,"7":1,"10":1,"11":1,"12":1,"15":1,"27":1,"33":1,"35":2,"50":1,"51":1}}],["opposed",{"2":{"35":1}}],["opposite",{"2":{"33":1}}],["opinion",{"2":{"24":1,"33":1,"35":1,"37":1}}],["opinionated",{"2":{"14":1,"20":1}}],["optispeech",{"2":{"45":1}}],["opti",{"2":{"44":1}}],["option",{"2":{"34":1}}],["options",{"2":{"22":1,"50":1}}],["optimal",{"2":{"17":1,"34":1,"35":1}}],["optimizing",{"2":{"17":1}}],["optimization",{"2":{"17":1,"22":2}}],["optimized",{"2":{"12":1}}],["open",{"2":{"8":1}}],["overall",{"2":{"15":1}}],["overcoming",{"2":{"11":1}}],["overlap",{"2":{"11":1,"17":1,"18":1,"24":1}}],["over",{"2":{"11":2,"16":1,"18":1,"26":1,"34":1,"35":2}}],["others",{"2":{"14":1}}],["other",{"0":{"26":1,"44":1},"2":{"3":1,"4":1,"5":1,"7":4,"8":1,"10":2,"11":2,"14":2,"16":3,"17":3,"19":1,"20":1,"21":1,"23":1,"24":1,"27":1,"30":2,"31":1,"33":1,"34":1,"35":3,"36":2,"37":2,"42":3,"47":2,"48":2,"50":1,"56":1,"61":1}}],["otherwise",{"2":{"2":1,"23":1,"24":1}}],["order",{"2":{"34":3,"52":1,"53":1}}],["oriented",{"2":{"23":1,"24":1}}],["original",{"0":{"45":1},"2":{"4":2,"35":4}}],["originated",{"2":{"3":1}}],["or",{"2":{"2":4,"3":4,"5":4,"6":1,"7":3,"8":3,"9":3,"10":2,"11":7,"12":2,"15":3,"16":14,"17":3,"20":1,"22":1,"23":2,"27":1,"30":1,"31":1,"33":1,"34":3,"35":6,"36":1,"47":1,"48":1,"56":1,"57":1,"61":1}}],["org",{"2":{"0":1}}],["owns",{"2":{"4":1}}],["owners",{"2":{"5":1}}],["owner",{"2":{"2":1,"5":1}}],["own",{"2":{"1":1,"15":1,"16":1,"17":1,"30":1,"43":1}}],["once",{"2":{"8":1,"12":1,"34":1,"35":2,"37":1}}],["ones",{"2":{"8":1,"16":1,"27":1,"35":2}}],["one",{"2":{"4":1,"10":1,"14":1,"16":1,"17":1,"21":1,"33":1,"37":1,"42":1,"61":2}}],["only",{"2":{"2":3,"4":1,"6":2,"10":1,"16":2,"17":2,"18":1,"23":1,"34":1,"35":1,"40":1}}],["online",{"2":{"2":2,"15":1}}],["on",{"2":{"1":3,"2":1,"6":2,"8":1,"9":4,"11":2,"14":4,"15":3,"16":7,"17":2,"18":1,"19":2,"21":3,"22":1,"23":1,"25":3,"27":1,"30":1,"31":1,"33":3,"34":1,"35":13,"36":1,"37":3,"43":2,"45":1,"48":1,"50":1,"56":2,"57":3,"59":1,"60":1}}],["older",{"2":{"35":2}}],["old",{"2":{"0":1,"15":1,"35":2}}],["offense",{"2":{"34":1}}],["offers",{"2":{"30":1}}],["offer",{"2":{"3":1,"16":1,"31":1}}],["off",{"2":{"32":1,"35":1,"38":1}}],["oftentimes",{"2":{"16":1,"21":1}}],["often",{"2":{"8":1,"9":2,"10":1,"11":5,"14":1,"16":2,"17":4,"18":1,"22":2,"23":2,"25":1,"30":1,"34":1}}],["of",{"0":{"39":1},"2":{"0":1,"1":4,"2":5,"5":3,"6":2,"7":2,"8":3,"9":8,"10":8,"11":16,"12":5,"13":1,"14":12,"15":11,"16":27,"17":12,"18":8,"19":11,"20":4,"21":10,"22":11,"23":7,"24":2,"25":5,"26":3,"27":2,"30":2,"31":5,"32":2,"33":8,"34":7,"35":22,"36":7,"37":6,"38":3,"39":1,"40":2,"42":1,"43":1,"45":2,"46":1,"48":1,"49":1,"50":3,"52":2,"54":1,"57":2,"61":2}}],["plenty",{"2":{"33":1,"35":1,"50":1}}],["platformers",{"2":{"35":1}}],["platformer",{"2":{"35":1}}],["plainly",{"2":{"14":1,"16":1}}],["playing",{"2":{"11":3,"14":3,"16":3}}],["playable",{"2":{"10":1,"38":1}}],["playerbase",{"2":{"17":1}}],["player",{"2":{"10":3,"14":2,"15":1,"17":2,"18":1,"21":2,"22":1,"23":5,"25":1,"30":2,"33":2,"34":3,"35":5,"60":1}}],["players",{"0":{"8":1},"2":{"8":2,"9":2,"10":2,"11":2,"12":1,"13":1,"14":8,"15":1,"16":1,"21":1,"28":1,"31":2,"35":4}}],["played",{"2":{"8":1,"10":1,"11":1,"38":1,"40":1}}],["playstyle",{"2":{"14":1}}],["plays",{"2":{"8":1,"42":1}}],["play",{"0":{"53":1},"2":{"8":2,"10":1,"11":5,"12":1,"14":1,"15":1,"16":1,"21":1,"40":2,"41":1,"43":3}}],["planar",{"2":{"43":1}}],["plane",{"2":{"22":1}}],["plan",{"2":{"1":1}}],["placed",{"2":{"6":1,"45":1}}],["place",{"2":{"0":1,"61":1}}],["psychology",{"2":{"32":1}}],["pilot",{"2":{"61":1}}],["pioneers",{"2":{"43":1}}],["piece",{"2":{"30":1,"33":1}}],["pins",{"2":{"9":1}}],["power",{"2":{"41":1}}],["powers",{"2":{"37":2}}],["potentially",{"2":{"33":1}}],["polynomial",{"2":{"25":2}}],["portrays",{"2":{"37":1}}],["portray",{"2":{"16":2}}],["poorly",{"2":{"14":1}}],["pointed",{"2":{"15":1}}],["point",{"2":{"11":1,"12":1,"15":2,"17":1,"18":1,"21":1,"33":1,"34":1,"35":4,"36":1}}],["positive",{"2":{"31":1,"32":3}}],["possibly",{"2":{"50":1}}],["possible",{"2":{"10":1,"11":2,"16":1,"21":1}}],["possibility",{"2":{"22":1}}],["posted",{"2":{"8":1}}],["poster",{"2":{"3":2,"4":2}}],["posts",{"2":{"5":1,"11":1}}],["posting",{"2":{"4":1}}],["post",{"2":{"4":1,"45":1}}],["popularity",{"2":{"21":1}}],["popular",{"2":{"9":2,"16":1,"19":1,"20":1,"25":1,"26":1,"27":1,"33":1}}],["phrases",{"2":{"17":1}}],["physical",{"2":{"15":1}}],["physics",{"2":{"7":1}}],["philosophies",{"2":{"14":1}}],["phone",{"2":{"7":1}}],["photo",{"2":{"0":1}}],["punch",{"2":{"38":1}}],["punishes",{"2":{"34":1}}],["purposes",{"2":{"45":1}}],["purposefully",{"2":{"20":1}}],["purchased",{"2":{"34":1}}],["purchases",{"0":{"34":1},"2":{"34":4,"36":1}}],["purchase",{"2":{"22":1,"23":1,"34":5,"35":1,"36":3}}],["pure",{"2":{"22":1}}],["pushes",{"2":{"18":1}}],["put",{"2":{"15":1,"17":1,"34":2}}],["puzzle",{"2":{"12":1}}],["pull",{"2":{"5":1}}],["publish",{"2":{"4":1}}],["publicly",{"2":{"3":1,"5":1,"32":1,"59":1}}],["publickey",{"2":{"2":5}}],["public",{"2":{"2":1,"4":1,"5":6,"6":2,"61":2}}],["packed",{"2":{"54":1}}],["panel",{"2":{"22":1}}],["painting",{"2":{"15":1}}],["paid",{"2":{"9":1,"55":2}}],["paying",{"2":{"11":1}}],["paragraph",{"2":{"35":1}}],["paradigm",{"0":{"21":1},"2":{"13":1,"21":10,"24":1}}],["parody",{"2":{"16":2}}],["parodies",{"2":{"16":7}}],["partnership",{"2":{"45":1}}],["parts",{"2":{"16":1,"35":2}}],["participating",{"2":{"57":1}}],["participate",{"2":{"9":1}}],["particular",{"2":{"15":1,"16":1,"17":1}}],["particularly",{"2":{"11":1,"16":1,"34":1}}],["part",{"2":{"9":1,"10":1,"11":1,"15":1,"18":1,"35":1,"38":1}}],["parent",{"2":{"4":2,"5":1}}],["page",{"2":{"7":1,"16":1,"22":1,"43":1,"50":1}}],["pages",{"2":{"4":1,"8":1,"43":1,"48":3,"50":1,"61":2}}],["passion",{"2":{"32":2}}],["passionate",{"2":{"27":1}}],["passively",{"2":{"14":1}}],["passes",{"2":{"24":1}}],["pass",{"2":{"6":1,"17":1,"24":1}}],["password",{"2":{"3":1}}],["paperclips",{"2":{"20":1,"21":1}}],["paper",{"2":{"2":2,"61":1}}],["per",{"2":{"25":1}}],["percentage",{"2":{"21":1}}],["perceived",{"2":{"15":1}}],["performs",{"2":{"34":1}}],["performing",{"2":{"17":1}}],["perform",{"2":{"11":1,"17":1}}],["perfectly",{"2":{"7":1}}],["perfect",{"2":{"7":1}}],["persists",{"2":{"10":1}}],["personal",{"0":{"48":1},"1":{"49":1},"2":{"14":1,"57":1}}],["personally",{"2":{"10":1,"15":1}}],["person",{"2":{"2":1,"30":2}}],["permission",{"2":{"5":2}}],["perhaps",{"2":{"4":1,"5":1,"6":2,"36":1,"38":1}}],["petnames",{"2":{"2":1}}],["people",{"0":{"50":1},"2":{"1":1,"2":3,"5":1,"10":2,"11":3,"16":1,"20":1,"21":1,"32":1,"48":1,"50":2}}],["practice",{"2":{"30":1,"42":1}}],["praising",{"2":{"14":1}}],["prudent",{"2":{"11":1,"16":1}}],["prices",{"2":{"52":1}}],["price",{"2":{"52":3}}],["prioritize",{"2":{"30":1}}],["priority",{"2":{"11":1,"16":1}}],["printing",{"2":{"16":1}}],["principles",{"2":{"14":1}}],["privileges",{"2":{"7":1}}],["private",{"2":{"2":3,"3":1}}],["premium",{"2":{"42":1,"52":1}}],["premise",{"2":{"17":1}}],["previous",{"2":{"35":1}}],["previously",{"2":{"2":2}}],["pre",{"2":{"34":1,"52":1}}],["predominant",{"2":{"22":1}}],["predatory",{"2":{"11":1}}],["precludes",{"2":{"18":1}}],["press",{"2":{"34":1}}],["presents",{"2":{"22":1}}],["presentation",{"2":{"22":1}}],["present",{"2":{"19":1}}],["prestiges",{"2":{"35":1}}],["prestige",{"2":{"16":1,"35":2}}],["president",{"2":{"2":1}}],["pretty",{"2":{"15":1,"17":1,"36":1,"50":1}}],["preoccupied",{"2":{"15":1}}],["prefer",{"2":{"31":1}}],["preferences",{"2":{"14":1,"30":1}}],["preferred",{"2":{"5":1}}],["profectus",{"2":{"44":1}}],["profit",{"2":{"16":2,"53":1}}],["profile",{"2":{"2":1}}],["projects",{"2":{"61":1}}],["project",{"0":{"45":1},"2":{"43":1,"45":1,"57":1,"60":1}}],["providing",{"2":{"42":1}}],["provide",{"2":{"21":1,"34":2}}],["prominently",{"2":{"32":1}}],["proposal",{"2":{"56":1}}],["propose",{"2":{"19":1}}],["proposes",{"2":{"17":1}}],["properly",{"2":{"14":1}}],["property",{"2":{"4":1}}],["process",{"2":{"16":1,"18":1}}],["prone",{"2":{"11":3,"42":1}}],["program",{"2":{"46":2}}],["programmer",{"2":{"46":1}}],["programming",{"2":{"7":1,"8":1,"16":1}}],["progresses",{"2":{"23":1}}],["progressively",{"2":{"25":1}}],["progressing",{"2":{"22":1}}],["progression",{"2":{"10":10,"11":1,"13":1,"17":2,"18":3,"24":1,"34":1,"35":3}}],["progress",{"2":{"10":1,"11":3,"12":1,"17":1,"22":1,"23":2,"25":1,"33":1,"34":1,"35":5}}],["probably",{"2":{"6":1,"12":1,"17":1,"21":1,"22":1,"23":1,"24":1,"35":1}}],["problems",{"0":{"6":1},"2":{"17":1,"22":2}}],["problem",{"2":{"1":1,"16":1,"18":2,"30":2,"34":1,"35":1}}],["protocol",{"2":{"4":2}}],["protocols",{"2":{"1":1}}],["production",{"2":{"15":2,"17":1,"46":1}}],["productive",{"2":{"11":1}}],["product",{"2":{"0":2}}],["ludology",{"0":{"28":1},"2":{"27":1}}],["lucrative",{"2":{"9":1}}],["ll",{"2":{"11":2,"14":1,"16":1,"19":1,"30":1,"35":4}}],["llc",{"2":{"0":1}}],["located",{"2":{"45":1}}],["lost",{"2":{"34":1,"51":1}}],["losing",{"2":{"2":1,"22":1}}],["logic",{"2":{"16":1,"34":1}}],["love",{"2":{"16":1,"50":1}}],["lore",{"2":{"15":1}}],["loosely",{"2":{"35":1}}],["loops",{"2":{"25":2}}],["loop",{"2":{"13":2,"25":2,"35":1}}],["look",{"2":{"11":1,"30":1,"33":1,"48":1,"57":1}}],["looks",{"2":{"6":1}}],["looking",{"2":{"5":1,"8":1,"14":1,"16":1,"34":1}}],["longer",{"2":{"13":1,"21":1,"23":1,"35":2}}],["long",{"2":{"11":1,"16":1,"19":1,"22":1,"34":1,"43":1,"60":2}}],["lowers",{"2":{"11":1}}],["low",{"0":{"23":1},"2":{"7":2,"8":1,"10":1,"14":1,"22":1,"23":2}}],["load",{"2":{"3":1}}],["lots",{"2":{"54":1}}],["lot",{"2":{"1":1,"8":1,"9":1,"10":3,"11":3,"15":2,"17":1,"18":1,"20":1,"22":1,"25":1,"27":1,"37":1,"50":1,"52":1,"56":1,"61":1}}],["levied",{"2":{"38":1}}],["levels",{"2":{"31":1}}],["level",{"2":{"5":1,"9":1,"11":2,"16":2,"35":2}}],["lenient",{"2":{"17":1,"19":1}}],["lend",{"2":{"11":1}}],["lets",{"2":{"35":1}}],["let",{"2":{"14":2,"15":1,"16":1,"33":1,"35":1}}],["legitimate",{"2":{"11":1,"15":1}}],["lecture",{"2":{"11":1}}],["lesser",{"2":{"11":1}}],["less",{"2":{"10":1,"11":1,"14":1,"15":1,"23":1,"34":1}}],["lessons",{"2":{"1":1,"37":1}}],["leading",{"2":{"35":1}}],["lead",{"2":{"33":1}}],["leave",{"2":{"11":1,"31":1}}],["learning",{"2":{"7":1,"11":1,"12":2,"31":1,"37":1,"45":1,"56":1}}],["learn",{"2":{"7":2,"20":1,"25":1,"30":1,"37":1,"50":1}}],["learned",{"2":{"1":1,"37":1}}],["least",{"2":{"6":1,"17":1,"34":1,"35":1}}],["last",{"2":{"37":1,"38":1}}],["lashing",{"2":{"32":1}}],["lab",{"2":{"46":1}}],["label",{"2":{"15":1}}],["labs",{"2":{"0":1}}],["lack",{"2":{"15":3}}],["lattice",{"0":{"59":1}}],["latter",{"2":{"11":1,"16":1,"30":1}}],["later",{"2":{"11":1,"35":1,"40":1}}],["languages",{"2":{"7":1}}],["language",{"2":{"7":1,"45":1}}],["layer",{"2":{"25":1,"34":1,"35":2}}],["layers",{"2":{"16":1,"18":1,"35":2}}],["lay",{"2":{"7":1}}],["larger",{"2":{"23":1,"34":1}}],["largest",{"2":{"22":1}}],["large",{"2":{"1":3,"9":1,"16":1,"17":1,"21":2,"36":1}}],["lawn",{"2":{"0":1}}],["lis2",{"2":{"39":1,"40":1}}],["lis1",{"2":{"38":1,"40":1,"42":1}}],["lis",{"2":{"38":1}}],["list",{"2":{"19":3,"20":2,"21":1,"33":1}}],["living",{"2":{"37":1,"54":1}}],["live",{"2":{"0":1,"37":1}}],["little",{"2":{"35":1,"41":1}}],["literally",{"2":{"10":1}}],["limits",{"2":{"15":1}}],["lifeisstrange",{"2":{"38":2}}],["life",{"0":{"38":1,"40":1,"41":1,"42":1},"2":{"11":1,"16":2,"25":1,"37":1}}],["linearly",{"2":{"35":1}}],["linear",{"2":{"35":3}}],["line",{"2":{"17":2}}],["lines",{"2":{"7":1}}],["links",{"2":{"47":1}}],["linking",{"2":{"14":1}}],["link",{"2":{"8":1,"61":1}}],["linked",{"2":{"6":1}}],["lighten",{"2":{"3":1}}],["likely",{"2":{"6":3,"31":1,"35":1}}],["like",{"2":{"3":1,"9":5,"10":3,"11":5,"12":2,"14":3,"15":6,"16":4,"25":1,"32":1,"34":1,"35":2,"36":1,"39":1,"41":1,"48":1,"57":1}}],["likes",{"2":{"0":1,"11":1,"14":1,"18":1}}],["www",{"2":{"38":2}}],["wrt",{"2":{"21":1}}],["wrong",{"2":{"16":1,"17":1}}],["written",{"2":{"15":1}}],["write",{"2":{"2":1}}],["weird",{"2":{"48":1}}],["we",{"2":{"17":2,"18":1,"21":1,"24":1,"35":5,"40":1}}],["weapons",{"2":{"10":1}}],["welcome",{"2":{"8":1,"61":1}}],["well",{"2":{"0":1,"4":1,"8":2,"12":1,"14":1,"19":1,"27":1,"34":1,"39":1}}],["webs",{"2":{"49":1}}],["websites",{"0":{"48":1},"1":{"49":1},"2":{"25":1,"47":1,"48":1,"50":5}}],["website",{"2":{"2":1,"56":1,"61":1}}],["webrings",{"2":{"47":1}}],["web",{"0":{"47":1,"50":1,"51":1},"2":{"7":3,"9":3,"35":3,"36":1,"47":1,"48":1,"49":2,"51":2,"56":1}}],["wave",{"2":{"45":2}}],["walking",{"2":{"15":1}}],["wait",{"2":{"14":1,"23":1,"36":1}}],["waiting",{"2":{"11":1,"23":1,"33":2}}],["watch",{"2":{"11":1}}],["ware",{"2":{"9":1}}],["ways",{"2":{"3":1,"34":1,"42":1}}],["way",{"2":{"3":1,"5":1,"10":1,"11":2,"13":1,"14":1,"16":2,"17":1,"19":1}}],["wasted",{"2":{"15":1}}],["waste",{"2":{"15":1}}],["was",{"2":{"2":1,"4":1,"6":1,"16":1,"24":1,"35":1,"37":2,"42":1,"50":1}}],["wanted",{"2":{"14":1,"40":1}}],["wants",{"2":{"3":1,"35":1}}],["want",{"0":{"50":1},"2":{"2":2,"33":1,"34":1}}],["what",{"2":{"10":2,"12":2,"14":1,"15":3,"16":2,"17":2,"18":4,"19":2,"20":1,"21":2,"22":1,"27":1,"28":1,"30":1,"33":1,"34":2,"35":2,"38":1,"42":1,"57":1}}],["whatever",{"2":{"6":1,"30":1}}],["why",{"0":{"27":1,"50":1},"2":{"10":1,"11":2,"15":3,"16":2,"17":1,"35":5}}],["while",{"2":{"10":2,"11":4,"14":2,"16":3,"17":2,"21":2,"26":1,"30":1,"34":2,"45":1,"57":1}}],["which",{"2":{"8":2,"10":1,"13":1,"14":3,"15":2,"19":1,"22":1,"25":1,"34":1,"35":3,"36":1,"38":1}}],["whitelisted",{"2":{"5":1}}],["white",{"2":{"2":1}}],["whether",{"2":{"11":1,"15":2,"17":1,"24":1}}],["whenever",{"2":{"34":1}}],["when",{"2":{"3":2,"11":1,"14":1,"15":1,"16":2,"17":2,"21":1,"31":1,"34":1,"35":4,"36":1,"45":2}}],["whereas",{"2":{"7":1}}],["where",{"2":{"3":1,"10":2,"12":2,"13":1,"14":1,"16":1,"17":1,"18":1,"22":1,"23":1,"25":1,"31":1,"33":1,"35":4}}],["whole",{"2":{"16":2}}],["whom",{"2":{"14":1}}],["who",{"2":{"0":1,"7":1,"10":1,"11":2,"14":1,"15":1,"16":1,"33":1,"35":1,"42":1}}],["won",{"2":{"14":1,"22":1,"35":2}}],["worse",{"2":{"33":1,"42":1}}],["words",{"2":{"16":1}}],["worth",{"2":{"15":1}}],["world",{"2":{"11":1,"26":1}}],["worry",{"2":{"7":1}}],["works",{"2":{"30":1}}],["working",{"2":{"11":1,"33":1,"56":2,"57":1,"59":1,"60":1}}],["work",{"0":{"46":1},"2":{"0":1,"3":2,"11":1,"23":1,"30":1,"45":1}}],["wouldn",{"2":{"2":1}}],["would",{"2":{"2":1,"3":1,"4":1,"14":1,"17":2,"18":1,"21":1,"22":1,"24":4,"25":2,"30":1,"33":1,"34":4,"39":1,"41":1,"52":2}}],["wiki",{"2":{"61":1}}],["wise",{"2":{"34":1}}],["wishes",{"2":{"5":1}}],["wizard",{"2":{"25":1}}],["win",{"2":{"10":1}}],["will",{"2":{"4":1,"6":2,"9":2,"10":1,"11":1,"14":1,"16":1,"17":1,"18":1,"21":1,"23":1,"30":1,"31":2,"32":2,"34":1,"35":4,"36":1,"38":1,"42":2}}],["wife",{"2":{"0":1}}],["without",{"2":{"5":1,"10":3,"11":1,"15":2,"42":1,"52":1}}],["within",{"2":{"4":2,"12":1,"14":1,"15":2,"16":2,"19":2,"22":2,"25":1,"30":1}}],["with",{"2":{"0":1,"1":3,"2":3,"3":1,"4":4,"5":4,"6":1,"8":3,"9":1,"11":3,"13":1,"14":2,"15":3,"16":6,"18":3,"19":1,"20":1,"21":5,"22":1,"23":4,"26":1,"30":1,"32":2,"33":2,"34":1,"35":5,"36":1,"37":4,"38":1,"40":2,"42":1,"45":3,"47":1,"48":1,"54":1,"57":2,"58":1,"61":2}}],["dressing",{"2":{"16":1}}],["drops",{"2":{"14":1}}],["driven",{"2":{"42":2,"60":1}}],["drive",{"2":{"6":1,"15":1}}],["ddr",{"2":{"11":1}}],["due",{"2":{"9":2,"14":1,"15":1,"17":1,"18":1,"21":1,"30":1,"38":1,"52":1}}],["duty",{"2":{"5":1,"14":1}}],["d",{"2":{"6":2,"9":1,"10":2,"11":1,"15":2,"16":3,"18":1,"20":1,"25":1,"33":1,"35":1,"36":1,"45":1,"50":1}}],["dice",{"2":{"43":1}}],["dictate",{"2":{"4":1}}],["diminishing",{"2":{"34":1}}],["dimensions",{"2":{"25":1,"34":9}}],["diverse",{"2":{"31":1}}],["diversity",{"2":{"19":1}}],["diegetic",{"2":{"22":1}}],["didn",{"2":{"38":3}}],["did",{"2":{"14":1,"38":1}}],["differences",{"2":{"31":1}}],["difference",{"2":{"17":1,"34":1,"36":1}}],["differently",{"2":{"57":1}}],["different",{"2":{"3":2,"9":1,"14":4,"16":1,"20":1,"22":1,"25":1,"30":1,"31":2,"33":1,"34":1,"35":1}}],["difficulties",{"2":{"18":1}}],["difficulty",{"2":{"12":1,"35":2}}],["difficult",{"2":{"1":1,"7":1,"11":1,"17":1,"25":1}}],["disparate",{"2":{"42":1}}],["displays",{"2":{"3":1}}],["display",{"2":{"2":4,"3":1,"16":1,"22":1}}],["disservice",{"2":{"37":1}}],["dissipates",{"2":{"21":1}}],["disengaging",{"2":{"35":1}}],["disengage",{"2":{"35":1}}],["disregard",{"2":{"30":1}}],["distancing",{"2":{"30":1}}],["distinguish",{"2":{"30":1}}],["distinct",{"2":{"17":1}}],["distilled",{"2":{"16":1}}],["distract",{"2":{"14":1}}],["disagreeing",{"2":{"21":1}}],["disagree",{"2":{"14":1}}],["discourage",{"2":{"48":1}}],["discover",{"2":{"35":1}}],["discovering",{"2":{"10":1,"15":1}}],["discovery",{"2":{"3":1}}],["discussing",{"2":{"38":1}}],["discussion",{"2":{"10":1}}],["discussions",{"2":{"8":1,"57":1}}],["discussed",{"2":{"15":1}}],["discuss",{"2":{"14":1,"22":1}}],["direction",{"2":{"35":1}}],["directly",{"2":{"16":1,"35":1,"36":1,"57":1}}],["direct",{"2":{"1":1}}],["digital",{"2":{"0":1,"57":1,"61":1}}],["day",{"2":{"50":1}}],["days",{"2":{"1":1,"50":1}}],["dark",{"2":{"20":1,"21":1}}],["data",{"2":{"1":1}}],["dallas",{"2":{"0":1,"46":1}}],["debt",{"2":{"46":1}}],["debate",{"2":{"17":1}}],["demo",{"2":{"39":1,"55":1}}],["demonstrate",{"2":{"17":1}}],["deadbones",{"2":{"38":1}}],["deal",{"2":{"23":1}}],["defend",{"2":{"34":2}}],["defended",{"2":{"34":1}}],["defined",{"2":{"17":1,"18":1,"19":1,"25":3,"57":1}}],["define",{"2":{"15":1,"17":2,"19":1}}],["defining",{"2":{"15":1,"16":1,"18":1,"19":2,"28":1}}],["definite",{"2":{"19":1}}],["definitely",{"2":{"10":1}}],["definition",{"2":{"16":2,"17":5,"18":4,"19":2,"20":1,"21":1}}],["definitions",{"2":{"16":1}}],["definitively",{"2":{"15":1,"36":1}}],["degree",{"2":{"25":1}}],["derived",{"2":{"19":2}}],["described",{"2":{"18":1}}],["describe",{"2":{"17":1}}],["descriptive",{"2":{"16":1}}],["deserves",{"2":{"16":1}}],["designs",{"2":{"57":1}}],["designing",{"2":{"45":1}}],["designed",{"2":{"14":2}}],["designer",{"2":{"14":1}}],["design",{"0":{"14":1},"2":{"14":10,"15":1,"16":3,"25":1,"30":1,"31":1,"35":3}}],["desired",{"2":{"5":1}}],["deeply",{"2":{"25":1}}],["deep",{"2":{"15":1}}],["dev",{"2":{"43":1}}],["devs",{"2":{"27":2}}],["devolving",{"2":{"15":1}}],["device",{"2":{"11":1}}],["developed",{"2":{"7":1}}],["developers",{"0":{"36":1,"54":1},"2":{"7":1,"8":3,"9":1,"14":1,"16":1,"28":1,"30":1,"31":2}}],["developer",{"2":{"0":1,"8":1,"30":1,"36":1}}],["develop",{"2":{"0":1,"16":1}}],["development",{"2":{"0":1,"7":1,"27":1,"30":1,"32":1,"43":1,"48":1}}],["de",{"2":{"10":1}}],["depth",{"2":{"10":2,"15":3}}],["dependencies",{"2":{"2":1}}],["dedicated",{"2":{"7":1,"8":1,"37":1}}],["delaying",{"2":{"33":1}}],["delay",{"2":{"6":1}}],["deletion",{"2":{"5":2}}],["delete",{"2":{"5":5,"6":1}}],["detriment",{"2":{"16":1}}],["detract",{"2":{"10":1,"12":1}}],["determine",{"2":{"6":2,"19":1,"20":1,"21":1,"24":1,"25":1,"30":1}}],["details",{"2":{"1":1}}],["decent",{"2":{"36":1}}],["decentralized",{"2":{"1":1,"2":1}}],["deciding",{"2":{"17":1,"22":2,"25":1,"31":1}}],["decide",{"2":{"2":1,"3":1}}],["decision",{"2":{"15":1,"35":1}}],["decisions",{"2":{"12":1,"17":1,"20":1,"33":1,"35":1}}],["documentation",{"2":{"46":1}}],["dopamine",{"2":{"16":2}}],["doom",{"2":{"14":3}}],["doing",{"2":{"11":2}}],["does",{"2":{"10":2,"14":4,"17":1,"18":1,"21":1,"22":1,"33":1,"34":1,"35":1,"41":1}}],["doesn",{"2":{"1":1,"6":1,"12":1,"16":1,"17":1,"21":1,"34":1,"35":1,"42":1}}],["downs",{"2":{"32":1}}],["down",{"2":{"14":1}}],["downloading",{"2":{"6":1}}],["download",{"2":{"6":1}}],["downloaded",{"2":{"6":1}}],["downvotes",{"2":{"4":1,"6":1}}],["double",{"0":{"42":1},"2":{"5":1}}],["do",{"2":{"2":1,"6":1,"8":1,"10":1,"16":3,"17":1,"18":1,"27":2,"30":1,"33":2,"34":2,"35":4,"36":1,"40":1,"42":1}}],["donation",{"2":{"9":1}}],["done",{"2":{"6":1}}],["don",{"2":{"0":1,"1":2,"6":1,"7":3,"10":1,"14":1,"16":1,"17":1,"18":1,"30":2,"34":1,"35":2,"36":1,"54":1}}],["further",{"2":{"35":1}}],["future",{"0":{"49":1},"2":{"30":1,"35":2}}],["fulfillment",{"2":{"16":2}}],["full",{"2":{"4":1}}],["fully",{"2":{"2":1,"5":1,"33":1,"35":1}}],["funnily",{"2":{"41":1}}],["fun",{"2":{"11":2,"14":2,"15":1,"16":3,"30":1}}],["flash",{"2":{"25":1}}],["flagged",{"2":{"4":1,"5":2}}],["flag",{"2":{"4":1}}],["flagship",{"2":{"0":1}}],["fly",{"2":{"20":1,"25":1}}],["flow",{"2":{"11":1}}],["flood",{"2":{"8":1}}],["fashion",{"2":{"33":1}}],["faster",{"2":{"23":1}}],["fast",{"2":{"23":1}}],["familiarity",{"2":{"16":1}}],["famous",{"2":{"14":1}}],["fail",{"2":{"22":1}}],["fails",{"2":{"2":1}}],["fairly",{"2":{"16":1,"33":1}}],["fantasy",{"2":{"26":1}}],["fans",{"2":{"16":1,"18":1,"42":1}}],["fan",{"2":{"16":1,"26":1,"37":1}}],["fancy",{"2":{"7":1}}],["fallen",{"2":{"33":1}}],["fall",{"2":{"16":1,"17":2,"25":1}}],["factor",{"2":{"19":1,"21":2,"23":1}}],["factors",{"0":{"22":1,"23":1},"2":{"19":6,"20":1,"22":3,"23":2}}],["factorio",{"2":{"17":1}}],["factory",{"2":{"17":3,"35":1}}],["fact",{"2":{"15":2,"17":1,"33":1,"34":1,"38":1}}],["favorite",{"2":{"14":1}}],["far",{"2":{"11":1,"19":1,"33":1,"34":2,"35":1}}],["fits",{"2":{"39":1}}],["fitting",{"2":{"37":1}}],["fit",{"2":{"18":1}}],["first",{"2":{"15":1,"34":1,"35":1,"40":1}}],["figured",{"2":{"12":1}}],["fidget",{"2":{"11":1}}],["finally",{"2":{"35":1}}],["fine",{"2":{"9":1,"35":2}}],["finished",{"2":{"8":1}}],["finding",{"2":{"35":1}}],["find",{"0":{"8":1},"2":{"10":1,"16":1,"26":1,"30":1,"42":1,"43":1}}],["filtering",{"2":{"6":1}}],["filters",{"2":{"3":1,"47":2}}],["fields",{"2":{"4":1}}],["framework",{"2":{"16":1,"17":1,"35":1}}],["frankly",{"2":{"16":1}}],["frequency",{"2":{"35":2}}],["frequently",{"2":{"34":1,"35":1}}],["frequent",{"2":{"33":1}}],["freshness",{"2":{"13":1}}],["free",{"0":{"53":1},"2":{"2":1,"11":1,"27":1,"48":1,"50":2,"55":1}}],["friendly",{"2":{"8":1}}],["from",{"2":{"0":1,"1":1,"3":2,"7":1,"9":1,"10":4,"11":1,"12":1,"13":1,"14":2,"15":1,"16":5,"18":2,"19":2,"22":1,"30":2,"31":2,"34":1,"35":5,"42":3,"45":3,"47":1,"49":1}}],["feedback",{"0":{"30":1,"31":1,"32":1},"2":{"30":7,"31":3,"32":4}}],["feeding",{"2":{"11":1}}],["feels",{"2":{"17":1,"34":1,"35":1}}],["feelings",{"2":{"14":1}}],["feeling",{"2":{"10":1,"12":1,"15":1}}],["feel",{"2":{"10":3,"11":3,"12":1,"14":2,"16":1,"27":1,"30":1,"32":1,"34":1,"38":1}}],["feature",{"2":{"36":3}}],["featured",{"2":{"25":1}}],["features",{"2":{"16":1,"46":1}}],["feats",{"2":{"11":1}}],["feasibility",{"2":{"1":1}}],["few",{"2":{"1":1,"7":1,"11":1,"26":1}}],["federated",{"2":{"1":1,"2":1}}],["federation",{"2":{"1":1}}],["fediverse",{"2":{"0":1}}],["fold",{"2":{"25":1}}],["following",{"0":{"35":1},"2":{"35":1,"57":1}}],["follow",{"2":{"6":1,"21":1,"42":1,"47":1}}],["followed",{"2":{"5":1}}],["focus",{"2":{"16":1,"17":1,"30":1,"57":1}}],["focused",{"2":{"1":1,"9":2,"10":1,"25":1,"31":1}}],["focuses",{"2":{"1":1}}],["found",{"2":{"12":1,"40":1,"45":1}}],["forward",{"2":{"46":1}}],["foreign",{"2":{"45":1}}],["forefront",{"2":{"16":1}}],["forget",{"2":{"34":1}}],["former",{"2":{"30":1}}],["formal",{"2":{"18":1,"27":1}}],["formally",{"2":{"17":1}}],["forms",{"2":{"9":1}}],["form",{"2":{"5":1,"11":1}}],["forming",{"2":{"2":1}}],["for",{"0":{"36":1},"2":{"1":2,"2":3,"3":1,"4":2,"5":3,"6":4,"7":4,"8":3,"9":2,"10":2,"11":3,"13":1,"14":4,"15":2,"16":10,"17":3,"18":1,"19":3,"20":1,"21":6,"22":2,"23":1,"24":1,"30":4,"31":1,"32":1,"33":1,"34":5,"35":7,"36":1,"39":1,"42":2,"45":1,"46":1,"47":2,"48":1,"50":2,"54":1,"56":1,"59":1}}],["two",{"2":{"17":1,"18":1,"34":2,"37":1,"42":2}}],["target",{"2":{"45":2}}],["tangible",{"2":{"42":1}}],["tangent",{"2":{"16":1}}],["tab",{"2":{"34":1}}],["talker",{"2":{"45":2}}],["talks",{"2":{"45":1,"49":1}}],["talk",{"2":{"14":1,"15":1,"35":1}}],["talking",{"2":{"14":1}}],["taken",{"2":{"25":1}}],["takes",{"2":{"11":1,"30":1,"33":1}}],["take",{"2":{"11":1,"15":1,"21":2,"22":1,"23":1,"30":1,"33":2,"34":3}}],["taking",{"2":{"10":1,"11":1,"15":1,"16":2,"37":1}}],["type",{"2":{"31":1}}],["types",{"2":{"14":1,"31":1}}],["typically",{"2":{"2":2,"7":1,"11":1,"16":1,"17":3,"21":1,"22":2,"23":1,"30":1,"53":1}}],["tip",{"2":{"36":1}}],["tips",{"0":{"36":1},"2":{"36":1}}],["til",{"2":{"20":1}}],["title",{"2":{"16":1}}],["titles",{"2":{"16":2,"20":1}}],["tied",{"2":{"11":1,"21":1,"35":1}}],["timelines",{"2":{"42":1}}],["times",{"2":{"13":1,"15":1,"23":1,"33":2,"34":2,"36":1}}],["time",{"2":{"9":1,"11":3,"14":1,"15":2,"20":2,"25":1,"26":1,"30":1,"33":8,"34":4,"35":2,"38":1,"40":1,"41":1,"45":1,"46":1}}],["try",{"2":{"30":1,"33":1,"36":1}}],["trying",{"2":{"14":1,"20":1,"21":1,"33":1,"54":1}}],["trailer",{"2":{"42":1}}],["trained",{"2":{"31":1}}],["trait",{"2":{"21":1}}],["traits",{"2":{"18":1,"20":1}}],["transferrable",{"2":{"50":1}}],["transitioning",{"2":{"49":1}}],["transparent",{"2":{"45":1}}],["translated",{"2":{"26":1}}],["transaction",{"2":{"11":1}}],["track",{"2":{"22":1}}],["traditional",{"2":{"19":1,"20":1}}],["trivial",{"2":{"34":1}}],["trivially",{"2":{"11":1,"36":1}}],["tricky",{"2":{"17":1}}],["treats",{"2":{"57":1}}],["treating",{"2":{"45":1}}],["tree",{"2":{"16":2,"21":1,"43":1}}],["trends",{"2":{"25":2}}],["trended",{"2":{"16":1}}],["trend",{"2":{"16":1,"35":3}}],["tremendous",{"2":{"8":1}}],["tropes",{"2":{"15":1}}],["true",{"0":{"41":1},"2":{"32":1,"35":1,"36":1}}],["truly",{"2":{"30":1,"35":1}}],["truth",{"2":{"2":1}}],["trust",{"2":{"2":6,"6":1}}],["tutorials",{"2":{"7":1}}],["tests",{"2":{"46":1}}],["testing",{"2":{"45":1}}],["techniques",{"2":{"52":1}}],["technically",{"2":{"7":1,"10":1,"34":1}}],["tech",{"2":{"46":1}}],["templates",{"2":{"48":1}}],["temple",{"2":{"19":1}}],["temporarily",{"2":{"6":1}}],["term",{"2":{"16":6,"21":1,"35":1,"43":1,"60":1}}],["terms",{"2":{"16":3,"17":1,"33":1}}],["tell",{"2":{"15":1}}],["teaching",{"2":{"14":1,"45":1}}],["tend",{"2":{"8":1,"9":1,"13":1,"14":1,"17":1,"22":2,"23":1,"25":1}}],["tends",{"2":{"8":1,"16":1,"32":1}}],["textual",{"2":{"22":1}}],["text",{"2":{"4":2,"16":1}}],["texas",{"2":{"0":1}}],["than",{"2":{"10":1,"11":1,"12":1,"14":2,"15":2,"16":2,"17":1,"21":1,"23":1,"24":1,"32":1,"38":1,"42":1,"52":1}}],["that",{"2":{"2":2,"3":2,"4":5,"5":3,"6":4,"7":3,"8":1,"9":4,"10":6,"11":9,"12":6,"14":5,"15":8,"16":23,"17":8,"18":5,"19":1,"20":1,"21":10,"22":1,"23":1,"24":4,"25":5,"26":1,"27":1,"30":6,"32":1,"33":7,"34":8,"35":12,"36":4,"37":1,"38":1,"42":3,"45":1,"48":1,"50":2,"52":1,"57":1,"59":2,"61":2}}],["threads",{"2":{"38":1}}],["threshold",{"2":{"7":1,"17":1}}],["throughline",{"2":{"35":2}}],["throughout",{"2":{"13":1,"35":1,"37":1}}],["through",{"2":{"2":1,"15":1,"23":1,"38":1,"40":1}}],["thousands",{"2":{"8":1,"16":1}}],["thoughts",{"2":{"61":1}}],["thought",{"2":{"15":1,"34":1}}],["though",{"2":{"4":1,"10":1,"15":1,"24":1,"35":1}}],["those",{"2":{"4":1,"5":1,"7":1,"11":3,"14":1,"15":1,"16":4,"19":1,"24":1,"33":1,"34":1,"35":1,"52":1}}],["thing",{"2":{"34":1,"35":1}}],["things",{"2":{"3":1,"7":1,"11":2,"15":2,"16":2,"34":1,"35":5,"36":1,"50":1}}],["thin",{"2":{"11":1}}],["think",{"2":{"10":1,"11":1,"14":2,"15":3,"16":4,"17":1,"18":1,"20":2,"24":1,"31":1,"33":1,"35":1,"37":2,"42":1}}],["this",{"0":{"27":1},"2":{"1":1,"2":3,"3":2,"4":3,"5":1,"7":1,"8":1,"9":3,"10":4,"11":4,"12":2,"13":1,"14":8,"16":8,"17":10,"18":1,"19":2,"20":1,"21":2,"22":1,"23":3,"25":1,"27":2,"30":1,"33":5,"34":3,"35":15,"36":3,"37":1,"38":1,"40":1,"41":1,"42":4,"45":3,"52":1,"56":1,"60":1,"61":1}}],["thereof",{"2":{"15":1,"16":1}}],["therefore",{"2":{"6":1,"9":1,"16":1,"35":1}}],["there",{"2":{"6":1,"7":2,"9":1,"10":1,"11":3,"14":3,"16":1,"17":4,"18":2,"19":1,"21":2,"22":2,"23":2,"24":1,"25":1,"32":1,"34":1,"35":4,"36":1,"50":4,"61":1}}],["then",{"2":{"6":1,"15":1,"16":1,"30":1,"33":1,"34":1,"35":2,"36":2}}],["thematic",{"2":{"37":1}}],["themes",{"2":{"37":1}}],["theme",{"2":{"17":1,"39":1}}],["themselves",{"2":{"5":1,"10":1,"11":1,"14":1,"17":1,"18":1,"30":1,"31":1}}],["them",{"2":{"2":1,"3":1,"6":1,"7":1,"11":4,"12":1,"13":1,"14":1,"15":2,"16":3,"17":1,"18":1,"19":1,"22":1,"23":1,"26":1,"30":1,"34":3,"36":1,"42":1,"54":1,"57":1}}],["theoretically",{"2":{"1":1}}],["they",{"2":{"0":1,"2":4,"5":1,"10":1,"11":7,"12":2,"14":2,"15":5,"16":3,"17":3,"18":2,"19":1,"21":3,"22":2,"23":4,"25":1,"30":1,"31":3,"32":1,"33":2,"34":7,"35":6,"42":1,"48":1}}],["these",{"2":{"0":1,"1":1,"3":1,"4":1,"8":1,"9":1,"11":2,"13":1,"16":6,"17":1,"20":1,"22":4,"23":3,"25":1,"33":2,"34":1,"35":3,"38":1,"50":1}}],["thepaperpilot",{"2":{"0":9,"2":1}}],["their",{"2":{"0":1,"1":1,"2":1,"3":1,"5":2,"6":1,"8":1,"9":1,"11":2,"12":1,"14":2,"15":1,"16":2,"17":2,"18":3,"20":1,"21":1,"35":2,"42":1,"43":1,"48":1,"54":1}}],["the",{"0":{"19":1,"20":1,"21":1,"37":1,"38":1,"39":1,"45":1,"47":1,"49":1,"50":1,"51":1},"2":{"0":1,"1":5,"2":11,"3":3,"4":12,"5":3,"6":6,"7":5,"8":5,"9":6,"10":16,"11":21,"12":7,"13":5,"14":14,"15":18,"16":51,"17":15,"18":7,"19":16,"20":3,"21":17,"22":14,"23":9,"24":5,"25":9,"26":1,"27":3,"28":1,"30":12,"31":5,"32":4,"33":13,"34":28,"35":50,"36":9,"37":10,"38":8,"39":4,"40":2,"41":1,"42":6,"43":2,"45":9,"46":5,"47":1,"48":2,"49":2,"50":1,"51":2,"52":5,"54":1,"56":4,"57":2,"58":1,"61":2}}],["t",{"2":{"0":1,"1":3,"2":1,"6":2,"7":4,"10":3,"11":4,"12":1,"14":3,"16":2,"17":3,"18":4,"20":1,"21":2,"22":2,"23":1,"24":1,"27":1,"30":2,"34":2,"35":7,"36":2,"38":3,"40":1,"41":1,"42":1,"43":1,"54":1}}],["tongue",{"2":{"45":2}}],["tons",{"2":{"16":1}}],["together",{"2":{"33":1}}],["totally",{"2":{"24":1}}],["towards",{"2":{"20":1,"21":1,"23":1,"30":1,"33":2,"35":1}}],["tolerant",{"2":{"14":1}}],["tool",{"2":{"30":1}}],["tools",{"0":{"44":1},"2":{"0":1,"7":1,"34":1,"50":1}}],["too",{"2":{"14":2,"16":2,"21":2,"34":2,"35":2,"48":1}}],["top",{"2":{"14":1,"21":1}}],["topic",{"2":{"14":1}}],["topaz",{"2":{"0":2}}],["toy",{"2":{"11":1}}],["to",{"0":{"6":1,"7":1,"8":1,"32":1,"53":1},"2":{"0":3,"1":6,"2":11,"3":11,"4":10,"5":6,"6":13,"7":11,"8":6,"9":6,"10":19,"11":30,"12":8,"13":3,"14":18,"15":11,"16":31,"17":11,"18":6,"19":8,"20":6,"21":13,"22":9,"23":6,"24":6,"25":9,"27":2,"28":6,"29":1,"30":12,"31":5,"32":6,"33":16,"34":15,"35":28,"36":6,"37":6,"38":2,"39":1,"40":2,"41":3,"42":6,"43":1,"45":2,"46":2,"48":1,"49":1,"50":3,"52":4,"53":1,"54":1,"56":1,"57":1,"61":2}}],["aaa",{"0":{"52":1},"2":{"52":3}}],["aesthetic",{"2":{"39":1}}],["aesthetics",{"2":{"16":1}}],["awesome",{"0":{"39":1},"2":{"42":1}}],["away",{"2":{"16":1,"34":3,"35":3}}],["aware",{"2":{"9":2,"14":1}}],["american",{"2":{"45":1}}],["amazing",{"2":{"38":1}}],["am",{"0":{"27":1}}],["amongst",{"2":{"21":1,"33":1,"34":1,"47":1}}],["amount",{"2":{"11":1,"23":2,"35":1,"36":2}}],["amounts",{"2":{"1":1}}],["affordable",{"2":{"34":1}}],["affect",{"2":{"25":1}}],["after",{"2":{"6":1,"14":1,"33":1,"34":3,"35":1}}],["apart",{"2":{"14":1}}],["app",{"2":{"57":1}}],["appropriate",{"2":{"18":1,"32":1}}],["approach",{"2":{"17":1}}],["applicable",{"2":{"36":1}}],["applied",{"2":{"19":1}}],["applies",{"2":{"2":1,"9":1,"12":1}}],["apply",{"2":{"16":1,"22":1,"24":1,"35":1}}],["appear",{"2":{"16":1}}],["appealing",{"2":{"18":1}}],["appeals",{"2":{"11":1,"12":1,"15":1}}],["appeal",{"2":{"10":1,"11":2,"12":2,"16":1,"21":1,"28":2,"33":1,"35":1}}],["apparent",{"2":{"14":1}}],["ag501",{"2":{"46":1}}],["again",{"2":{"34":1,"35":1,"37":1}}],["against",{"2":{"14":1,"30":1,"34":1}}],["aggressively",{"2":{"14":1}}],["aggressive",{"2":{"14":1}}],["agree",{"2":{"14":1}}],["avoid",{"2":{"20":1}}],["avoiding",{"0":{"13":1}}],["available",{"2":{"7":1,"9":2,"26":1,"35":1}}],["absolutely",{"2":{"35":1}}],["abstracts",{"2":{"35":1}}],["abstract",{"2":{"35":3}}],["able",{"2":{"11":1,"12":1,"35":1}}],["abundant",{"2":{"9":1}}],["abundance",{"2":{"9":1}}],["above",{"2":{"9":1,"16":1,"17":1,"21":1,"35":2}}],["about",{"0":{"0":1,"51":1},"2":{"3":1,"7":1,"11":3,"12":2,"14":2,"15":2,"16":1,"17":2,"19":1,"27":1,"35":3,"37":1,"49":1,"56":1}}],["augmenting",{"2":{"35":1}}],["augments",{"2":{"10":1}}],["automating",{"2":{"35":2}}],["automation",{"2":{"23":1,"35":3}}],["automatic",{"2":{"17":1,"23":1}}],["automatically",{"2":{"17":1,"23":2}}],["automated",{"2":{"34":2,"35":3}}],["automate",{"2":{"16":1,"34":1,"35":1}}],["authentication",{"2":{"3":1}}],["authority",{"2":{"19":1,"27":1}}],["authoritative",{"2":{"2":1}}],["author",{"2":{"2":1}}],["audio",{"2":{"4":1}}],["admittedly",{"2":{"35":1}}],["admin",{"2":{"7":1}}],["advent",{"2":{"43":1}}],["adventures",{"0":{"39":1}}],["adventure",{"2":{"16":2}}],["advantage",{"2":{"10":1,"30":1}}],["ads",{"2":{"9":1,"53":1}}],["adds",{"2":{"10":1,"24":1}}],["addition",{"2":{"46":1}}],["additionally",{"2":{"7":1,"16":1,"17":1,"21":1}}],["additional",{"2":{"5":1,"16":1,"27":1,"46":1}}],["adding",{"2":{"35":2,"56":1}}],["addiction",{"2":{"11":5,"16":1}}],["addictive",{"2":{"9":2,"11":1}}],["added",{"2":{"2":1,"46":1}}],["add",{"2":{"2":1,"5":1,"7":1,"35":2}}],["address",{"2":{"1":1}}],["adoption",{"2":{"1":1}}],["align",{"2":{"61":1}}],["alveolar",{"2":{"45":3}}],["alone",{"2":{"35":1,"42":1}}],["alongside",{"2":{"33":1}}],["along",{"2":{"21":1,"35":1,"57":1,"58":1}}],["alright",{"2":{"20":1}}],["already",{"2":{"15":1,"21":1,"22":1}}],["almost",{"2":{"9":1,"16":1}}],["always",{"2":{"8":1,"16":1}}],["also",{"2":{"2":1,"5":1,"9":1,"10":1,"16":3,"18":1,"24":3,"25":1,"27":1,"34":1,"35":3,"56":1}}],["alternative",{"2":{"23":1}}],["although",{"2":{"10":1,"14":1,"15":1,"16":1,"18":1,"21":1,"34":1,"35":1,"39":1,"41":1,"42":1}}],["alt",{"2":{"1":1}}],["allowed",{"2":{"30":1}}],["allow",{"2":{"20":1,"25":1}}],["allowing",{"2":{"11":1,"19":1,"21":1}}],["allows",{"2":{"11":1,"12":1}}],["all",{"2":{"1":1,"2":1,"3":2,"6":4,"7":1,"8":1,"11":4,"12":1,"15":1,"16":4,"17":1,"18":1,"19":2,"22":1,"30":1,"32":2,"34":3,"35":6,"38":1,"59":1,"61":2}}],["acamaeda",{"2":{"34":1}}],["achieving",{"2":{"33":1}}],["achieve",{"2":{"11":1}}],["acknowledged",{"2":{"19":1}}],["across",{"2":{"18":1,"23":1,"30":1}}],["accomplishment",{"2":{"12":1,"32":1}}],["account",{"2":{"3":1,"6":1}}],["accounts",{"2":{"0":1,"5":1,"19":1}}],["access",{"2":{"42":1}}],["accessibility",{"2":{"33":1}}],["accessible",{"2":{"7":1}}],["accept",{"2":{"17":1}}],["accepting",{"2":{"9":1}}],["actual",{"2":{"10":1,"17":2,"30":1,"33":1}}],["actually",{"2":{"1":1,"4":1,"10":1,"11":2}}],["activity",{"2":{"33":1}}],["active",{"2":{"16":1}}],["actively",{"2":{"7":1,"11":1,"33":1}}],["actions",{"2":{"25":1,"37":1}}],["action",{"2":{"6":2,"23":1}}],["act",{"2":{"3":1,"15":1}}],["armor",{"2":{"43":1}}],["arms",{"2":{"8":1,"52":1}}],["arc",{"2":{"37":2}}],["arguably",{"2":{"24":1}}],["arguing",{"2":{"14":1,"15":1}}],["arguments",{"2":{"15":1}}],["argument",{"2":{"11":1,"14":1,"15":1,"34":1}}],["argues",{"2":{"18":1}}],["argue",{"2":{"10":2,"11":2,"14":1,"15":2,"16":1,"21":1,"25":2,"35":1}}],["argued",{"2":{"10":1,"14":1,"19":3}}],["around",{"2":{"7":1,"8":1,"26":1}}],["artificially",{"2":{"33":1}}],["articulate",{"2":{"31":1}}],["article",{"2":{"1":1}}],["artistic",{"0":{"15":1},"2":{"15":5}}],["art",{"2":{"7":1,"15":11,"16":1}}],["arbitrary",{"2":{"4":1}}],["area",{"2":{"15":1}}],["aren",{"2":{"11":2,"18":1,"21":1,"23":1,"43":1}}],["are",{"0":{"7":1,"8":1,"24":1},"2":{"0":2,"1":1,"2":1,"3":1,"4":3,"5":2,"6":1,"7":5,"8":1,"9":5,"10":2,"11":11,"12":2,"14":4,"15":6,"16":13,"17":12,"18":2,"19":1,"20":1,"21":3,"22":2,"23":3,"25":4,"26":1,"30":3,"31":1,"33":1,"34":7,"35":5,"36":1,"48":1,"50":4,"61":1}}],["announced",{"2":{"42":1}}],["answer",{"2":{"35":1}}],["answers",{"2":{"20":1}}],["angry",{"2":{"32":1}}],["anime",{"2":{"26":1}}],["analyze",{"2":{"30":1}}],["analyzing",{"2":{"5":1}}],["analytical",{"2":{"20":1}}],["anecdotal",{"2":{"16":1}}],["another",{"2":{"16":1,"17":2,"18":1,"22":1,"34":1,"36":1}}],["anonymity",{"2":{"6":2}}],["anonymous",{"2":{"5":1}}],["anonymously",{"2":{"1":1}}],["anticipate",{"2":{"31":2}}],["anticipating",{"2":{"21":1}}],["antimatter",{"2":{"25":1,"34":4}}],["anti",{"2":{"9":1,"42":1}}],["anthony",{"2":{"0":1,"61":1}}],["an",{"0":{"29":1},"2":{"3":1,"4":2,"6":1,"7":2,"9":1,"11":2,"14":4,"15":4,"16":3,"17":4,"19":1,"20":1,"21":3,"22":2,"23":3,"24":2,"30":1,"32":2,"33":1,"34":1,"35":3,"36":2,"45":2,"50":1,"57":1}}],["anyways",{"2":{"16":1}}],["anything",{"2":{"4":1,"11":2,"24":1,"27":1}}],["any",{"2":{"3":3,"5":1,"7":1,"8":1,"10":2,"11":1,"15":9,"16":3,"19":4,"21":1,"24":2,"27":1,"33":1,"34":2,"35":2,"37":1,"42":1,"48":1}}],["anyone",{"2":{"2":2,"8":1}}],["anymore",{"2":{"0":1}}],["and",{"0":{"44":1},"2":{"0":2,"1":1,"2":6,"3":1,"4":4,"5":6,"6":5,"7":3,"8":5,"9":7,"10":10,"11":16,"12":10,"13":2,"14":12,"15":13,"16":15,"17":8,"18":1,"19":5,"20":2,"21":2,"22":2,"23":2,"24":2,"25":7,"26":1,"27":1,"30":12,"31":8,"32":6,"33":6,"34":12,"35":26,"36":3,"37":6,"38":1,"39":2,"40":1,"43":1,"45":3,"46":3,"47":1,"48":1,"50":2,"52":1,"53":1,"56":1,"57":2,"58":1,"61":2}}],["ai",{"2":{"0":1,"5":1}}],["asked",{"2":{"20":1,"30":1}}],["ascension",{"2":{"16":1}}],["ascribes",{"2":{"16":1}}],["aside",{"2":{"15":1}}],["associating",{"2":{"1":1}}],["associated",{"2":{"1":1,"35":1}}],["associate",{"2":{"1":1}}],["as",{"0":{"17":1,"18":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"2":{"0":2,"2":6,"3":2,"4":5,"5":5,"6":1,"8":3,"10":4,"11":9,"12":3,"14":2,"15":5,"16":16,"17":5,"18":2,"19":3,"21":3,"22":3,"23":3,"27":2,"30":3,"33":5,"34":7,"35":11,"37":1,"38":4,"45":1,"46":1}}],["attain",{"2":{"25":1}}],["attack",{"2":{"30":1,"32":1}}],["attacks",{"2":{"14":1}}],["attaching",{"2":{"15":1}}],["attention",{"2":{"11":1,"37":1}}],["atproto",{"2":{"1":1}}],["at",{"2":{"0":1,"2":1,"5":2,"6":1,"10":1,"11":3,"12":1,"13":1,"14":3,"16":3,"17":1,"18":1,"30":2,"33":1,"34":3,"35":2,"38":2,"45":1,"46":2}}],["a",{"2":{"0":3,"1":8,"2":16,"3":6,"4":7,"5":6,"6":10,"7":6,"8":1,"9":4,"10":14,"11":16,"12":3,"13":3,"14":12,"15":12,"16":19,"17":10,"18":9,"19":13,"20":6,"21":13,"22":9,"23":5,"24":2,"25":11,"26":3,"27":4,"30":6,"31":1,"32":3,"33":9,"34":19,"35":24,"36":8,"37":7,"38":2,"39":1,"41":1,"42":1,"43":1,"45":6,"46":1,"47":2,"49":1,"50":1,"52":1,"54":1,"56":2,"57":2,"59":1,"60":2,"61":2}}],["mtx",{"2":{"52":1,"53":1,"55":1}}],["mindless",{"2":{"33":1}}],["mind",{"2":{"30":1,"32":1,"35":1,"37":1}}],["minimize",{"2":{"33":1}}],["minigame",{"2":{"25":1}}],["minion",{"2":{"25":1}}],["mine",{"2":{"14":1,"43":1}}],["misplaying",{"2":{"22":1}}],["microtransactions",{"2":{"16":1}}],["micro",{"2":{"11":1}}],["might",{"2":{"10":2,"14":1,"15":1,"17":1,"21":2}}],["mutually",{"2":{"22":1}}],["multiplayer",{"2":{"59":1}}],["multiply",{"2":{"36":1}}],["multiplier",{"2":{"34":1}}],["multipliers",{"2":{"34":6}}],["multiple",{"2":{"6":1,"34":1}}],["multitasking",{"2":{"11":1}}],["must",{"2":{"10":1,"19":1,"23":1,"35":1}}],["music",{"2":{"7":1}}],["much",{"2":{"9":1,"12":1,"14":2,"16":2,"21":1,"31":1,"32":1,"34":3,"35":1,"37":1,"38":1,"52":1}}],["mockup",{"2":{"57":1}}],["mocking",{"2":{"14":1}}],["move",{"2":{"34":1,"39":1}}],["movie",{"2":{"15":1}}],["moving",{"2":{"7":1,"57":1}}],["model",{"2":{"45":1}}],["modern",{"2":{"16":1,"33":1,"46":1}}],["moderator",{"2":{"5":1,"6":1}}],["moderation",{"0":{"5":1},"2":{"5":1,"6":1,"16":1}}],["modifiers",{"2":{"35":1}}],["modifier",{"2":{"21":1}}],["moment",{"2":{"21":1}}],["motivated",{"2":{"32":1}}],["motivation",{"2":{"23":1}}],["motivations",{"2":{"11":1}}],["motivating",{"2":{"8":1}}],["motive",{"2":{"16":1}}],["mobile",{"2":{"9":7,"16":1}}],["monetized",{"2":{"9":2}}],["monetization",{"0":{"9":1,"55":1},"2":{"9":3,"42":1,"54":1}}],["money",{"2":{"2":1,"9":1,"11":1,"16":1,"25":1,"42":2,"52":2}}],["mostly",{"2":{"8":1,"52":1}}],["most",{"2":{"2":2,"11":3,"15":3,"16":1,"17":3,"19":1,"22":2,"27":2,"30":1,"34":1,"35":1,"43":1,"61":1}}],["more",{"2":{"1":1,"7":1,"10":2,"11":4,"12":3,"14":5,"15":2,"16":2,"17":3,"19":2,"21":1,"23":1,"25":3,"31":1,"32":1,"33":2,"34":2,"35":6,"36":1,"37":2,"42":1,"43":2,"46":2,"52":1}}],["marginalia",{"2":{"47":1}}],["machines",{"2":{"35":1}}],["max",{"2":{"34":3,"37":4,"42":1}}],["maintainability",{"2":{"46":1}}],["mainstream",{"2":{"16":2}}],["mainly",{"2":{"9":2,"34":1}}],["majority",{"2":{"16":1}}],["major",{"2":{"15":1,"37":2}}],["mastered",{"2":{"12":1}}],["mastodon",{"2":{"0":1,"1":1}}],["managed",{"2":{"50":1}}],["manages",{"2":{"35":1}}],["management",{"2":{"22":1,"24":1}}],["manual",{"2":{"17":1}}],["manipulation",{"2":{"16":1}}],["manipulative",{"2":{"16":3}}],["manipulating",{"2":{"11":1,"16":4}}],["manipulates",{"2":{"16":2}}],["manipulate",{"2":{"16":1}}],["many",{"2":{"1":1,"9":1,"10":4,"14":1,"15":2,"16":1,"18":1,"19":1,"21":3,"33":1,"35":1,"36":1}}],["matter",{"2":{"32":1}}],["material",{"2":{"6":2,"16":1}}],["matching",{"2":{"5":1}}],["matches",{"2":{"4":1}}],["makes",{"2":{"7":1,"8":1,"10":1,"14":1,"16":1,"17":2,"38":1}}],["make",{"0":{"7":1},"2":{"5":1,"7":4,"9":1,"10":2,"11":1,"14":1,"15":1,"16":2,"18":2,"20":2,"33":1,"35":1,"36":1,"50":3,"52":3,"54":1}}],["making",{"0":{"27":1,"29":1},"2":{"0":1,"1":1,"7":2,"10":1,"11":2,"12":1,"17":1,"20":2,"27":1,"31":1,"33":1,"34":2,"42":1,"48":1,"50":1}}],["made",{"2":{"4":1,"5":1,"10":2,"15":3,"24":1,"27":2,"30":1,"34":1,"36":3}}],["maybe",{"2":{"18":1}}],["may",{"2":{"3":2,"11":4,"12":2,"15":1,"16":3,"21":1,"23":3,"25":1,"26":1,"31":1,"32":1,"33":1,"35":2,"36":1}}],["myriad",{"2":{"34":1}}],["myself",{"2":{"27":1}}],["mystery",{"2":{"21":1}}],["my",{"0":{"46":1},"2":{"0":1,"2":3,"14":1,"16":2,"20":1,"24":1,"27":1,"31":1,"35":1,"37":2,"38":1,"43":1,"46":1,"61":2}}],["m",{"2":{"0":1,"2":1,"14":4,"15":1,"20":1,"21":1,"33":1,"34":2,"35":1,"42":1,"56":1,"57":3,"58":1,"59":1,"60":1,"61":1}}],["meet",{"2":{"38":1}}],["mental",{"2":{"34":1}}],["mentioned",{"2":{"18":1,"35":1}}],["means",{"2":{"16":2,"17":1,"18":1,"19":1,"22":1,"35":3}}],["meaning",{"2":{"15":1,"23":1}}],["meaningfully",{"2":{"33":1}}],["meaningful",{"2":{"13":1,"34":3}}],["method",{"2":{"34":1}}],["met",{"2":{"33":1}}],["metric",{"2":{"16":1}}],["meta",{"2":{"10":6,"18":2,"24":1}}],["merit",{"0":{"15":1},"2":{"15":5}}],["merely",{"2":{"3":1}}],["melee",{"2":{"14":1}}],["mechanically",{"2":{"20":1}}],["mechanic",{"2":{"14":3,"16":1,"21":3,"23":1,"25":4,"33":1,"35":8}}],["mechanics",{"2":{"10":1,"15":1,"17":1,"18":1,"21":2,"23":1,"25":1,"31":1,"35":3}}],["message",{"2":{"2":1,"3":2,"4":7,"5":3,"6":2}}],["messages",{"2":{"1":1,"3":6,"4":4,"5":9,"6":7,"57":1}}],["media",{"2":{"1":2,"58":1}}],["me",{"0":{"0":1},"2":{"0":2,"10":1,"14":1,"15":1,"39":1}}],["io",{"2":{"43":1}}],["ignores",{"2":{"35":1}}],["ignored",{"2":{"5":1}}],["ip",{"2":{"34":6}}],["irl",{"2":{"32":1}}],["ii",{"2":{"25":1}}],["illustrated",{"2":{"17":1}}],["illegal",{"2":{"6":2}}],["iap",{"2":{"9":1}}],["iaps",{"2":{"9":1}}],["immediately",{"2":{"36":1}}],["immersing",{"2":{"14":1}}],["imagine",{"2":{"34":1}}],["image",{"2":{"4":1}}],["impact",{"2":{"21":2,"34":1,"36":1}}],["implications",{"2":{"35":1}}],["implies",{"2":{"17":1}}],["implying",{"2":{"17":1}}],["implementing",{"2":{"7":1,"56":1}}],["implement",{"2":{"7":1,"35":1}}],["implemented",{"2":{"4":1}}],["implementation",{"2":{"1":1}}],["imperfectly",{"2":{"14":1}}],["improve",{"2":{"46":1}}],["improvement",{"2":{"11":1,"30":1}}],["improving",{"2":{"12":1,"30":3,"46":1,"58":1}}],["impossible",{"2":{"10":1}}],["important",{"2":{"2":2,"10":1,"31":1}}],["idling",{"2":{"25":1}}],["idler",{"2":{"16":2}}],["idlers",{"0":{"16":1}}],["idle",{"2":{"9":3,"11":1,"16":3,"20":1,"25":3,"33":1}}],["ids",{"2":{"5":1}}],["id",{"2":{"3":2,"4":4}}],["identical",{"2":{"6":1}}],["identified",{"2":{"6":1}}],["identities",{"2":{"2":3,"50":1}}],["identity",{"0":{"2":1},"2":{"1":1,"2":3,"3":1,"6":1,"30":1}}],["ideally",{"2":{"50":1}}],["ideals",{"2":{"19":1}}],["ideas",{"2":{"1":1,"35":1}}],["idea",{"2":{"1":1,"16":1,"36":1}}],["itrtg",{"2":{"25":1}}],["itch",{"2":{"8":1,"43":1}}],["its",{"2":{"3":1,"4":1,"9":1,"10":2,"14":1,"15":2,"16":1,"19":2,"32":1,"37":1,"51":1}}],["itself",{"2":{"2":1,"4":1,"7":1,"15":2,"16":1,"32":1}}],["it",{"2":{"1":1,"2":1,"4":2,"6":2,"7":1,"8":2,"9":2,"10":11,"11":10,"12":3,"14":7,"15":10,"16":10,"17":6,"18":3,"19":3,"20":1,"21":6,"24":1,"30":3,"31":1,"32":4,"33":5,"34":10,"35":16,"36":3,"37":2,"38":1,"39":1,"40":1,"41":1,"42":2,"46":1,"56":1}}],["issues",{"2":{"33":1,"38":1}}],["isn",{"2":{"10":2,"11":2,"14":1,"22":1,"24":1,"35":2,"36":1}}],["is",{"0":{"38":1,"40":1,"41":1,"42":1},"2":{"1":2,"2":5,"4":2,"5":1,"6":3,"7":2,"8":1,"9":2,"10":9,"11":5,"12":2,"14":6,"15":6,"16":13,"17":12,"19":4,"20":2,"21":4,"22":6,"23":4,"24":1,"25":2,"28":1,"30":3,"31":1,"32":2,"33":7,"34":5,"35":20,"36":2,"37":2,"38":1,"42":3,"43":1,"45":2,"47":1,"49":1,"50":1,"54":2,"60":1,"61":1}}],["if",{"2":{"1":1,"2":4,"4":1,"5":2,"6":2,"7":2,"8":1,"9":1,"10":1,"11":3,"14":2,"15":2,"16":3,"17":2,"18":2,"20":1,"22":1,"23":1,"24":1,"27":1,"30":3,"33":1,"34":1,"35":5,"36":3}}],["input",{"2":{"45":1}}],["invested",{"2":{"38":1}}],["invalidate",{"2":{"36":1}}],["involved",{"2":{"46":1}}],["involves",{"2":{"45":1}}],["involve",{"2":{"17":1}}],["innovative",{"2":{"35":1}}],["infinity",{"2":{"34":3}}],["inflating",{"2":{"34":1}}],["infrequent",{"2":{"33":1}}],["information",{"2":{"2":1}}],["inherently",{"2":{"16":2}}],["inherit",{"2":{"12":1}}],["introducing",{"2":{"35":1}}],["introduced",{"2":{"34":2,"35":1}}],["intrinsically",{"2":{"14":1}}],["intentionally",{"2":{"14":1}}],["intended",{"2":{"14":3}}],["internet",{"2":{"49":1}}],["internalize",{"2":{"30":1}}],["internal",{"2":{"3":1}}],["interpret",{"2":{"30":1}}],["interpretation",{"0":{"19":1},"2":{"16":1,"17":1,"19":2,"24":3}}],["interactions",{"2":{"33":1,"35":1}}],["interaction",{"0":{"33":1},"1":{"34":1},"2":{"23":2,"33":2}}],["interacting",{"2":{"22":1}}],["interacted",{"2":{"2":1}}],["interface",{"2":{"22":1,"46":1}}],["interest",{"2":{"27":1}}],["interested",{"2":{"16":1}}],["interesting",{"2":{"16":1,"26":1,"34":1,"35":1,"41":1}}],["interests",{"2":{"0":1,"16":1,"61":1}}],["interchangeably",{"2":{"16":1}}],["into",{"2":{"11":1,"15":2,"16":2,"25":1,"26":1,"32":1,"34":3,"57":1}}],["industry",{"2":{"54":1}}],["indeed",{"2":{"10":1,"11":1,"15":1}}],["indie",{"0":{"54":1},"2":{"49":1,"51":1}}],["indieweb",{"0":{"56":1},"2":{"4":1,"48":1,"56":2}}],["individually",{"2":{"33":1}}],["indicator",{"2":{"21":1}}],["indicate",{"2":{"4":2,"12":1,"21":1,"22":1}}],["initial",{"2":{"6":1,"8":1,"32":1}}],["inevitably",{"2":{"4":1,"35":1}}],["incoming",{"2":{"57":1}}],["inconsistencies",{"2":{"38":1}}],["increasingly",{"2":{"25":1,"35":1}}],["increasing",{"2":{"15":2,"16":1,"17":2,"21":1}}],["increase",{"2":{"10":1,"35":1}}],["increases",{"2":{"10":1,"35":2}}],["increased",{"2":{"10":1}}],["incredible",{"2":{"11":1}}],["incredibly",{"2":{"7":1,"8":1,"9":1,"11":1,"14":1,"31":1,"34":1,"42":1,"50":1}}],["increlution",{"2":{"9":1,"20":1,"21":1,"25":1}}],["incrementalness",{"2":{"19":1,"20":1,"21":1}}],["incrementals",{"0":{"7":1,"16":1,"17":1,"18":1,"24":1},"1":{"19":1,"20":1,"21":1,"22":1,"23":1,"24":1},"2":{"7":2,"9":1,"10":1,"14":1,"15":2,"16":2,"17":7,"18":4,"21":2,"22":4,"23":2,"28":4,"29":1}}],["incremental",{"0":{"20":1,"29":1,"58":1},"2":{"0":3,"7":1,"8":3,"9":3,"10":3,"11":11,"12":1,"13":1,"14":3,"15":7,"16":24,"17":12,"18":3,"19":1,"20":1,"21":4,"22":3,"23":6,"24":4,"25":3,"26":1,"27":4,"33":1,"35":6,"43":1,"44":1,"48":1,"58":1,"59":1,"60":1}}],["including",{"2":{"4":1,"16":1,"33":1}}],["includes",{"2":{"12":1,"46":1}}],["include",{"2":{"4":1,"21":1,"25":4}}],["insults",{"2":{"30":1}}],["insatiable",{"2":{"16":1}}],["institutes",{"2":{"45":1}}],["instinctively",{"2":{"11":1}}],["instructions",{"0":{"35":1},"2":{"35":1}}],["instead",{"2":{"10":1,"23":1,"30":1,"34":1,"35":3}}],["instances",{"2":{"1":1,"23":1}}],["instance",{"2":{"1":1,"48":1}}],["inspiration",{"0":{"1":1}}],["in",{"2":{"0":1,"2":1,"4":1,"5":2,"7":3,"8":3,"9":2,"10":8,"11":6,"12":1,"13":1,"14":6,"15":2,"16":9,"17":3,"18":1,"21":5,"22":1,"23":4,"24":1,"25":3,"26":2,"27":2,"30":2,"31":1,"32":3,"33":5,"34":10,"35":10,"36":1,"37":3,"38":2,"43":1,"45":3,"46":2,"48":1,"50":1,"53":1,"61":1}}],["i",{"0":{"27":1},"2":{"0":6,"2":3,"9":2,"10":8,"11":1,"14":10,"15":8,"16":7,"17":2,"18":2,"19":2,"20":5,"21":4,"22":1,"24":2,"25":1,"27":4,"33":4,"34":10,"35":3,"36":1,"37":3,"38":3,"39":2,"40":2,"41":1,"42":4,"43":1,"54":1,"56":3,"57":3,"58":1,"59":1,"60":1,"61":2}}]],"serializationVersion":2}';export{e as default}; diff --git a/assets/chunks/VPLocalSearchBox.zY3w-sDv.js b/assets/chunks/VPLocalSearchBox.CqtzcjrV.js similarity index 99% rename from assets/chunks/VPLocalSearchBox.zY3w-sDv.js rename to assets/chunks/VPLocalSearchBox.CqtzcjrV.js index 3eb7ce29..e8b7c53a 100644 --- a/assets/chunks/VPLocalSearchBox.zY3w-sDv.js +++ b/assets/chunks/VPLocalSearchBox.CqtzcjrV.js @@ -1,4 +1,4 @@ -var Nt=Object.defineProperty;var Ct=(o,e,t)=>e in o?Nt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var ke=(o,e,t)=>(Ct(o,typeof e!="symbol"?e+"":e,t),t);import{X as It,s as ie,v as Be,aO as Dt,aP as kt,d as Ot,G as we,aQ as et,h as xe,aR as Rt,aS as _t,x as Mt,aT as Lt,y as Oe,R as he,Q as Fe,aU as Pt,a3 as zt,Y as Vt,U as Bt,aV as $t,o as X,b as Wt,j as k,a1 as Kt,k as G,aW as Ut,aX as Jt,a4 as jt,c as te,n as tt,e as Ee,E as rt,F as at,a as de,t as ve,aY as Gt,p as Qt,l as Ht,aZ as nt,a_ as qt,aE as Yt,aK as Zt,a$ as Xt,_ as er}from"./framework.VBE0TPts.js";import{u as tr,c as rr}from"./theme.Drk7y7Ch.js";const ar={root:()=>It(()=>import("./@localSearchIndexroot.B-h4d9iN.js"),[])};/*! +var Nt=Object.defineProperty;var Ct=(o,e,t)=>e in o?Nt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var ke=(o,e,t)=>(Ct(o,typeof e!="symbol"?e+"":e,t),t);import{X as It,s as ie,v as Be,aO as Dt,aP as kt,d as Ot,G as we,aQ as et,h as xe,aR as Rt,aS as _t,x as Mt,aT as Lt,y as Oe,R as he,Q as Fe,aU as Pt,a3 as zt,Y as Vt,U as Bt,aV as $t,o as X,b as Wt,j as k,a1 as Kt,k as G,aW as Ut,aX as Jt,a4 as jt,c as te,n as tt,e as Ee,E as rt,F as at,a as de,t as ve,aY as Gt,p as Qt,l as Ht,aZ as nt,a_ as qt,aE as Yt,aK as Zt,a$ as Xt,_ as er}from"./framework.VBE0TPts.js";import{u as tr,c as rr}from"./theme.BXTgxh1Z.js";const ar={root:()=>It(()=>import("./@localSearchIndexroot.D6-2_xS5.js"),[])};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var pt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Te=pt.join(","),yt=typeof Element>"u",se=yt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!yt&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Ce=function o(e,t){var r;t===void 0&&(t=!0);var n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=n===""||n==="true",i=a||t&&e&&o(e.parentNode);return i},nr=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},mt=function(e,t,r){if(Ce(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Te));return t&&se.call(e,Te)&&n.unshift(e),n=n.filter(r),n},gt=function o(e,t,r){for(var n=[],a=Array.from(e);a.length;){var i=a.shift();if(!Ce(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,l=o(u,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var d=se.call(i,Te);d&&r.filter(i)&&(t||!e.includes(i))&&n.push(i);var h=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),v=!Ce(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(h&&v){var m=o(h===!0?i.children:h.children,!0,r);r.flatten?n.push.apply(n,m):n.push({scopeParent:i,candidates:m})}else a.unshift.apply(a,i.children)}}return n},bt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},oe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||nr(e))&&!bt(e)?0:e.tabIndex},ir=function(e,t){var r=oe(e);return r<0&&t&&!bt(e)?0:r},or=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},wt=function(e){return e.tagName==="INPUT"},sr=function(e){return wt(e)&&e.type==="hidden"},ur=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},lr=function(e,t){for(var r=0;rsummary:first-of-type"),i=a?e.parentElement:e;if(se.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var u=e.parentElement,l=Ne(e);if(u&&!u.shadowRoot&&n(u)===!0)return it(e);e.assignedSlot?e=e.assignedSlot:!u&&l!==e.ownerDocument?e=l.host:e=u}e=s}if(dr(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return it(e);return!1},pr=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r=0)},mr=function o(e){var t=[],r=[];return e.forEach(function(n,a){var i=!!n.scopeParent,s=i?n.scopeParent:n,u=ir(s,i),l=i?o(n.candidates):s;u===0?i?t.push.apply(t,l):t.push(s):r.push({documentOrder:a,tabIndex:u,item:n,isScope:i,content:l})}),r.sort(or).reduce(function(n,a){return a.isScope?n.push.apply(n,a.content):n.push(a.content),n},[]).concat(t)},gr=function(e,t){t=t||{};var r;return t.getShadowRoot?r=gt([e],t.includeContainer,{filter:$e.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:yr}):r=mt(e,t.includeContainer,$e.bind(null,t)),mr(r)},br=function(e,t){t=t||{};var r;return t.getShadowRoot?r=gt([e],t.includeContainer,{filter:Ie.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=mt(e,t.includeContainer,Ie.bind(null,t)),r},ue=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return se.call(e,Te)===!1?!1:$e(t,e)},wr=pt.concat("iframe").join(","),Re=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return se.call(e,wr)===!1?!1:Ie(t,e)};/*! diff --git a/assets/chunks/theme.Drk7y7Ch.js b/assets/chunks/theme.BXTgxh1Z.js similarity index 55% rename from assets/chunks/theme.Drk7y7Ch.js rename to assets/chunks/theme.BXTgxh1Z.js index 9f7806d5..b0a5f34c 100644 --- a/assets/chunks/theme.Drk7y7Ch.js +++ b/assets/chunks/theme.BXTgxh1Z.js @@ -1,13 +1,13 @@ -const __vite__fileDeps=["assets/chunks/VPLocalSearchBox.zY3w-sDv.js","assets/chunks/framework.VBE0TPts.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{d as ke,o as Y,c as ge,r as pe,n as yt,a as qt,t as pt,b as Xe,w as xe,e as Fe,T as eu,_ as qe,u as Ym,i as Zm,f as Km,g as tu,h as He,j as ve,k as ee,p as $t,l as Xt,m as cs,q as sc,s as Ve,v as wt,x as Li,y as Fn,z as $n,A as ef,B as Jm,C as jm,D as rn,F as xt,E as Qt,G as Dn,H as La,I as Ue,J as Xs,K as tf,L as Xr,M as ca,N as qr,O as Qm,P as nu,Q as rc,R as iu,S as nf,U as Na,V as br,W as eg,X as tg,Y as sf,Z as Sr,$ as ng,a0 as ig,a1 as sg,a2 as rf,a3 as rg,a4 as of,a5 as og,a6 as ag,a7 as lg,a8 as cg,a9 as Ma,aa as ug,ab as hg,ac as oh,ad as dg,ae as fg,af as pg}from"./framework.VBE0TPts.js";const mg=ke({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(Y(),ge("span",{class:yt(["VPBadge",e.type])},[pe(e.$slots,"default",{},()=>[qt(pt(e.text),1)])],2))}}),gg={key:0,class:"VPBackdrop"},_g=ke({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(Y(),Xe(eu,{name:"fade"},{default:xe(()=>[e.show?(Y(),ge("div",gg)):Fe("",!0)]),_:1}))}}),vg=qe(_g,[["__scopeId","data-v-c79a1216"]]),lt=Ym;function yg(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function oc(s){return/^\//.test(s)?s:`/${s}`}function su(s){const{pathname:e,search:t,hash:n,protocol:i}=new URL(s,"http://a.com");if(Zm(s)||s.startsWith("#")||!i.startsWith("http")||!Km(e))return s;const{site:r}=lt(),o=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return tu(o)}function Yr({correspondingLink:s=!1}={}){const{site:e,localeIndex:t,page:n,theme:i,hash:r}=lt(),o=He(()=>{var l,c;return{label:(l=e.value.locales[t.value])==null?void 0:l.label,link:((c=e.value.locales[t.value])==null?void 0:c.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:He(()=>Object.entries(e.value.locales).flatMap(([l,c])=>o.value.label===c.label?[]:{text:c.label,link:xg(c.link||(l==="root"?"/":`/${l}/`),i.value.i18nRouting!==!1&&s,n.value.relativePath.slice(o.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:o}}function xg(s,e,t,n){return e?s.replace(/\/$/,"")+oc(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const Mg=s=>($t("data-v-d6be1790"),s=s(),Xt(),s),bg={class:"NotFound"},Sg={class:"code"},wg={class:"title"},Ag=Mg(()=>ve("div",{class:"divider"},null,-1)),Eg={class:"quote"},Tg={class:"action"},Cg=["href","aria-label"],Pg=ke({__name:"NotFound",setup(s){const{theme:e}=lt(),{currentLang:t}=Yr();return(n,i)=>{var r,o,a,l,c;return Y(),ge("div",bg,[ve("p",Sg,pt(((r=ee(e).notFound)==null?void 0:r.code)??"404"),1),ve("h1",wg,pt(((o=ee(e).notFound)==null?void 0:o.title)??"PAGE NOT FOUND"),1),Ag,ve("blockquote",Eg,pt(((a=ee(e).notFound)==null?void 0:a.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),ve("div",Tg,[ve("a",{class:"link",href:ee(tu)(ee(t).link),"aria-label":((l=ee(e).notFound)==null?void 0:l.linkLabel)??"go to home"},pt(((c=ee(e).notFound)==null?void 0:c.linkText)??"Take me home"),9,Cg)])])}}}),Rg=qe(Pg,[["__scopeId","data-v-d6be1790"]]);function af(s,e){if(Array.isArray(s))return ua(s);if(s==null)return[];e=oc(e);const t=Object.keys(s).sort((i,r)=>r.split("/").length-i.split("/").length).find(i=>e.startsWith(oc(i))),n=t?s[t]:[];return Array.isArray(n)?ua(n):ua(n.items,n.base)}function Ig(s){const e=[];let t=0;for(const n in s){const i=s[n];if(i.items){t=e.push(i);continue}e[t]||e.push({items:[]}),e[t].items.push(i)}return e}function Lg(s){const e=[];function t(n){for(const i of n)i.text&&i.link&&e.push({text:i.text,link:i.link,docFooterText:i.docFooterText}),i.items&&t(i.items)}return t(s),e}function ac(s,e){return Array.isArray(e)?e.some(t=>ac(s,t)):cs(s,e.link)?!0:e.items?ac(s,e.items):!1}function ua(s,e){return[...s].map(t=>{const n={...t},i=n.base||e;return i&&n.link&&(n.link=i+n.link),n.items&&(n.items=ua(n.items,i)),n})}function di(){const{frontmatter:s,page:e,theme:t}=lt(),n=sc("(min-width: 960px)"),i=Ve(!1),r=He(()=>{const _=t.value.sidebar,p=e.value.relativePath;return _?af(_,p):[]}),o=Ve(r.value);wt(r,(_,p)=>{JSON.stringify(_)!==JSON.stringify(p)&&(o.value=r.value)});const a=He(()=>s.value.sidebar!==!1&&o.value.length>0&&s.value.layout!=="home"),l=He(()=>c?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),c=He(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),u=He(()=>a.value&&n.value),h=He(()=>a.value?Ig(o.value):[]);function d(){i.value=!0}function f(){i.value=!1}function g(){i.value?f():d()}return{isOpen:i,sidebar:o,sidebarGroups:h,hasSidebar:a,hasAside:c,leftAside:l,isSidebarEnabled:u,open:d,close:f,toggle:g}}function Ng(s,e){let t;Li(()=>{t=s.value?document.activeElement:void 0}),Fn(()=>{window.addEventListener("keyup",n)}),$n(()=>{window.removeEventListener("keyup",n)});function n(i){i.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}function Dg(s){const{page:e,hash:t}=lt(),n=Ve(!1),i=He(()=>s.value.collapsed!=null),r=He(()=>!!s.value.link),o=Ve(!1),a=()=>{o.value=cs(e.value.relativePath,s.value.link)};wt([e,s,t],a),Fn(a);const l=He(()=>o.value?!0:s.value.items?ac(e.value.relativePath,s.value.items):!1),c=He(()=>!!(s.value.items&&s.value.items.length));Li(()=>{n.value=!!(i.value&&s.value.collapsed)}),ef(()=>{(o.value||l.value)&&(n.value=!1)});function u(){i.value&&(n.value=!n.value)}return{collapsed:n,collapsible:i,isLink:r,isActiveLink:o,hasActiveLink:l,hasChildren:c,toggle:u}}function Ug(){const{hasSidebar:s}=di(),e=sc("(min-width: 960px)"),t=sc("(min-width: 1280px)");return{isAsideEnabled:He(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const lc=[];function lf(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function ru(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:Og(t),link:"#"+t.id,level:n}});return Fg(e,s)}function Og(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Fg(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,i]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;s=s.filter(o=>o.level>=n&&o.level<=i),lc.length=0;for(const{element:o,link:a}of s)lc.push({element:o,link:a});const r=[];e:for(let o=0;o=0;l--){const c=s[l];if(c.level{requestAnimationFrame(r),window.addEventListener("scroll",n)}),Jm(()=>{o(location.hash)}),$n(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const a=window.scrollY,l=window.innerHeight,c=document.body.offsetHeight,u=Math.abs(a+l-c)<1,h=lc.map(({element:f,link:g})=>({link:g,top:Bg(f)})).filter(({top:f})=>!Number.isNaN(f)).sort((f,g)=>f.top-g.top);if(!h.length){o(null);return}if(a<1){o(null);return}if(u){o(h[h.length-1].link);return}let d=null;for(const{link:f,top:g}of h){if(g>a+jm()+4)break;d=f}o(d)}function o(a){i&&i.classList.remove("active"),a==null?i=null:i=s.value.querySelector(`a[href="${decodeURIComponent(a)}"]`);const l=i;l?(l.classList.add("active"),e.value.style.top=l.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function Bg(s){let e=0;for(;s!==document.body;){if(s===null)return NaN;e+=s.offsetTop,s=s.offsetParent}return e}const zg=["href","title"],Vg=ke({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(s){function e({target:t}){const n=t.href.split("#")[1],i=document.getElementById(decodeURIComponent(n));i==null||i.focus({preventScroll:!0})}return(t,n)=>{const i=rn("VPDocOutlineItem",!0);return Y(),ge("ul",{class:yt(["VPDocOutlineItem",t.root?"root":"nested"])},[(Y(!0),ge(xt,null,Qt(t.headers,({children:r,link:o,title:a})=>(Y(),ge("li",null,[ve("a",{class:"outline-link",href:o,onClick:e,title:a},pt(a),9,zg),r!=null&&r.length?(Y(),Xe(i,{key:0,headers:r},null,8,["headers"])):Fe("",!0)]))),256))],2)}}}),cf=qe(Vg,[["__scopeId","data-v-b933a997"]]),Hg={class:"content"},Gg={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Wg=ke({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=lt(),n=Dn([]);La(()=>{n.value=ru(e.value.outline??t.value.outline)});const i=Ve(),r=Ve();return kg(i,r),(o,a)=>(Y(),ge("nav",{"aria-labelledby":"doc-outline-aria-label",class:yt(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:i},[ve("div",Hg,[ve("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),ve("div",Gg,pt(ee(lf)(ee(t))),1),Ue(cf,{headers:n.value,root:!0},null,8,["headers"])])],2))}}),$g=qe(Wg,[["__scopeId","data-v-a5bbad30"]]),Xg={class:"VPDocAsideCarbonAds"},qg=ke({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,n)=>(Y(),ge("div",Xg,[Ue(ee(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),Yg=s=>($t("data-v-3f215769"),s=s(),Xt(),s),Zg={class:"VPDocAside"},Kg=Yg(()=>ve("div",{class:"spacer"},null,-1)),Jg=ke({__name:"VPDocAside",setup(s){const{theme:e}=lt();return(t,n)=>(Y(),ge("div",Zg,[pe(t.$slots,"aside-top",{},void 0,!0),pe(t.$slots,"aside-outline-before",{},void 0,!0),Ue($g),pe(t.$slots,"aside-outline-after",{},void 0,!0),Kg,pe(t.$slots,"aside-ads-before",{},void 0,!0),ee(e).carbonAds?(Y(),Xe(qg,{key:0,"carbon-ads":ee(e).carbonAds},null,8,["carbon-ads"])):Fe("",!0),pe(t.$slots,"aside-ads-after",{},void 0,!0),pe(t.$slots,"aside-bottom",{},void 0,!0)]))}}),jg=qe(Jg,[["__scopeId","data-v-3f215769"]]);function Qg(){const{theme:s,page:e}=lt();return He(()=>{const{text:t="Edit this page",pattern:n=""}=s.value.editLink||{};let i;return typeof n=="function"?i=n(e.value):i=n.replace(/:path/g,e.value.filePath),{url:i,text:t}})}function e_(){const{page:s,theme:e,frontmatter:t}=lt();return He(()=>{var c,u,h,d,f,g,_,p;const n=af(e.value.sidebar,s.value.relativePath),i=Lg(n),r=t_(i,m=>m.link.replace(/[?#].*$/,"")),o=r.findIndex(m=>cs(s.value.relativePath,m.link)),a=((c=e.value.docFooter)==null?void 0:c.prev)===!1&&!t.value.prev||t.value.prev===!1,l=((u=e.value.docFooter)==null?void 0:u.next)===!1&&!t.value.next||t.value.next===!1;return{prev:a?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((h=r[o-1])==null?void 0:h.docFooterText)??((d=r[o-1])==null?void 0:d.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((f=r[o-1])==null?void 0:f.link)},next:l?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((g=r[o+1])==null?void 0:g.docFooterText)??((_=r[o+1])==null?void 0:_.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((p=r[o+1])==null?void 0:p.link)}}})}function t_(s,e){const t=new Set;return s.filter(n=>{const i=e(n);return t.has(i)?!1:t.add(i)})}const Gn=ke({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=He(()=>e.tag??(e.href?"a":"span")),n=He(()=>e.href&&tf.test(e.href)||e.target==="_blank");return(i,r)=>(Y(),Xe(Xs(t.value),{class:yt(["VPLink",{link:i.href,"vp-external-link-icon":n.value,"no-icon":i.noIcon}]),href:i.href?ee(su)(i.href):void 0,target:i.target??(n.value?"_blank":void 0),rel:i.rel??(n.value?"noreferrer":void 0)},{default:xe(()=>[pe(i.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),n_={class:"VPLastUpdated"},i_=["datetime"],s_=ke({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,frontmatter:n,lang:i}=lt(),r=He(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),o=He(()=>r.value.toISOString()),a=Ve("");return Fn(()=>{Li(()=>{var l,c,u;a.value=new Intl.DateTimeFormat((c=(l=e.value.lastUpdated)==null?void 0:l.formatOptions)!=null&&c.forceLocale?i.value:void 0,((u=e.value.lastUpdated)==null?void 0:u.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(l,c)=>{var u;return Y(),ge("p",n_,[qt(pt(((u=ee(e).lastUpdated)==null?void 0:u.text)||ee(e).lastUpdatedText||"Last updated")+": ",1),ve("time",{datetime:o.value},pt(a.value),9,i_)])}}}),r_=qe(s_,[["__scopeId","data-v-7e05ebdb"]]),uf=s=>($t("data-v-d4a0bba5"),s=s(),Xt(),s),o_={key:0,class:"VPDocFooter"},a_={key:0,class:"edit-info"},l_={key:0,class:"edit-link"},c_=uf(()=>ve("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),u_={key:1,class:"last-updated"},h_={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},d_=uf(()=>ve("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),f_={class:"pager"},p_=["innerHTML"],m_=["innerHTML"],g_={class:"pager"},__=["innerHTML"],v_=["innerHTML"],y_=ke({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:n}=lt(),i=Qg(),r=e_(),o=He(()=>e.value.editLink&&n.value.editLink!==!1),a=He(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),l=He(()=>o.value||a.value||r.value.prev||r.value.next);return(c,u)=>{var h,d,f,g;return l.value?(Y(),ge("footer",o_,[pe(c.$slots,"doc-footer-before",{},void 0,!0),o.value||a.value?(Y(),ge("div",a_,[o.value?(Y(),ge("div",l_,[Ue(Gn,{class:"edit-link-button",href:ee(i).url,"no-icon":!0},{default:xe(()=>[c_,qt(" "+pt(ee(i).text),1)]),_:1},8,["href"])])):Fe("",!0),a.value?(Y(),ge("div",u_,[Ue(r_)])):Fe("",!0)])):Fe("",!0),(h=ee(r).prev)!=null&&h.link||(d=ee(r).next)!=null&&d.link?(Y(),ge("nav",h_,[d_,ve("div",f_,[(f=ee(r).prev)!=null&&f.link?(Y(),Xe(Gn,{key:0,class:"pager-link prev",href:ee(r).prev.link},{default:xe(()=>{var _;return[ve("span",{class:"desc",innerHTML:((_=ee(e).docFooter)==null?void 0:_.prev)||"Previous page"},null,8,p_),ve("span",{class:"title",innerHTML:ee(r).prev.text},null,8,m_)]}),_:1},8,["href"])):Fe("",!0)]),ve("div",g_,[(g=ee(r).next)!=null&&g.link?(Y(),Xe(Gn,{key:0,class:"pager-link next",href:ee(r).next.link},{default:xe(()=>{var _;return[ve("span",{class:"desc",innerHTML:((_=ee(e).docFooter)==null?void 0:_.next)||"Next page"},null,8,__),ve("span",{class:"title",innerHTML:ee(r).next.text},null,8,v_)]}),_:1},8,["href"])):Fe("",!0)])])):Fe("",!0)])):Fe("",!0)}}}),x_=qe(y_,[["__scopeId","data-v-d4a0bba5"]]),M_=s=>($t("data-v-39a288b8"),s=s(),Xt(),s),b_={class:"container"},S_=M_(()=>ve("div",{class:"aside-curtain"},null,-1)),w_={class:"aside-container"},A_={class:"aside-content"},E_={class:"content"},T_={class:"content-container"},C_={class:"main"},P_=ke({__name:"VPDoc",setup(s){const{theme:e}=lt(),t=Xr(),{hasSidebar:n,hasAside:i,leftAside:r}=di(),o=He(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(a,l)=>{const c=rn("Content");return Y(),ge("div",{class:yt(["VPDoc",{"has-sidebar":ee(n),"has-aside":ee(i)}])},[pe(a.$slots,"doc-top",{},void 0,!0),ve("div",b_,[ee(i)?(Y(),ge("div",{key:0,class:yt(["aside",{"left-aside":ee(r)}])},[S_,ve("div",w_,[ve("div",A_,[Ue(jg,null,{"aside-top":xe(()=>[pe(a.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":xe(()=>[pe(a.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":xe(()=>[pe(a.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":xe(()=>[pe(a.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":xe(()=>[pe(a.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":xe(()=>[pe(a.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):Fe("",!0),ve("div",E_,[ve("div",T_,[pe(a.$slots,"doc-before",{},void 0,!0),ve("main",C_,[Ue(c,{class:yt(["vp-doc",[o.value,ee(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),Ue(x_,null,{"doc-footer-before":xe(()=>[pe(a.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),pe(a.$slots,"doc-after",{},void 0,!0)])])]),pe(a.$slots,"doc-bottom",{},void 0,!0)],2)}}}),R_=qe(P_,[["__scopeId","data-v-39a288b8"]]),I_=ke({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(s){const e=s,t=He(()=>e.href&&tf.test(e.href)),n=He(()=>e.tag||e.href?"a":"button");return(i,r)=>(Y(),Xe(Xs(n.value),{class:yt(["VPButton",[i.size,i.theme]]),href:i.href?ee(su)(i.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:xe(()=>[qt(pt(i.text),1)]),_:1},8,["class","href","target","rel"]))}}),L_=qe(I_,[["__scopeId","data-v-cad61b99"]]),N_=["src","alt"],D_=ke({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const n=rn("VPImage",!0);return e.image?(Y(),ge(xt,{key:0},[typeof e.image=="string"||"src"in e.image?(Y(),ge("img",ca({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:ee(tu)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,N_)):(Y(),ge(xt,{key:1},[Ue(n,ca({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),Ue(n,ca({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):Fe("",!0)}}}),ba=qe(D_,[["__scopeId","data-v-8426fc1a"]]),U_=s=>($t("data-v-303bb580"),s=s(),Xt(),s),O_={class:"container"},F_={class:"main"},k_={key:0,class:"name"},B_=["innerHTML"],z_=["innerHTML"],V_=["innerHTML"],H_={key:0,class:"actions"},G_={key:0,class:"image"},W_={class:"image-container"},$_=U_(()=>ve("div",{class:"image-bg"},null,-1)),X_=ke({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=qr("hero-image-slot-exists");return(t,n)=>(Y(),ge("div",{class:yt(["VPHero",{"has-image":t.image||ee(e)}])},[ve("div",O_,[ve("div",F_,[pe(t.$slots,"home-hero-info-before",{},void 0,!0),pe(t.$slots,"home-hero-info",{},()=>[t.name?(Y(),ge("h1",k_,[ve("span",{innerHTML:t.name,class:"clip"},null,8,B_)])):Fe("",!0),t.text?(Y(),ge("p",{key:1,innerHTML:t.text,class:"text"},null,8,z_)):Fe("",!0),t.tagline?(Y(),ge("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,V_)):Fe("",!0)],!0),pe(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(Y(),ge("div",H_,[(Y(!0),ge(xt,null,Qt(t.actions,i=>(Y(),ge("div",{key:i.link,class:"action"},[Ue(L_,{tag:"a",size:"medium",theme:i.theme,text:i.text,href:i.link,target:i.target,rel:i.rel},null,8,["theme","text","href","target","rel"])]))),128))])):Fe("",!0),pe(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||ee(e)?(Y(),ge("div",G_,[ve("div",W_,[$_,pe(t.$slots,"home-hero-image",{},()=>[t.image?(Y(),Xe(ba,{key:0,class:"image-src",image:t.image},null,8,["image"])):Fe("",!0)],!0)])])):Fe("",!0)])],2))}}),q_=qe(X_,[["__scopeId","data-v-303bb580"]]),Y_=ke({__name:"VPHomeHero",setup(s){const{frontmatter:e}=lt();return(t,n)=>ee(e).hero?(Y(),Xe(q_,{key:0,class:"VPHomeHero",name:ee(e).hero.name,text:ee(e).hero.text,tagline:ee(e).hero.tagline,image:ee(e).hero.image,actions:ee(e).hero.actions},{"home-hero-info-before":xe(()=>[pe(t.$slots,"home-hero-info-before")]),"home-hero-info":xe(()=>[pe(t.$slots,"home-hero-info")]),"home-hero-info-after":xe(()=>[pe(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":xe(()=>[pe(t.$slots,"home-hero-actions-after")]),"home-hero-image":xe(()=>[pe(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):Fe("",!0)}}),Z_=s=>($t("data-v-a3976bdc"),s=s(),Xt(),s),K_={class:"box"},J_={key:0,class:"icon"},j_=["innerHTML"],Q_=["innerHTML"],ev=["innerHTML"],tv={key:4,class:"link-text"},nv={class:"link-text-value"},iv=Z_(()=>ve("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),sv=ke({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(Y(),Xe(Gn,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:xe(()=>[ve("article",K_,[typeof e.icon=="object"&&e.icon.wrap?(Y(),ge("div",J_,[Ue(ba,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(Y(),Xe(ba,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(Y(),ge("div",{key:2,class:"icon",innerHTML:e.icon},null,8,j_)):Fe("",!0),ve("h2",{class:"title",innerHTML:e.title},null,8,Q_),e.details?(Y(),ge("p",{key:3,class:"details",innerHTML:e.details},null,8,ev)):Fe("",!0),e.linkText?(Y(),ge("div",tv,[ve("p",nv,[qt(pt(e.linkText)+" ",1),iv])])):Fe("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),rv=qe(sv,[["__scopeId","data-v-a3976bdc"]]),ov={key:0,class:"VPFeatures"},av={class:"container"},lv={class:"items"},cv=ke({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=He(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,i)=>n.features?(Y(),ge("div",ov,[ve("div",av,[ve("div",lv,[(Y(!0),ge(xt,null,Qt(n.features,r=>(Y(),ge("div",{key:r.title,class:yt(["item",[t.value]])},[Ue(rv,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):Fe("",!0)}}),uv=qe(cv,[["__scopeId","data-v-a6181336"]]),hv=ke({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=lt();return(t,n)=>ee(e).features?(Y(),Xe(uv,{key:0,class:"VPHomeFeatures",features:ee(e).features},null,8,["features"])):Fe("",!0)}}),dv=ke({__name:"VPHomeContent",setup(s){const{width:e}=Qm({initialWidth:0,includeScrollbar:!1});return(t,n)=>(Y(),ge("div",{class:"vp-doc container",style:nu(ee(e)?{"--vp-offset":`calc(50% - ${ee(e)/2}px)`}:{})},[pe(t.$slots,"default",{},void 0,!0)],4))}}),fv=qe(dv,[["__scopeId","data-v-8e2d4988"]]),pv={class:"VPHome"},mv=ke({__name:"VPHome",setup(s){const{frontmatter:e}=lt();return(t,n)=>{const i=rn("Content");return Y(),ge("div",pv,[pe(t.$slots,"home-hero-before",{},void 0,!0),Ue(Y_,null,{"home-hero-info-before":xe(()=>[pe(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":xe(()=>[pe(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":xe(()=>[pe(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":xe(()=>[pe(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":xe(()=>[pe(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),pe(t.$slots,"home-hero-after",{},void 0,!0),pe(t.$slots,"home-features-before",{},void 0,!0),Ue(hv),pe(t.$slots,"home-features-after",{},void 0,!0),ee(e).markdownStyles!==!1?(Y(),Xe(fv,{key:0},{default:xe(()=>[Ue(i)]),_:1})):(Y(),Xe(i,{key:1}))])}}}),gv=qe(mv,[["__scopeId","data-v-686f80a6"]]),_v={},vv={class:"VPPage"};function yv(s,e){const t=rn("Content");return Y(),ge("div",vv,[pe(s.$slots,"page-top"),Ue(t),pe(s.$slots,"page-bottom")])}const xv=qe(_v,[["render",yv]]),Mv=ke({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=lt(),{hasSidebar:n}=di();return(i,r)=>(Y(),ge("div",{class:yt(["VPContent",{"has-sidebar":ee(n),"is-home":ee(t).layout==="home"}]),id:"VPContent"},[ee(e).isNotFound?pe(i.$slots,"not-found",{key:0},()=>[Ue(Rg)],!0):ee(t).layout==="page"?(Y(),Xe(xv,{key:1},{"page-top":xe(()=>[pe(i.$slots,"page-top",{},void 0,!0)]),"page-bottom":xe(()=>[pe(i.$slots,"page-bottom",{},void 0,!0)]),_:3})):ee(t).layout==="home"?(Y(),Xe(gv,{key:2},{"home-hero-before":xe(()=>[pe(i.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":xe(()=>[pe(i.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":xe(()=>[pe(i.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":xe(()=>[pe(i.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":xe(()=>[pe(i.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":xe(()=>[pe(i.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":xe(()=>[pe(i.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":xe(()=>[pe(i.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":xe(()=>[pe(i.$slots,"home-features-after",{},void 0,!0)]),_:3})):ee(t).layout&&ee(t).layout!=="doc"?(Y(),Xe(Xs(ee(t).layout),{key:3})):(Y(),Xe(R_,{key:4},{"doc-top":xe(()=>[pe(i.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":xe(()=>[pe(i.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":xe(()=>[pe(i.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":xe(()=>[pe(i.$slots,"doc-before",{},void 0,!0)]),"doc-after":xe(()=>[pe(i.$slots,"doc-after",{},void 0,!0)]),"aside-top":xe(()=>[pe(i.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":xe(()=>[pe(i.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":xe(()=>[pe(i.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":xe(()=>[pe(i.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":xe(()=>[pe(i.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":xe(()=>[pe(i.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),bv=qe(Mv,[["__scopeId","data-v-1428d186"]]),Sv={class:"container"},wv=["innerHTML"],Av=["innerHTML"],Ev=ke({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=lt(),{hasSidebar:n}=di();return(i,r)=>ee(e).footer&&ee(t).footer!==!1?(Y(),ge("footer",{key:0,class:yt(["VPFooter",{"has-sidebar":ee(n)}])},[ve("div",Sv,[ee(e).footer.message?(Y(),ge("p",{key:0,class:"message",innerHTML:ee(e).footer.message},null,8,wv)):Fe("",!0),ee(e).footer.copyright?(Y(),ge("p",{key:1,class:"copyright",innerHTML:ee(e).footer.copyright},null,8,Av)):Fe("",!0)])],2)):Fe("",!0)}}),Tv=qe(Ev,[["__scopeId","data-v-e315a0ad"]]);function Cv(){const{theme:s,frontmatter:e}=lt(),t=Dn([]),n=He(()=>t.value.length>0);return La(()=>{t.value=ru(e.value.outline??s.value.outline)}),{headers:t,hasLocalNav:n}}const Pv=s=>($t("data-v-17a5e62e"),s=s(),Xt(),s),Rv={class:"menu-text"},Iv=Pv(()=>ve("span",{class:"vpi-chevron-right icon"},null,-1)),Lv={class:"header"},Nv={class:"outline"},Dv=ke({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=lt(),n=Ve(!1),i=Ve(0),r=Ve(),o=Ve();function a(h){var d;(d=r.value)!=null&&d.contains(h.target)||(n.value=!1)}wt(n,h=>{if(h){document.addEventListener("click",a);return}document.removeEventListener("click",a)}),rc("Escape",()=>{n.value=!1}),La(()=>{n.value=!1});function l(){n.value=!n.value,i.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function c(h){h.target.classList.contains("outline-link")&&(o.value&&(o.value.style.transition="none"),iu(()=>{n.value=!1}))}function u(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(h,d)=>(Y(),ge("div",{class:"VPLocalNavOutlineDropdown",style:nu({"--vp-vh":i.value+"px"}),ref_key:"main",ref:r},[h.headers.length>0?(Y(),ge("button",{key:0,onClick:l,class:yt({open:n.value})},[ve("span",Rv,pt(ee(lf)(ee(t))),1),Iv],2)):(Y(),ge("button",{key:1,onClick:u},pt(ee(t).returnToTopLabel||"Return to top"),1)),Ue(eu,{name:"flyout"},{default:xe(()=>[n.value?(Y(),ge("div",{key:0,ref_key:"items",ref:o,class:"items",onClick:c},[ve("div",Lv,[ve("a",{class:"top-link",href:"#",onClick:u},pt(ee(t).returnToTopLabel||"Return to top"),1)]),ve("div",Nv,[Ue(cf,{headers:h.headers},null,8,["headers"])])],512)):Fe("",!0)]),_:1})],4))}}),Uv=qe(Dv,[["__scopeId","data-v-17a5e62e"]]),Ov=s=>($t("data-v-a6f0e41e"),s=s(),Xt(),s),Fv={class:"container"},kv=["aria-expanded"],Bv=Ov(()=>ve("span",{class:"vpi-align-left menu-icon"},null,-1)),zv={class:"menu-text"},Vv=ke({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=lt(),{hasSidebar:n}=di(),{headers:i}=Cv(),{y:r}=nf(),o=Ve(0);Fn(()=>{o.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),La(()=>{i.value=ru(t.value.outline??e.value.outline)});const a=He(()=>i.value.length===0),l=He(()=>a.value&&!n.value),c=He(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:a.value,fixed:l.value}));return(u,h)=>ee(t).layout!=="home"&&(!l.value||ee(r)>=o.value)?(Y(),ge("div",{key:0,class:yt(c.value)},[ve("div",Fv,[ee(n)?(Y(),ge("button",{key:0,class:"menu","aria-expanded":u.open,"aria-controls":"VPSidebarNav",onClick:h[0]||(h[0]=d=>u.$emit("open-menu"))},[Bv,ve("span",zv,pt(ee(e).sidebarMenuLabel||"Menu"),1)],8,kv)):Fe("",!0),Ue(Uv,{headers:ee(i),navHeight:o.value},null,8,["headers","navHeight"])])],2)):Fe("",!0)}}),Hv=qe(Vv,[["__scopeId","data-v-a6f0e41e"]]);function Gv(){const s=Ve(!1);function e(){s.value=!0,window.addEventListener("resize",i)}function t(){s.value=!1,window.removeEventListener("resize",i)}function n(){s.value?t():e()}function i(){window.outerWidth>=768&&t()}const r=Xr();return wt(()=>r.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:n}}const Wv={},$v={class:"VPSwitch",type:"button",role:"switch"},Xv={class:"check"},qv={key:0,class:"icon"};function Yv(s,e){return Y(),ge("button",$v,[ve("span",Xv,[s.$slots.default?(Y(),ge("span",qv,[pe(s.$slots,"default",{},void 0,!0)])):Fe("",!0)])])}const Zv=qe(Wv,[["render",Yv],["__scopeId","data-v-1d5665e3"]]),hf=s=>($t("data-v-d1f28634"),s=s(),Xt(),s),Kv=hf(()=>ve("span",{class:"vpi-sun sun"},null,-1)),Jv=hf(()=>ve("span",{class:"vpi-moon moon"},null,-1)),jv=ke({__name:"VPSwitchAppearance",setup(s){const{isDark:e,theme:t}=lt(),n=qr("toggle-appearance",()=>{e.value=!e.value}),i=He(()=>e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(r,o)=>(Y(),Xe(Zv,{title:i.value,class:"VPSwitchAppearance","aria-checked":ee(e),onClick:ee(n)},{default:xe(()=>[Kv,Jv]),_:1},8,["title","aria-checked","onClick"]))}}),ou=qe(jv,[["__scopeId","data-v-d1f28634"]]),Qv={key:0,class:"VPNavBarAppearance"},e0=ke({__name:"VPNavBarAppearance",setup(s){const{site:e}=lt();return(t,n)=>ee(e).appearance&&ee(e).appearance!=="force-dark"?(Y(),ge("div",Qv,[Ue(ou)])):Fe("",!0)}}),t0=qe(e0,[["__scopeId","data-v-e6aabb21"]]),au=Ve();let df=!1,ml=0;function n0(s){const e=Ve(!1);if(Na){!df&&i0(),ml++;const t=wt(au,n=>{var i,r,o;n===s.el.value||(i=s.el.value)!=null&&i.contains(n)?(e.value=!0,(r=s.onFocus)==null||r.call(s)):(e.value=!1,(o=s.onBlur)==null||o.call(s))});$n(()=>{t(),ml--,ml||s0()})}return br(e)}function i0(){document.addEventListener("focusin",ff),df=!0,au.value=document.activeElement}function s0(){document.removeEventListener("focusin",ff)}function ff(){au.value=document.activeElement}const r0={class:"VPMenuLink"},o0=ke({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=lt();return(t,n)=>(Y(),ge("div",r0,[Ue(Gn,{class:yt({active:ee(cs)(ee(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:xe(()=>[qt(pt(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),Da=qe(o0,[["__scopeId","data-v-43f1e123"]]),a0={class:"VPMenuGroup"},l0={key:0,class:"title"},c0=ke({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(Y(),ge("div",a0,[e.text?(Y(),ge("p",l0,pt(e.text),1)):Fe("",!0),(Y(!0),ge(xt,null,Qt(e.items,n=>(Y(),ge(xt,null,["link"in n?(Y(),Xe(Da,{key:0,item:n},null,8,["item"])):Fe("",!0)],64))),256))]))}}),u0=qe(c0,[["__scopeId","data-v-69e747b5"]]),h0={class:"VPMenu"},d0={key:0,class:"items"},f0=ke({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(Y(),ge("div",h0,[e.items?(Y(),ge("div",d0,[(Y(!0),ge(xt,null,Qt(e.items,n=>(Y(),ge(xt,{key:n.text},["link"in n?(Y(),Xe(Da,{key:0,item:n},null,8,["item"])):(Y(),Xe(u0,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):Fe("",!0),pe(e.$slots,"default",{},void 0,!0)]))}}),p0=qe(f0,[["__scopeId","data-v-e7ea1737"]]),m0=s=>($t("data-v-b6c34ac9"),s=s(),Xt(),s),g0=["aria-expanded","aria-label"],_0={key:0,class:"text"},v0=["innerHTML"],y0=m0(()=>ve("span",{class:"vpi-chevron-down text-icon"},null,-1)),x0={key:1,class:"vpi-more-horizontal icon"},M0={class:"menu"},b0=ke({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=Ve(!1),t=Ve();n0({el:t,onBlur:n});function n(){e.value=!1}return(i,r)=>(Y(),ge("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=o=>e.value=!0),onMouseleave:r[2]||(r[2]=o=>e.value=!1)},[ve("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":i.label,onClick:r[0]||(r[0]=o=>e.value=!e.value)},[i.button||i.icon?(Y(),ge("span",_0,[i.icon?(Y(),ge("span",{key:0,class:yt([i.icon,"option-icon"])},null,2)):Fe("",!0),i.button?(Y(),ge("span",{key:1,innerHTML:i.button},null,8,v0)):Fe("",!0),y0])):(Y(),ge("span",x0))],8,g0),ve("div",M0,[Ue(p0,{items:i.items},{default:xe(()=>[pe(i.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),lu=qe(b0,[["__scopeId","data-v-b6c34ac9"]]),S0=["href","aria-label","innerHTML"],w0=ke({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=He(()=>typeof e.icon=="object"?e.icon.svg:``);return(n,i)=>(Y(),ge("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,S0))}}),A0=qe(w0,[["__scopeId","data-v-eee4e7cb"]]),E0={class:"VPSocialLinks"},T0=ke({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(Y(),ge("div",E0,[(Y(!0),ge(xt,null,Qt(e.links,({link:n,icon:i,ariaLabel:r})=>(Y(),Xe(A0,{key:n,icon:i,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),cu=qe(T0,[["__scopeId","data-v-7bc22406"]]),C0={key:0,class:"group translations"},P0={class:"trans-title"},R0={key:1,class:"group"},I0={class:"item appearance"},L0={class:"label"},N0={class:"appearance-action"},D0={key:2,class:"group"},U0={class:"item social-links"},O0=ke({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=lt(),{localeLinks:n,currentLang:i}=Yr({correspondingLink:!0}),r=He(()=>n.value.length&&i.value.label||e.value.appearance||t.value.socialLinks);return(o,a)=>r.value?(Y(),Xe(lu,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:xe(()=>[ee(n).length&&ee(i).label?(Y(),ge("div",C0,[ve("p",P0,pt(ee(i).label),1),(Y(!0),ge(xt,null,Qt(ee(n),l=>(Y(),Xe(Da,{key:l.link,item:l},null,8,["item"]))),128))])):Fe("",!0),ee(e).appearance&&ee(e).appearance!=="force-dark"?(Y(),ge("div",R0,[ve("div",I0,[ve("p",L0,pt(ee(t).darkModeSwitchLabel||"Appearance"),1),ve("div",N0,[Ue(ou)])])])):Fe("",!0),ee(t).socialLinks?(Y(),ge("div",D0,[ve("div",U0,[Ue(cu,{class:"social-links-list",links:ee(t).socialLinks},null,8,["links"])])])):Fe("",!0)]),_:1})):Fe("",!0)}}),F0=qe(O0,[["__scopeId","data-v-d0bd9dde"]]),k0=s=>($t("data-v-e5dd9c1c"),s=s(),Xt(),s),B0=["aria-expanded"],z0=k0(()=>ve("span",{class:"container"},[ve("span",{class:"top"}),ve("span",{class:"middle"}),ve("span",{class:"bottom"})],-1)),V0=[z0],H0=ke({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(Y(),ge("button",{type:"button",class:yt(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},V0,10,B0))}}),G0=qe(H0,[["__scopeId","data-v-e5dd9c1c"]]),W0=["innerHTML"],$0=ke({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=lt();return(t,n)=>(Y(),Xe(Gn,{class:yt({VPNavBarMenuLink:!0,active:ee(cs)(ee(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:xe(()=>[ve("span",{innerHTML:t.item.text},null,8,W0)]),_:1},8,["class","href","noIcon","target","rel"]))}}),X0=qe($0,[["__scopeId","data-v-9c663999"]]),q0=ke({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=lt(),n=r=>"link"in r?cs(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(n),i=He(()=>n(e.item));return(r,o)=>(Y(),Xe(lu,{class:yt({VPNavBarMenuGroup:!0,active:ee(cs)(ee(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||i.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),Y0=s=>($t("data-v-7f418b0f"),s=s(),Xt(),s),Z0={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},K0=Y0(()=>ve("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),J0=ke({__name:"VPNavBarMenu",setup(s){const{theme:e}=lt();return(t,n)=>ee(e).nav?(Y(),ge("nav",Z0,[K0,(Y(!0),ge(xt,null,Qt(ee(e).nav,i=>(Y(),ge(xt,{key:i.text},["link"in i?(Y(),Xe(X0,{key:0,item:i},null,8,["item"])):(Y(),Xe(q0,{key:1,item:i},null,8,["item"]))],64))),128))])):Fe("",!0)}}),j0=qe(J0,[["__scopeId","data-v-7f418b0f"]]);function Q0(s){const{localeIndex:e,theme:t}=lt();function n(i){var g,_,p;const r=i.split("."),o=(g=t.value.search)==null?void 0:g.options,a=o&&typeof o=="object",l=a&&((p=(_=o.locales)==null?void 0:_[e.value])==null?void 0:p.translations)||null,c=a&&o.translations||null;let u=l,h=c,d=s;const f=r.pop();for(const m of r){let y=null;const v=d==null?void 0:d[m];v&&(y=d=v);const x=h==null?void 0:h[m];x&&(y=h=x);const E=u==null?void 0:u[m];E&&(y=u=E),v||(d=y),x||(h=y),E||(u=y)}return(u==null?void 0:u[f])??(h==null?void 0:h[f])??(d==null?void 0:d[f])??""}return n}const ey=["aria-label"],ty={class:"DocSearch-Button-Container"},ny=ve("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),iy={class:"DocSearch-Button-Placeholder"},sy=ve("span",{class:"DocSearch-Button-Keys"},[ve("kbd",{class:"DocSearch-Button-Key"}),ve("kbd",{class:"DocSearch-Button-Key"},"K")],-1),ah=ke({__name:"VPNavBarSearchButton",setup(s){const t=Q0({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,i)=>(Y(),ge("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":ee(t)("button.buttonAriaLabel")},[ve("span",ty,[ny,ve("span",iy,pt(ee(t)("button.buttonText")),1)]),sy],8,ey))}}),ry={class:"VPNavBarSearch"},oy={id:"local-search"},ay={key:1,id:"docsearch"},ly=ke({__name:"VPNavBarSearch",setup(s){const e=eg(()=>tg(()=>import("./VPLocalSearchBox.zY3w-sDv.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:n}=lt(),i=Ve(!1),r=Ve(!1);Fn(()=>{});function o(){i.value||(i.value=!0,setTimeout(a,16))}function a(){const h=new Event("keydown");h.key="k",h.metaKey=!0,window.dispatchEvent(h),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||a()},16)}function l(h){const d=h.target,f=d.tagName;return d.isContentEditable||f==="INPUT"||f==="SELECT"||f==="TEXTAREA"}const c=Ve(!1);rc("k",h=>{(h.ctrlKey||h.metaKey)&&(h.preventDefault(),c.value=!0)}),rc("/",h=>{l(h)||(h.preventDefault(),c.value=!0)});const u="local";return(h,d)=>{var f;return Y(),ge("div",ry,[ee(u)==="local"?(Y(),ge(xt,{key:0},[c.value?(Y(),Xe(ee(e),{key:0,onClose:d[0]||(d[0]=g=>c.value=!1)})):Fe("",!0),ve("div",oy,[Ue(ah,{onClick:d[1]||(d[1]=g=>c.value=!0)})])],64)):ee(u)==="algolia"?(Y(),ge(xt,{key:1},[i.value?(Y(),Xe(ee(t),{key:0,algolia:((f=ee(n).search)==null?void 0:f.options)??ee(n).algolia,onVnodeBeforeMount:d[2]||(d[2]=g=>r.value=!0)},null,8,["algolia"])):Fe("",!0),r.value?Fe("",!0):(Y(),ge("div",ay,[Ue(ah,{onClick:o})]))],64)):Fe("",!0)])}}}),cy=ke({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=lt();return(t,n)=>ee(e).socialLinks?(Y(),Xe(cu,{key:0,class:"VPNavBarSocialLinks",links:ee(e).socialLinks},null,8,["links"])):Fe("",!0)}}),uy=qe(cy,[["__scopeId","data-v-0394ad82"]]),hy=["href","rel","target"],dy={key:1},fy={key:2},py=ke({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=lt(),{hasSidebar:n}=di(),{currentLang:i}=Yr(),r=He(()=>{var l;return typeof t.value.logoLink=="string"?t.value.logoLink:(l=t.value.logoLink)==null?void 0:l.link}),o=He(()=>{var l;return typeof t.value.logoLink=="string"||(l=t.value.logoLink)==null?void 0:l.rel}),a=He(()=>{var l;return typeof t.value.logoLink=="string"||(l=t.value.logoLink)==null?void 0:l.target});return(l,c)=>(Y(),ge("div",{class:yt(["VPNavBarTitle",{"has-sidebar":ee(n)}])},[ve("a",{class:"title",href:r.value??ee(su)(ee(i).link),rel:o.value,target:a.value},[pe(l.$slots,"nav-bar-title-before",{},void 0,!0),ee(t).logo?(Y(),Xe(ba,{key:0,class:"logo",image:ee(t).logo},null,8,["image"])):Fe("",!0),ee(t).siteTitle?(Y(),ge("span",dy,pt(ee(t).siteTitle),1)):ee(t).siteTitle===void 0?(Y(),ge("span",fy,pt(ee(e).title),1)):Fe("",!0),pe(l.$slots,"nav-bar-title-after",{},void 0,!0)],8,hy)],2))}}),my=qe(py,[["__scopeId","data-v-ab179fa1"]]),gy={class:"items"},_y={class:"title"},vy=ke({__name:"VPNavBarTranslations",setup(s){const{theme:e}=lt(),{localeLinks:t,currentLang:n}=Yr({correspondingLink:!0});return(i,r)=>ee(t).length&&ee(n).label?(Y(),Xe(lu,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:ee(e).langMenuLabel||"Change language"},{default:xe(()=>[ve("div",gy,[ve("p",_y,pt(ee(n).label),1),(Y(!0),ge(xt,null,Qt(ee(t),o=>(Y(),Xe(Da,{key:o.link,item:o},null,8,["item"]))),128))])]),_:1},8,["label"])):Fe("",!0)}}),yy=qe(vy,[["__scopeId","data-v-88af2de4"]]),xy=s=>($t("data-v-ccf7ddec"),s=s(),Xt(),s),My={class:"wrapper"},by={class:"container"},Sy={class:"title"},wy={class:"content"},Ay={class:"content-body"},Ey=xy(()=>ve("div",{class:"divider"},[ve("div",{class:"divider-line"})],-1)),Ty=ke({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const{y:e}=nf(),{hasSidebar:t}=di(),{frontmatter:n}=lt(),i=Ve({});return ef(()=>{i.value={"has-sidebar":t.value,home:n.value.layout==="home",top:e.value===0}}),(r,o)=>(Y(),ge("div",{class:yt(["VPNavBar",i.value])},[ve("div",My,[ve("div",by,[ve("div",Sy,[Ue(my,null,{"nav-bar-title-before":xe(()=>[pe(r.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":xe(()=>[pe(r.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),ve("div",wy,[ve("div",Ay,[pe(r.$slots,"nav-bar-content-before",{},void 0,!0),Ue(ly,{class:"search"}),Ue(j0,{class:"menu"}),Ue(yy,{class:"translations"}),Ue(t0,{class:"appearance"}),Ue(uy,{class:"social-links"}),Ue(F0,{class:"extra"}),pe(r.$slots,"nav-bar-content-after",{},void 0,!0),Ue(G0,{class:"hamburger",active:r.isScreenOpen,onClick:o[0]||(o[0]=a=>r.$emit("toggle-screen"))},null,8,["active"])])])])]),Ey],2))}}),Cy=qe(Ty,[["__scopeId","data-v-ccf7ddec"]]),Py={key:0,class:"VPNavScreenAppearance"},Ry={class:"text"},Iy=ke({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=lt();return(n,i)=>ee(e).appearance&&ee(e).appearance!=="force-dark"?(Y(),ge("div",Py,[ve("p",Ry,pt(ee(t).darkModeSwitchLabel||"Appearance"),1),Ue(ou)])):Fe("",!0)}}),Ly=qe(Iy,[["__scopeId","data-v-2d7af913"]]),Ny=ke({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=qr("close-screen");return(t,n)=>(Y(),Xe(Gn,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:ee(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Dy=qe(Ny,[["__scopeId","data-v-7f31e1f6"]]),Uy=ke({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=qr("close-screen");return(t,n)=>(Y(),Xe(Gn,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:ee(e)},{default:xe(()=>[qt(pt(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),pf=qe(Uy,[["__scopeId","data-v-19976ae1"]]),Oy={class:"VPNavScreenMenuGroupSection"},Fy={key:0,class:"title"},ky=ke({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(Y(),ge("div",Oy,[e.text?(Y(),ge("p",Fy,pt(e.text),1)):Fe("",!0),(Y(!0),ge(xt,null,Qt(e.items,n=>(Y(),Xe(pf,{key:n.text,item:n},null,8,["item"]))),128))]))}}),By=qe(ky,[["__scopeId","data-v-8133b170"]]),zy=s=>($t("data-v-ff6087d4"),s=s(),Xt(),s),Vy=["aria-controls","aria-expanded"],Hy=["innerHTML"],Gy=zy(()=>ve("span",{class:"vpi-plus button-icon"},null,-1)),Wy=["id"],$y={key:1,class:"group"},Xy=ke({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=Ve(!1),n=He(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function i(){t.value=!t.value}return(r,o)=>(Y(),ge("div",{class:yt(["VPNavScreenMenuGroup",{open:t.value}])},[ve("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:i},[ve("span",{class:"button-text",innerHTML:r.text},null,8,Hy),Gy],8,Vy),ve("div",{id:n.value,class:"items"},[(Y(!0),ge(xt,null,Qt(r.items,a=>(Y(),ge(xt,{key:a.text},["link"in a?(Y(),ge("div",{key:a.text,class:"item"},[Ue(pf,{item:a},null,8,["item"])])):(Y(),ge("div",$y,[Ue(By,{text:a.text,items:a.items},null,8,["text","items"])]))],64))),128))],8,Wy)],2))}}),qy=qe(Xy,[["__scopeId","data-v-ff6087d4"]]),Yy={key:0,class:"VPNavScreenMenu"},Zy=ke({__name:"VPNavScreenMenu",setup(s){const{theme:e}=lt();return(t,n)=>ee(e).nav?(Y(),ge("nav",Yy,[(Y(!0),ge(xt,null,Qt(ee(e).nav,i=>(Y(),ge(xt,{key:i.text},["link"in i?(Y(),Xe(Dy,{key:0,item:i},null,8,["item"])):(Y(),Xe(qy,{key:1,text:i.text||"",items:i.items},null,8,["text","items"]))],64))),128))])):Fe("",!0)}}),Ky=ke({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=lt();return(t,n)=>ee(e).socialLinks?(Y(),Xe(cu,{key:0,class:"VPNavScreenSocialLinks",links:ee(e).socialLinks},null,8,["links"])):Fe("",!0)}}),mf=s=>($t("data-v-858fe1a4"),s=s(),Xt(),s),Jy=mf(()=>ve("span",{class:"vpi-languages icon lang"},null,-1)),jy=mf(()=>ve("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Qy={class:"list"},ex=ke({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=Yr({correspondingLink:!0}),n=Ve(!1);function i(){n.value=!n.value}return(r,o)=>ee(e).length&&ee(t).label?(Y(),ge("div",{key:0,class:yt(["VPNavScreenTranslations",{open:n.value}])},[ve("button",{class:"title",onClick:i},[Jy,qt(" "+pt(ee(t).label)+" ",1),jy]),ve("ul",Qy,[(Y(!0),ge(xt,null,Qt(ee(e),a=>(Y(),ge("li",{key:a.link,class:"item"},[Ue(Gn,{class:"link",href:a.link},{default:xe(()=>[qt(pt(a.text),1)]),_:2},1032,["href"])]))),128))])],2)):Fe("",!0)}}),tx=qe(ex,[["__scopeId","data-v-858fe1a4"]]),nx={class:"container"},ix=ke({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=Ve(null),t=sf(Na?document.body:null);return(n,i)=>(Y(),Xe(eu,{name:"fade",onEnter:i[0]||(i[0]=r=>t.value=!0),onAfterLeave:i[1]||(i[1]=r=>t.value=!1)},{default:xe(()=>[n.open?(Y(),ge("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[ve("div",nx,[pe(n.$slots,"nav-screen-content-before",{},void 0,!0),Ue(Zy,{class:"menu"}),Ue(tx,{class:"translations"}),Ue(Ly,{class:"appearance"}),Ue(Ky,{class:"social-links"}),pe(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):Fe("",!0)]),_:3}))}}),sx=qe(ix,[["__scopeId","data-v-cc5739dd"]]),rx={key:0,class:"VPNav"},ox=ke({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=Gv(),{frontmatter:i}=lt(),r=He(()=>i.value.navbar!==!1);return Sr("close-screen",t),Li(()=>{Na&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(o,a)=>r.value?(Y(),ge("header",rx,[Ue(Cy,{"is-screen-open":ee(e),onToggleScreen:ee(n)},{"nav-bar-title-before":xe(()=>[pe(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":xe(()=>[pe(o.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":xe(()=>[pe(o.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":xe(()=>[pe(o.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),Ue(sx,{open:ee(e)},{"nav-screen-content-before":xe(()=>[pe(o.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":xe(()=>[pe(o.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):Fe("",!0)}}),ax=qe(ox,[["__scopeId","data-v-ae24b3ad"]]),gf=s=>($t("data-v-b8d55f3b"),s=s(),Xt(),s),lx=["role","tabindex"],cx=gf(()=>ve("div",{class:"indicator"},null,-1)),ux=["onKeydown"],hx=gf(()=>ve("span",{class:"vpi-chevron-right caret-icon"},null,-1)),dx=[hx],fx={key:1,class:"items"},px=ke({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:n,isLink:i,isActiveLink:r,hasActiveLink:o,hasChildren:a,toggle:l}=Dg(He(()=>e.item)),c=He(()=>a.value?"section":"div"),u=He(()=>i.value?"a":"div"),h=He(()=>a.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),d=He(()=>i.value?void 0:"button"),f=He(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":i.value},{"is-active":r.value},{"has-active":o.value}]);function g(p){"key"in p&&p.key!=="Enter"||!e.item.link&&l()}function _(){e.item.link&&l()}return(p,m)=>{const y=rn("VPSidebarItem",!0);return Y(),Xe(Xs(c.value),{class:yt(["VPSidebarItem",f.value])},{default:xe(()=>[p.item.text?(Y(),ge("div",ca({key:0,class:"item",role:d.value},ig(p.item.items?{click:g,keydown:g}:{},!0),{tabindex:p.item.items&&0}),[cx,p.item.link?(Y(),Xe(Gn,{key:0,tag:u.value,class:"link",href:p.item.link,rel:p.item.rel,target:p.item.target},{default:xe(()=>[(Y(),Xe(Xs(h.value),{class:"text",innerHTML:p.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(Y(),Xe(Xs(h.value),{key:1,class:"text",innerHTML:p.item.text},null,8,["innerHTML"])),p.item.collapsed!=null&&p.item.items&&p.item.items.length?(Y(),ge("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:_,onKeydown:ng(_,["enter"]),tabindex:"0"},dx,40,ux)):Fe("",!0)],16,lx)):Fe("",!0),p.item.items&&p.item.items.length?(Y(),ge("div",fx,[p.depth<5?(Y(!0),ge(xt,{key:0},Qt(p.item.items,v=>(Y(),Xe(y,{key:v.text,item:v,depth:p.depth+1},null,8,["item","depth"]))),128)):Fe("",!0)])):Fe("",!0)]),_:1},8,["class"])}}}),mx=qe(px,[["__scopeId","data-v-b8d55f3b"]]),_f=s=>($t("data-v-575e6a36"),s=s(),Xt(),s),gx=_f(()=>ve("div",{class:"curtain"},null,-1)),_x={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},vx=_f(()=>ve("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),yx=ke({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const e=s,{sidebarGroups:t,hasSidebar:n}=di(),i=Ve(null),r=sf(Na?document.body:null);return wt([e,i],()=>{var o;e.open?(r.value=!0,(o=i.value)==null||o.focus()):r.value=!1},{immediate:!0,flush:"post"}),(o,a)=>ee(n)?(Y(),ge("aside",{key:0,class:yt(["VPSidebar",{open:o.open}]),ref_key:"navEl",ref:i,onClick:a[0]||(a[0]=sg(()=>{},["stop"]))},[gx,ve("nav",_x,[vx,pe(o.$slots,"sidebar-nav-before",{},void 0,!0),(Y(!0),ge(xt,null,Qt(ee(t),l=>(Y(),ge("div",{key:l.text,class:"group"},[Ue(mx,{item:l,depth:0},null,8,["item"])]))),128)),pe(o.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):Fe("",!0)}}),xx=qe(yx,[["__scopeId","data-v-575e6a36"]]),Mx=ke({__name:"VPSkipLink",setup(s){const e=Xr(),t=Ve();wt(()=>e.path,()=>t.value.focus());function n({target:i}){const r=document.getElementById(decodeURIComponent(i.hash).slice(1));if(r){const o=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",o)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",o),r.focus(),window.scrollTo(0,0)}}return(i,r)=>(Y(),ge(xt,null,[ve("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),ve("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),bx=qe(Mx,[["__scopeId","data-v-0f60ec36"]]),Sx=ke({__name:"Layout",setup(s){const{isOpen:e,open:t,close:n}=di(),i=Xr();wt(()=>i.path,n),Ng(e,n);const{frontmatter:r}=lt(),o=rf(),a=He(()=>!!o["home-hero-image"]);return Sr("hero-image-slot-exists",a),(l,c)=>{const u=rn("Content");return ee(r).layout!==!1?(Y(),ge("div",{key:0,class:yt(["Layout",ee(r).pageClass])},[pe(l.$slots,"layout-top",{},void 0,!0),Ue(bx),Ue(vg,{class:"backdrop",show:ee(e),onClick:ee(n)},null,8,["show","onClick"]),Ue(ax,null,{"nav-bar-title-before":xe(()=>[pe(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":xe(()=>[pe(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":xe(()=>[pe(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":xe(()=>[pe(l.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":xe(()=>[pe(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":xe(()=>[pe(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),Ue(Hv,{open:ee(e),onOpenMenu:ee(t)},null,8,["open","onOpenMenu"]),Ue(xx,{open:ee(e)},{"sidebar-nav-before":xe(()=>[pe(l.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":xe(()=>[pe(l.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),Ue(bv,null,{"page-top":xe(()=>[pe(l.$slots,"page-top",{},void 0,!0)]),"page-bottom":xe(()=>[pe(l.$slots,"page-bottom",{},void 0,!0)]),"not-found":xe(()=>[pe(l.$slots,"not-found",{},void 0,!0)]),"home-hero-before":xe(()=>[pe(l.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":xe(()=>[pe(l.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":xe(()=>[pe(l.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":xe(()=>[pe(l.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":xe(()=>[pe(l.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":xe(()=>[pe(l.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":xe(()=>[pe(l.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":xe(()=>[pe(l.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":xe(()=>[pe(l.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":xe(()=>[pe(l.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":xe(()=>[pe(l.$slots,"doc-before",{},void 0,!0)]),"doc-after":xe(()=>[pe(l.$slots,"doc-after",{},void 0,!0)]),"doc-top":xe(()=>[pe(l.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":xe(()=>[pe(l.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":xe(()=>[pe(l.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":xe(()=>[pe(l.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":xe(()=>[pe(l.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":xe(()=>[pe(l.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":xe(()=>[pe(l.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":xe(()=>[pe(l.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),Ue(Tv),pe(l.$slots,"layout-bottom",{},void 0,!0)],2)):(Y(),Xe(u,{key:1}))}}}),wx=qe(Sx,[["__scopeId","data-v-5d98c3a5"]]),vf={Layout:wx,enhanceApp:({app:s})=>{s.component("Badge",mg)}},Ax=ke({__name:"HighlightTargetedHeading",setup(s){function e(){if(!window||!window.location||!window.location.hash)return;const n=decodeURIComponent(window.location.hash);if(!n)return;let i;try{i=document.querySelector(n)}catch(r){console.error(r);return}i&&(i.classList.contains("VPNolebaseHighlightTargetedHeading")||i.classList.add("VPNolebaseHighlightTargetedHeading"),i.classList.remove("VPNolebaseHighlightTargetedHeadingAnimated"),setTimeout(()=>{i&&i.classList.add("VPNolebaseHighlightTargetedHeadingAnimated")},10))}const t=Xr();return Fn(e),wt(t,async()=>{await iu(),e()}),rg("hashchange",e),(n,i)=>pe(n.$slots,"default")}});/** +const __vite__fileDeps=["assets/chunks/VPLocalSearchBox.CqtzcjrV.js","assets/chunks/framework.VBE0TPts.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{d as Be,o as Y,c as fe,r as ue,n as xt,a as $t,t as ft,b as $e,w as ye,e as ke,T as qc,_ as Xe,u as zm,i as Vm,f as Hm,g as Yc,h as Ve,j as me,k as ee,p as Gt,l as Wt,m as is,q as Kl,s as Fe,v as wt,x as Pi,y as Nn,z as Gn,A as $d,B as Gm,C as Wm,D as cn,F as yt,E as Jt,G as Rn,H as wa,I as De,J as Bs,K as Xd,L as zr,M as na,N as Aa,O as $m,P as Zc,Q as jl,R as Jc,S as qd,U as Ta,V as gr,W as Xm,X as qm,Y as Yd,Z as vr,$ as Ym,a0 as Zm,a1 as Jm,a2 as Zd,a3 as Km,a4 as Jd,a5 as jm,a6 as Qm,a7 as eg,a8 as tg,a9 as pa,aa as ng,ab as ig,ac as eh,ad as sg,ae as rg,af as og}from"./framework.VBE0TPts.js";const ag=Be({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(s){return(e,t)=>(Y(),fe("span",{class:xt(["VPBadge",e.type])},[ue(e.$slots,"default",{},()=>[$t(ft(e.text),1)])],2))}}),lg={key:0,class:"VPBackdrop"},cg=Be({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(s){return(e,t)=>(Y(),$e(qc,{name:"fade"},{default:ye(()=>[e.show?(Y(),fe("div",lg)):ke("",!0)]),_:1}))}}),ug=Xe(cg,[["__scopeId","data-v-c79a1216"]]),ot=zm;function hg(s,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(s,e):(s(),(n=!0)&&setTimeout(()=>n=!1,e))}}function Ql(s){return/^\//.test(s)?s:`/${s}`}function Kc(s){const{pathname:e,search:t,hash:n,protocol:i}=new URL(s,"http://a.com");if(Vm(s)||s.startsWith("#")||!i.startsWith("http")||!Hm(e))return s;const{site:r}=ot(),o=e.endsWith("/")||e.endsWith(".html")?s:s.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${t}${n}`);return Yc(o)}function Vr({correspondingLink:s=!1}={}){const{site:e,localeIndex:t,page:n,theme:i,hash:r}=ot(),o=Ve(()=>{var l,c;return{label:(l=e.value.locales[t.value])==null?void 0:l.label,link:((c=e.value.locales[t.value])==null?void 0:c.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:Ve(()=>Object.entries(e.value.locales).flatMap(([l,c])=>o.value.label===c.label?[]:{text:c.label,link:dg(c.link||(l==="root"?"/":`/${l}/`),i.value.i18nRouting!==!1&&s,n.value.relativePath.slice(o.value.link.length-1),!e.value.cleanUrls)+r.value})),currentLang:o}}function dg(s,e,t,n){return e?s.replace(/\/$/,"")+Ql(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):s}const fg=s=>(Gt("data-v-d6be1790"),s=s(),Wt(),s),pg={class:"NotFound"},mg={class:"code"},gg={class:"title"},vg=fg(()=>me("div",{class:"divider"},null,-1)),_g={class:"quote"},yg={class:"action"},xg=["href","aria-label"],Mg=Be({__name:"NotFound",setup(s){const{theme:e}=ot(),{currentLang:t}=Vr();return(n,i)=>{var r,o,a,l,c;return Y(),fe("div",pg,[me("p",mg,ft(((r=ee(e).notFound)==null?void 0:r.code)??"404"),1),me("h1",gg,ft(((o=ee(e).notFound)==null?void 0:o.title)??"PAGE NOT FOUND"),1),vg,me("blockquote",_g,ft(((a=ee(e).notFound)==null?void 0:a.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),me("div",yg,[me("a",{class:"link",href:ee(Yc)(ee(t).link),"aria-label":((l=ee(e).notFound)==null?void 0:l.linkLabel)??"go to home"},ft(((c=ee(e).notFound)==null?void 0:c.linkText)??"Take me home"),9,xg)])])}}}),bg=Xe(Mg,[["__scopeId","data-v-d6be1790"]]);function Kd(s,e){if(Array.isArray(s))return ia(s);if(s==null)return[];e=Ql(e);const t=Object.keys(s).sort((i,r)=>r.split("/").length-i.split("/").length).find(i=>e.startsWith(Ql(i))),n=t?s[t]:[];return Array.isArray(n)?ia(n):ia(n.items,n.base)}function Sg(s){const e=[];let t=0;for(const n in s){const i=s[n];if(i.items){t=e.push(i);continue}e[t]||e.push({items:[]}),e[t].items.push(i)}return e}function wg(s){const e=[];function t(n){for(const i of n)i.text&&i.link&&e.push({text:i.text,link:i.link,docFooterText:i.docFooterText}),i.items&&t(i.items)}return t(s),e}function ec(s,e){return Array.isArray(e)?e.some(t=>ec(s,t)):is(s,e.link)?!0:e.items?ec(s,e.items):!1}function ia(s,e){return[...s].map(t=>{const n={...t},i=n.base||e;return i&&n.link&&(n.link=i+n.link),n.items&&(n.items=ia(n.items,i)),n})}function li(){const{frontmatter:s,page:e,theme:t}=ot(),n=Kl("(min-width: 960px)"),i=Fe(!1),r=Ve(()=>{const v=t.value.sidebar,p=e.value.relativePath;return v?Kd(v,p):[]}),o=Fe(r.value);wt(r,(v,p)=>{JSON.stringify(v)!==JSON.stringify(p)&&(o.value=r.value)});const a=Ve(()=>s.value.sidebar!==!1&&o.value.length>0&&s.value.layout!=="home"),l=Ve(()=>c?s.value.aside==null?t.value.aside==="left":s.value.aside==="left":!1),c=Ve(()=>s.value.layout==="home"?!1:s.value.aside!=null?!!s.value.aside:t.value.aside!==!1),u=Ve(()=>a.value&&n.value),h=Ve(()=>a.value?Sg(o.value):[]);function d(){i.value=!0}function f(){i.value=!1}function g(){i.value?f():d()}return{isOpen:i,sidebar:o,sidebarGroups:h,hasSidebar:a,hasAside:c,leftAside:l,isSidebarEnabled:u,open:d,close:f,toggle:g}}function Ag(s,e){let t;Pi(()=>{t=s.value?document.activeElement:void 0}),Nn(()=>{window.addEventListener("keyup",n)}),Gn(()=>{window.removeEventListener("keyup",n)});function n(i){i.key==="Escape"&&s.value&&(e(),t==null||t.focus())}}function Tg(s){const{page:e,hash:t}=ot(),n=Fe(!1),i=Ve(()=>s.value.collapsed!=null),r=Ve(()=>!!s.value.link),o=Fe(!1),a=()=>{o.value=is(e.value.relativePath,s.value.link)};wt([e,s,t],a),Nn(a);const l=Ve(()=>o.value?!0:s.value.items?ec(e.value.relativePath,s.value.items):!1),c=Ve(()=>!!(s.value.items&&s.value.items.length));Pi(()=>{n.value=!!(i.value&&s.value.collapsed)}),$d(()=>{(o.value||l.value)&&(n.value=!1)});function u(){i.value&&(n.value=!n.value)}return{collapsed:n,collapsible:i,isLink:r,isActiveLink:o,hasActiveLink:l,hasChildren:c,toggle:u}}function Eg(){const{hasSidebar:s}=li(),e=Kl("(min-width: 960px)"),t=Kl("(min-width: 1280px)");return{isAsideEnabled:Ve(()=>!t.value&&!e.value?!1:s.value?t.value:e.value)}}const tc=[];function jd(s){return typeof s.outline=="object"&&!Array.isArray(s.outline)&&s.outline.label||s.outlineTitle||"On this page"}function jc(s){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(t=>t.id&&t.hasChildNodes()).map(t=>{const n=Number(t.tagName[1]);return{element:t,title:Cg(t),link:"#"+t.id,level:n}});return Pg(e,s)}function Cg(s){let e="";for(const t of s.childNodes)if(t.nodeType===1){if(t.classList.contains("VPBadge")||t.classList.contains("header-anchor")||t.classList.contains("ignore-header"))continue;e+=t.textContent}else t.nodeType===3&&(e+=t.textContent);return e.trim()}function Pg(s,e){if(e===!1)return[];const t=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[n,i]=typeof t=="number"?[t,t]:t==="deep"?[2,6]:t;s=s.filter(o=>o.level>=n&&o.level<=i),tc.length=0;for(const{element:o,link:a}of s)tc.push({element:o,link:a});const r=[];e:for(let o=0;o=0;l--){const c=s[l];if(c.level{requestAnimationFrame(r),window.addEventListener("scroll",n)}),Gm(()=>{o(location.hash)}),Gn(()=>{window.removeEventListener("scroll",n)});function r(){if(!t.value)return;const a=window.scrollY,l=window.innerHeight,c=document.body.offsetHeight,u=Math.abs(a+l-c)<1,h=tc.map(({element:f,link:g})=>({link:g,top:Ig(f)})).filter(({top:f})=>!Number.isNaN(f)).sort((f,g)=>f.top-g.top);if(!h.length){o(null);return}if(a<1){o(null);return}if(u){o(h[h.length-1].link);return}let d=null;for(const{link:f,top:g}of h){if(g>a+Wm()+4)break;d=f}o(d)}function o(a){i&&i.classList.remove("active"),a==null?i=null:i=s.value.querySelector(`a[href="${decodeURIComponent(a)}"]`);const l=i;l?(l.classList.add("active"),e.value.style.top=l.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function Ig(s){let e=0;for(;s!==document.body;){if(s===null)return NaN;e+=s.offsetTop,s=s.offsetParent}return e}const Lg=["href","title"],Ng=Be({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(s){function e({target:t}){const n=t.href.split("#")[1],i=document.getElementById(decodeURIComponent(n));i==null||i.focus({preventScroll:!0})}return(t,n)=>{const i=cn("VPDocOutlineItem",!0);return Y(),fe("ul",{class:xt(["VPDocOutlineItem",t.root?"root":"nested"])},[(Y(!0),fe(yt,null,Jt(t.headers,({children:r,link:o,title:a})=>(Y(),fe("li",null,[me("a",{class:"outline-link",href:o,onClick:e,title:a},ft(a),9,Lg),r!=null&&r.length?(Y(),$e(i,{key:0,headers:r},null,8,["headers"])):ke("",!0)]))),256))],2)}}}),Qd=Xe(Ng,[["__scopeId","data-v-b933a997"]]),Dg={class:"content"},Ug={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Og=Be({__name:"VPDocAsideOutline",setup(s){const{frontmatter:e,theme:t}=ot(),n=Rn([]);wa(()=>{n.value=jc(e.value.outline??t.value.outline)});const i=Fe(),r=Fe();return Rg(i,r),(o,a)=>(Y(),fe("nav",{"aria-labelledby":"doc-outline-aria-label",class:xt(["VPDocAsideOutline",{"has-outline":n.value.length>0}]),ref_key:"container",ref:i},[me("div",Dg,[me("div",{class:"outline-marker",ref_key:"marker",ref:r},null,512),me("div",Ug,ft(ee(jd)(ee(t))),1),De(Qd,{headers:n.value,root:!0},null,8,["headers"])])],2))}}),Fg=Xe(Og,[["__scopeId","data-v-a5bbad30"]]),kg={class:"VPDocAsideCarbonAds"},Bg=Be({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(s){const e=()=>null;return(t,n)=>(Y(),fe("div",kg,[De(ee(e),{"carbon-ads":t.carbonAds},null,8,["carbon-ads"])]))}}),zg=s=>(Gt("data-v-3f215769"),s=s(),Wt(),s),Vg={class:"VPDocAside"},Hg=zg(()=>me("div",{class:"spacer"},null,-1)),Gg=Be({__name:"VPDocAside",setup(s){const{theme:e}=ot();return(t,n)=>(Y(),fe("div",Vg,[ue(t.$slots,"aside-top",{},void 0,!0),ue(t.$slots,"aside-outline-before",{},void 0,!0),De(Fg),ue(t.$slots,"aside-outline-after",{},void 0,!0),Hg,ue(t.$slots,"aside-ads-before",{},void 0,!0),ee(e).carbonAds?(Y(),$e(Bg,{key:0,"carbon-ads":ee(e).carbonAds},null,8,["carbon-ads"])):ke("",!0),ue(t.$slots,"aside-ads-after",{},void 0,!0),ue(t.$slots,"aside-bottom",{},void 0,!0)]))}}),Wg=Xe(Gg,[["__scopeId","data-v-3f215769"]]);function $g(){const{theme:s,page:e}=ot();return Ve(()=>{const{text:t="Edit this page",pattern:n=""}=s.value.editLink||{};let i;return typeof n=="function"?i=n(e.value):i=n.replace(/:path/g,e.value.filePath),{url:i,text:t}})}function Xg(){const{page:s,theme:e,frontmatter:t}=ot();return Ve(()=>{var c,u,h,d,f,g,v,p;const n=Kd(e.value.sidebar,s.value.relativePath),i=wg(n),r=qg(i,m=>m.link.replace(/[?#].*$/,"")),o=r.findIndex(m=>is(s.value.relativePath,m.link)),a=((c=e.value.docFooter)==null?void 0:c.prev)===!1&&!t.value.prev||t.value.prev===!1,l=((u=e.value.docFooter)==null?void 0:u.next)===!1&&!t.value.next||t.value.next===!1;return{prev:a?void 0:{text:(typeof t.value.prev=="string"?t.value.prev:typeof t.value.prev=="object"?t.value.prev.text:void 0)??((h=r[o-1])==null?void 0:h.docFooterText)??((d=r[o-1])==null?void 0:d.text),link:(typeof t.value.prev=="object"?t.value.prev.link:void 0)??((f=r[o-1])==null?void 0:f.link)},next:l?void 0:{text:(typeof t.value.next=="string"?t.value.next:typeof t.value.next=="object"?t.value.next.text:void 0)??((g=r[o+1])==null?void 0:g.docFooterText)??((v=r[o+1])==null?void 0:v.text),link:(typeof t.value.next=="object"?t.value.next.link:void 0)??((p=r[o+1])==null?void 0:p.link)}}})}function qg(s,e){const t=new Set;return s.filter(n=>{const i=e(n);return t.has(i)?!1:t.add(i)})}const Vn=Be({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(s){const e=s,t=Ve(()=>e.tag??(e.href?"a":"span")),n=Ve(()=>e.href&&Xd.test(e.href)||e.target==="_blank");return(i,r)=>(Y(),$e(Bs(t.value),{class:xt(["VPLink",{link:i.href,"vp-external-link-icon":n.value,"no-icon":i.noIcon}]),href:i.href?ee(Kc)(i.href):void 0,target:i.target??(n.value?"_blank":void 0),rel:i.rel??(n.value?"noreferrer":void 0)},{default:ye(()=>[ue(i.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Yg={class:"VPLastUpdated"},Zg=["datetime"],Jg=Be({__name:"VPDocFooterLastUpdated",setup(s){const{theme:e,page:t,frontmatter:n,lang:i}=ot(),r=Ve(()=>new Date(n.value.lastUpdated??t.value.lastUpdated)),o=Ve(()=>r.value.toISOString()),a=Fe("");return Nn(()=>{Pi(()=>{var l,c,u;a.value=new Intl.DateTimeFormat((c=(l=e.value.lastUpdated)==null?void 0:l.formatOptions)!=null&&c.forceLocale?i.value:void 0,((u=e.value.lastUpdated)==null?void 0:u.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(r.value)})}),(l,c)=>{var u;return Y(),fe("p",Yg,[$t(ft(((u=ee(e).lastUpdated)==null?void 0:u.text)||ee(e).lastUpdatedText||"Last updated")+": ",1),me("time",{datetime:o.value},ft(a.value),9,Zg)])}}}),Kg=Xe(Jg,[["__scopeId","data-v-7e05ebdb"]]),ef=s=>(Gt("data-v-d4a0bba5"),s=s(),Wt(),s),jg={key:0,class:"VPDocFooter"},Qg={key:0,class:"edit-info"},ev={key:0,class:"edit-link"},tv=ef(()=>me("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),nv={key:1,class:"last-updated"},iv={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},sv=ef(()=>me("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),rv={class:"pager"},ov=["innerHTML"],av=["innerHTML"],lv={class:"pager"},cv=["innerHTML"],uv=["innerHTML"],hv=Be({__name:"VPDocFooter",setup(s){const{theme:e,page:t,frontmatter:n}=ot(),i=$g(),r=Xg(),o=Ve(()=>e.value.editLink&&n.value.editLink!==!1),a=Ve(()=>t.value.lastUpdated&&n.value.lastUpdated!==!1),l=Ve(()=>o.value||a.value||r.value.prev||r.value.next);return(c,u)=>{var h,d,f,g;return l.value?(Y(),fe("footer",jg,[ue(c.$slots,"doc-footer-before",{},void 0,!0),o.value||a.value?(Y(),fe("div",Qg,[o.value?(Y(),fe("div",ev,[De(Vn,{class:"edit-link-button",href:ee(i).url,"no-icon":!0},{default:ye(()=>[tv,$t(" "+ft(ee(i).text),1)]),_:1},8,["href"])])):ke("",!0),a.value?(Y(),fe("div",nv,[De(Kg)])):ke("",!0)])):ke("",!0),(h=ee(r).prev)!=null&&h.link||(d=ee(r).next)!=null&&d.link?(Y(),fe("nav",iv,[sv,me("div",rv,[(f=ee(r).prev)!=null&&f.link?(Y(),$e(Vn,{key:0,class:"pager-link prev",href:ee(r).prev.link},{default:ye(()=>{var v;return[me("span",{class:"desc",innerHTML:((v=ee(e).docFooter)==null?void 0:v.prev)||"Previous page"},null,8,ov),me("span",{class:"title",innerHTML:ee(r).prev.text},null,8,av)]}),_:1},8,["href"])):ke("",!0)]),me("div",lv,[(g=ee(r).next)!=null&&g.link?(Y(),$e(Vn,{key:0,class:"pager-link next",href:ee(r).next.link},{default:ye(()=>{var v;return[me("span",{class:"desc",innerHTML:((v=ee(e).docFooter)==null?void 0:v.next)||"Next page"},null,8,cv),me("span",{class:"title",innerHTML:ee(r).next.text},null,8,uv)]}),_:1},8,["href"])):ke("",!0)])])):ke("",!0)])):ke("",!0)}}}),dv=Xe(hv,[["__scopeId","data-v-d4a0bba5"]]),fv=s=>(Gt("data-v-39a288b8"),s=s(),Wt(),s),pv={class:"container"},mv=fv(()=>me("div",{class:"aside-curtain"},null,-1)),gv={class:"aside-container"},vv={class:"aside-content"},_v={class:"content"},yv={class:"content-container"},xv={class:"main"},Mv=Be({__name:"VPDoc",setup(s){const{theme:e}=ot(),t=zr(),{hasSidebar:n,hasAside:i,leftAside:r}=li(),o=Ve(()=>t.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(a,l)=>{const c=cn("Content");return Y(),fe("div",{class:xt(["VPDoc",{"has-sidebar":ee(n),"has-aside":ee(i)}])},[ue(a.$slots,"doc-top",{},void 0,!0),me("div",pv,[ee(i)?(Y(),fe("div",{key:0,class:xt(["aside",{"left-aside":ee(r)}])},[mv,me("div",gv,[me("div",vv,[De(Wg,null,{"aside-top":ye(()=>[ue(a.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":ye(()=>[ue(a.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":ye(()=>[ue(a.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":ye(()=>[ue(a.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":ye(()=>[ue(a.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":ye(()=>[ue(a.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):ke("",!0),me("div",_v,[me("div",yv,[ue(a.$slots,"doc-before",{},void 0,!0),me("main",xv,[De(c,{class:xt(["vp-doc",[o.value,ee(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),De(dv,null,{"doc-footer-before":ye(()=>[ue(a.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),ue(a.$slots,"doc-after",{},void 0,!0)])])]),ue(a.$slots,"doc-bottom",{},void 0,!0)],2)}}}),bv=Xe(Mv,[["__scopeId","data-v-39a288b8"]]),Sv=Be({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(s){const e=s,t=Ve(()=>e.href&&Xd.test(e.href)),n=Ve(()=>e.tag||e.href?"a":"button");return(i,r)=>(Y(),$e(Bs(n.value),{class:xt(["VPButton",[i.size,i.theme]]),href:i.href?ee(Kc)(i.href):void 0,target:e.target??(t.value?"_blank":void 0),rel:e.rel??(t.value?"noreferrer":void 0)},{default:ye(()=>[$t(ft(i.text),1)]),_:1},8,["class","href","target","rel"]))}}),wv=Xe(Sv,[["__scopeId","data-v-cad61b99"]]),Av=["src","alt"],Tv=Be({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(s){return(e,t)=>{const n=cn("VPImage",!0);return e.image?(Y(),fe(yt,{key:0},[typeof e.image=="string"||"src"in e.image?(Y(),fe("img",na({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:ee(Yc)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,Av)):(Y(),fe(yt,{key:1},[De(n,na({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),De(n,na({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):ke("",!0)}}}),ma=Xe(Tv,[["__scopeId","data-v-8426fc1a"]]),Ev=s=>(Gt("data-v-303bb580"),s=s(),Wt(),s),Cv={class:"container"},Pv={class:"main"},Rv={key:0,class:"name"},Iv=["innerHTML"],Lv=["innerHTML"],Nv=["innerHTML"],Dv={key:0,class:"actions"},Uv={key:0,class:"image"},Ov={class:"image-container"},Fv=Ev(()=>me("div",{class:"image-bg"},null,-1)),kv=Be({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(s){const e=Aa("hero-image-slot-exists");return(t,n)=>(Y(),fe("div",{class:xt(["VPHero",{"has-image":t.image||ee(e)}])},[me("div",Cv,[me("div",Pv,[ue(t.$slots,"home-hero-info-before",{},void 0,!0),ue(t.$slots,"home-hero-info",{},()=>[t.name?(Y(),fe("h1",Rv,[me("span",{innerHTML:t.name,class:"clip"},null,8,Iv)])):ke("",!0),t.text?(Y(),fe("p",{key:1,innerHTML:t.text,class:"text"},null,8,Lv)):ke("",!0),t.tagline?(Y(),fe("p",{key:2,innerHTML:t.tagline,class:"tagline"},null,8,Nv)):ke("",!0)],!0),ue(t.$slots,"home-hero-info-after",{},void 0,!0),t.actions?(Y(),fe("div",Dv,[(Y(!0),fe(yt,null,Jt(t.actions,i=>(Y(),fe("div",{key:i.link,class:"action"},[De(wv,{tag:"a",size:"medium",theme:i.theme,text:i.text,href:i.link,target:i.target,rel:i.rel},null,8,["theme","text","href","target","rel"])]))),128))])):ke("",!0),ue(t.$slots,"home-hero-actions-after",{},void 0,!0)]),t.image||ee(e)?(Y(),fe("div",Uv,[me("div",Ov,[Fv,ue(t.$slots,"home-hero-image",{},()=>[t.image?(Y(),$e(ma,{key:0,class:"image-src",image:t.image},null,8,["image"])):ke("",!0)],!0)])])):ke("",!0)])],2))}}),Bv=Xe(kv,[["__scopeId","data-v-303bb580"]]),zv=Be({__name:"VPHomeHero",setup(s){const{frontmatter:e}=ot();return(t,n)=>ee(e).hero?(Y(),$e(Bv,{key:0,class:"VPHomeHero",name:ee(e).hero.name,text:ee(e).hero.text,tagline:ee(e).hero.tagline,image:ee(e).hero.image,actions:ee(e).hero.actions},{"home-hero-info-before":ye(()=>[ue(t.$slots,"home-hero-info-before")]),"home-hero-info":ye(()=>[ue(t.$slots,"home-hero-info")]),"home-hero-info-after":ye(()=>[ue(t.$slots,"home-hero-info-after")]),"home-hero-actions-after":ye(()=>[ue(t.$slots,"home-hero-actions-after")]),"home-hero-image":ye(()=>[ue(t.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):ke("",!0)}}),Vv=s=>(Gt("data-v-a3976bdc"),s=s(),Wt(),s),Hv={class:"box"},Gv={key:0,class:"icon"},Wv=["innerHTML"],$v=["innerHTML"],Xv=["innerHTML"],qv={key:4,class:"link-text"},Yv={class:"link-text-value"},Zv=Vv(()=>me("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),Jv=Be({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(s){return(e,t)=>(Y(),$e(Vn,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:ye(()=>[me("article",Hv,[typeof e.icon=="object"&&e.icon.wrap?(Y(),fe("div",Gv,[De(ma,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(Y(),$e(ma,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(Y(),fe("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Wv)):ke("",!0),me("h2",{class:"title",innerHTML:e.title},null,8,$v),e.details?(Y(),fe("p",{key:3,class:"details",innerHTML:e.details},null,8,Xv)):ke("",!0),e.linkText?(Y(),fe("div",qv,[me("p",Yv,[$t(ft(e.linkText)+" ",1),Zv])])):ke("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Kv=Xe(Jv,[["__scopeId","data-v-a3976bdc"]]),jv={key:0,class:"VPFeatures"},Qv={class:"container"},e_={class:"items"},t_=Be({__name:"VPFeatures",props:{features:{}},setup(s){const e=s,t=Ve(()=>{const n=e.features.length;if(n){if(n===2)return"grid-2";if(n===3)return"grid-3";if(n%3===0)return"grid-6";if(n>3)return"grid-4"}else return});return(n,i)=>n.features?(Y(),fe("div",jv,[me("div",Qv,[me("div",e_,[(Y(!0),fe(yt,null,Jt(n.features,r=>(Y(),fe("div",{key:r.title,class:xt(["item",[t.value]])},[De(Kv,{icon:r.icon,title:r.title,details:r.details,link:r.link,"link-text":r.linkText,rel:r.rel,target:r.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):ke("",!0)}}),n_=Xe(t_,[["__scopeId","data-v-a6181336"]]),i_=Be({__name:"VPHomeFeatures",setup(s){const{frontmatter:e}=ot();return(t,n)=>ee(e).features?(Y(),$e(n_,{key:0,class:"VPHomeFeatures",features:ee(e).features},null,8,["features"])):ke("",!0)}}),s_=Be({__name:"VPHomeContent",setup(s){const{width:e}=$m({initialWidth:0,includeScrollbar:!1});return(t,n)=>(Y(),fe("div",{class:"vp-doc container",style:Zc(ee(e)?{"--vp-offset":`calc(50% - ${ee(e)/2}px)`}:{})},[ue(t.$slots,"default",{},void 0,!0)],4))}}),r_=Xe(s_,[["__scopeId","data-v-8e2d4988"]]),o_={class:"VPHome"},a_=Be({__name:"VPHome",setup(s){const{frontmatter:e}=ot();return(t,n)=>{const i=cn("Content");return Y(),fe("div",o_,[ue(t.$slots,"home-hero-before",{},void 0,!0),De(zv,null,{"home-hero-info-before":ye(()=>[ue(t.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":ye(()=>[ue(t.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":ye(()=>[ue(t.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":ye(()=>[ue(t.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":ye(()=>[ue(t.$slots,"home-hero-image",{},void 0,!0)]),_:3}),ue(t.$slots,"home-hero-after",{},void 0,!0),ue(t.$slots,"home-features-before",{},void 0,!0),De(i_),ue(t.$slots,"home-features-after",{},void 0,!0),ee(e).markdownStyles!==!1?(Y(),$e(r_,{key:0},{default:ye(()=>[De(i)]),_:1})):(Y(),$e(i,{key:1}))])}}}),l_=Xe(a_,[["__scopeId","data-v-686f80a6"]]),c_={},u_={class:"VPPage"};function h_(s,e){const t=cn("Content");return Y(),fe("div",u_,[ue(s.$slots,"page-top"),De(t),ue(s.$slots,"page-bottom")])}const d_=Xe(c_,[["render",h_]]),f_=Be({__name:"VPContent",setup(s){const{page:e,frontmatter:t}=ot(),{hasSidebar:n}=li();return(i,r)=>(Y(),fe("div",{class:xt(["VPContent",{"has-sidebar":ee(n),"is-home":ee(t).layout==="home"}]),id:"VPContent"},[ee(e).isNotFound?ue(i.$slots,"not-found",{key:0},()=>[De(bg)],!0):ee(t).layout==="page"?(Y(),$e(d_,{key:1},{"page-top":ye(()=>[ue(i.$slots,"page-top",{},void 0,!0)]),"page-bottom":ye(()=>[ue(i.$slots,"page-bottom",{},void 0,!0)]),_:3})):ee(t).layout==="home"?(Y(),$e(l_,{key:2},{"home-hero-before":ye(()=>[ue(i.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":ye(()=>[ue(i.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":ye(()=>[ue(i.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":ye(()=>[ue(i.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":ye(()=>[ue(i.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":ye(()=>[ue(i.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":ye(()=>[ue(i.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":ye(()=>[ue(i.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":ye(()=>[ue(i.$slots,"home-features-after",{},void 0,!0)]),_:3})):ee(t).layout&&ee(t).layout!=="doc"?(Y(),$e(Bs(ee(t).layout),{key:3})):(Y(),$e(bv,{key:4},{"doc-top":ye(()=>[ue(i.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":ye(()=>[ue(i.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":ye(()=>[ue(i.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":ye(()=>[ue(i.$slots,"doc-before",{},void 0,!0)]),"doc-after":ye(()=>[ue(i.$slots,"doc-after",{},void 0,!0)]),"aside-top":ye(()=>[ue(i.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":ye(()=>[ue(i.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":ye(()=>[ue(i.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":ye(()=>[ue(i.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":ye(()=>[ue(i.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":ye(()=>[ue(i.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),p_=Xe(f_,[["__scopeId","data-v-1428d186"]]),m_={class:"container"},g_=["innerHTML"],v_=["innerHTML"],__=Be({__name:"VPFooter",setup(s){const{theme:e,frontmatter:t}=ot(),{hasSidebar:n}=li();return(i,r)=>ee(e).footer&&ee(t).footer!==!1?(Y(),fe("footer",{key:0,class:xt(["VPFooter",{"has-sidebar":ee(n)}])},[me("div",m_,[ee(e).footer.message?(Y(),fe("p",{key:0,class:"message",innerHTML:ee(e).footer.message},null,8,g_)):ke("",!0),ee(e).footer.copyright?(Y(),fe("p",{key:1,class:"copyright",innerHTML:ee(e).footer.copyright},null,8,v_)):ke("",!0)])],2)):ke("",!0)}}),y_=Xe(__,[["__scopeId","data-v-e315a0ad"]]);function x_(){const{theme:s,frontmatter:e}=ot(),t=Rn([]),n=Ve(()=>t.value.length>0);return wa(()=>{t.value=jc(e.value.outline??s.value.outline)}),{headers:t,hasLocalNav:n}}const M_=s=>(Gt("data-v-17a5e62e"),s=s(),Wt(),s),b_={class:"menu-text"},S_=M_(()=>me("span",{class:"vpi-chevron-right icon"},null,-1)),w_={class:"header"},A_={class:"outline"},T_=Be({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(s){const e=s,{theme:t}=ot(),n=Fe(!1),i=Fe(0),r=Fe(),o=Fe();function a(h){var d;(d=r.value)!=null&&d.contains(h.target)||(n.value=!1)}wt(n,h=>{if(h){document.addEventListener("click",a);return}document.removeEventListener("click",a)}),jl("Escape",()=>{n.value=!1}),wa(()=>{n.value=!1});function l(){n.value=!n.value,i.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function c(h){h.target.classList.contains("outline-link")&&(o.value&&(o.value.style.transition="none"),Jc(()=>{n.value=!1}))}function u(){n.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(h,d)=>(Y(),fe("div",{class:"VPLocalNavOutlineDropdown",style:Zc({"--vp-vh":i.value+"px"}),ref_key:"main",ref:r},[h.headers.length>0?(Y(),fe("button",{key:0,onClick:l,class:xt({open:n.value})},[me("span",b_,ft(ee(jd)(ee(t))),1),S_],2)):(Y(),fe("button",{key:1,onClick:u},ft(ee(t).returnToTopLabel||"Return to top"),1)),De(qc,{name:"flyout"},{default:ye(()=>[n.value?(Y(),fe("div",{key:0,ref_key:"items",ref:o,class:"items",onClick:c},[me("div",w_,[me("a",{class:"top-link",href:"#",onClick:u},ft(ee(t).returnToTopLabel||"Return to top"),1)]),me("div",A_,[De(Qd,{headers:h.headers},null,8,["headers"])])],512)):ke("",!0)]),_:1})],4))}}),E_=Xe(T_,[["__scopeId","data-v-17a5e62e"]]),C_=s=>(Gt("data-v-a6f0e41e"),s=s(),Wt(),s),P_={class:"container"},R_=["aria-expanded"],I_=C_(()=>me("span",{class:"vpi-align-left menu-icon"},null,-1)),L_={class:"menu-text"},N_=Be({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(s){const{theme:e,frontmatter:t}=ot(),{hasSidebar:n}=li(),{headers:i}=x_(),{y:r}=qd(),o=Fe(0);Nn(()=>{o.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),wa(()=>{i.value=jc(t.value.outline??e.value.outline)});const a=Ve(()=>i.value.length===0),l=Ve(()=>a.value&&!n.value),c=Ve(()=>({VPLocalNav:!0,"has-sidebar":n.value,empty:a.value,fixed:l.value}));return(u,h)=>ee(t).layout!=="home"&&(!l.value||ee(r)>=o.value)?(Y(),fe("div",{key:0,class:xt(c.value)},[me("div",P_,[ee(n)?(Y(),fe("button",{key:0,class:"menu","aria-expanded":u.open,"aria-controls":"VPSidebarNav",onClick:h[0]||(h[0]=d=>u.$emit("open-menu"))},[I_,me("span",L_,ft(ee(e).sidebarMenuLabel||"Menu"),1)],8,R_)):ke("",!0),De(E_,{headers:ee(i),navHeight:o.value},null,8,["headers","navHeight"])])],2)):ke("",!0)}}),D_=Xe(N_,[["__scopeId","data-v-a6f0e41e"]]);function U_(){const s=Fe(!1);function e(){s.value=!0,window.addEventListener("resize",i)}function t(){s.value=!1,window.removeEventListener("resize",i)}function n(){s.value?t():e()}function i(){window.outerWidth>=768&&t()}const r=zr();return wt(()=>r.path,t),{isScreenOpen:s,openScreen:e,closeScreen:t,toggleScreen:n}}const O_={},F_={class:"VPSwitch",type:"button",role:"switch"},k_={class:"check"},B_={key:0,class:"icon"};function z_(s,e){return Y(),fe("button",F_,[me("span",k_,[s.$slots.default?(Y(),fe("span",B_,[ue(s.$slots,"default",{},void 0,!0)])):ke("",!0)])])}const V_=Xe(O_,[["render",z_],["__scopeId","data-v-1d5665e3"]]),tf=s=>(Gt("data-v-d1f28634"),s=s(),Wt(),s),H_=tf(()=>me("span",{class:"vpi-sun sun"},null,-1)),G_=tf(()=>me("span",{class:"vpi-moon moon"},null,-1)),W_=Be({__name:"VPSwitchAppearance",setup(s){const{isDark:e,theme:t}=ot(),n=Aa("toggle-appearance",()=>{e.value=!e.value}),i=Ve(()=>e.value?t.value.lightModeSwitchTitle||"Switch to light theme":t.value.darkModeSwitchTitle||"Switch to dark theme");return(r,o)=>(Y(),$e(V_,{title:i.value,class:"VPSwitchAppearance","aria-checked":ee(e),onClick:ee(n)},{default:ye(()=>[H_,G_]),_:1},8,["title","aria-checked","onClick"]))}}),Qc=Xe(W_,[["__scopeId","data-v-d1f28634"]]),$_={key:0,class:"VPNavBarAppearance"},X_=Be({__name:"VPNavBarAppearance",setup(s){const{site:e}=ot();return(t,n)=>ee(e).appearance&&ee(e).appearance!=="force-dark"?(Y(),fe("div",$_,[De(Qc)])):ke("",!0)}}),q_=Xe(X_,[["__scopeId","data-v-e6aabb21"]]),eu=Fe();let nf=!1,cl=0;function Y_(s){const e=Fe(!1);if(Ta){!nf&&Z_(),cl++;const t=wt(eu,n=>{var i,r,o;n===s.el.value||(i=s.el.value)!=null&&i.contains(n)?(e.value=!0,(r=s.onFocus)==null||r.call(s)):(e.value=!1,(o=s.onBlur)==null||o.call(s))});Gn(()=>{t(),cl--,cl||J_()})}return gr(e)}function Z_(){document.addEventListener("focusin",sf),nf=!0,eu.value=document.activeElement}function J_(){document.removeEventListener("focusin",sf)}function sf(){eu.value=document.activeElement}const K_={class:"VPMenuLink"},j_=Be({__name:"VPMenuLink",props:{item:{}},setup(s){const{page:e}=ot();return(t,n)=>(Y(),fe("div",K_,[De(Vn,{class:xt({active:ee(is)(ee(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,target:t.item.target,rel:t.item.rel},{default:ye(()=>[$t(ft(t.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),Ea=Xe(j_,[["__scopeId","data-v-43f1e123"]]),Q_={class:"VPMenuGroup"},e0={key:0,class:"title"},t0=Be({__name:"VPMenuGroup",props:{text:{},items:{}},setup(s){return(e,t)=>(Y(),fe("div",Q_,[e.text?(Y(),fe("p",e0,ft(e.text),1)):ke("",!0),(Y(!0),fe(yt,null,Jt(e.items,n=>(Y(),fe(yt,null,["link"in n?(Y(),$e(Ea,{key:0,item:n},null,8,["item"])):ke("",!0)],64))),256))]))}}),n0=Xe(t0,[["__scopeId","data-v-69e747b5"]]),i0={class:"VPMenu"},s0={key:0,class:"items"},r0=Be({__name:"VPMenu",props:{items:{}},setup(s){return(e,t)=>(Y(),fe("div",i0,[e.items?(Y(),fe("div",s0,[(Y(!0),fe(yt,null,Jt(e.items,n=>(Y(),fe(yt,{key:n.text},["link"in n?(Y(),$e(Ea,{key:0,item:n},null,8,["item"])):(Y(),$e(n0,{key:1,text:n.text,items:n.items},null,8,["text","items"]))],64))),128))])):ke("",!0),ue(e.$slots,"default",{},void 0,!0)]))}}),o0=Xe(r0,[["__scopeId","data-v-e7ea1737"]]),a0=s=>(Gt("data-v-b6c34ac9"),s=s(),Wt(),s),l0=["aria-expanded","aria-label"],c0={key:0,class:"text"},u0=["innerHTML"],h0=a0(()=>me("span",{class:"vpi-chevron-down text-icon"},null,-1)),d0={key:1,class:"vpi-more-horizontal icon"},f0={class:"menu"},p0=Be({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(s){const e=Fe(!1),t=Fe();Y_({el:t,onBlur:n});function n(){e.value=!1}return(i,r)=>(Y(),fe("div",{class:"VPFlyout",ref_key:"el",ref:t,onMouseenter:r[1]||(r[1]=o=>e.value=!0),onMouseleave:r[2]||(r[2]=o=>e.value=!1)},[me("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":i.label,onClick:r[0]||(r[0]=o=>e.value=!e.value)},[i.button||i.icon?(Y(),fe("span",c0,[i.icon?(Y(),fe("span",{key:0,class:xt([i.icon,"option-icon"])},null,2)):ke("",!0),i.button?(Y(),fe("span",{key:1,innerHTML:i.button},null,8,u0)):ke("",!0),h0])):(Y(),fe("span",d0))],8,l0),me("div",f0,[De(o0,{items:i.items},{default:ye(()=>[ue(i.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),tu=Xe(p0,[["__scopeId","data-v-b6c34ac9"]]),m0=["href","aria-label","innerHTML"],g0=Be({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(s){const e=s,t=Ve(()=>typeof e.icon=="object"?e.icon.svg:``);return(n,i)=>(Y(),fe("a",{class:"VPSocialLink no-icon",href:n.link,"aria-label":n.ariaLabel??(typeof n.icon=="string"?n.icon:""),target:"_blank",rel:"noopener",innerHTML:t.value},null,8,m0))}}),v0=Xe(g0,[["__scopeId","data-v-eee4e7cb"]]),_0={class:"VPSocialLinks"},y0=Be({__name:"VPSocialLinks",props:{links:{}},setup(s){return(e,t)=>(Y(),fe("div",_0,[(Y(!0),fe(yt,null,Jt(e.links,({link:n,icon:i,ariaLabel:r})=>(Y(),$e(v0,{key:n,icon:i,link:n,ariaLabel:r},null,8,["icon","link","ariaLabel"]))),128))]))}}),nu=Xe(y0,[["__scopeId","data-v-7bc22406"]]),x0={key:0,class:"group translations"},M0={class:"trans-title"},b0={key:1,class:"group"},S0={class:"item appearance"},w0={class:"label"},A0={class:"appearance-action"},T0={key:2,class:"group"},E0={class:"item social-links"},C0=Be({__name:"VPNavBarExtra",setup(s){const{site:e,theme:t}=ot(),{localeLinks:n,currentLang:i}=Vr({correspondingLink:!0}),r=Ve(()=>n.value.length&&i.value.label||e.value.appearance||t.value.socialLinks);return(o,a)=>r.value?(Y(),$e(tu,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:ye(()=>[ee(n).length&&ee(i).label?(Y(),fe("div",x0,[me("p",M0,ft(ee(i).label),1),(Y(!0),fe(yt,null,Jt(ee(n),l=>(Y(),$e(Ea,{key:l.link,item:l},null,8,["item"]))),128))])):ke("",!0),ee(e).appearance&&ee(e).appearance!=="force-dark"?(Y(),fe("div",b0,[me("div",S0,[me("p",w0,ft(ee(t).darkModeSwitchLabel||"Appearance"),1),me("div",A0,[De(Qc)])])])):ke("",!0),ee(t).socialLinks?(Y(),fe("div",T0,[me("div",E0,[De(nu,{class:"social-links-list",links:ee(t).socialLinks},null,8,["links"])])])):ke("",!0)]),_:1})):ke("",!0)}}),P0=Xe(C0,[["__scopeId","data-v-d0bd9dde"]]),R0=s=>(Gt("data-v-e5dd9c1c"),s=s(),Wt(),s),I0=["aria-expanded"],L0=R0(()=>me("span",{class:"container"},[me("span",{class:"top"}),me("span",{class:"middle"}),me("span",{class:"bottom"})],-1)),N0=[L0],D0=Be({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(s){return(e,t)=>(Y(),fe("button",{type:"button",class:xt(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:t[0]||(t[0]=n=>e.$emit("click"))},N0,10,I0))}}),U0=Xe(D0,[["__scopeId","data-v-e5dd9c1c"]]),O0=["innerHTML"],F0=Be({__name:"VPNavBarMenuLink",props:{item:{}},setup(s){const{page:e}=ot();return(t,n)=>(Y(),$e(Vn,{class:xt({VPNavBarMenuLink:!0,active:ee(is)(ee(e).relativePath,t.item.activeMatch||t.item.link,!!t.item.activeMatch)}),href:t.item.link,noIcon:t.item.noIcon,target:t.item.target,rel:t.item.rel,tabindex:"0"},{default:ye(()=>[me("span",{innerHTML:t.item.text},null,8,O0)]),_:1},8,["class","href","noIcon","target","rel"]))}}),k0=Xe(F0,[["__scopeId","data-v-9c663999"]]),B0=Be({__name:"VPNavBarMenuGroup",props:{item:{}},setup(s){const e=s,{page:t}=ot(),n=r=>"link"in r?is(t.value.relativePath,r.link,!!e.item.activeMatch):r.items.some(n),i=Ve(()=>n(e.item));return(r,o)=>(Y(),$e(tu,{class:xt({VPNavBarMenuGroup:!0,active:ee(is)(ee(t).relativePath,r.item.activeMatch,!!r.item.activeMatch)||i.value}),button:r.item.text,items:r.item.items},null,8,["class","button","items"]))}}),z0=s=>(Gt("data-v-7f418b0f"),s=s(),Wt(),s),V0={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},H0=z0(()=>me("span",{id:"main-nav-aria-label",class:"visually-hidden"},"Main Navigation",-1)),G0=Be({__name:"VPNavBarMenu",setup(s){const{theme:e}=ot();return(t,n)=>ee(e).nav?(Y(),fe("nav",V0,[H0,(Y(!0),fe(yt,null,Jt(ee(e).nav,i=>(Y(),fe(yt,{key:i.text},["link"in i?(Y(),$e(k0,{key:0,item:i},null,8,["item"])):(Y(),$e(B0,{key:1,item:i},null,8,["item"]))],64))),128))])):ke("",!0)}}),W0=Xe(G0,[["__scopeId","data-v-7f418b0f"]]);function $0(s){const{localeIndex:e,theme:t}=ot();function n(i){var g,v,p;const r=i.split("."),o=(g=t.value.search)==null?void 0:g.options,a=o&&typeof o=="object",l=a&&((p=(v=o.locales)==null?void 0:v[e.value])==null?void 0:p.translations)||null,c=a&&o.translations||null;let u=l,h=c,d=s;const f=r.pop();for(const m of r){let y=null;const _=d==null?void 0:d[m];_&&(y=d=_);const x=h==null?void 0:h[m];x&&(y=h=x);const A=u==null?void 0:u[m];A&&(y=u=A),_||(d=y),x||(h=y),A||(u=y)}return(u==null?void 0:u[f])??(h==null?void 0:h[f])??(d==null?void 0:d[f])??""}return n}const X0=["aria-label"],q0={class:"DocSearch-Button-Container"},Y0=me("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Z0={class:"DocSearch-Button-Placeholder"},J0=me("span",{class:"DocSearch-Button-Keys"},[me("kbd",{class:"DocSearch-Button-Key"}),me("kbd",{class:"DocSearch-Button-Key"},"K")],-1),th=Be({__name:"VPNavBarSearchButton",setup(s){const t=$0({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(n,i)=>(Y(),fe("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":ee(t)("button.buttonAriaLabel")},[me("span",q0,[Y0,me("span",Z0,ft(ee(t)("button.buttonText")),1)]),J0],8,X0))}}),K0={class:"VPNavBarSearch"},j0={id:"local-search"},Q0={key:1,id:"docsearch"},ey=Be({__name:"VPNavBarSearch",setup(s){const e=Xm(()=>qm(()=>import("./VPLocalSearchBox.CqtzcjrV.js"),__vite__mapDeps([0,1]))),t=()=>null,{theme:n}=ot(),i=Fe(!1),r=Fe(!1);Nn(()=>{});function o(){i.value||(i.value=!0,setTimeout(a,16))}function a(){const h=new Event("keydown");h.key="k",h.metaKey=!0,window.dispatchEvent(h),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||a()},16)}function l(h){const d=h.target,f=d.tagName;return d.isContentEditable||f==="INPUT"||f==="SELECT"||f==="TEXTAREA"}const c=Fe(!1);jl("k",h=>{(h.ctrlKey||h.metaKey)&&(h.preventDefault(),c.value=!0)}),jl("/",h=>{l(h)||(h.preventDefault(),c.value=!0)});const u="local";return(h,d)=>{var f;return Y(),fe("div",K0,[ee(u)==="local"?(Y(),fe(yt,{key:0},[c.value?(Y(),$e(ee(e),{key:0,onClose:d[0]||(d[0]=g=>c.value=!1)})):ke("",!0),me("div",j0,[De(th,{onClick:d[1]||(d[1]=g=>c.value=!0)})])],64)):ee(u)==="algolia"?(Y(),fe(yt,{key:1},[i.value?(Y(),$e(ee(t),{key:0,algolia:((f=ee(n).search)==null?void 0:f.options)??ee(n).algolia,onVnodeBeforeMount:d[2]||(d[2]=g=>r.value=!0)},null,8,["algolia"])):ke("",!0),r.value?ke("",!0):(Y(),fe("div",Q0,[De(th,{onClick:o})]))],64)):ke("",!0)])}}}),ty=Be({__name:"VPNavBarSocialLinks",setup(s){const{theme:e}=ot();return(t,n)=>ee(e).socialLinks?(Y(),$e(nu,{key:0,class:"VPNavBarSocialLinks",links:ee(e).socialLinks},null,8,["links"])):ke("",!0)}}),ny=Xe(ty,[["__scopeId","data-v-0394ad82"]]),iy=["href","rel","target"],sy={key:1},ry={key:2},oy=Be({__name:"VPNavBarTitle",setup(s){const{site:e,theme:t}=ot(),{hasSidebar:n}=li(),{currentLang:i}=Vr(),r=Ve(()=>{var l;return typeof t.value.logoLink=="string"?t.value.logoLink:(l=t.value.logoLink)==null?void 0:l.link}),o=Ve(()=>{var l;return typeof t.value.logoLink=="string"||(l=t.value.logoLink)==null?void 0:l.rel}),a=Ve(()=>{var l;return typeof t.value.logoLink=="string"||(l=t.value.logoLink)==null?void 0:l.target});return(l,c)=>(Y(),fe("div",{class:xt(["VPNavBarTitle",{"has-sidebar":ee(n)}])},[me("a",{class:"title",href:r.value??ee(Kc)(ee(i).link),rel:o.value,target:a.value},[ue(l.$slots,"nav-bar-title-before",{},void 0,!0),ee(t).logo?(Y(),$e(ma,{key:0,class:"logo",image:ee(t).logo},null,8,["image"])):ke("",!0),ee(t).siteTitle?(Y(),fe("span",sy,ft(ee(t).siteTitle),1)):ee(t).siteTitle===void 0?(Y(),fe("span",ry,ft(ee(e).title),1)):ke("",!0),ue(l.$slots,"nav-bar-title-after",{},void 0,!0)],8,iy)],2))}}),ay=Xe(oy,[["__scopeId","data-v-ab179fa1"]]),ly={class:"items"},cy={class:"title"},uy=Be({__name:"VPNavBarTranslations",setup(s){const{theme:e}=ot(),{localeLinks:t,currentLang:n}=Vr({correspondingLink:!0});return(i,r)=>ee(t).length&&ee(n).label?(Y(),$e(tu,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:ee(e).langMenuLabel||"Change language"},{default:ye(()=>[me("div",ly,[me("p",cy,ft(ee(n).label),1),(Y(!0),fe(yt,null,Jt(ee(t),o=>(Y(),$e(Ea,{key:o.link,item:o},null,8,["item"]))),128))])]),_:1},8,["label"])):ke("",!0)}}),hy=Xe(uy,[["__scopeId","data-v-88af2de4"]]),dy=s=>(Gt("data-v-ccf7ddec"),s=s(),Wt(),s),fy={class:"wrapper"},py={class:"container"},my={class:"title"},gy={class:"content"},vy={class:"content-body"},_y=dy(()=>me("div",{class:"divider"},[me("div",{class:"divider-line"})],-1)),yy=Be({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(s){const{y:e}=qd(),{hasSidebar:t}=li(),{frontmatter:n}=ot(),i=Fe({});return $d(()=>{i.value={"has-sidebar":t.value,home:n.value.layout==="home",top:e.value===0}}),(r,o)=>(Y(),fe("div",{class:xt(["VPNavBar",i.value])},[me("div",fy,[me("div",py,[me("div",my,[De(ay,null,{"nav-bar-title-before":ye(()=>[ue(r.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":ye(()=>[ue(r.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),me("div",gy,[me("div",vy,[ue(r.$slots,"nav-bar-content-before",{},void 0,!0),De(ey,{class:"search"}),De(W0,{class:"menu"}),De(hy,{class:"translations"}),De(q_,{class:"appearance"}),De(ny,{class:"social-links"}),De(P0,{class:"extra"}),ue(r.$slots,"nav-bar-content-after",{},void 0,!0),De(U0,{class:"hamburger",active:r.isScreenOpen,onClick:o[0]||(o[0]=a=>r.$emit("toggle-screen"))},null,8,["active"])])])])]),_y],2))}}),xy=Xe(yy,[["__scopeId","data-v-ccf7ddec"]]),My={key:0,class:"VPNavScreenAppearance"},by={class:"text"},Sy=Be({__name:"VPNavScreenAppearance",setup(s){const{site:e,theme:t}=ot();return(n,i)=>ee(e).appearance&&ee(e).appearance!=="force-dark"?(Y(),fe("div",My,[me("p",by,ft(ee(t).darkModeSwitchLabel||"Appearance"),1),De(Qc)])):ke("",!0)}}),wy=Xe(Sy,[["__scopeId","data-v-2d7af913"]]),Ay=Be({__name:"VPNavScreenMenuLink",props:{item:{}},setup(s){const e=Aa("close-screen");return(t,n)=>(Y(),$e(Vn,{class:"VPNavScreenMenuLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:ee(e),innerHTML:t.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),Ty=Xe(Ay,[["__scopeId","data-v-7f31e1f6"]]),Ey=Be({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(s){const e=Aa("close-screen");return(t,n)=>(Y(),$e(Vn,{class:"VPNavScreenMenuGroupLink",href:t.item.link,target:t.item.target,rel:t.item.rel,onClick:ee(e)},{default:ye(()=>[$t(ft(t.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),rf=Xe(Ey,[["__scopeId","data-v-19976ae1"]]),Cy={class:"VPNavScreenMenuGroupSection"},Py={key:0,class:"title"},Ry=Be({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(s){return(e,t)=>(Y(),fe("div",Cy,[e.text?(Y(),fe("p",Py,ft(e.text),1)):ke("",!0),(Y(!0),fe(yt,null,Jt(e.items,n=>(Y(),$e(rf,{key:n.text,item:n},null,8,["item"]))),128))]))}}),Iy=Xe(Ry,[["__scopeId","data-v-8133b170"]]),Ly=s=>(Gt("data-v-ff6087d4"),s=s(),Wt(),s),Ny=["aria-controls","aria-expanded"],Dy=["innerHTML"],Uy=Ly(()=>me("span",{class:"vpi-plus button-icon"},null,-1)),Oy=["id"],Fy={key:1,class:"group"},ky=Be({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(s){const e=s,t=Fe(!1),n=Ve(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function i(){t.value=!t.value}return(r,o)=>(Y(),fe("div",{class:xt(["VPNavScreenMenuGroup",{open:t.value}])},[me("button",{class:"button","aria-controls":n.value,"aria-expanded":t.value,onClick:i},[me("span",{class:"button-text",innerHTML:r.text},null,8,Dy),Uy],8,Ny),me("div",{id:n.value,class:"items"},[(Y(!0),fe(yt,null,Jt(r.items,a=>(Y(),fe(yt,{key:a.text},["link"in a?(Y(),fe("div",{key:a.text,class:"item"},[De(rf,{item:a},null,8,["item"])])):(Y(),fe("div",Fy,[De(Iy,{text:a.text,items:a.items},null,8,["text","items"])]))],64))),128))],8,Oy)],2))}}),By=Xe(ky,[["__scopeId","data-v-ff6087d4"]]),zy={key:0,class:"VPNavScreenMenu"},Vy=Be({__name:"VPNavScreenMenu",setup(s){const{theme:e}=ot();return(t,n)=>ee(e).nav?(Y(),fe("nav",zy,[(Y(!0),fe(yt,null,Jt(ee(e).nav,i=>(Y(),fe(yt,{key:i.text},["link"in i?(Y(),$e(Ty,{key:0,item:i},null,8,["item"])):(Y(),$e(By,{key:1,text:i.text||"",items:i.items},null,8,["text","items"]))],64))),128))])):ke("",!0)}}),Hy=Be({__name:"VPNavScreenSocialLinks",setup(s){const{theme:e}=ot();return(t,n)=>ee(e).socialLinks?(Y(),$e(nu,{key:0,class:"VPNavScreenSocialLinks",links:ee(e).socialLinks},null,8,["links"])):ke("",!0)}}),of=s=>(Gt("data-v-858fe1a4"),s=s(),Wt(),s),Gy=of(()=>me("span",{class:"vpi-languages icon lang"},null,-1)),Wy=of(()=>me("span",{class:"vpi-chevron-down icon chevron"},null,-1)),$y={class:"list"},Xy=Be({__name:"VPNavScreenTranslations",setup(s){const{localeLinks:e,currentLang:t}=Vr({correspondingLink:!0}),n=Fe(!1);function i(){n.value=!n.value}return(r,o)=>ee(e).length&&ee(t).label?(Y(),fe("div",{key:0,class:xt(["VPNavScreenTranslations",{open:n.value}])},[me("button",{class:"title",onClick:i},[Gy,$t(" "+ft(ee(t).label)+" ",1),Wy]),me("ul",$y,[(Y(!0),fe(yt,null,Jt(ee(e),a=>(Y(),fe("li",{key:a.link,class:"item"},[De(Vn,{class:"link",href:a.link},{default:ye(()=>[$t(ft(a.text),1)]),_:2},1032,["href"])]))),128))])],2)):ke("",!0)}}),qy=Xe(Xy,[["__scopeId","data-v-858fe1a4"]]),Yy={class:"container"},Zy=Be({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(s){const e=Fe(null),t=Yd(Ta?document.body:null);return(n,i)=>(Y(),$e(qc,{name:"fade",onEnter:i[0]||(i[0]=r=>t.value=!0),onAfterLeave:i[1]||(i[1]=r=>t.value=!1)},{default:ye(()=>[n.open?(Y(),fe("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[me("div",Yy,[ue(n.$slots,"nav-screen-content-before",{},void 0,!0),De(Vy,{class:"menu"}),De(qy,{class:"translations"}),De(wy,{class:"appearance"}),De(Hy,{class:"social-links"}),ue(n.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):ke("",!0)]),_:3}))}}),Jy=Xe(Zy,[["__scopeId","data-v-cc5739dd"]]),Ky={key:0,class:"VPNav"},jy=Be({__name:"VPNav",setup(s){const{isScreenOpen:e,closeScreen:t,toggleScreen:n}=U_(),{frontmatter:i}=ot(),r=Ve(()=>i.value.navbar!==!1);return vr("close-screen",t),Pi(()=>{Ta&&document.documentElement.classList.toggle("hide-nav",!r.value)}),(o,a)=>r.value?(Y(),fe("header",Ky,[De(xy,{"is-screen-open":ee(e),onToggleScreen:ee(n)},{"nav-bar-title-before":ye(()=>[ue(o.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":ye(()=>[ue(o.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":ye(()=>[ue(o.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":ye(()=>[ue(o.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),De(Jy,{open:ee(e)},{"nav-screen-content-before":ye(()=>[ue(o.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":ye(()=>[ue(o.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):ke("",!0)}}),Qy=Xe(jy,[["__scopeId","data-v-ae24b3ad"]]),af=s=>(Gt("data-v-b8d55f3b"),s=s(),Wt(),s),ex=["role","tabindex"],tx=af(()=>me("div",{class:"indicator"},null,-1)),nx=["onKeydown"],ix=af(()=>me("span",{class:"vpi-chevron-right caret-icon"},null,-1)),sx=[ix],rx={key:1,class:"items"},ox=Be({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(s){const e=s,{collapsed:t,collapsible:n,isLink:i,isActiveLink:r,hasActiveLink:o,hasChildren:a,toggle:l}=Tg(Ve(()=>e.item)),c=Ve(()=>a.value?"section":"div"),u=Ve(()=>i.value?"a":"div"),h=Ve(()=>a.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),d=Ve(()=>i.value?void 0:"button"),f=Ve(()=>[[`level-${e.depth}`],{collapsible:n.value},{collapsed:t.value},{"is-link":i.value},{"is-active":r.value},{"has-active":o.value}]);function g(p){"key"in p&&p.key!=="Enter"||!e.item.link&&l()}function v(){e.item.link&&l()}return(p,m)=>{const y=cn("VPSidebarItem",!0);return Y(),$e(Bs(c.value),{class:xt(["VPSidebarItem",f.value])},{default:ye(()=>[p.item.text?(Y(),fe("div",na({key:0,class:"item",role:d.value},Zm(p.item.items?{click:g,keydown:g}:{},!0),{tabindex:p.item.items&&0}),[tx,p.item.link?(Y(),$e(Vn,{key:0,tag:u.value,class:"link",href:p.item.link,rel:p.item.rel,target:p.item.target},{default:ye(()=>[(Y(),$e(Bs(h.value),{class:"text",innerHTML:p.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(Y(),$e(Bs(h.value),{key:1,class:"text",innerHTML:p.item.text},null,8,["innerHTML"])),p.item.collapsed!=null&&p.item.items&&p.item.items.length?(Y(),fe("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:v,onKeydown:Ym(v,["enter"]),tabindex:"0"},sx,40,nx)):ke("",!0)],16,ex)):ke("",!0),p.item.items&&p.item.items.length?(Y(),fe("div",rx,[p.depth<5?(Y(!0),fe(yt,{key:0},Jt(p.item.items,_=>(Y(),$e(y,{key:_.text,item:_,depth:p.depth+1},null,8,["item","depth"]))),128)):ke("",!0)])):ke("",!0)]),_:1},8,["class"])}}}),ax=Xe(ox,[["__scopeId","data-v-b8d55f3b"]]),lf=s=>(Gt("data-v-575e6a36"),s=s(),Wt(),s),lx=lf(()=>me("div",{class:"curtain"},null,-1)),cx={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},ux=lf(()=>me("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),hx=Be({__name:"VPSidebar",props:{open:{type:Boolean}},setup(s){const e=s,{sidebarGroups:t,hasSidebar:n}=li(),i=Fe(null),r=Yd(Ta?document.body:null);return wt([e,i],()=>{var o;e.open?(r.value=!0,(o=i.value)==null||o.focus()):r.value=!1},{immediate:!0,flush:"post"}),(o,a)=>ee(n)?(Y(),fe("aside",{key:0,class:xt(["VPSidebar",{open:o.open}]),ref_key:"navEl",ref:i,onClick:a[0]||(a[0]=Jm(()=>{},["stop"]))},[lx,me("nav",cx,[ux,ue(o.$slots,"sidebar-nav-before",{},void 0,!0),(Y(!0),fe(yt,null,Jt(ee(t),l=>(Y(),fe("div",{key:l.text,class:"group"},[De(ax,{item:l,depth:0},null,8,["item"])]))),128)),ue(o.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):ke("",!0)}}),dx=Xe(hx,[["__scopeId","data-v-575e6a36"]]),fx=Be({__name:"VPSkipLink",setup(s){const e=zr(),t=Fe();wt(()=>e.path,()=>t.value.focus());function n({target:i}){const r=document.getElementById(decodeURIComponent(i.hash).slice(1));if(r){const o=()=>{r.removeAttribute("tabindex"),r.removeEventListener("blur",o)};r.setAttribute("tabindex","-1"),r.addEventListener("blur",o),r.focus(),window.scrollTo(0,0)}}return(i,r)=>(Y(),fe(yt,null,[me("span",{ref_key:"backToTop",ref:t,tabindex:"-1"},null,512),me("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:n}," Skip to content ")],64))}}),px=Xe(fx,[["__scopeId","data-v-0f60ec36"]]),mx=Be({__name:"Layout",setup(s){const{isOpen:e,open:t,close:n}=li(),i=zr();wt(()=>i.path,n),Ag(e,n);const{frontmatter:r}=ot(),o=Zd(),a=Ve(()=>!!o["home-hero-image"]);return vr("hero-image-slot-exists",a),(l,c)=>{const u=cn("Content");return ee(r).layout!==!1?(Y(),fe("div",{key:0,class:xt(["Layout",ee(r).pageClass])},[ue(l.$slots,"layout-top",{},void 0,!0),De(px),De(ug,{class:"backdrop",show:ee(e),onClick:ee(n)},null,8,["show","onClick"]),De(Qy,null,{"nav-bar-title-before":ye(()=>[ue(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":ye(()=>[ue(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":ye(()=>[ue(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":ye(()=>[ue(l.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":ye(()=>[ue(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":ye(()=>[ue(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),De(D_,{open:ee(e),onOpenMenu:ee(t)},null,8,["open","onOpenMenu"]),De(dx,{open:ee(e)},{"sidebar-nav-before":ye(()=>[ue(l.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":ye(()=>[ue(l.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),De(p_,null,{"page-top":ye(()=>[ue(l.$slots,"page-top",{},void 0,!0)]),"page-bottom":ye(()=>[ue(l.$slots,"page-bottom",{},void 0,!0)]),"not-found":ye(()=>[ue(l.$slots,"not-found",{},void 0,!0)]),"home-hero-before":ye(()=>[ue(l.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":ye(()=>[ue(l.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":ye(()=>[ue(l.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":ye(()=>[ue(l.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":ye(()=>[ue(l.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":ye(()=>[ue(l.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":ye(()=>[ue(l.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":ye(()=>[ue(l.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":ye(()=>[ue(l.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":ye(()=>[ue(l.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":ye(()=>[ue(l.$slots,"doc-before",{},void 0,!0)]),"doc-after":ye(()=>[ue(l.$slots,"doc-after",{},void 0,!0)]),"doc-top":ye(()=>[ue(l.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":ye(()=>[ue(l.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":ye(()=>[ue(l.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":ye(()=>[ue(l.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":ye(()=>[ue(l.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":ye(()=>[ue(l.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":ye(()=>[ue(l.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":ye(()=>[ue(l.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),De(y_),ue(l.$slots,"layout-bottom",{},void 0,!0)],2)):(Y(),$e(u,{key:1}))}}}),gx=Xe(mx,[["__scopeId","data-v-5d98c3a5"]]),cf={Layout:gx,enhanceApp:({app:s})=>{s.component("Badge",ag)}},vx=Be({__name:"HighlightTargetedHeading",setup(s){function e(){if(!window||!window.location||!window.location.hash)return;const n=decodeURIComponent(window.location.hash);if(!n)return;let i;try{i=document.querySelector(n)}catch(r){console.error(r);return}i&&(i.classList.contains("VPNolebaseHighlightTargetedHeading")||i.classList.add("VPNolebaseHighlightTargetedHeading"),i.classList.remove("VPNolebaseHighlightTargetedHeadingAnimated"),setTimeout(()=>{i&&i.classList.add("VPNolebaseHighlightTargetedHeadingAnimated")},10))}const t=zr();return Nn(e),wt(t,async()=>{await Jc(),e()}),Km("hashchange",e),(n,i)=>ue(n.$slots,"default")}});/** * @license * Copyright 2010-2024 Three.js Authors * SPDX-License-Identifier: MIT - */const Zr="165",Ji={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},ji={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},yf=0,cc=1,xf=2,Ex=3,Tx=0,uu=1,hu=2,zn=3,ci=0,an=1,In=2,ai=0,os=1,Sa=2,uc=3,hc=4,Mf=5,Ti=100,bf=101,Sf=102,wf=103,Af=104,Ef=200,Tf=201,Cf=202,Pf=203,wa=204,Aa=205,Rf=206,If=207,Lf=208,Nf=209,Df=210,Uf=211,Of=212,Ff=213,kf=214,Bf=0,zf=1,Vf=2,wr=3,Hf=4,Gf=5,Wf=6,$f=7,Kr=0,Xf=1,qf=2,Wn=0,Yf=1,Zf=2,Kf=3,Ua=4,Jf=5,jf=6,Qf=7,dc="attached",ep="detached",Oa=300,ui=301,Ri=302,Ar=303,Er=304,Js=306,Tr=1e3,An=1001,Cr=1002,Wt=1003,du=1004,Cx=1004,Vs=1005,Px=1005,Bt=1006,_r=1007,Rx=1007,Vn=1008,Ix=1008,hi=1009,tp=1010,np=1011,Pr=1012,fu=1013,us=1014,xn=1015,Jr=1016,pu=1017,mu=1018,hs=1020,ip=35902,sp=1021,rp=1022,fn=1023,op=1024,ap=1025,as=1026,ds=1027,gu=1028,_u=1029,lp=1030,vu=1031,yu=1033,ha=33776,da=33777,fa=33778,pa=33779,fc=35840,pc=35841,mc=35842,gc=35843,_c=36196,vc=37492,yc=37496,xc=37808,Mc=37809,bc=37810,Sc=37811,wc=37812,Ac=37813,Ec=37814,Tc=37815,Cc=37816,Pc=37817,Rc=37818,Ic=37819,Lc=37820,Nc=37821,ma=36492,Dc=36494,Uc=36495,cp=36283,Oc=36284,Fc=36285,kc=36286,up=2200,hp=2201,dp=2202,Rr=2300,Ea=2301,ga=2302,ns=2400,is=2401,Ir=2402,Fa=2500,xu=2501,Lx=0,Nx=1,Dx=2,fp=3200,pp=3201,Ni=0,mp=1,si="",dn="srgb",fi="srgb-linear",ka="display-p3",jr="display-p3-linear",Lr="linear",Mt="srgb",Nr="rec709",Dr="p3",Ux=0,Qi=7680,Ox=7681,Fx=7682,kx=7683,Bx=34055,zx=34056,Vx=5386,Hx=512,Gx=513,Wx=514,$x=515,Xx=516,qx=517,Yx=518,Bc=519,gp=512,_p=513,vp=514,Mu=515,yp=516,xp=517,Mp=518,bp=519,Ur=35044,Zx=35048,Kx=35040,Jx=35045,jx=35049,Qx=35041,eM=35046,tM=35050,nM=35042,iM="100",zc="300 es",Hn=2e3,Or=2001;class Yn{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const r=i.indexOf(t);r!==-1&&i.splice(r,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const n=this._listeners[e.type];if(n!==void 0){e.target=this;const i=n.slice(0);for(let r=0,o=i.length;r>8&255]+Yt[s>>16&255]+Yt[s>>24&255]+"-"+Yt[e&255]+Yt[e>>8&255]+"-"+Yt[e>>16&15|64]+Yt[e>>24&255]+"-"+Yt[t&63|128]+Yt[t>>8&255]+"-"+Yt[t>>16&255]+Yt[t>>24&255]+Yt[n&255]+Yt[n>>8&255]+Yt[n>>16&255]+Yt[n>>24&255]).toLowerCase()}function Rt(s,e,t){return Math.max(e,Math.min(t,s))}function bu(s,e){return(s%e+e)%e}function sM(s,e,t,n,i){return n+(s-e)*(i-n)/(t-e)}function rM(s,e,t){return s!==e?(t-s)/(e-s):0}function vr(s,e,t){return(1-t)*s+t*e}function oM(s,e,t,n){return vr(s,e,1-Math.exp(-t*n))}function aM(s,e=1){return e-Math.abs(bu(s,e*2)-e)}function lM(s,e,t){return s<=e?0:s>=t?1:(s=(s-e)/(t-e),s*s*(3-2*s))}function cM(s,e,t){return s<=e?0:s>=t?1:(s=(s-e)/(t-e),s*s*s*(s*(s*6-15)+10))}function uM(s,e){return s+Math.floor(Math.random()*(e-s+1))}function hM(s,e){return s+Math.random()*(e-s)}function dM(s){return s*(.5-Math.random())}function fM(s){s!==void 0&&(lh=s);let e=lh+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function pM(s){return s*ls}function mM(s){return s*Ys}function gM(s){return(s&s-1)===0&&s!==0}function _M(s){return Math.pow(2,Math.ceil(Math.log(s)/Math.LN2))}function vM(s){return Math.pow(2,Math.floor(Math.log(s)/Math.LN2))}function yM(s,e,t,n,i){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),c=r((e+n)/2),u=o((e+n)/2),h=r((e-n)/2),d=o((e-n)/2),f=r((n-e)/2),g=o((n-e)/2);switch(i){case"XYX":s.set(a*u,l*h,l*d,a*c);break;case"YZY":s.set(l*d,a*u,l*h,a*c);break;case"ZXZ":s.set(l*h,l*d,a*u,a*c);break;case"XZX":s.set(a*u,l*g,l*f,a*c);break;case"YXY":s.set(l*f,a*u,l*g,a*c);break;case"ZYZ":s.set(l*g,l*f,a*u,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function on(s,e){switch(e.constructor){case Float32Array:return s;case Uint32Array:return s/4294967295;case Uint16Array:return s/65535;case Uint8Array:return s/255;case Int32Array:return Math.max(s/2147483647,-1);case Int16Array:return Math.max(s/32767,-1);case Int8Array:return Math.max(s/127,-1);default:throw new Error("Invalid component type.")}}function st(s,e){switch(e.constructor){case Float32Array:return s;case Uint32Array:return Math.round(s*4294967295);case Uint16Array:return Math.round(s*65535);case Uint8Array:return Math.round(s*255);case Int32Array:return Math.round(s*2147483647);case Int16Array:return Math.round(s*32767);case Int8Array:return Math.round(s*127);default:throw new Error("Invalid component type.")}}const Su={DEG2RAD:ls,RAD2DEG:Ys,generateUUID:Mn,clamp:Rt,euclideanModulo:bu,mapLinear:sM,inverseLerp:rM,lerp:vr,damp:oM,pingpong:aM,smoothstep:lM,smootherstep:cM,randInt:uM,randFloat:hM,randFloatSpread:dM,seededRandom:fM,degToRad:pM,radToDeg:mM,isPowerOfTwo:gM,ceilPowerOfTwo:_M,floorPowerOfTwo:vM,setQuaternionFromProperEuler:yM,normalize:st,denormalize:on};class te{constructor(e=0,t=0){te.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Rt(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*n-o*i+e.x,this.y=r*i+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class je{constructor(e,t,n,i,r,o,a,l,c){je.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,i,r,o,a,l,c)}set(e,t,n,i,r,o,a,l,c){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=t,u[4]=r,u[5]=l,u[6]=n,u[7]=o,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[3],l=n[6],c=n[1],u=n[4],h=n[7],d=n[2],f=n[5],g=n[8],_=i[0],p=i[3],m=i[6],y=i[1],v=i[4],x=i[7],E=i[2],S=i[5],C=i[8];return r[0]=o*_+a*y+l*E,r[3]=o*p+a*v+l*S,r[6]=o*m+a*x+l*C,r[1]=c*_+u*y+h*E,r[4]=c*p+u*v+h*S,r[7]=c*m+u*x+h*C,r[2]=d*_+f*y+g*E,r[5]=d*p+f*v+g*S,r[8]=d*m+f*x+g*C,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return t*o*u-t*a*c-n*r*u+n*a*l+i*r*c-i*o*l}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=u*o-a*c,d=a*l-u*r,f=c*r-o*l,g=t*h+n*d+i*f;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const _=1/g;return e[0]=h*_,e[1]=(i*c-u*n)*_,e[2]=(a*n-i*o)*_,e[3]=d*_,e[4]=(u*t-i*l)*_,e[5]=(i*r-a*t)*_,e[6]=f*_,e[7]=(n*l-c*t)*_,e[8]=(o*t-n*r)*_,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,r,o,a){const l=Math.cos(r),c=Math.sin(r);return this.set(n*l,n*c,-n*(l*o+c*a)+o+e,-i*c,i*l,-i*(-c*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(gl.makeScale(e,t)),this}rotate(e){return this.premultiply(gl.makeRotation(-e)),this}translate(e,t){return this.premultiply(gl.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const gl=new je;function Sp(s){for(let e=s.length-1;e>=0;--e)if(s[e]>=65535)return!0;return!1}const xM={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function Hs(s,e){return new xM[s](e)}function Fr(s){return document.createElementNS("http://www.w3.org/1999/xhtml",s)}function wp(){const s=Fr("canvas");return s.style.display="block",s}const ch={};function wu(s){s in ch||(ch[s]=!0,console.warn(s))}function MM(s,e,t){return new Promise(function(n,i){function r(){switch(s.clientWaitSync(e,s.SYNC_FLUSH_COMMANDS_BIT,0)){case s.WAIT_FAILED:i();break;case s.TIMEOUT_EXPIRED:setTimeout(r,t);break;default:n()}}setTimeout(r,t)})}const uh=new je().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),hh=new je().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),ho={[fi]:{transfer:Lr,primaries:Nr,toReference:s=>s,fromReference:s=>s},[dn]:{transfer:Mt,primaries:Nr,toReference:s=>s.convertSRGBToLinear(),fromReference:s=>s.convertLinearToSRGB()},[jr]:{transfer:Lr,primaries:Dr,toReference:s=>s.applyMatrix3(hh),fromReference:s=>s.applyMatrix3(uh)},[ka]:{transfer:Mt,primaries:Dr,toReference:s=>s.convertSRGBToLinear().applyMatrix3(hh),fromReference:s=>s.applyMatrix3(uh).convertLinearToSRGB()}},bM=new Set([fi,jr]),dt={enabled:!0,_workingColorSpace:fi,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(s){if(!bM.has(s))throw new Error(`Unsupported working color space, "${s}".`);this._workingColorSpace=s},convert:function(s,e,t){if(this.enabled===!1||e===t||!e||!t)return s;const n=ho[e].toReference,i=ho[t].fromReference;return i(n(s))},fromWorkingColorSpace:function(s,e){return this.convert(s,this._workingColorSpace,e)},toWorkingColorSpace:function(s,e){return this.convert(s,e,this._workingColorSpace)},getPrimaries:function(s){return ho[s].primaries},getTransfer:function(s){return s===si?Lr:ho[s].transfer}};function qs(s){return s<.04045?s*.0773993808:Math.pow(s*.9478672986+.0521327014,2.4)}function _l(s){return s<.0031308?s*12.92:1.055*Math.pow(s,.41666)-.055}let ys;class Ap{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{ys===void 0&&(ys=Fr("canvas")),ys.width=e.width,ys.height=e.height;const n=ys.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=ys}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Fr("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),r=i.data;for(let o=0;o0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==Oa)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Tr:e.x=e.x-Math.floor(e.x);break;case An:e.x=e.x<0?0:1;break;case Cr:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Tr:e.y=e.y-Math.floor(e.y);break;case An:e.y=e.y<0?0:1;break;case Cr:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}It.DEFAULT_IMAGE=null;It.DEFAULT_MAPPING=Oa;It.DEFAULT_ANISOTROPY=1;class _t{constructor(e=0,t=0,n=0,i=1){_t.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*t+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*t+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*t+o[7]*n+o[11]*i+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,r;const l=e.elements,c=l[0],u=l[4],h=l[8],d=l[1],f=l[5],g=l[9],_=l[2],p=l[6],m=l[10];if(Math.abs(u-d)<.01&&Math.abs(h-_)<.01&&Math.abs(g-p)<.01){if(Math.abs(u+d)<.1&&Math.abs(h+_)<.1&&Math.abs(g+p)<.1&&Math.abs(c+f+m-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const v=(c+1)/2,x=(f+1)/2,E=(m+1)/2,S=(u+d)/4,C=(h+_)/4,L=(g+p)/4;return v>x&&v>E?v<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(v),i=S/n,r=C/n):x>E?x<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(x),n=S/i,r=L/i):E<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(E),n=C/r,i=L/r),this.set(n,i,r,t),this}let y=Math.sqrt((p-g)*(p-g)+(h-_)*(h-_)+(d-u)*(d-u));return Math.abs(y)<.001&&(y=1),this.x=(p-g)/y,this.y=(h-_)/y,this.z=(d-u)/y,this.w=Math.acos((c+f+m-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Ep extends Yn{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new _t(0,0,e,t),this.scissorTest=!1,this.viewport=new _t(0,0,e,t);const i={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Bt,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);const r=new It(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);r.flipY=!1,r.generateMipmaps=n.generateMipmaps,r.internalFormat=n.internalFormat,this.textures=[];const o=n.count;for(let a=0;a=0?1:-1,v=1-m*m;if(v>Number.EPSILON){const E=Math.sqrt(v),S=Math.atan2(E,m*y);p=Math.sin(p*S)/E,a=Math.sin(a*S)/E}const x=a*y;if(l=l*p+d*x,c=c*p+f*x,u=u*p+g*x,h=h*p+_*x,p===1-a){const E=1/Math.sqrt(l*l+c*c+u*u+h*h);l*=E,c*=E,u*=E,h*=E}}e[t]=l,e[t+1]=c,e[t+2]=u,e[t+3]=h}static multiplyQuaternionsFlat(e,t,n,i,r,o){const a=n[i],l=n[i+1],c=n[i+2],u=n[i+3],h=r[o],d=r[o+1],f=r[o+2],g=r[o+3];return e[t]=a*g+u*h+l*f-c*d,e[t+1]=l*g+u*d+c*h-a*f,e[t+2]=c*g+u*f+a*d-l*h,e[t+3]=u*g-a*h-l*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,i=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,c=a(n/2),u=a(i/2),h=a(r/2),d=l(n/2),f=l(i/2),g=l(r/2);switch(o){case"XYZ":this._x=d*u*h+c*f*g,this._y=c*f*h-d*u*g,this._z=c*u*g+d*f*h,this._w=c*u*h-d*f*g;break;case"YXZ":this._x=d*u*h+c*f*g,this._y=c*f*h-d*u*g,this._z=c*u*g-d*f*h,this._w=c*u*h+d*f*g;break;case"ZXY":this._x=d*u*h-c*f*g,this._y=c*f*h+d*u*g,this._z=c*u*g+d*f*h,this._w=c*u*h-d*f*g;break;case"ZYX":this._x=d*u*h-c*f*g,this._y=c*f*h+d*u*g,this._z=c*u*g-d*f*h,this._w=c*u*h+d*f*g;break;case"YZX":this._x=d*u*h+c*f*g,this._y=c*f*h+d*u*g,this._z=c*u*g-d*f*h,this._w=c*u*h-d*f*g;break;case"XZY":this._x=d*u*h-c*f*g,this._y=c*f*h-d*u*g,this._z=c*u*g+d*f*h,this._w=c*u*h+d*f*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],r=t[8],o=t[1],a=t[5],l=t[9],c=t[2],u=t[6],h=t[10],d=n+a+h;if(d>0){const f=.5/Math.sqrt(d+1);this._w=.25/f,this._x=(u-l)*f,this._y=(r-c)*f,this._z=(o-i)*f}else if(n>a&&n>h){const f=2*Math.sqrt(1+n-a-h);this._w=(u-l)/f,this._x=.25*f,this._y=(i+o)/f,this._z=(r+c)/f}else if(a>h){const f=2*Math.sqrt(1+a-n-h);this._w=(r-c)/f,this._x=(i+o)/f,this._y=.25*f,this._z=(l+u)/f}else{const f=2*Math.sqrt(1+h-n-a);this._w=(o-i)/f,this._x=(r+c)/f,this._y=(l+u)/f,this._z=.25*f}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Rt(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(n===0)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,r=e._z,o=e._w,a=t._x,l=t._y,c=t._z,u=t._w;return this._x=n*u+o*a+i*c-r*l,this._y=i*u+o*l+r*a-n*c,this._z=r*u+o*c+n*l-i*a,this._w=o*u-n*a-i*l-r*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const n=this._x,i=this._y,r=this._z,o=this._w;let a=o*e._w+n*e._x+i*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const f=1-t;return this._w=f*o+t*this._w,this._x=f*n+t*this._x,this._y=f*i+t*this._y,this._z=f*r+t*this._z,this.normalize(),this}const c=Math.sqrt(l),u=Math.atan2(c,a),h=Math.sin((1-t)*u)/c,d=Math.sin(t*u)/c;return this._w=o*h+this._w*d,this._x=n*h+this._x*d,this._y=i*h+this._y*d,this._z=r*h+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class N{constructor(e=0,t=0,n=0){N.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(dh.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(dh.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=e.elements,o=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,r=e.x,o=e.y,a=e.z,l=e.w,c=2*(o*i-a*n),u=2*(a*t-r*i),h=2*(r*n-o*t);return this.x=t+l*c+o*h-a*u,this.y=n+l*u+a*c-r*h,this.z=i+l*h+r*u-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=i*l-r*a,this.y=r*o-n*l,this.z=n*a-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return yl.copy(this).projectOnVector(e),this.sub(yl)}reflect(e){return this.sub(yl.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Rt(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const yl=new N,dh=new Jt;class ln{constructor(e=new N(1/0,1/0,1/0),t=new N(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,En),En.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(tr),po.subVectors(this.max,tr),xs.subVectors(e.a,tr),Ms.subVectors(e.b,tr),bs.subVectors(e.c,tr),vi.subVectors(Ms,xs),yi.subVectors(bs,Ms),Bi.subVectors(xs,bs);let t=[0,-vi.z,vi.y,0,-yi.z,yi.y,0,-Bi.z,Bi.y,vi.z,0,-vi.x,yi.z,0,-yi.x,Bi.z,0,-Bi.x,-vi.y,vi.x,0,-yi.y,yi.x,0,-Bi.y,Bi.x,0];return!xl(t,xs,Ms,bs,po)||(t=[1,0,0,0,1,0,0,0,1],!xl(t,xs,Ms,bs,po))?!1:(mo.crossVectors(vi,yi),t=[mo.x,mo.y,mo.z],xl(t,xs,Ms,bs,po))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,En).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(En).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Jn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Jn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Jn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Jn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Jn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Jn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Jn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Jn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Jn),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Jn=[new N,new N,new N,new N,new N,new N,new N,new N],En=new N,fo=new ln,xs=new N,Ms=new N,bs=new N,vi=new N,yi=new N,Bi=new N,tr=new N,po=new N,mo=new N,zi=new N;function xl(s,e,t,n,i){for(let r=0,o=s.length-3;r<=o;r+=3){zi.fromArray(s,r);const a=i.x*Math.abs(zi.x)+i.y*Math.abs(zi.y)+i.z*Math.abs(zi.z),l=e.dot(zi),c=t.dot(zi),u=n.dot(zi);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>a)return!1}return!0}const TM=new ln,nr=new N,Ml=new N;class jt{constructor(e=new N,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;t!==void 0?n.copy(t):TM.setFromPoints(e).getCenter(n);let i=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;nr.subVectors(e,this.center);const t=nr.lengthSq();if(t>this.radius*this.radius){const n=Math.sqrt(t),i=(n-this.radius)*.5;this.center.addScaledVector(nr,i/n),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Ml.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(nr.copy(e.center).add(Ml)),this.expandByPoint(nr.copy(e.center).sub(Ml))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const jn=new N,bl=new N,go=new N,xi=new N,Sl=new N,_o=new N,wl=new N;class ms{constructor(e=new N,t=new N(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,jn)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=jn.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(jn.copy(this.origin).addScaledVector(this.direction,t),jn.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){bl.copy(e).add(t).multiplyScalar(.5),go.copy(t).sub(e).normalize(),xi.copy(this.origin).sub(bl);const r=e.distanceTo(t)*.5,o=-this.direction.dot(go),a=xi.dot(this.direction),l=-xi.dot(go),c=xi.lengthSq(),u=Math.abs(1-o*o);let h,d,f,g;if(u>0)if(h=o*l-a,d=o*a-l,g=r*u,h>=0)if(d>=-g)if(d<=g){const _=1/u;h*=_,d*=_,f=h*(h+o*d+2*a)+d*(o*h+d+2*l)+c}else d=r,h=Math.max(0,-(o*d+a)),f=-h*h+d*(d+2*l)+c;else d=-r,h=Math.max(0,-(o*d+a)),f=-h*h+d*(d+2*l)+c;else d<=-g?(h=Math.max(0,-(-o*r+a)),d=h>0?-r:Math.min(Math.max(-r,-l),r),f=-h*h+d*(d+2*l)+c):d<=g?(h=0,d=Math.min(Math.max(-r,-l),r),f=d*(d+2*l)+c):(h=Math.max(0,-(o*r+a)),d=h>0?r:Math.min(Math.max(-r,-l),r),f=-h*h+d*(d+2*l)+c);else d=o>0?-r:r,h=Math.max(0,-(o*d+a)),f=-h*h+d*(d+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(bl).addScaledVector(go,d),f}intersectSphere(e,t){jn.subVectors(e.center,this.origin);const n=jn.dot(this.direction),i=jn.dot(jn)-n*n,r=e.radius*e.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=n-o,l=n+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,r,o,a,l;const c=1/this.direction.x,u=1/this.direction.y,h=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,i=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,i=(e.min.x-d.x)*c),u>=0?(r=(e.min.y-d.y)*u,o=(e.max.y-d.y)*u):(r=(e.max.y-d.y)*u,o=(e.min.y-d.y)*u),n>o||r>i||((r>n||isNaN(n))&&(n=r),(o=0?(a=(e.min.z-d.z)*h,l=(e.max.z-d.z)*h):(a=(e.max.z-d.z)*h,l=(e.min.z-d.z)*h),n>l||a>i)||((a>n||n!==n)&&(n=a),(l=0?n:i,t)}intersectsBox(e){return this.intersectBox(e,jn)!==null}intersectTriangle(e,t,n,i,r){Sl.subVectors(t,e),_o.subVectors(n,e),wl.crossVectors(Sl,_o);let o=this.direction.dot(wl),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;xi.subVectors(this.origin,e);const l=a*this.direction.dot(_o.crossVectors(xi,_o));if(l<0)return null;const c=a*this.direction.dot(Sl.cross(xi));if(c<0||l+c>o)return null;const u=-a*xi.dot(wl);return u<0?null:this.at(u/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ze{constructor(e,t,n,i,r,o,a,l,c,u,h,d,f,g,_,p){Ze.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,i,r,o,a,l,c,u,h,d,f,g,_,p)}set(e,t,n,i,r,o,a,l,c,u,h,d,f,g,_,p){const m=this.elements;return m[0]=e,m[4]=t,m[8]=n,m[12]=i,m[1]=r,m[5]=o,m[9]=a,m[13]=l,m[2]=c,m[6]=u,m[10]=h,m[14]=d,m[3]=f,m[7]=g,m[11]=_,m[15]=p,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ze().fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/Ss.setFromMatrixColumn(e,0).length(),r=1/Ss.setFromMatrixColumn(e,1).length(),o=1/Ss.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,r=e.z,o=Math.cos(n),a=Math.sin(n),l=Math.cos(i),c=Math.sin(i),u=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const d=o*u,f=o*h,g=a*u,_=a*h;t[0]=l*u,t[4]=-l*h,t[8]=c,t[1]=f+g*c,t[5]=d-_*c,t[9]=-a*l,t[2]=_-d*c,t[6]=g+f*c,t[10]=o*l}else if(e.order==="YXZ"){const d=l*u,f=l*h,g=c*u,_=c*h;t[0]=d+_*a,t[4]=g*a-f,t[8]=o*c,t[1]=o*h,t[5]=o*u,t[9]=-a,t[2]=f*a-g,t[6]=_+d*a,t[10]=o*l}else if(e.order==="ZXY"){const d=l*u,f=l*h,g=c*u,_=c*h;t[0]=d-_*a,t[4]=-o*h,t[8]=g+f*a,t[1]=f+g*a,t[5]=o*u,t[9]=_-d*a,t[2]=-o*c,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const d=o*u,f=o*h,g=a*u,_=a*h;t[0]=l*u,t[4]=g*c-f,t[8]=d*c+_,t[1]=l*h,t[5]=_*c+d,t[9]=f*c-g,t[2]=-c,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const d=o*l,f=o*c,g=a*l,_=a*c;t[0]=l*u,t[4]=_-d*h,t[8]=g*h+f,t[1]=h,t[5]=o*u,t[9]=-a*u,t[2]=-c*u,t[6]=f*h+g,t[10]=d-_*h}else if(e.order==="XZY"){const d=o*l,f=o*c,g=a*l,_=a*c;t[0]=l*u,t[4]=-h,t[8]=c*u,t[1]=d*h+_,t[5]=o*u,t[9]=f*h-g,t[2]=g*h-f,t[6]=a*u,t[10]=_*h+d}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(CM,e,PM)}lookAt(e,t,n){const i=this.elements;return _n.subVectors(e,t),_n.lengthSq()===0&&(_n.z=1),_n.normalize(),Mi.crossVectors(n,_n),Mi.lengthSq()===0&&(Math.abs(n.z)===1?_n.x+=1e-4:_n.z+=1e-4,_n.normalize(),Mi.crossVectors(n,_n)),Mi.normalize(),vo.crossVectors(_n,Mi),i[0]=Mi.x,i[4]=vo.x,i[8]=_n.x,i[1]=Mi.y,i[5]=vo.y,i[9]=_n.y,i[2]=Mi.z,i[6]=vo.z,i[10]=_n.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[4],l=n[8],c=n[12],u=n[1],h=n[5],d=n[9],f=n[13],g=n[2],_=n[6],p=n[10],m=n[14],y=n[3],v=n[7],x=n[11],E=n[15],S=i[0],C=i[4],L=i[8],A=i[12],b=i[1],k=i[5],V=i[9],G=i[13],X=i[2],ce=i[6],Z=i[10],ae=i[14],z=i[3],Se=i[7],we=i[11],Ae=i[15];return r[0]=o*S+a*b+l*X+c*z,r[4]=o*C+a*k+l*ce+c*Se,r[8]=o*L+a*V+l*Z+c*we,r[12]=o*A+a*G+l*ae+c*Ae,r[1]=u*S+h*b+d*X+f*z,r[5]=u*C+h*k+d*ce+f*Se,r[9]=u*L+h*V+d*Z+f*we,r[13]=u*A+h*G+d*ae+f*Ae,r[2]=g*S+_*b+p*X+m*z,r[6]=g*C+_*k+p*ce+m*Se,r[10]=g*L+_*V+p*Z+m*we,r[14]=g*A+_*G+p*ae+m*Ae,r[3]=y*S+v*b+x*X+E*z,r[7]=y*C+v*k+x*ce+E*Se,r[11]=y*L+v*V+x*Z+E*we,r[15]=y*A+v*G+x*ae+E*Ae,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],o=e[1],a=e[5],l=e[9],c=e[13],u=e[2],h=e[6],d=e[10],f=e[14],g=e[3],_=e[7],p=e[11],m=e[15];return g*(+r*l*h-i*c*h-r*a*d+n*c*d+i*a*f-n*l*f)+_*(+t*l*f-t*c*d+r*o*d-i*o*f+i*c*u-r*l*u)+p*(+t*c*h-t*a*f-r*o*h+n*o*f+r*a*u-n*c*u)+m*(-i*a*u-t*l*h+t*a*d+i*o*h-n*o*d+n*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],f=e[11],g=e[12],_=e[13],p=e[14],m=e[15],y=h*p*c-_*d*c+_*l*f-a*p*f-h*l*m+a*d*m,v=g*d*c-u*p*c-g*l*f+o*p*f+u*l*m-o*d*m,x=u*_*c-g*h*c+g*a*f-o*_*f-u*a*m+o*h*m,E=g*h*l-u*_*l-g*a*d+o*_*d+u*a*p-o*h*p,S=t*y+n*v+i*x+r*E;if(S===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const C=1/S;return e[0]=y*C,e[1]=(_*d*r-h*p*r-_*i*f+n*p*f+h*i*m-n*d*m)*C,e[2]=(a*p*r-_*l*r+_*i*c-n*p*c-a*i*m+n*l*m)*C,e[3]=(h*l*r-a*d*r-h*i*c+n*d*c+a*i*f-n*l*f)*C,e[4]=v*C,e[5]=(u*p*r-g*d*r+g*i*f-t*p*f-u*i*m+t*d*m)*C,e[6]=(g*l*r-o*p*r-g*i*c+t*p*c+o*i*m-t*l*m)*C,e[7]=(o*d*r-u*l*r+u*i*c-t*d*c-o*i*f+t*l*f)*C,e[8]=x*C,e[9]=(g*h*r-u*_*r-g*n*f+t*_*f+u*n*m-t*h*m)*C,e[10]=(o*_*r-g*a*r+g*n*c-t*_*c-o*n*m+t*a*m)*C,e[11]=(u*a*r-o*h*r-u*n*c+t*h*c+o*n*f-t*a*f)*C,e[12]=E*C,e[13]=(u*_*i-g*h*i+g*n*d-t*_*d-u*n*p+t*h*p)*C,e[14]=(g*a*i-o*_*i-g*n*l+t*_*l+o*n*p-t*a*p)*C,e[15]=(o*h*i-u*a*i+u*n*l-t*h*l-o*n*d+t*a*d)*C,this}scale(e){const t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),r=1-n,o=e.x,a=e.y,l=e.z,c=r*o,u=r*a;return this.set(c*o+n,c*a-i*l,c*l+i*a,0,c*a+i*l,u*a+n,u*l-i*o,0,c*l-i*a,u*l+i*o,r*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,r,o){return this.set(1,n,r,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,c=r+r,u=o+o,h=a+a,d=r*c,f=r*u,g=r*h,_=o*u,p=o*h,m=a*h,y=l*c,v=l*u,x=l*h,E=n.x,S=n.y,C=n.z;return i[0]=(1-(_+m))*E,i[1]=(f+x)*E,i[2]=(g-v)*E,i[3]=0,i[4]=(f-x)*S,i[5]=(1-(d+m))*S,i[6]=(p+y)*S,i[7]=0,i[8]=(g+v)*C,i[9]=(p-y)*C,i[10]=(1-(d+_))*C,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let r=Ss.set(i[0],i[1],i[2]).length();const o=Ss.set(i[4],i[5],i[6]).length(),a=Ss.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],Tn.copy(this);const c=1/r,u=1/o,h=1/a;return Tn.elements[0]*=c,Tn.elements[1]*=c,Tn.elements[2]*=c,Tn.elements[4]*=u,Tn.elements[5]*=u,Tn.elements[6]*=u,Tn.elements[8]*=h,Tn.elements[9]*=h,Tn.elements[10]*=h,t.setFromRotationMatrix(Tn),n.x=r,n.y=o,n.z=a,this}makePerspective(e,t,n,i,r,o,a=Hn){const l=this.elements,c=2*r/(t-e),u=2*r/(n-i),h=(t+e)/(t-e),d=(n+i)/(n-i);let f,g;if(a===Hn)f=-(o+r)/(o-r),g=-2*o*r/(o-r);else if(a===Or)f=-o/(o-r),g=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=u,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=f,l[14]=g,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,n,i,r,o,a=Hn){const l=this.elements,c=1/(t-e),u=1/(n-i),h=1/(o-r),d=(t+e)*c,f=(n+i)*u;let g,_;if(a===Hn)g=(o+r)*h,_=-2*h;else if(a===Or)g=r*h,_=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-f,l[2]=0,l[6]=0,l[10]=_,l[14]=-g,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Ss=new N,Tn=new Ze,CM=new N(0,0,0),PM=new N(1,1,1),Mi=new N,vo=new N,_n=new N,fh=new Ze,ph=new Jt;class bn{constructor(e=0,t=0,n=0,i=bn.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,r=i[0],o=i[4],a=i[8],l=i[1],c=i[5],u=i[9],h=i[2],d=i[6],f=i[10];switch(t){case"XYZ":this._y=Math.asin(Rt(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,f),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(d,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Rt(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,f),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Rt(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Rt(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(Rt(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,f));break;case"XZY":this._z=Math.asin(-Rt(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-u,f),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return fh.makeRotationFromQuaternion(e),this.setFromRotationMatrix(fh,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return ph.setFromEuler(this),this.setFromQuaternion(ph,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}bn.DEFAULT_ORDER="XYZ";class za{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let n=0;n0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this._colorsTexture!==null&&(i.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(n.geometries=a),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),u.length>0&&(n.images=u),h.length>0&&(n.shapes=h),d.length>0&&(n.skeletons=d),f.length>0&&(n.animations=f),g.length>0&&(n.nodes=g)}return n.object=i,n;function o(a){const l=[];for(const c in a){const u=a[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let n=0;n0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,n,i,r){Cn.subVectors(i,t),ei.subVectors(n,t),El.subVectors(e,t);const o=Cn.dot(Cn),a=Cn.dot(ei),l=Cn.dot(El),c=ei.dot(ei),u=ei.dot(El),h=o*c-a*a;if(h===0)return r.set(0,0,0),null;const d=1/h,f=(c*l-a*u)*d,g=(o*u-a*l)*d;return r.set(1-f-g,g,f)}static containsPoint(e,t,n,i){return this.getBarycoord(e,t,n,i,ti)===null?!1:ti.x>=0&&ti.y>=0&&ti.x+ti.y<=1}static getInterpolation(e,t,n,i,r,o,a,l){return this.getBarycoord(e,t,n,i,ti)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(r,ti.x),l.addScaledVector(o,ti.y),l.addScaledVector(a,ti.z),l)}static isFrontFacing(e,t,n,i){return Cn.subVectors(n,t),ei.subVectors(e,t),Cn.cross(ei).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Cn.subVectors(this.c,this.b),ei.subVectors(this.a,this.b),Cn.cross(ei).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return yn.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return yn.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,r){return yn.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}containsPoint(e){return yn.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return yn.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,r=this.c;let o,a;Es.subVectors(i,n),Ts.subVectors(r,n),Tl.subVectors(e,n);const l=Es.dot(Tl),c=Ts.dot(Tl);if(l<=0&&c<=0)return t.copy(n);Cl.subVectors(e,i);const u=Es.dot(Cl),h=Ts.dot(Cl);if(u>=0&&h<=u)return t.copy(i);const d=l*h-u*c;if(d<=0&&l>=0&&u<=0)return o=l/(l-u),t.copy(n).addScaledVector(Es,o);Pl.subVectors(e,r);const f=Es.dot(Pl),g=Ts.dot(Pl);if(g>=0&&f<=g)return t.copy(r);const _=f*c-l*g;if(_<=0&&c>=0&&g<=0)return a=c/(c-g),t.copy(n).addScaledVector(Ts,a);const p=u*g-f*h;if(p<=0&&h-u>=0&&f-g>=0)return xh.subVectors(r,i),a=(h-u)/(h-u+(f-g)),t.copy(i).addScaledVector(xh,a);const m=1/(p+_+d);return o=_*m,a=d*m,t.copy(n).addScaledVector(Es,o).addScaledVector(Ts,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const Tp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},bi={h:0,s:0,l:0},xo={h:0,s:0,l:0};function Rl(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*6*(2/3-t):s}class Ie{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=dn){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,dt.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=dt.workingColorSpace){return this.r=e,this.g=t,this.b=n,dt.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=dt.workingColorSpace){if(e=bu(e,1),t=Rt(t,0,1),n=Rt(n,0,1),t===0)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,o=2*n-r;this.r=Rl(o,r,e+1/3),this.g=Rl(o,r,e),this.b=Rl(o,r,e-1/3)}return dt.toWorkingColorSpace(this,i),this}setStyle(e,t=dn){function n(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=i[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=dn){const n=Tp[e.toLowerCase()];return n!==void 0?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=qs(e.r),this.g=qs(e.g),this.b=qs(e.b),this}copyLinearToSRGB(e){return this.r=_l(e.r),this.g=_l(e.g),this.b=_l(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=dn){return dt.fromWorkingColorSpace(Zt.copy(this),e),Math.round(Rt(Zt.r*255,0,255))*65536+Math.round(Rt(Zt.g*255,0,255))*256+Math.round(Rt(Zt.b*255,0,255))}getHexString(e=dn){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=dt.workingColorSpace){dt.fromWorkingColorSpace(Zt.copy(this),t);const n=Zt.r,i=Zt.g,r=Zt.b,o=Math.max(n,i,r),a=Math.min(n,i,r);let l,c;const u=(a+o)/2;if(a===o)l=0,c=0;else{const h=o-a;switch(c=u<=.5?h/(o+a):h/(2-o-a),o){case n:l=(i-r)/h+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];if(i===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==os&&(n.blending=this.blending),this.side!==ci&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==wa&&(n.blendSrc=this.blendSrc),this.blendDst!==Aa&&(n.blendDst=this.blendDst),this.blendEquation!==Ti&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==wr&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Bc&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Qi&&(n.stencilFail=this.stencilFail),this.stencilZFail!==Qi&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==Qi&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function i(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=i(e.textures),o=i(e.images);r.length>0&&(n.textures=r),o.length>0&&(n.images=o)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(t!==null){const i=t.length;n=new Array(i);for(let r=0;r!==i;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class pi extends en{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Ie(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new bn,this.combine=Kr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const ri=UM();function UM(){const s=new ArrayBuffer(4),e=new Float32Array(s),t=new Uint32Array(s),n=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(n[l]=0,n[l|256]=32768,i[l]=24,i[l|256]=24):c<-14?(n[l]=1024>>-c-14,n[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,i[l]=24,i[l|256]=24):(n[l]=31744,n[l|256]=64512,i[l]=13,i[l|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;!(c&8388608);)c<<=1,u-=8388608;c&=-8388609,u+=947912704,r[l]=c|u}for(let l=1024;l<2048;++l)r[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)o[l]=l<<23;o[31]=1199570944,o[32]=2147483648;for(let l=33;l<63;++l)o[l]=2147483648+(l-32<<23);o[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(a[l]=1024);return{floatView:e,uint32View:t,baseTable:n,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}function hn(s){Math.abs(s)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),s=Rt(s,-65504,65504),ri.floatView[0]=s;const e=ri.uint32View[0],t=e>>23&511;return ri.baseTable[t]+((e&8388607)>>ri.shiftTable[t])}function mr(s){const e=s>>10;return ri.uint32View[0]=ri.mantissaTable[ri.offsetTable[e]+(s&1023)]+ri.exponentTable[e],ri.floatView[0]}const OM={toHalfFloat:hn,fromHalfFloat:mr},Ft=new N,Mo=new te;class mt{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=n,this.usage=Ur,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=xn,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return wu("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,r=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const l in n){const c=n[l];e.data.attributes[l]=c.toJSON(e.data)}const i={};let r=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let h=0,d=c.length;h0&&(i[l]=u,r=!0)}r&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;n!==null&&this.setIndex(n.clone(t));const i=e.attributes;for(const c in i){const u=i[c];this.setAttribute(c,u.clone(t))}const r=e.morphAttributes;for(const c in r){const u=[],h=r[c];for(let d=0,f=h.length;d0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r(e.far-e.near)**2))&&(Mh.copy(r).invert(),Vi.copy(e.ray).applyMatrix4(Mh),!(n.boundingBox!==null&&Vi.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,Vi)))}_computeIntersections(e,t,n){let i;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,c=r.attributes.uv,u=r.attributes.uv1,h=r.attributes.normal,d=r.groups,f=r.drawRange;if(a!==null)if(Array.isArray(o))for(let g=0,_=d.length;g<_;g++){const p=d[g],m=o[p.materialIndex],y=Math.max(p.start,f.start),v=Math.min(a.count,Math.min(p.start+p.count,f.start+f.count));for(let x=y,E=v;xt.far?null:{distance:c,point:Co.clone(),object:s}}function Po(s,e,t,n,i,r,o,a,l,c){s.getVertexPosition(a,Ps),s.getVertexPosition(l,Rs),s.getVertexPosition(c,Is);const u=WM(s,e,t,n,Ps,Rs,Is,To);if(u){i&&(wo.fromBufferAttribute(i,a),Ao.fromBufferAttribute(i,l),Eo.fromBufferAttribute(i,c),u.uv=yn.getInterpolation(To,Ps,Rs,Is,wo,Ao,Eo,new te)),r&&(wo.fromBufferAttribute(r,a),Ao.fromBufferAttribute(r,l),Eo.fromBufferAttribute(r,c),u.uv1=yn.getInterpolation(To,Ps,Rs,Is,wo,Ao,Eo,new te)),o&&(Sh.fromBufferAttribute(o,a),wh.fromBufferAttribute(o,l),Ah.fromBufferAttribute(o,c),u.normal=yn.getInterpolation(To,Ps,Rs,Is,Sh,wh,Ah,new N),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));const h={a,b:l,c,normal:new N,materialIndex:0};yn.getNormal(Ps,Rs,Is,h.normal),u.face=h}return u}class gs extends at{constructor(e=1,t=1,n=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const l=[],c=[],u=[],h=[];let d=0,f=0;g("z","y","x",-1,-1,n,t,e,o,r,0),g("z","y","x",1,-1,n,t,-e,o,r,1),g("x","z","y",1,1,e,n,t,i,o,2),g("x","z","y",1,-1,e,n,-t,i,o,3),g("x","y","z",1,-1,e,t,n,i,r,4),g("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(l),this.setAttribute("position",new Oe(c,3)),this.setAttribute("normal",new Oe(u,3)),this.setAttribute("uv",new Oe(h,2));function g(_,p,m,y,v,x,E,S,C,L,A){const b=x/C,k=E/L,V=x/2,G=E/2,X=S/2,ce=C+1,Z=L+1;let ae=0,z=0;const Se=new N;for(let we=0;we0?1:-1,u.push(Se.x,Se.y,Se.z),h.push(_e/C),h.push(1-we/L),ae+=1}}for(let we=0;we>8&255]+Xt[s>>16&255]+Xt[s>>24&255]+"-"+Xt[e&255]+Xt[e>>8&255]+"-"+Xt[e>>16&15|64]+Xt[e>>24&255]+"-"+Xt[t&63|128]+Xt[t>>8&255]+"-"+Xt[t>>16&255]+Xt[t>>24&255]+Xt[n&255]+Xt[n>>8&255]+Xt[n>>16&255]+Xt[n>>24&255]).toLowerCase()}function Ct(s,e,t){return Math.max(e,Math.min(t,s))}function mu(s,e){return(s%e+e)%e}function jx(s,e,t,n,i){return n+(s-e)*(i-n)/(t-e)}function Qx(s,e,t){return s!==e?(t-s)/(e-s):0}function dr(s,e,t){return(1-t)*s+t*e}function eM(s,e,t,n){return dr(s,e,1-Math.exp(-t*n))}function tM(s,e=1){return e-Math.abs(mu(s,e*2)-e)}function nM(s,e,t){return s<=e?0:s>=t?1:(s=(s-e)/(t-e),s*s*(3-2*s))}function iM(s,e,t){return s<=e?0:s>=t?1:(s=(s-e)/(t-e),s*s*s*(s*(s*6-15)+10))}function sM(s,e){return s+Math.floor(Math.random()*(e-s+1))}function rM(s,e){return s+Math.random()*(e-s)}function oM(s){return s*(.5-Math.random())}function aM(s){s!==void 0&&(nh=s);let e=nh+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function lM(s){return s*ns}function cM(s){return s*Vs}function uM(s){return(s&s-1)===0&&s!==0}function hM(s){return Math.pow(2,Math.ceil(Math.log(s)/Math.LN2))}function dM(s){return Math.pow(2,Math.floor(Math.log(s)/Math.LN2))}function fM(s,e,t,n,i){const r=Math.cos,o=Math.sin,a=r(t/2),l=o(t/2),c=r((e+n)/2),u=o((e+n)/2),h=r((e-n)/2),d=o((e-n)/2),f=r((n-e)/2),g=o((n-e)/2);switch(i){case"XYX":s.set(a*u,l*h,l*d,a*c);break;case"YZY":s.set(l*d,a*u,l*h,a*c);break;case"ZXZ":s.set(l*h,l*d,a*u,a*c);break;case"XZX":s.set(a*u,l*g,l*f,a*c);break;case"YXY":s.set(l*f,a*u,l*g,a*c);break;case"ZYZ":s.set(l*g,l*f,a*u,a*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+i)}}function tn(s,e){switch(e.constructor){case Float32Array:return s;case Uint32Array:return s/4294967295;case Uint16Array:return s/65535;case Uint8Array:return s/255;case Int32Array:return Math.max(s/2147483647,-1);case Int16Array:return Math.max(s/32767,-1);case Int8Array:return Math.max(s/127,-1);default:throw new Error("Invalid component type.")}}function tt(s,e){switch(e.constructor){case Float32Array:return s;case Uint32Array:return Math.round(s*4294967295);case Uint16Array:return Math.round(s*65535);case Uint8Array:return Math.round(s*255);case Int32Array:return Math.round(s*2147483647);case Int16Array:return Math.round(s*32767);case Int8Array:return Math.round(s*127);default:throw new Error("Invalid component type.")}}const pp={DEG2RAD:ns,RAD2DEG:Vs,generateUUID:vn,clamp:Ct,euclideanModulo:mu,mapLinear:jx,inverseLerp:Qx,lerp:dr,damp:eM,pingpong:tM,smoothstep:nM,smootherstep:iM,randInt:sM,randFloat:rM,randFloatSpread:oM,seededRandom:aM,degToRad:lM,radToDeg:cM,isPowerOfTwo:uM,ceilPowerOfTwo:hM,floorPowerOfTwo:dM,setQuaternionFromProperEuler:fM,normalize:tt,denormalize:tn};class se{constructor(e=0,t=0){se.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Ct(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),r=this.x-e.x,o=this.y-e.y;return this.x=r*n-o*i+e.x,this.y=r*i+o*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Ze{constructor(e,t,n,i,r,o,a,l,c){Ze.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,i,r,o,a,l,c)}set(e,t,n,i,r,o,a,l,c){const u=this.elements;return u[0]=e,u[1]=i,u[2]=a,u[3]=t,u[4]=r,u[5]=l,u[6]=n,u[7]=o,u[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[3],l=n[6],c=n[1],u=n[4],h=n[7],d=n[2],f=n[5],g=n[8],v=i[0],p=i[3],m=i[6],y=i[1],_=i[4],x=i[7],A=i[2],b=i[5],E=i[8];return r[0]=o*v+a*y+l*A,r[3]=o*p+a*_+l*b,r[6]=o*m+a*x+l*E,r[1]=c*v+u*y+h*A,r[4]=c*p+u*_+h*b,r[7]=c*m+u*x+h*E,r[2]=d*v+f*y+g*A,r[5]=d*p+f*_+g*b,r[8]=d*m+f*x+g*E,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return t*o*u-t*a*c-n*r*u+n*a*l+i*r*c-i*o*l}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=u*o-a*c,d=a*l-u*r,f=c*r-o*l,g=t*h+n*d+i*f;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/g;return e[0]=h*v,e[1]=(i*c-u*n)*v,e[2]=(a*n-i*o)*v,e[3]=d*v,e[4]=(u*t-i*l)*v,e[5]=(i*r-a*t)*v,e[6]=f*v,e[7]=(n*l-c*t)*v,e[8]=(o*t-n*r)*v,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,r,o,a){const l=Math.cos(r),c=Math.sin(r);return this.set(n*l,n*c,-n*(l*o+c*a)+o+e,-i*c,i*l,-i*(-c*o+l*a)+a+t,0,0,1),this}scale(e,t){return this.premultiply(ul.makeScale(e,t)),this}rotate(e){return this.premultiply(ul.makeRotation(-e)),this}translate(e,t){return this.premultiply(ul.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const ul=new Ze;function mp(s){for(let e=s.length-1;e>=0;--e)if(s[e]>=65535)return!0;return!1}const pM={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function Us(s,e){return new pM[s](e)}function Ir(s){return document.createElementNS("http://www.w3.org/1999/xhtml",s)}function gp(){const s=Ir("canvas");return s.style.display="block",s}const ih={};function gu(s){s in ih||(ih[s]=!0,console.warn(s))}function mM(s,e,t){return new Promise(function(n,i){function r(){switch(s.clientWaitSync(e,s.SYNC_FLUSH_COMMANDS_BIT,0)){case s.WAIT_FAILED:i();break;case s.TIMEOUT_EXPIRED:setTimeout(r,t);break;default:n()}}setTimeout(r,t)})}const sh=new Ze().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),rh=new Ze().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),ro={[ci]:{transfer:Tr,primaries:Er,toReference:s=>s,fromReference:s=>s},[ln]:{transfer:Mt,primaries:Er,toReference:s=>s.convertSRGBToLinear(),fromReference:s=>s.convertLinearToSRGB()},[$r]:{transfer:Tr,primaries:Cr,toReference:s=>s.applyMatrix3(rh),fromReference:s=>s.applyMatrix3(sh)},[Ia]:{transfer:Mt,primaries:Cr,toReference:s=>s.convertSRGBToLinear().applyMatrix3(rh),fromReference:s=>s.applyMatrix3(sh).convertLinearToSRGB()}},gM=new Set([ci,$r]),ht={enabled:!0,_workingColorSpace:ci,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(s){if(!gM.has(s))throw new Error(`Unsupported working color space, "${s}".`);this._workingColorSpace=s},convert:function(s,e,t){if(this.enabled===!1||e===t||!e||!t)return s;const n=ro[e].toReference,i=ro[t].fromReference;return i(n(s))},fromWorkingColorSpace:function(s,e){return this.convert(s,this._workingColorSpace,e)},toWorkingColorSpace:function(s,e){return this.convert(s,e,this._workingColorSpace)},getPrimaries:function(s){return ro[s].primaries},getTransfer:function(s){return s===ei?Tr:ro[s].transfer}};function zs(s){return s<.04045?s*.0773993808:Math.pow(s*.9478672986+.0521327014,2.4)}function hl(s){return s<.0031308?s*12.92:1.055*Math.pow(s,.41666)-.055}let ds;class vp{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{ds===void 0&&(ds=Ir("canvas")),ds.width=e.width,ds.height=e.height;const n=ds.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=ds}return t.width>2048||t.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),t.toDataURL("image/jpeg",.6)):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Ir("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),r=i.data;for(let o=0;o0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==Pa)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Mr:e.x=e.x-Math.floor(e.x);break;case Mn:e.x=e.x<0?0:1;break;case br:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case Mr:e.y=e.y-Math.floor(e.y);break;case Mn:e.y=e.y<0?0:1;break;case br:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}Pt.DEFAULT_IMAGE=null;Pt.DEFAULT_MAPPING=Pa;Pt.DEFAULT_ANISOTROPY=1;class gt{constructor(e=0,t=0,n=0,i=1){gt.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=this.w,o=e.elements;return this.x=o[0]*t+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*t+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*t+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*t+o[7]*n+o[11]*i+o[15]*r,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,r;const l=e.elements,c=l[0],u=l[4],h=l[8],d=l[1],f=l[5],g=l[9],v=l[2],p=l[6],m=l[10];if(Math.abs(u-d)<.01&&Math.abs(h-v)<.01&&Math.abs(g-p)<.01){if(Math.abs(u+d)<.1&&Math.abs(h+v)<.1&&Math.abs(g+p)<.1&&Math.abs(c+f+m-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const _=(c+1)/2,x=(f+1)/2,A=(m+1)/2,b=(u+d)/4,E=(h+v)/4,I=(g+p)/4;return _>x&&_>A?_<.01?(n=0,i=.707106781,r=.707106781):(n=Math.sqrt(_),i=b/n,r=E/n):x>A?x<.01?(n=.707106781,i=0,r=.707106781):(i=Math.sqrt(x),n=b/i,r=I/i):A<.01?(n=.707106781,i=.707106781,r=0):(r=Math.sqrt(A),n=E/r,i=I/r),this.set(n,i,r,t),this}let y=Math.sqrt((p-g)*(p-g)+(h-v)*(h-v)+(d-u)*(d-u));return Math.abs(y)<.001&&(y=1),this.x=(p-g)/y,this.y=(h-v)/y,this.z=(d-u)/y,this.w=Math.acos((c+f+m-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class _p extends ui{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new gt(0,0,e,t),this.scissorTest=!1,this.viewport=new gt(0,0,e,t);const i={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Ot,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);const r=new Pt(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);r.flipY=!1,r.generateMipmaps=n.generateMipmaps,r.internalFormat=n.internalFormat,this.textures=[];const o=n.count;for(let a=0;a=0?1:-1,_=1-m*m;if(_>Number.EPSILON){const A=Math.sqrt(_),b=Math.atan2(A,m*y);p=Math.sin(p*b)/A,a=Math.sin(a*b)/A}const x=a*y;if(l=l*p+d*x,c=c*p+f*x,u=u*p+g*x,h=h*p+v*x,p===1-a){const A=1/Math.sqrt(l*l+c*c+u*u+h*h);l*=A,c*=A,u*=A,h*=A}}e[t]=l,e[t+1]=c,e[t+2]=u,e[t+3]=h}static multiplyQuaternionsFlat(e,t,n,i,r,o){const a=n[i],l=n[i+1],c=n[i+2],u=n[i+3],h=r[o],d=r[o+1],f=r[o+2],g=r[o+3];return e[t]=a*g+u*h+l*f-c*d,e[t+1]=l*g+u*d+c*h-a*f,e[t+2]=c*g+u*f+a*d-l*h,e[t+3]=u*g-a*h-l*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,i=e._y,r=e._z,o=e._order,a=Math.cos,l=Math.sin,c=a(n/2),u=a(i/2),h=a(r/2),d=l(n/2),f=l(i/2),g=l(r/2);switch(o){case"XYZ":this._x=d*u*h+c*f*g,this._y=c*f*h-d*u*g,this._z=c*u*g+d*f*h,this._w=c*u*h-d*f*g;break;case"YXZ":this._x=d*u*h+c*f*g,this._y=c*f*h-d*u*g,this._z=c*u*g-d*f*h,this._w=c*u*h+d*f*g;break;case"ZXY":this._x=d*u*h-c*f*g,this._y=c*f*h+d*u*g,this._z=c*u*g+d*f*h,this._w=c*u*h-d*f*g;break;case"ZYX":this._x=d*u*h-c*f*g,this._y=c*f*h+d*u*g,this._z=c*u*g-d*f*h,this._w=c*u*h+d*f*g;break;case"YZX":this._x=d*u*h+c*f*g,this._y=c*f*h+d*u*g,this._z=c*u*g-d*f*h,this._w=c*u*h-d*f*g;break;case"XZY":this._x=d*u*h-c*f*g,this._y=c*f*h-d*u*g,this._z=c*u*g+d*f*h,this._w=c*u*h+d*f*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+o)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],r=t[8],o=t[1],a=t[5],l=t[9],c=t[2],u=t[6],h=t[10],d=n+a+h;if(d>0){const f=.5/Math.sqrt(d+1);this._w=.25/f,this._x=(u-l)*f,this._y=(r-c)*f,this._z=(o-i)*f}else if(n>a&&n>h){const f=2*Math.sqrt(1+n-a-h);this._w=(u-l)/f,this._x=.25*f,this._y=(i+o)/f,this._z=(r+c)/f}else if(a>h){const f=2*Math.sqrt(1+a-n-h);this._w=(r-c)/f,this._x=(i+o)/f,this._y=.25*f,this._z=(l+u)/f}else{const f=2*Math.sqrt(1+h-n-a);this._w=(o-i)/f,this._x=(r+c)/f,this._y=(l+u)/f,this._z=.25*f}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return nMath.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Ct(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(n===0)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,r=e._z,o=e._w,a=t._x,l=t._y,c=t._z,u=t._w;return this._x=n*u+o*a+i*c-r*l,this._y=i*u+o*l+r*a-n*c,this._z=r*u+o*c+n*l-i*a,this._w=o*u-n*a-i*l-r*c,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const n=this._x,i=this._y,r=this._z,o=this._w;let a=o*e._w+n*e._x+i*e._y+r*e._z;if(a<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,a=-a):this.copy(e),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;const l=1-a*a;if(l<=Number.EPSILON){const f=1-t;return this._w=f*o+t*this._w,this._x=f*n+t*this._x,this._y=f*i+t*this._y,this._z=f*r+t*this._z,this.normalize(),this}const c=Math.sqrt(l),u=Math.atan2(c,a),h=Math.sin((1-t)*u)/c,d=Math.sin(t*u)/c;return this._w=o*h+this._w*d,this._x=n*h+this._x*d,this._y=i*h+this._y*d,this._z=r*h+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),r=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),r*Math.sin(t),r*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class N{constructor(e=0,t=0,n=0){N.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(oh.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(oh.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6]*i,this.y=r[1]*t+r[4]*n+r[7]*i,this.z=r[2]*t+r[5]*n+r[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,r=e.elements,o=1/(r[3]*t+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*t+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*t+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*t+r[6]*n+r[10]*i+r[14])*o,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,r=e.x,o=e.y,a=e.z,l=e.w,c=2*(o*i-a*n),u=2*(a*t-r*i),h=2*(r*n-o*t);return this.x=t+l*c+o*h-a*u,this.y=n+l*u+a*c-r*h,this.z=i+l*h+r*u-o*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i,this.y=r[1]*t+r[5]*n+r[9]*i,this.z=r[2]*t+r[6]*n+r[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,r=e.z,o=t.x,a=t.y,l=t.z;return this.x=i*l-r*a,this.y=r*o-n*l,this.z=n*a-i*o,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return fl.copy(this).projectOnVector(e),this.sub(fl)}reflect(e){return this.sub(fl.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(Ct(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const fl=new N,oh=new hn;class sn{constructor(e=new N(1/0,1/0,1/0),t=new N(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;tthis.max.x||e.ythis.max.y||e.zthis.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y||e.max.zthis.max.z)}intersectsSphere(e){return this.clampPoint(e.center,bn),bn.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Zs),ao.subVectors(this.max,Zs),fs.subVectors(e.a,Zs),ps.subVectors(e.b,Zs),ms.subVectors(e.c,Zs),pi.subVectors(ps,fs),mi.subVectors(ms,ps),Ui.subVectors(fs,ms);let t=[0,-pi.z,pi.y,0,-mi.z,mi.y,0,-Ui.z,Ui.y,pi.z,0,-pi.x,mi.z,0,-mi.x,Ui.z,0,-Ui.x,-pi.y,pi.x,0,-mi.y,mi.x,0,-Ui.y,Ui.x,0];return!pl(t,fs,ps,ms,ao)||(t=[1,0,0,0,1,0,0,0,1],!pl(t,fs,ps,ms,ao))?!1:(lo.crossVectors(pi,mi),t=[lo.x,lo.y,lo.z],pl(t,fs,ps,ms,ao))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,bn).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(bn).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Yn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Yn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Yn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Yn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Yn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Yn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Yn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Yn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Yn),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Yn=[new N,new N,new N,new N,new N,new N,new N,new N],bn=new N,oo=new sn,fs=new N,ps=new N,ms=new N,pi=new N,mi=new N,Ui=new N,Zs=new N,ao=new N,lo=new N,Oi=new N;function pl(s,e,t,n,i){for(let r=0,o=s.length-3;r<=o;r+=3){Oi.fromArray(s,r);const a=i.x*Math.abs(Oi.x)+i.y*Math.abs(Oi.y)+i.z*Math.abs(Oi.z),l=e.dot(Oi),c=t.dot(Oi),u=n.dot(Oi);if(Math.max(-Math.max(l,c,u),Math.min(l,c,u))>a)return!1}return!0}const MM=new sn,Js=new N,ml=new N;class Zt{constructor(e=new N,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;t!==void 0?n.copy(t):MM.setFromPoints(e).getCenter(n);let i=0;for(let r=0,o=e.length;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Js.subVectors(e,this.center);const t=Js.lengthSq();if(t>this.radius*this.radius){const n=Math.sqrt(t),i=(n-this.radius)*.5;this.center.addScaledVector(Js,i/n),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ml.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Js.copy(e.center).add(ml)),this.expandByPoint(Js.copy(e.center).sub(ml))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Zn=new N,gl=new N,co=new N,gi=new N,vl=new N,uo=new N,_l=new N;class $s{constructor(e=new N,t=new N(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Zn)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Zn.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Zn.copy(this.origin).addScaledVector(this.direction,t),Zn.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){gl.copy(e).add(t).multiplyScalar(.5),co.copy(t).sub(e).normalize(),gi.copy(this.origin).sub(gl);const r=e.distanceTo(t)*.5,o=-this.direction.dot(co),a=gi.dot(this.direction),l=-gi.dot(co),c=gi.lengthSq(),u=Math.abs(1-o*o);let h,d,f,g;if(u>0)if(h=o*l-a,d=o*a-l,g=r*u,h>=0)if(d>=-g)if(d<=g){const v=1/u;h*=v,d*=v,f=h*(h+o*d+2*a)+d*(o*h+d+2*l)+c}else d=r,h=Math.max(0,-(o*d+a)),f=-h*h+d*(d+2*l)+c;else d=-r,h=Math.max(0,-(o*d+a)),f=-h*h+d*(d+2*l)+c;else d<=-g?(h=Math.max(0,-(-o*r+a)),d=h>0?-r:Math.min(Math.max(-r,-l),r),f=-h*h+d*(d+2*l)+c):d<=g?(h=0,d=Math.min(Math.max(-r,-l),r),f=d*(d+2*l)+c):(h=Math.max(0,-(o*r+a)),d=h>0?r:Math.min(Math.max(-r,-l),r),f=-h*h+d*(d+2*l)+c);else d=o>0?-r:r,h=Math.max(0,-(o*d+a)),f=-h*h+d*(d+2*l)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(gl).addScaledVector(co,d),f}intersectSphere(e,t){Zn.subVectors(e.center,this.origin);const n=Zn.dot(this.direction),i=Zn.dot(Zn)-n*n,r=e.radius*e.radius;if(i>r)return null;const o=Math.sqrt(r-i),a=n-o,l=n+o;return l<0?null:a<0?this.at(l,t):this.at(a,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,r,o,a,l;const c=1/this.direction.x,u=1/this.direction.y,h=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,i=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,i=(e.min.x-d.x)*c),u>=0?(r=(e.min.y-d.y)*u,o=(e.max.y-d.y)*u):(r=(e.max.y-d.y)*u,o=(e.min.y-d.y)*u),n>o||r>i||((r>n||isNaN(n))&&(n=r),(o=0?(a=(e.min.z-d.z)*h,l=(e.max.z-d.z)*h):(a=(e.max.z-d.z)*h,l=(e.min.z-d.z)*h),n>l||a>i)||((a>n||n!==n)&&(n=a),(l=0?n:i,t)}intersectsBox(e){return this.intersectBox(e,Zn)!==null}intersectTriangle(e,t,n,i,r){vl.subVectors(t,e),uo.subVectors(n,e),_l.crossVectors(vl,uo);let o=this.direction.dot(_l),a;if(o>0){if(i)return null;a=1}else if(o<0)a=-1,o=-o;else return null;gi.subVectors(this.origin,e);const l=a*this.direction.dot(uo.crossVectors(gi,uo));if(l<0)return null;const c=a*this.direction.dot(vl.cross(gi));if(c<0||l+c>o)return null;const u=-a*gi.dot(_l);return u<0?null:this.at(u/o,r)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Ye{constructor(e,t,n,i,r,o,a,l,c,u,h,d,f,g,v,p){Ye.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,n,i,r,o,a,l,c,u,h,d,f,g,v,p)}set(e,t,n,i,r,o,a,l,c,u,h,d,f,g,v,p){const m=this.elements;return m[0]=e,m[4]=t,m[8]=n,m[12]=i,m[1]=r,m[5]=o,m[9]=a,m[13]=l,m[2]=c,m[6]=u,m[10]=h,m[14]=d,m[3]=f,m[7]=g,m[11]=v,m[15]=p,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Ye().fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/gs.setFromMatrixColumn(e,0).length(),r=1/gs.setFromMatrixColumn(e,1).length(),o=1/gs.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=0,t[8]=n[8]*o,t[9]=n[9]*o,t[10]=n[10]*o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,r=e.z,o=Math.cos(n),a=Math.sin(n),l=Math.cos(i),c=Math.sin(i),u=Math.cos(r),h=Math.sin(r);if(e.order==="XYZ"){const d=o*u,f=o*h,g=a*u,v=a*h;t[0]=l*u,t[4]=-l*h,t[8]=c,t[1]=f+g*c,t[5]=d-v*c,t[9]=-a*l,t[2]=v-d*c,t[6]=g+f*c,t[10]=o*l}else if(e.order==="YXZ"){const d=l*u,f=l*h,g=c*u,v=c*h;t[0]=d+v*a,t[4]=g*a-f,t[8]=o*c,t[1]=o*h,t[5]=o*u,t[9]=-a,t[2]=f*a-g,t[6]=v+d*a,t[10]=o*l}else if(e.order==="ZXY"){const d=l*u,f=l*h,g=c*u,v=c*h;t[0]=d-v*a,t[4]=-o*h,t[8]=g+f*a,t[1]=f+g*a,t[5]=o*u,t[9]=v-d*a,t[2]=-o*c,t[6]=a,t[10]=o*l}else if(e.order==="ZYX"){const d=o*u,f=o*h,g=a*u,v=a*h;t[0]=l*u,t[4]=g*c-f,t[8]=d*c+v,t[1]=l*h,t[5]=v*c+d,t[9]=f*c-g,t[2]=-c,t[6]=a*l,t[10]=o*l}else if(e.order==="YZX"){const d=o*l,f=o*c,g=a*l,v=a*c;t[0]=l*u,t[4]=v-d*h,t[8]=g*h+f,t[1]=h,t[5]=o*u,t[9]=-a*u,t[2]=-c*u,t[6]=f*h+g,t[10]=d-v*h}else if(e.order==="XZY"){const d=o*l,f=o*c,g=a*l,v=a*c;t[0]=l*u,t[4]=-h,t[8]=c*u,t[1]=d*h+v,t[5]=o*u,t[9]=f*h-g,t[2]=g*h-f,t[6]=a*u,t[10]=v*h+d}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(bM,e,SM)}lookAt(e,t,n){const i=this.elements;return fn.subVectors(e,t),fn.lengthSq()===0&&(fn.z=1),fn.normalize(),vi.crossVectors(n,fn),vi.lengthSq()===0&&(Math.abs(n.z)===1?fn.x+=1e-4:fn.z+=1e-4,fn.normalize(),vi.crossVectors(n,fn)),vi.normalize(),ho.crossVectors(fn,vi),i[0]=vi.x,i[4]=ho.x,i[8]=fn.x,i[1]=vi.y,i[5]=ho.y,i[9]=fn.y,i[2]=vi.z,i[6]=ho.z,i[10]=fn.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,r=this.elements,o=n[0],a=n[4],l=n[8],c=n[12],u=n[1],h=n[5],d=n[9],f=n[13],g=n[2],v=n[6],p=n[10],m=n[14],y=n[3],_=n[7],x=n[11],A=n[15],b=i[0],E=i[4],I=i[8],w=i[12],M=i[1],F=i[5],z=i[9],G=i[13],q=i[2],ae=i[6],j=i[10],oe=i[14],B=i[3],Me=i[7],be=i[11],Ae=i[15];return r[0]=o*b+a*M+l*q+c*B,r[4]=o*E+a*F+l*ae+c*Me,r[8]=o*I+a*z+l*j+c*be,r[12]=o*w+a*G+l*oe+c*Ae,r[1]=u*b+h*M+d*q+f*B,r[5]=u*E+h*F+d*ae+f*Me,r[9]=u*I+h*z+d*j+f*be,r[13]=u*w+h*G+d*oe+f*Ae,r[2]=g*b+v*M+p*q+m*B,r[6]=g*E+v*F+p*ae+m*Me,r[10]=g*I+v*z+p*j+m*be,r[14]=g*w+v*G+p*oe+m*Ae,r[3]=y*b+_*M+x*q+A*B,r[7]=y*E+_*F+x*ae+A*Me,r[11]=y*I+_*z+x*j+A*be,r[15]=y*w+_*G+x*oe+A*Ae,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],r=e[12],o=e[1],a=e[5],l=e[9],c=e[13],u=e[2],h=e[6],d=e[10],f=e[14],g=e[3],v=e[7],p=e[11],m=e[15];return g*(+r*l*h-i*c*h-r*a*d+n*c*d+i*a*f-n*l*f)+v*(+t*l*f-t*c*d+r*o*d-i*o*f+i*c*u-r*l*u)+p*(+t*c*h-t*a*f-r*o*h+n*o*f+r*a*u-n*c*u)+m*(-i*a*u-t*l*h+t*a*d+i*o*h-n*o*d+n*l*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],d=e[10],f=e[11],g=e[12],v=e[13],p=e[14],m=e[15],y=h*p*c-v*d*c+v*l*f-a*p*f-h*l*m+a*d*m,_=g*d*c-u*p*c-g*l*f+o*p*f+u*l*m-o*d*m,x=u*v*c-g*h*c+g*a*f-o*v*f-u*a*m+o*h*m,A=g*h*l-u*v*l-g*a*d+o*v*d+u*a*p-o*h*p,b=t*y+n*_+i*x+r*A;if(b===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const E=1/b;return e[0]=y*E,e[1]=(v*d*r-h*p*r-v*i*f+n*p*f+h*i*m-n*d*m)*E,e[2]=(a*p*r-v*l*r+v*i*c-n*p*c-a*i*m+n*l*m)*E,e[3]=(h*l*r-a*d*r-h*i*c+n*d*c+a*i*f-n*l*f)*E,e[4]=_*E,e[5]=(u*p*r-g*d*r+g*i*f-t*p*f-u*i*m+t*d*m)*E,e[6]=(g*l*r-o*p*r-g*i*c+t*p*c+o*i*m-t*l*m)*E,e[7]=(o*d*r-u*l*r+u*i*c-t*d*c-o*i*f+t*l*f)*E,e[8]=x*E,e[9]=(g*h*r-u*v*r-g*n*f+t*v*f+u*n*m-t*h*m)*E,e[10]=(o*v*r-g*a*r+g*n*c-t*v*c-o*n*m+t*a*m)*E,e[11]=(u*a*r-o*h*r-u*n*c+t*h*c+o*n*f-t*a*f)*E,e[12]=A*E,e[13]=(u*v*i-g*h*i+g*n*d-t*v*d-u*n*p+t*h*p)*E,e[14]=(g*a*i-o*v*i-g*n*l+t*v*l+o*n*p-t*a*p)*E,e[15]=(o*h*i-u*a*i+u*n*l-t*h*l-o*n*d+t*a*d)*E,this}scale(e){const t=this.elements,n=e.x,i=e.y,r=e.z;return t[0]*=n,t[4]*=i,t[8]*=r,t[1]*=n,t[5]*=i,t[9]*=r,t[2]*=n,t[6]*=i,t[10]*=r,t[3]*=n,t[7]*=i,t[11]*=r,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),r=1-n,o=e.x,a=e.y,l=e.z,c=r*o,u=r*a;return this.set(c*o+n,c*a-i*l,c*l+i*a,0,c*a+i*l,u*a+n,u*l-i*o,0,c*l-i*a,u*l+i*o,r*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,r,o){return this.set(1,n,r,0,e,1,o,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,r=t._x,o=t._y,a=t._z,l=t._w,c=r+r,u=o+o,h=a+a,d=r*c,f=r*u,g=r*h,v=o*u,p=o*h,m=a*h,y=l*c,_=l*u,x=l*h,A=n.x,b=n.y,E=n.z;return i[0]=(1-(v+m))*A,i[1]=(f+x)*A,i[2]=(g-_)*A,i[3]=0,i[4]=(f-x)*b,i[5]=(1-(d+m))*b,i[6]=(p+y)*b,i[7]=0,i[8]=(g+_)*E,i[9]=(p-y)*E,i[10]=(1-(d+v))*E,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let r=gs.set(i[0],i[1],i[2]).length();const o=gs.set(i[4],i[5],i[6]).length(),a=gs.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),e.x=i[12],e.y=i[13],e.z=i[14],Sn.copy(this);const c=1/r,u=1/o,h=1/a;return Sn.elements[0]*=c,Sn.elements[1]*=c,Sn.elements[2]*=c,Sn.elements[4]*=u,Sn.elements[5]*=u,Sn.elements[6]*=u,Sn.elements[8]*=h,Sn.elements[9]*=h,Sn.elements[10]*=h,t.setFromRotationMatrix(Sn),n.x=r,n.y=o,n.z=a,this}makePerspective(e,t,n,i,r,o,a=zn){const l=this.elements,c=2*r/(t-e),u=2*r/(n-i),h=(t+e)/(t-e),d=(n+i)/(n-i);let f,g;if(a===zn)f=-(o+r)/(o-r),g=-2*o*r/(o-r);else if(a===Rr)f=-o/(o-r),g=-o*r/(o-r);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+a);return l[0]=c,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=u,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=f,l[14]=g,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,n,i,r,o,a=zn){const l=this.elements,c=1/(t-e),u=1/(n-i),h=1/(o-r),d=(t+e)*c,f=(n+i)*u;let g,v;if(a===zn)g=(o+r)*h,v=-2*h;else if(a===Rr)g=r*h,v=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+a);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*u,l[9]=0,l[13]=-f,l[2]=0,l[6]=0,l[10]=v,l[14]=-g,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const gs=new N,Sn=new Ye,bM=new N(0,0,0),SM=new N(1,1,1),vi=new N,ho=new N,fn=new N,ah=new Ye,lh=new hn;class _n{constructor(e=0,t=0,n=0,i=_n.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,r=i[0],o=i[4],a=i[8],l=i[1],c=i[5],u=i[9],h=i[2],d=i[6],f=i[10];switch(t){case"XYZ":this._y=Math.asin(Ct(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-u,f),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(d,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Ct(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(a,f),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Ct(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-o,c)):(this._y=0,this._z=Math.atan2(l,r));break;case"ZYX":this._y=Math.asin(-Ct(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(d,f),this._z=Math.atan2(l,r)):(this._x=0,this._z=Math.atan2(-o,c));break;case"YZX":this._z=Math.asin(Ct(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-u,c),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,f));break;case"XZY":this._z=Math.asin(-Ct(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(d,c),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-u,f),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+t)}return this._order=t,n===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return ah.makeRotationFromQuaternion(e),this.setFromRotationMatrix(ah,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return lh.setFromEuler(this),this.setFromQuaternion(lh,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}_n.DEFAULT_ORDER="XYZ";class Na{constructor(){this.mask=1}set(e){this.mask=(1<>>0}enable(e){this.mask|=1<1){for(let t=0;t1){for(let n=0;n0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(a=>({boxInitialized:a.boxInitialized,boxMin:a.box.min.toArray(),boxMax:a.box.max.toArray(),sphereInitialized:a.sphereInitialized,sphereRadius:a.sphere.radius,sphereCenter:a.sphere.center.toArray()})),i.maxGeometryCount=this._maxGeometryCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this._colorsTexture!==null&&(i.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function r(a,l){return a[l.uuid]===void 0&&(a[l.uuid]=l.toJSON(e)),l.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(e.geometries,this.geometry);const a=this.geometry.parameters;if(a!==void 0&&a.shapes!==void 0){const l=a.shapes;if(Array.isArray(l))for(let c=0,u=l.length;c0){i.children=[];for(let a=0;a0){i.animations=[];for(let a=0;a0&&(n.geometries=a),l.length>0&&(n.materials=l),c.length>0&&(n.textures=c),u.length>0&&(n.images=u),h.length>0&&(n.shapes=h),d.length>0&&(n.skeletons=d),f.length>0&&(n.animations=f),g.length>0&&(n.nodes=g)}return n.object=i,n;function o(a){const l=[];for(const c in a){const u=a[c];delete u.metadata,l.push(u)}return l}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let n=0;n0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(e,t,n,i,r){wn.subVectors(i,t),Kn.subVectors(n,t),xl.subVectors(e,t);const o=wn.dot(wn),a=wn.dot(Kn),l=wn.dot(xl),c=Kn.dot(Kn),u=Kn.dot(xl),h=o*c-a*a;if(h===0)return r.set(0,0,0),null;const d=1/h,f=(c*l-a*u)*d,g=(o*u-a*l)*d;return r.set(1-f-g,g,f)}static containsPoint(e,t,n,i){return this.getBarycoord(e,t,n,i,jn)===null?!1:jn.x>=0&&jn.y>=0&&jn.x+jn.y<=1}static getInterpolation(e,t,n,i,r,o,a,l){return this.getBarycoord(e,t,n,i,jn)===null?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(r,jn.x),l.addScaledVector(o,jn.y),l.addScaledVector(a,jn.z),l)}static isFrontFacing(e,t,n,i){return wn.subVectors(n,t),Kn.subVectors(e,t),wn.cross(Kn).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return wn.subVectors(this.c,this.b),Kn.subVectors(this.a,this.b),wn.cross(Kn).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return mn.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return mn.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,r){return mn.getInterpolation(e,this.a,this.b,this.c,t,n,i,r)}containsPoint(e){return mn.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return mn.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,r=this.c;let o,a;ys.subVectors(i,n),xs.subVectors(r,n),Ml.subVectors(e,n);const l=ys.dot(Ml),c=xs.dot(Ml);if(l<=0&&c<=0)return t.copy(n);bl.subVectors(e,i);const u=ys.dot(bl),h=xs.dot(bl);if(u>=0&&h<=u)return t.copy(i);const d=l*h-u*c;if(d<=0&&l>=0&&u<=0)return o=l/(l-u),t.copy(n).addScaledVector(ys,o);Sl.subVectors(e,r);const f=ys.dot(Sl),g=xs.dot(Sl);if(g>=0&&f<=g)return t.copy(r);const v=f*c-l*g;if(v<=0&&c>=0&&g<=0)return a=c/(c-g),t.copy(n).addScaledVector(xs,a);const p=u*g-f*h;if(p<=0&&h-u>=0&&f-g>=0)return ph.subVectors(r,i),a=(h-u)/(h-u+(f-g)),t.copy(i).addScaledVector(ph,a);const m=1/(p+v+d);return o=v*m,a=d*m,t.copy(n).addScaledVector(ys,o).addScaledVector(xs,a)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const yp={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_i={h:0,s:0,l:0},po={h:0,s:0,l:0};function wl(s,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?s+(e-s)*6*t:t<1/2?e:t<2/3?s+(e-s)*6*(2/3-t):s}class Pe{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=ln){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,ht.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=ht.workingColorSpace){return this.r=e,this.g=t,this.b=n,ht.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=ht.workingColorSpace){if(e=mu(e,1),t=Ct(t,0,1),n=Ct(n,0,1),t===0)this.r=this.g=this.b=n;else{const r=n<=.5?n*(1+t):n+t-n*t,o=2*n-r;this.r=wl(o,r,e+1/3),this.g=wl(o,r,e),this.b=wl(o,r,e-1/3)}return ht.toWorkingColorSpace(this,i),this}setStyle(e,t=ln){function n(r){r!==void 0&&parseFloat(r)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let r;const o=i[1],a=i[2];switch(o){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,t);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,t);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return n(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,t);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const r=i[1],o=r.length;if(o===3)return this.setRGB(parseInt(r.charAt(0),16)/15,parseInt(r.charAt(1),16)/15,parseInt(r.charAt(2),16)/15,t);if(o===6)return this.setHex(parseInt(r,16),t);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=ln){const n=yp[e.toLowerCase()];return n!==void 0?this.setHex(n,t):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=zs(e.r),this.g=zs(e.g),this.b=zs(e.b),this}copyLinearToSRGB(e){return this.r=hl(e.r),this.g=hl(e.g),this.b=hl(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=ln){return ht.fromWorkingColorSpace(qt.copy(this),e),Math.round(Ct(qt.r*255,0,255))*65536+Math.round(Ct(qt.g*255,0,255))*256+Math.round(Ct(qt.b*255,0,255))}getHexString(e=ln){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=ht.workingColorSpace){ht.fromWorkingColorSpace(qt.copy(this),t);const n=qt.r,i=qt.g,r=qt.b,o=Math.max(n,i,r),a=Math.min(n,i,r);let l,c;const u=(a+o)/2;if(a===o)l=0,c=0;else{const h=o-a;switch(c=u<=.5?h/(o+a):h/(2-o-a),o){case n:l=(i-r)/h+(i0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const n=e[t];if(n===void 0){console.warn(`THREE.Material: parameter '${t}' has value of undefined.`);continue}const i=this[t];if(i===void 0){console.warn(`THREE.Material: '${t}' is not a property of THREE.${this.type}.`);continue}i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};n.uuid=this.uuid,n.type=this.type,this.name!==""&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.shadowSide!==null&&(n.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==es&&(n.blending=this.blending),this.side!==ri&&(n.side=this.side),this.vertexColors===!0&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),this.transparent===!0&&(n.transparent=!0),this.blendSrc!==va&&(n.blendSrc=this.blendSrc),this.blendDst!==_a&&(n.blendDst=this.blendDst),this.blendEquation!==wi&&(n.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(n.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(n.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(n.blendAlpha=this.blendAlpha),this.depthFunc!==_r&&(n.depthFunc=this.depthFunc),this.depthTest===!1&&(n.depthTest=this.depthTest),this.depthWrite===!1&&(n.depthWrite=this.depthWrite),this.colorWrite===!1&&(n.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(n.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==Lc&&(n.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(n.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==qi&&(n.stencilFail=this.stencilFail),this.stencilZFail!==qi&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==qi&&(n.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(n.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(n.rotation=this.rotation),this.polygonOffset===!0&&(n.polygonOffset=!0),this.polygonOffsetFactor!==0&&(n.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(n.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(n.linewidth=this.linewidth),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.dithering===!0&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),this.alphaHash===!0&&(n.alphaHash=!0),this.alphaToCoverage===!0&&(n.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(n.premultipliedAlpha=!0),this.forceSinglePass===!0&&(n.forceSinglePass=!0),this.wireframe===!0&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(n.flatShading=!0),this.visible===!1&&(n.visible=!1),this.toneMapped===!1&&(n.toneMapped=!1),this.fog===!1&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData);function i(r){const o=[];for(const a in r){const l=r[a];delete l.metadata,o.push(l)}return o}if(t){const r=i(e.textures),o=i(e.images);r.length>0&&(n.textures=r),o.length>0&&(n.images=o)}return n}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(t!==null){const i=t.length;n=new Array(i);for(let r=0;r!==i;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class hi extends Kt{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Pe(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new _n,this.combine=Gr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const ti=PM();function PM(){const s=new ArrayBuffer(4),e=new Float32Array(s),t=new Uint32Array(s),n=new Uint32Array(512),i=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(n[l]=0,n[l|256]=32768,i[l]=24,i[l|256]=24):c<-14?(n[l]=1024>>-c-14,n[l|256]=1024>>-c-14|32768,i[l]=-c-1,i[l|256]=-c-1):c<=15?(n[l]=c+15<<10,n[l|256]=c+15<<10|32768,i[l]=13,i[l|256]=13):c<128?(n[l]=31744,n[l|256]=64512,i[l]=24,i[l|256]=24):(n[l]=31744,n[l|256]=64512,i[l]=13,i[l|256]=13)}const r=new Uint32Array(2048),o=new Uint32Array(64),a=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;!(c&8388608);)c<<=1,u-=8388608;c&=-8388609,u+=947912704,r[l]=c|u}for(let l=1024;l<2048;++l)r[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)o[l]=l<<23;o[31]=1199570944,o[32]=2147483648;for(let l=33;l<63;++l)o[l]=2147483648+(l-32<<23);o[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(a[l]=1024);return{floatView:e,uint32View:t,baseTable:n,shiftTable:i,mantissaTable:r,exponentTable:o,offsetTable:a}}function an(s){Math.abs(s)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),s=Ct(s,-65504,65504),ti.floatView[0]=s;const e=ti.uint32View[0],t=e>>23&511;return ti.baseTable[t]+((e&8388607)>>ti.shiftTable[t])}function cr(s){const e=s>>10;return ti.uint32View[0]=ti.mantissaTable[ti.offsetTable[e]+(s&1023)]+ti.exponentTable[e],ti.floatView[0]}const RM={toHalfFloat:an,fromHalfFloat:cr},Dt=new N,mo=new se;class pt{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=n,this.usage=Pr,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=gn,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return gu("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,r=this.itemSize;i0&&(e.userData=this.userData),this.parameters!==void 0){const l=this.parameters;for(const c in l)l[c]!==void 0&&(e[c]=l[c]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const l in n){const c=n[l];e.data.attributes[l]=c.toJSON(e.data)}const i={};let r=!1;for(const l in this.morphAttributes){const c=this.morphAttributes[l],u=[];for(let h=0,d=c.length;h0&&(i[l]=u,r=!0)}r&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const o=this.groups;o.length>0&&(e.data.groups=JSON.parse(JSON.stringify(o)));const a=this.boundingSphere;return a!==null&&(e.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;n!==null&&this.setIndex(n.clone(t));const i=e.attributes;for(const c in i){const u=i[c];this.setAttribute(c,u.clone(t))}const r=e.morphAttributes;for(const c in r){const u=[],h=r[c];for(let d=0,f=h.length;d0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;r(e.far-e.near)**2))&&(mh.copy(r).invert(),Fi.copy(e.ray).applyMatrix4(mh),!(n.boundingBox!==null&&Fi.intersectsBox(n.boundingBox)===!1)&&this._computeIntersections(e,t,Fi)))}_computeIntersections(e,t,n){let i;const r=this.geometry,o=this.material,a=r.index,l=r.attributes.position,c=r.attributes.uv,u=r.attributes.uv1,h=r.attributes.normal,d=r.groups,f=r.drawRange;if(a!==null)if(Array.isArray(o))for(let g=0,v=d.length;gt.far?null:{distance:c,point:bo.clone(),object:s}}function So(s,e,t,n,i,r,o,a,l,c){s.getVertexPosition(a,bs),s.getVertexPosition(l,Ss),s.getVertexPosition(c,ws);const u=kM(s,e,t,n,bs,Ss,ws,Mo);if(u){i&&(_o.fromBufferAttribute(i,a),yo.fromBufferAttribute(i,l),xo.fromBufferAttribute(i,c),u.uv=mn.getInterpolation(Mo,bs,Ss,ws,_o,yo,xo,new se)),r&&(_o.fromBufferAttribute(r,a),yo.fromBufferAttribute(r,l),xo.fromBufferAttribute(r,c),u.uv1=mn.getInterpolation(Mo,bs,Ss,ws,_o,yo,xo,new se)),o&&(vh.fromBufferAttribute(o,a),_h.fromBufferAttribute(o,l),yh.fromBufferAttribute(o,c),u.normal=mn.getInterpolation(Mo,bs,Ss,ws,vh,_h,yh,new N),u.normal.dot(n.direction)>0&&u.normal.multiplyScalar(-1));const h={a,b:l,c,normal:new N,materialIndex:0};mn.getNormal(bs,Ss,ws,h.normal),u.face=h}return u}class cs extends it{constructor(e=1,t=1,n=1,i=1,r=1,o=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};const a=this;i=Math.floor(i),r=Math.floor(r),o=Math.floor(o);const l=[],c=[],u=[],h=[];let d=0,f=0;g("z","y","x",-1,-1,n,t,e,o,r,0),g("z","y","x",1,-1,n,t,-e,o,r,1),g("x","z","y",1,1,e,n,t,i,o,2),g("x","z","y",1,-1,e,n,-t,i,o,3),g("x","y","z",1,-1,e,t,n,i,r,4),g("x","y","z",-1,-1,e,t,-n,i,r,5),this.setIndex(l),this.setAttribute("position",new Ne(c,3)),this.setAttribute("normal",new Ne(u,3)),this.setAttribute("uv",new Ne(h,2));function g(v,p,m,y,_,x,A,b,E,I,w){const M=x/E,F=A/I,z=x/2,G=A/2,q=b/2,ae=E+1,j=I+1;let oe=0,B=0;const Me=new N;for(let be=0;be0?1:-1,u.push(Me.x,Me.y,Me.z),h.push(ge/E),h.push(1-be/I),oe+=1}}for(let be=0;be0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const i in this.extensions)this.extensions[i]===!0&&(n[i]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Qr extends ut{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ze,this.projectionMatrix=new Ze,this.projectionMatrixInverse=new Ze,this.coordinateSystem=Hn}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const Si=new N,Eh=new te,Th=new te;class kt extends Qr{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Ys*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(ls*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Ys*2*Math.atan(Math.tan(ls*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){Si.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(Si.x,Si.y).multiplyScalar(-e/Si.z),Si.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Si.x,Si.y).multiplyScalar(-e/Si.z)}getViewSize(e,t){return this.getViewBounds(e,Eh,Th),t.subVectors(Th,Eh)}setViewOffset(e,t,n,i,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(ls*.5*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,c=o.fullHeight;r+=o.offsetX*i/l,t-=o.offsetY*n/c,i*=o.width/l,n*=o.height/c}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Ls=-90,Ns=1;class Rp extends ut{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new kt(Ls,Ns,e,t);i.layers=this.layers,this.add(i);const r=new kt(Ls,Ns,e,t);r.layers=this.layers,this.add(r);const o=new kt(Ls,Ns,e,t);o.layers=this.layers,this.add(o);const a=new kt(Ls,Ns,e,t);a.layers=this.layers,this.add(a);const l=new kt(Ls,Ns,e,t);l.layers=this.layers,this.add(l);const c=new kt(Ls,Ns,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,r,o,a,l]=t;for(const c of t)this.remove(c);if(e===Hn)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Or)n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const c of t)this.add(c),c.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,l,c,u]=this.children,h=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),g=e.xr.enabled;e.xr.enabled=!1;const _=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,r),e.setRenderTarget(n,1,i),e.render(t,o),e.setRenderTarget(n,2,i),e.render(t,a),e.setRenderTarget(n,3,i),e.render(t,l),e.setRenderTarget(n,4,i),e.render(t,c),n.texture.generateMipmaps=_,e.setRenderTarget(n,5,i),e.render(t,u),e.setRenderTarget(h,d,f),e.xr.enabled=g,n.texture.needsPMREMUpdate=!0}}class eo extends It{constructor(e,t,n,i,r,o,a,l,c,u){e=e!==void 0?e:[],t=t!==void 0?t:ui,super(e,t,n,i,r,o,a,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Ip extends Un{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new eo(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Bt}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:` +}`;class Ln extends Kt{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=zM,this.fragmentShader=VM,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Hs(e.uniforms),this.uniformsGroups=BM(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const o=this.uniforms[i].value;o&&o.isTexture?t.uniforms[i]={type:"t",value:o.toJSON(e).uuid}:o&&o.isColor?t.uniforms[i]={type:"c",value:o.getHex()}:o&&o.isVector2?t.uniforms[i]={type:"v2",value:o.toArray()}:o&&o.isVector3?t.uniforms[i]={type:"v3",value:o.toArray()}:o&&o.isVector4?t.uniforms[i]={type:"v4",value:o.toArray()}:o&&o.isMatrix3?t.uniforms[i]={type:"m3",value:o.toArray()}:o&&o.isMatrix4?t.uniforms[i]={type:"m4",value:o.toArray()}:t.uniforms[i]={value:o}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const i in this.extensions)this.extensions[i]===!0&&(n[i]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Xr extends ct{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Ye,this.projectionMatrix=new Ye,this.projectionMatrixInverse=new Ye,this.coordinateSystem=zn}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const yi=new N,xh=new se,Mh=new se;class Ut extends Xr{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=Vs*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(ns*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return Vs*2*Math.atan(Math.tan(ns*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){yi.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(yi.x,yi.y).multiplyScalar(-e/yi.z),yi.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(yi.x,yi.y).multiplyScalar(-e/yi.z)}getViewSize(e,t){return this.getViewBounds(e,xh,Mh),t.subVectors(Mh,xh)}setViewOffset(e,t,n,i,r,o){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(ns*.5*this.fov)/this.zoom,n=2*t,i=this.aspect*n,r=-.5*i;const o=this.view;if(this.view!==null&&this.view.enabled){const l=o.fullWidth,c=o.fullHeight;r+=o.offsetX*i/l,t-=o.offsetY*n/c,i*=o.width/l,n*=o.height/c}const a=this.filmOffset;a!==0&&(r+=e*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const As=-90,Ts=1;class bp extends ct{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Ut(As,Ts,e,t);i.layers=this.layers,this.add(i);const r=new Ut(As,Ts,e,t);r.layers=this.layers,this.add(r);const o=new Ut(As,Ts,e,t);o.layers=this.layers,this.add(o);const a=new Ut(As,Ts,e,t);a.layers=this.layers,this.add(a);const l=new Ut(As,Ts,e,t);l.layers=this.layers,this.add(l);const c=new Ut(As,Ts,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,r,o,a,l]=t;for(const c of t)this.remove(c);if(e===zn)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),r.up.set(0,0,-1),r.lookAt(0,1,0),o.up.set(0,0,1),o.lookAt(0,-1,0),a.up.set(0,1,0),a.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else if(e===Rr)n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),r.up.set(0,0,1),r.lookAt(0,1,0),o.up.set(0,0,-1),o.lookAt(0,-1,0),a.up.set(0,-1,0),a.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const c of t)this.add(c),c.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[r,o,a,l,c,u]=this.children,h=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),g=e.xr.enabled;e.xr.enabled=!1;const v=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,r),e.setRenderTarget(n,1,i),e.render(t,o),e.setRenderTarget(n,2,i),e.render(t,a),e.setRenderTarget(n,3,i),e.render(t,l),e.setRenderTarget(n,4,i),e.render(t,c),n.texture.generateMipmaps=v,e.setRenderTarget(n,5,i),e.render(t,u),e.setRenderTarget(h,d,f),e.xr.enabled=g,n.texture.needsPMREMUpdate=!0}}class qr extends Pt{constructor(e,t,n,i,r,o,a,l,c,u){e=e!==void 0?e:[],t=t!==void 0?t:oi,super(e,t,n,i,r,o,a,l,c,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Sp extends In{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new qr(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:Ot}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -42,9 +42,9 @@ import{d as ke,o as Y,c as ge,r as pe,n as yt,a as qt,t as pt,b as Xe,w as xe,e gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},i=new gs(5,5,5),r=new On({name:"CubemapFromEquirect",uniforms:Zs(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:an,blending:ai});r.uniforms.tEquirect.value=t;const o=new Nt(i,r),a=t.minFilter;return t.minFilter===Vn&&(t.minFilter=Bt),new Rp(1,10,this).update(e,o),t.minFilter=a,o.geometry.dispose(),o.material.dispose(),this}clear(e,t,n,i){const r=e.getRenderTarget();for(let o=0;o<6;o++)e.setRenderTarget(this,o),e.clear(t,n,i);e.setRenderTarget(r)}}const Nl=new N,YM=new N,ZM=new je;class ii{constructor(e=new N(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const i=Nl.subVectors(n,t).cross(YM.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(Nl),i=this.normal.dot(n);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const r=-(e.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||ZM.getNormalMatrix(e),i=this.coplanarPoint(Nl).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Hi=new jt,Ro=new N;class to{constructor(e=new ii,t=new ii,n=new ii,i=new ii,r=new ii,o=new ii){this.planes=[e,t,n,i,r,o]}set(e,t,n,i,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=Hn){const n=this.planes,i=e.elements,r=i[0],o=i[1],a=i[2],l=i[3],c=i[4],u=i[5],h=i[6],d=i[7],f=i[8],g=i[9],_=i[10],p=i[11],m=i[12],y=i[13],v=i[14],x=i[15];if(n[0].setComponents(l-r,d-c,p-f,x-m).normalize(),n[1].setComponents(l+r,d+c,p+f,x+m).normalize(),n[2].setComponents(l+o,d+u,p+g,x+y).normalize(),n[3].setComponents(l-o,d-u,p-g,x-y).normalize(),n[4].setComponents(l-a,d-h,p-_,x-v).normalize(),t===Hn)n[5].setComponents(l+a,d+h,p+_,x+v).normalize();else if(t===Or)n[5].setComponents(a,h,_,v).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Hi.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Hi.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Hi)}intersectsSprite(e){return Hi.center.set(0,0,0),Hi.radius=.7071067811865476,Hi.applyMatrix4(e.matrixWorld),this.intersectsSphere(Hi)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(n)0?e.max.x:e.min.x,Ro.y=i.normal.y>0?e.max.y:e.min.y,Ro.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(Ro)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function Lp(){let s=null,e=!1,t=null,n=null;function i(r,o){t(r,o),n=s.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(n=s.requestAnimationFrame(i),e=!0)},stop:function(){s.cancelAnimationFrame(n),e=!1},setAnimationLoop:function(r){t=r},setContext:function(r){s=r}}}function KM(s){const e=new WeakMap;function t(a,l){const c=a.array,u=a.usage,h=c.byteLength,d=s.createBuffer();s.bindBuffer(l,d),s.bufferData(l,c,u),a.onUploadCallback();let f;if(c instanceof Float32Array)f=s.FLOAT;else if(c instanceof Uint16Array)a.isFloat16BufferAttribute?f=s.HALF_FLOAT:f=s.UNSIGNED_SHORT;else if(c instanceof Int16Array)f=s.SHORT;else if(c instanceof Uint32Array)f=s.UNSIGNED_INT;else if(c instanceof Int32Array)f=s.INT;else if(c instanceof Int8Array)f=s.BYTE;else if(c instanceof Uint8Array)f=s.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)f=s.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:d,type:f,bytesPerElement:c.BYTES_PER_ELEMENT,version:a.version,size:h}}function n(a,l,c){const u=l.array,h=l._updateRange,d=l.updateRanges;if(s.bindBuffer(c,a),h.count===-1&&d.length===0&&s.bufferSubData(c,0,u),d.length!==0){for(let f=0,g=d.length;f1?null:t.copy(e.start).addScaledVector(n,r)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||GM.getNormalMatrix(e),i=this.coplanarPoint(El).applyMatrix4(e),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const ki=new Zt,wo=new N;class Yr{constructor(e=new Si,t=new Si,n=new Si,i=new Si,r=new Si,o=new Si){this.planes=[e,t,n,i,r,o]}set(e,t,n,i,r,o){const a=this.planes;return a[0].copy(e),a[1].copy(t),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=zn){const n=this.planes,i=e.elements,r=i[0],o=i[1],a=i[2],l=i[3],c=i[4],u=i[5],h=i[6],d=i[7],f=i[8],g=i[9],v=i[10],p=i[11],m=i[12],y=i[13],_=i[14],x=i[15];if(n[0].setComponents(l-r,d-c,p-f,x-m).normalize(),n[1].setComponents(l+r,d+c,p+f,x+m).normalize(),n[2].setComponents(l+o,d+u,p+g,x+y).normalize(),n[3].setComponents(l-o,d-u,p-g,x-y).normalize(),n[4].setComponents(l-a,d-h,p-v,x-_).normalize(),t===zn)n[5].setComponents(l+a,d+h,p+v,x+_).normalize();else if(t===Rr)n[5].setComponents(a,h,v,_).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),ki.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),ki.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(ki)}intersectsSprite(e){return ki.center.set(0,0,0),ki.radius=.7071067811865476,ki.applyMatrix4(e.matrixWorld),this.intersectsSphere(ki)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let r=0;r<6;r++)if(t[r].distanceToPoint(n)0?e.max.x:e.min.x,wo.y=i.normal.y>0?e.max.y:e.min.y,wo.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(wo)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function wp(){let s=null,e=!1,t=null,n=null;function i(r,o){t(r,o),n=s.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(n=s.requestAnimationFrame(i),e=!0)},stop:function(){s.cancelAnimationFrame(n),e=!1},setAnimationLoop:function(r){t=r},setContext:function(r){s=r}}}function WM(s){const e=new WeakMap;function t(a,l){const c=a.array,u=a.usage,h=c.byteLength,d=s.createBuffer();s.bindBuffer(l,d),s.bufferData(l,c,u),a.onUploadCallback();let f;if(c instanceof Float32Array)f=s.FLOAT;else if(c instanceof Uint16Array)a.isFloat16BufferAttribute?f=s.HALF_FLOAT:f=s.UNSIGNED_SHORT;else if(c instanceof Int16Array)f=s.SHORT;else if(c instanceof Uint32Array)f=s.UNSIGNED_INT;else if(c instanceof Int32Array)f=s.INT;else if(c instanceof Int8Array)f=s.BYTE;else if(c instanceof Uint8Array)f=s.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)f=s.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:d,type:f,bytesPerElement:c.BYTES_PER_ELEMENT,version:a.version,size:h}}function n(a,l,c){const u=l.array,h=l._updateRange,d=l.updateRanges;if(s.bindBuffer(c,a),h.count===-1&&d.length===0&&s.bufferSubData(c,0,u),d.length!==0){for(let f=0,g=d.length;f 0 +#endif`,ob=`#if NUM_CLIPPING_PLANES > 0 vec4 plane; #ifdef ALPHA_TO_COVERAGE float distanceToPlane, distanceGradient; @@ -284,26 +284,26 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve if ( clipped ) discard; #endif #endif -#endif`,fb=`#if NUM_CLIPPING_PLANES > 0 +#endif`,ab=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ]; -#endif`,pb=`#if NUM_CLIPPING_PLANES > 0 +#endif`,lb=`#if NUM_CLIPPING_PLANES > 0 varying vec3 vClipPosition; -#endif`,mb=`#if NUM_CLIPPING_PLANES > 0 +#endif`,cb=`#if NUM_CLIPPING_PLANES > 0 vClipPosition = - mvPosition.xyz; -#endif`,gb=`#if defined( USE_COLOR_ALPHA ) +#endif`,ub=`#if defined( USE_COLOR_ALPHA ) diffuseColor *= vColor; #elif defined( USE_COLOR ) diffuseColor.rgb *= vColor; -#endif`,_b=`#if defined( USE_COLOR_ALPHA ) +#endif`,hb=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) varying vec3 vColor; -#endif`,vb=`#if defined( USE_COLOR_ALPHA ) +#endif`,db=`#if defined( USE_COLOR_ALPHA ) varying vec4 vColor; #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) varying vec3 vColor; -#endif`,yb=`#if defined( USE_COLOR_ALPHA ) +#endif`,fb=`#if defined( USE_COLOR_ALPHA ) vColor = vec4( 1.0 ); #elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR ) vColor = vec3( 1.0 ); @@ -317,7 +317,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve #ifdef USE_BATCHING_COLOR vec3 batchingColor = getBatchingColor( batchId ); vColor.xyz *= batchingColor.xyz; -#endif`,xb=`#define PI 3.141592653589793 +#endif`,pb=`#define PI 3.141592653589793 #define PI2 6.283185307179586 #define PI_HALF 1.5707963267948966 #define RECIPROCAL_PI 0.3183098861837907 @@ -395,7 +395,7 @@ vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) { float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH ); return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel ); -} // validated`,Mb=`#ifdef ENVMAP_TYPE_CUBE_UV +} // validated`,mb=`#ifdef ENVMAP_TYPE_CUBE_UV #define cubeUV_minMipLevel 4.0 #define cubeUV_minTileSize 16.0 float getFace( vec3 direction ) { @@ -488,7 +488,7 @@ float F_Schlick( const in float f0, const in float f90, const in float dotVH ) { return vec4( mix( color0, color1, mipF ), 1.0 ); } } -#endif`,bb=`vec3 transformedNormal = objectNormal; +#endif`,gb=`vec3 transformedNormal = objectNormal; #ifdef USE_TANGENT vec3 transformedTangent = objectTangent; #endif @@ -517,18 +517,18 @@ transformedNormal = normalMatrix * transformedNormal; #ifdef FLIP_SIDED transformedTangent = - transformedTangent; #endif -#endif`,Sb=`#ifdef USE_DISPLACEMENTMAP +#endif`,vb=`#ifdef USE_DISPLACEMENTMAP uniform sampler2D displacementMap; uniform float displacementScale; uniform float displacementBias; -#endif`,wb=`#ifdef USE_DISPLACEMENTMAP +#endif`,_b=`#ifdef USE_DISPLACEMENTMAP transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias ); -#endif`,Ab=`#ifdef USE_EMISSIVEMAP +#endif`,yb=`#ifdef USE_EMISSIVEMAP vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv ); totalEmissiveRadiance *= emissiveColor.rgb; -#endif`,Eb=`#ifdef USE_EMISSIVEMAP +#endif`,xb=`#ifdef USE_EMISSIVEMAP uniform sampler2D emissiveMap; -#endif`,Tb="gl_FragColor = linearToOutputTexel( gl_FragColor );",Cb=` +#endif`,Mb="gl_FragColor = linearToOutputTexel( gl_FragColor );",bb=` const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3( vec3( 0.8224621, 0.177538, 0.0 ), vec3( 0.0331941, 0.9668058, 0.0 ), @@ -556,7 +556,7 @@ vec4 LinearToLinear( in vec4 value ) { } vec4 LinearTosRGB( in vec4 value ) { return sRGBTransferOETF( value ); -}`,Pb=`#ifdef USE_ENVMAP +}`,Sb=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vec3 cameraToFrag; if ( isOrthographic ) { @@ -585,7 +585,7 @@ vec4 LinearTosRGB( in vec4 value ) { #elif defined( ENVMAP_BLENDING_ADD ) outgoingLight += envColor.xyz * specularStrength * reflectivity; #endif -#endif`,Rb=`#ifdef USE_ENVMAP +#endif`,wb=`#ifdef USE_ENVMAP uniform float envMapIntensity; uniform float flipEnvMap; uniform mat3 envMapRotation; @@ -595,7 +595,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform sampler2D envMap; #endif -#endif`,Ib=`#ifdef USE_ENVMAP +#endif`,Ab=`#ifdef USE_ENVMAP uniform float reflectivity; #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS @@ -606,7 +606,7 @@ vec4 LinearTosRGB( in vec4 value ) { #else varying vec3 vReflect; #endif -#endif`,Lb=`#ifdef USE_ENVMAP +#endif`,Tb=`#ifdef USE_ENVMAP #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT ) #define ENV_WORLDPOS #endif @@ -617,7 +617,7 @@ vec4 LinearTosRGB( in vec4 value ) { varying vec3 vReflect; uniform float refractionRatio; #endif -#endif`,Nb=`#ifdef USE_ENVMAP +#endif`,Eb=`#ifdef USE_ENVMAP #ifdef ENV_WORLDPOS vWorldPosition = worldPosition.xyz; #else @@ -634,18 +634,18 @@ vec4 LinearTosRGB( in vec4 value ) { vReflect = refract( cameraToVertex, worldNormal, refractionRatio ); #endif #endif -#endif`,Db=`#ifdef USE_FOG +#endif`,Cb=`#ifdef USE_FOG vFogDepth = - mvPosition.z; -#endif`,Ub=`#ifdef USE_FOG +#endif`,Pb=`#ifdef USE_FOG varying float vFogDepth; -#endif`,Ob=`#ifdef USE_FOG +#endif`,Rb=`#ifdef USE_FOG #ifdef FOG_EXP2 float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth ); #else float fogFactor = smoothstep( fogNear, fogFar, vFogDepth ); #endif gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor ); -#endif`,Fb=`#ifdef USE_FOG +#endif`,Ib=`#ifdef USE_FOG uniform vec3 fogColor; varying float vFogDepth; #ifdef FOG_EXP2 @@ -654,7 +654,7 @@ vec4 LinearTosRGB( in vec4 value ) { uniform float fogNear; uniform float fogFar; #endif -#endif`,kb=`#ifdef USE_GRADIENTMAP +#endif`,Lb=`#ifdef USE_GRADIENTMAP uniform sampler2D gradientMap; #endif vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { @@ -666,12 +666,12 @@ vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) { vec2 fw = fwidth( coord ) * 0.5; return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) ); #endif -}`,Bb=`#ifdef USE_LIGHTMAP +}`,Nb=`#ifdef USE_LIGHTMAP uniform sampler2D lightMap; uniform float lightMapIntensity; -#endif`,zb=`LambertMaterial material; +#endif`,Db=`LambertMaterial material; material.diffuseColor = diffuseColor.rgb; -material.specularStrength = specularStrength;`,Vb=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,Ub=`varying vec3 vViewPosition; struct LambertMaterial { vec3 diffuseColor; float specularStrength; @@ -685,7 +685,7 @@ void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometr reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Lambert -#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Hb=`uniform bool receiveShadow; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert`,Ob=`uniform bool receiveShadow; uniform vec3 ambientLightColor; #if defined( USE_LIGHT_PROBES ) uniform vec3 lightProbe[ 9 ]; @@ -801,7 +801,7 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight ); return irradiance; } -#endif`,Gb=`#ifdef USE_ENVMAP +#endif`,Fb=`#ifdef USE_ENVMAP vec3 getIBLIrradiance( const in vec3 normal ) { #ifdef ENVMAP_TYPE_CUBE_UV vec3 worldNormal = inverseTransformDirection( normal, viewMatrix ); @@ -834,8 +834,8 @@ float getSpotAttenuation( const in float coneCosine, const in float penumbraCosi #endif } #endif -#endif`,Wb=`ToonMaterial material; -material.diffuseColor = diffuseColor.rgb;`,$b=`varying vec3 vViewPosition; +#endif`,kb=`ToonMaterial material; +material.diffuseColor = diffuseColor.rgb;`,Bb=`varying vec3 vViewPosition; struct ToonMaterial { vec3 diffuseColor; }; @@ -847,11 +847,11 @@ void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPo reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_Toon -#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,Xb=`BlinnPhongMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon`,zb=`BlinnPhongMaterial material; material.diffuseColor = diffuseColor.rgb; material.specularColor = specular; material.specularShininess = shininess; -material.specularStrength = specularStrength;`,qb=`varying vec3 vViewPosition; +material.specularStrength = specularStrength;`,Vb=`varying vec3 vViewPosition; struct BlinnPhongMaterial { vec3 diffuseColor; vec3 specularColor; @@ -868,7 +868,7 @@ void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geom reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor ); } #define RE_Direct RE_Direct_BlinnPhong -#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,Yb=`PhysicalMaterial material; +#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong`,Hb=`PhysicalMaterial material; material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor ); vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) ); float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z ); @@ -954,7 +954,7 @@ material.roughness = min( material.roughness, 1.0 ); material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) ); material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y; material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y; -#endif`,Zb=`struct PhysicalMaterial { +#endif`,Gb=`struct PhysicalMaterial { vec3 diffuseColor; float roughness; vec3 specularColor; @@ -1255,7 +1255,7 @@ void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradia #define RE_IndirectSpecular RE_IndirectSpecular_Physical float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) { return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion ); -}`,Kb=` +}`,Wb=` vec3 geometryPosition = - vViewPosition; vec3 geometryNormal = normal; vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition ); @@ -1370,7 +1370,7 @@ IncidentLight directLight; #if defined( RE_IndirectSpecular ) vec3 radiance = vec3( 0.0 ); vec3 clearcoatRadiance = vec3( 0.0 ); -#endif`,Jb=`#if defined( RE_IndirectDiffuse ) +#endif`,$b=`#if defined( RE_IndirectDiffuse ) #ifdef USE_LIGHTMAP vec4 lightMapTexel = texture2D( lightMap, vLightMapUv ); vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity; @@ -1389,33 +1389,33 @@ IncidentLight directLight; #ifdef USE_CLEARCOAT clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness ); #endif -#endif`,jb=`#if defined( RE_IndirectDiffuse ) +#endif`,Xb=`#if defined( RE_IndirectDiffuse ) RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); #endif #if defined( RE_IndirectSpecular ) RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); -#endif`,Qb=`#if defined( USE_LOGDEPTHBUF ) +#endif`,qb=`#if defined( USE_LOGDEPTHBUF ) gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; -#endif`,eS=`#if defined( USE_LOGDEPTHBUF ) +#endif`,Yb=`#if defined( USE_LOGDEPTHBUF ) uniform float logDepthBufFC; varying float vFragDepth; varying float vIsPerspective; -#endif`,tS=`#ifdef USE_LOGDEPTHBUF +#endif`,Zb=`#ifdef USE_LOGDEPTHBUF varying float vFragDepth; varying float vIsPerspective; -#endif`,nS=`#ifdef USE_LOGDEPTHBUF +#endif`,Jb=`#ifdef USE_LOGDEPTHBUF vFragDepth = 1.0 + gl_Position.w; vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) ); -#endif`,iS=`#ifdef USE_MAP +#endif`,Kb=`#ifdef USE_MAP vec4 sampledDiffuseColor = texture2D( map, vMapUv ); #ifdef DECODE_VIDEO_TEXTURE sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w ); #endif diffuseColor *= sampledDiffuseColor; -#endif`,sS=`#ifdef USE_MAP +#endif`,jb=`#ifdef USE_MAP uniform sampler2D map; -#endif`,rS=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) +#endif`,Qb=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP ) #if defined( USE_POINTS_UV ) vec2 uv = vUv; #else @@ -1427,7 +1427,7 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP diffuseColor.a *= texture2D( alphaMap, uv ).g; -#endif`,oS=`#if defined( USE_POINTS_UV ) +#endif`,eS=`#if defined( USE_POINTS_UV ) varying vec2 vUv; #else #if defined( USE_MAP ) || defined( USE_ALPHAMAP ) @@ -1439,19 +1439,19 @@ IncidentLight directLight; #endif #ifdef USE_ALPHAMAP uniform sampler2D alphaMap; -#endif`,aS=`float metalnessFactor = metalness; +#endif`,tS=`float metalnessFactor = metalness; #ifdef USE_METALNESSMAP vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv ); metalnessFactor *= texelMetalness.b; -#endif`,lS=`#ifdef USE_METALNESSMAP +#endif`,nS=`#ifdef USE_METALNESSMAP uniform sampler2D metalnessMap; -#endif`,cS=`#ifdef USE_INSTANCING_MORPH +#endif`,iS=`#ifdef USE_INSTANCING_MORPH float morphTargetInfluences[ MORPHTARGETS_COUNT ]; float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r; } -#endif`,uS=`#if defined( USE_MORPHCOLORS ) +#endif`,sS=`#if defined( USE_MORPHCOLORS ) vColor *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { #if defined( USE_COLOR_ALPHA ) @@ -1460,12 +1460,12 @@ IncidentLight directLight; if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ]; #endif } -#endif`,hS=`#ifdef USE_MORPHNORMALS +#endif`,rS=`#ifdef USE_MORPHNORMALS objectNormal *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ]; } -#endif`,dS=`#ifdef USE_MORPHTARGETS +#endif`,oS=`#ifdef USE_MORPHTARGETS #ifndef USE_INSTANCING_MORPH uniform float morphTargetBaseInfluence; uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ]; @@ -1479,12 +1479,12 @@ IncidentLight directLight; ivec3 morphUV = ivec3( x, y, morphTargetIndex ); return texelFetch( morphTargetsTexture, morphUV, 0 ); } -#endif`,fS=`#ifdef USE_MORPHTARGETS +#endif`,aS=`#ifdef USE_MORPHTARGETS transformed *= morphTargetBaseInfluence; for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) { if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ]; } -#endif`,pS=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; +#endif`,lS=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0; #ifdef FLAT_SHADED vec3 fdx = dFdx( vViewPosition ); vec3 fdy = dFdy( vViewPosition ); @@ -1525,7 +1525,7 @@ IncidentLight directLight; tbn2[1] *= faceDirection; #endif #endif -vec3 nonPerturbedNormal = normal;`,mS=`#ifdef USE_NORMALMAP_OBJECTSPACE +vec3 nonPerturbedNormal = normal;`,cS=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0; #ifdef FLIP_SIDED normal = - normal; @@ -1540,25 +1540,25 @@ vec3 nonPerturbedNormal = normal;`,mS=`#ifdef USE_NORMALMAP_OBJECTSPACE normal = normalize( tbn * mapN ); #elif defined( USE_BUMPMAP ) normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection ); -#endif`,gS=`#ifndef FLAT_SHADED +#endif`,uS=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,_S=`#ifndef FLAT_SHADED +#endif`,hS=`#ifndef FLAT_SHADED varying vec3 vNormal; #ifdef USE_TANGENT varying vec3 vTangent; varying vec3 vBitangent; #endif -#endif`,vS=`#ifndef FLAT_SHADED +#endif`,dS=`#ifndef FLAT_SHADED vNormal = normalize( transformedNormal ); #ifdef USE_TANGENT vTangent = normalize( transformedTangent ); vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w ); #endif -#endif`,yS=`#ifdef USE_NORMALMAP +#endif`,fS=`#ifdef USE_NORMALMAP uniform sampler2D normalMap; uniform vec2 normalScale; #endif @@ -1580,13 +1580,13 @@ vec3 nonPerturbedNormal = normal;`,mS=`#ifdef USE_NORMALMAP_OBJECTSPACE float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det ); return mat3( T * scale, B * scale, N ); } -#endif`,xS=`#ifdef USE_CLEARCOAT +#endif`,pS=`#ifdef USE_CLEARCOAT vec3 clearcoatNormal = nonPerturbedNormal; -#endif`,MS=`#ifdef USE_CLEARCOAT_NORMALMAP +#endif`,mS=`#ifdef USE_CLEARCOAT_NORMALMAP vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0; clearcoatMapN.xy *= clearcoatNormalScale; clearcoatNormal = normalize( tbn2 * clearcoatMapN ); -#endif`,bS=`#ifdef USE_CLEARCOATMAP +#endif`,gS=`#ifdef USE_CLEARCOATMAP uniform sampler2D clearcoatMap; #endif #ifdef USE_CLEARCOAT_NORMALMAP @@ -1595,18 +1595,18 @@ vec3 nonPerturbedNormal = normal;`,mS=`#ifdef USE_NORMALMAP_OBJECTSPACE #endif #ifdef USE_CLEARCOAT_ROUGHNESSMAP uniform sampler2D clearcoatRoughnessMap; -#endif`,SS=`#ifdef USE_IRIDESCENCEMAP +#endif`,vS=`#ifdef USE_IRIDESCENCEMAP uniform sampler2D iridescenceMap; #endif #ifdef USE_IRIDESCENCE_THICKNESSMAP uniform sampler2D iridescenceThicknessMap; -#endif`,wS=`#ifdef OPAQUE +#endif`,_S=`#ifdef OPAQUE diffuseColor.a = 1.0; #endif #ifdef USE_TRANSMISSION diffuseColor.a *= material.transmissionAlpha; #endif -gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,AS=`vec3 packNormalToRGB( const in vec3 normal ) { +gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,yS=`vec3 packNormalToRGB( const in vec3 normal ) { return normalize( normal ) * 0.5 + 0.5; } vec3 unpackRGBToNormal( const in vec3 rgb ) { @@ -1647,9 +1647,9 @@ float viewZToPerspectiveDepth( const in float viewZ, const in float near, const } float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) { return ( near * far ) / ( ( far - near ) * depth - far ); -}`,ES=`#ifdef PREMULTIPLIED_ALPHA +}`,xS=`#ifdef PREMULTIPLIED_ALPHA gl_FragColor.rgb *= gl_FragColor.a; -#endif`,TS=`vec4 mvPosition = vec4( transformed, 1.0 ); +#endif`,MS=`vec4 mvPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING mvPosition = batchingMatrix * mvPosition; #endif @@ -1657,22 +1657,22 @@ float perspectiveDepthToViewZ( const in float depth, const in float near, const mvPosition = instanceMatrix * mvPosition; #endif mvPosition = modelViewMatrix * mvPosition; -gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING +gl_Position = projectionMatrix * mvPosition;`,bS=`#ifdef DITHERING gl_FragColor.rgb = dithering( gl_FragColor.rgb ); -#endif`,PS=`#ifdef DITHERING +#endif`,SS=`#ifdef DITHERING vec3 dithering( vec3 color ) { float grid_position = rand( gl_FragCoord.xy ); vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 ); dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position ); return color + dither_shift_RGB; } -#endif`,RS=`float roughnessFactor = roughness; +#endif`,wS=`float roughnessFactor = roughness; #ifdef USE_ROUGHNESSMAP vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv ); roughnessFactor *= texelRoughness.g; -#endif`,IS=`#ifdef USE_ROUGHNESSMAP +#endif`,AS=`#ifdef USE_ROUGHNESSMAP uniform sampler2D roughnessMap; -#endif`,LS=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,TS=`#if NUM_SPOT_LIGHT_COORDS > 0 varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif #if NUM_SPOT_LIGHT_MAPS > 0 @@ -1855,7 +1855,7 @@ gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING } return shadow; } -#endif`,NS=`#if NUM_SPOT_LIGHT_COORDS > 0 +#endif`,ES=`#if NUM_SPOT_LIGHT_COORDS > 0 uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ]; varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ]; #endif @@ -1893,7 +1893,7 @@ gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING }; uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ]; #endif -#endif`,DS=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) +#endif`,CS=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 ) vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix ); vec4 shadowWorldPosition; #endif @@ -1925,7 +1925,7 @@ gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition; } #pragma unroll_loop_end -#endif`,US=`float getShadowMask() { +#endif`,PS=`float getShadowMask() { float shadow = 1.0; #ifdef USE_SHADOWMAP #if NUM_DIR_LIGHT_SHADOWS > 0 @@ -1957,12 +1957,12 @@ gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING #endif #endif return shadow; -}`,OS=`#ifdef USE_SKINNING +}`,RS=`#ifdef USE_SKINNING mat4 boneMatX = getBoneMatrix( skinIndex.x ); mat4 boneMatY = getBoneMatrix( skinIndex.y ); mat4 boneMatZ = getBoneMatrix( skinIndex.z ); mat4 boneMatW = getBoneMatrix( skinIndex.w ); -#endif`,FS=`#ifdef USE_SKINNING +#endif`,IS=`#ifdef USE_SKINNING uniform mat4 bindMatrix; uniform mat4 bindMatrixInverse; uniform highp sampler2D boneTexture; @@ -1977,7 +1977,7 @@ gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 ); return mat4( v1, v2, v3, v4 ); } -#endif`,kS=`#ifdef USE_SKINNING +#endif`,LS=`#ifdef USE_SKINNING vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 ); vec4 skinned = vec4( 0.0 ); skinned += boneMatX * skinVertex * skinWeight.x; @@ -1985,7 +1985,7 @@ gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING skinned += boneMatZ * skinVertex * skinWeight.z; skinned += boneMatW * skinVertex * skinWeight.w; transformed = ( bindMatrixInverse * skinned ).xyz; -#endif`,BS=`#ifdef USE_SKINNING +#endif`,NS=`#ifdef USE_SKINNING mat4 skinMatrix = mat4( 0.0 ); skinMatrix += skinWeight.x * boneMatX; skinMatrix += skinWeight.y * boneMatY; @@ -1996,17 +1996,17 @@ gl_Position = projectionMatrix * mvPosition;`,CS=`#ifdef DITHERING #ifdef USE_TANGENT objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz; #endif -#endif`,zS=`float specularStrength; +#endif`,DS=`float specularStrength; #ifdef USE_SPECULARMAP vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv ); specularStrength = texelSpecular.r; #else specularStrength = 1.0; -#endif`,VS=`#ifdef USE_SPECULARMAP +#endif`,US=`#ifdef USE_SPECULARMAP uniform sampler2D specularMap; -#endif`,HS=`#if defined( TONE_MAPPING ) +#endif`,OS=`#if defined( TONE_MAPPING ) gl_FragColor.rgb = toneMapping( gl_FragColor.rgb ); -#endif`,GS=`#ifndef saturate +#endif`,FS=`#ifndef saturate #define saturate( a ) clamp( a, 0.0, 1.0 ) #endif uniform float toneMappingExposure; @@ -2103,7 +2103,7 @@ vec3 NeutralToneMapping( vec3 color ) { float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. ); return mix( color, vec3( newPeak ), g ); } -vec3 CustomToneMapping( vec3 color ) { return color; }`,WS=`#ifdef USE_TRANSMISSION +vec3 CustomToneMapping( vec3 color ) { return color; }`,kS=`#ifdef USE_TRANSMISSION material.transmission = transmission; material.transmissionAlpha = 1.0; material.thickness = thickness; @@ -2124,7 +2124,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,WS=`#ifdef USE_TRANSMISS material.attenuationColor, material.attenuationDistance ); material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission ); totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission ); -#endif`,$S=`#ifdef USE_TRANSMISSION +#endif`,BS=`#ifdef USE_TRANSMISSION uniform float transmission; uniform float thickness; uniform float attenuationDistance; @@ -2255,7 +2255,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,WS=`#ifdef USE_TRANSMISS float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0; return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor ); } -#endif`,XS=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,zS=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2325,7 +2325,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,WS=`#ifdef USE_TRANSMISS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,qS=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,VS=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) varying vec2 vUv; #endif #ifdef USE_MAP @@ -2419,7 +2419,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,WS=`#ifdef USE_TRANSMISS #ifdef USE_THICKNESSMAP uniform mat3 thicknessMapTransform; varying vec2 vThicknessMapUv; -#endif`,YS=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) +#endif`,HS=`#if defined( USE_UV ) || defined( USE_ANISOTROPY ) vUv = vec3( uv, 1 ).xy; #endif #ifdef USE_MAP @@ -2490,7 +2490,7 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,WS=`#ifdef USE_TRANSMISS #endif #ifdef USE_THICKNESSMAP vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy; -#endif`,ZS=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 +#endif`,GS=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0 vec4 worldPosition = vec4( transformed, 1.0 ); #ifdef USE_BATCHING worldPosition = batchingMatrix * worldPosition; @@ -2499,12 +2499,12 @@ vec3 CustomToneMapping( vec3 color ) { return color; }`,WS=`#ifdef USE_TRANSMISS worldPosition = instanceMatrix * worldPosition; #endif worldPosition = modelMatrix * worldPosition; -#endif`;const KS=`varying vec2 vUv; +#endif`;const WS=`varying vec2 vUv; uniform mat3 uvTransform; void main() { vUv = ( uvTransform * vec3( uv, 1 ) ).xy; gl_Position = vec4( position.xy, 1.0, 1.0 ); -}`,JS=`uniform sampler2D t2D; +}`,$S=`uniform sampler2D t2D; uniform float backgroundIntensity; varying vec2 vUv; void main() { @@ -2516,14 +2516,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,jS=`varying vec3 vWorldDirection; +}`,XS=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,QS=`#ifdef ENVMAP_TYPE_CUBE +}`,qS=`#ifdef ENVMAP_TYPE_CUBE uniform samplerCube envMap; #elif defined( ENVMAP_TYPE_CUBE_UV ) uniform sampler2D envMap; @@ -2546,14 +2546,14 @@ void main() { gl_FragColor = texColor; #include #include -}`,ew=`varying vec3 vWorldDirection; +}`,YS=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include gl_Position.z = gl_Position.w; -}`,tw=`uniform samplerCube tCube; +}`,ZS=`uniform samplerCube tCube; uniform float tFlip; uniform float opacity; varying vec3 vWorldDirection; @@ -2563,7 +2563,7 @@ void main() { gl_FragColor.a *= opacity; #include #include -}`,nw=`#include +}`,JS=`#include #include #include #include @@ -2590,7 +2590,7 @@ void main() { #include #include vHighPrecisionZW = gl_Position.zw; -}`,iw=`#if DEPTH_PACKING == 3200 +}`,KS=`#if DEPTH_PACKING == 3200 uniform float opacity; #endif #include @@ -2620,7 +2620,7 @@ void main() { #elif DEPTH_PACKING == 3201 gl_FragColor = packDepthToRGBA( fragCoordZ ); #endif -}`,sw=`#define DISTANCE +}`,jS=`#define DISTANCE varying vec3 vWorldPosition; #include #include @@ -2647,7 +2647,7 @@ void main() { #include #include vWorldPosition = worldPosition.xyz; -}`,rw=`#define DISTANCE +}`,QS=`#define DISTANCE uniform vec3 referencePosition; uniform float nearDistance; uniform float farDistance; @@ -2671,13 +2671,13 @@ void main () { dist = ( dist - nearDistance ) / ( farDistance - nearDistance ); dist = saturate( dist ); gl_FragColor = packDepthToRGBA( dist ); -}`,ow=`varying vec3 vWorldDirection; +}`,ew=`varying vec3 vWorldDirection; #include void main() { vWorldDirection = transformDirection( position, modelMatrix ); #include #include -}`,aw=`uniform sampler2D tEquirect; +}`,tw=`uniform sampler2D tEquirect; varying vec3 vWorldDirection; #include void main() { @@ -2686,7 +2686,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); #include #include -}`,lw=`uniform float scale; +}`,nw=`uniform float scale; attribute float lineDistance; varying float vLineDistance; #include @@ -2708,7 +2708,7 @@ void main() { #include #include #include -}`,cw=`uniform vec3 diffuse; +}`,iw=`uniform vec3 diffuse; uniform float opacity; uniform float dashSize; uniform float totalSize; @@ -2736,7 +2736,7 @@ void main() { #include #include #include -}`,uw=`#include +}`,sw=`#include #include #include #include @@ -2768,7 +2768,7 @@ void main() { #include #include #include -}`,hw=`uniform vec3 diffuse; +}`,rw=`uniform vec3 diffuse; uniform float opacity; #ifndef FLAT_SHADED varying vec3 vNormal; @@ -2816,7 +2816,7 @@ void main() { #include #include #include -}`,dw=`#define LAMBERT +}`,ow=`#define LAMBERT varying vec3 vViewPosition; #include #include @@ -2855,7 +2855,7 @@ void main() { #include #include #include -}`,fw=`#define LAMBERT +}`,aw=`#define LAMBERT uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -2912,7 +2912,7 @@ void main() { #include #include #include -}`,pw=`#define MATCAP +}`,lw=`#define MATCAP varying vec3 vViewPosition; #include #include @@ -2946,7 +2946,7 @@ void main() { #include #include vViewPosition = - mvPosition.xyz; -}`,mw=`#define MATCAP +}`,cw=`#define MATCAP uniform vec3 diffuse; uniform float opacity; uniform sampler2D matcap; @@ -2992,7 +2992,7 @@ void main() { #include #include #include -}`,gw=`#define NORMAL +}`,uw=`#define NORMAL #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; #endif @@ -3025,7 +3025,7 @@ void main() { #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) vViewPosition = - mvPosition.xyz; #endif -}`,_w=`#define NORMAL +}`,hw=`#define NORMAL uniform float opacity; #if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE ) varying vec3 vViewPosition; @@ -3047,7 +3047,7 @@ void main() { #ifdef OPAQUE gl_FragColor.a = 1.0; #endif -}`,vw=`#define PHONG +}`,dw=`#define PHONG varying vec3 vViewPosition; #include #include @@ -3086,7 +3086,7 @@ void main() { #include #include #include -}`,yw=`#define PHONG +}`,fw=`#define PHONG uniform vec3 diffuse; uniform vec3 emissive; uniform vec3 specular; @@ -3145,7 +3145,7 @@ void main() { #include #include #include -}`,xw=`#define STANDARD +}`,pw=`#define STANDARD varying vec3 vViewPosition; #ifdef USE_TRANSMISSION varying vec3 vWorldPosition; @@ -3188,7 +3188,7 @@ void main() { #ifdef USE_TRANSMISSION vWorldPosition = worldPosition.xyz; #endif -}`,Mw=`#define STANDARD +}`,mw=`#define STANDARD #ifdef PHYSICAL #define IOR #define USE_SPECULAR @@ -3313,7 +3313,7 @@ void main() { #include #include #include -}`,bw=`#define TOON +}`,gw=`#define TOON varying vec3 vViewPosition; #include #include @@ -3350,7 +3350,7 @@ void main() { #include #include #include -}`,Sw=`#define TOON +}`,vw=`#define TOON uniform vec3 diffuse; uniform vec3 emissive; uniform float opacity; @@ -3403,7 +3403,7 @@ void main() { #include #include #include -}`,ww=`uniform float size; +}`,_w=`uniform float size; uniform float scale; #include #include @@ -3434,7 +3434,7 @@ void main() { #include #include #include -}`,Aw=`uniform vec3 diffuse; +}`,yw=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3459,7 +3459,7 @@ void main() { #include #include #include -}`,Ew=`#include +}`,xw=`#include #include #include #include @@ -3482,7 +3482,7 @@ void main() { #include #include #include -}`,Tw=`uniform vec3 color; +}`,Mw=`uniform vec3 color; uniform float opacity; #include #include @@ -3498,7 +3498,7 @@ void main() { #include #include #include -}`,Cw=`uniform float rotation; +}`,bw=`uniform float rotation; uniform vec2 center; #include #include @@ -3524,7 +3524,7 @@ void main() { #include #include #include -}`,Pw=`uniform vec3 diffuse; +}`,Sw=`uniform vec3 diffuse; uniform float opacity; #include #include @@ -3549,7 +3549,7 @@ void main() { #include #include #include -}`,ot={alphahash_fragment:JM,alphahash_pars_fragment:jM,alphamap_fragment:QM,alphamap_pars_fragment:eb,alphatest_fragment:tb,alphatest_pars_fragment:nb,aomap_fragment:ib,aomap_pars_fragment:sb,batching_pars_vertex:rb,batching_vertex:ob,begin_vertex:ab,beginnormal_vertex:lb,bsdfs:cb,iridescence_fragment:ub,bumpmap_pars_fragment:hb,clipping_planes_fragment:db,clipping_planes_pars_fragment:fb,clipping_planes_pars_vertex:pb,clipping_planes_vertex:mb,color_fragment:gb,color_pars_fragment:_b,color_pars_vertex:vb,color_vertex:yb,common:xb,cube_uv_reflection_fragment:Mb,defaultnormal_vertex:bb,displacementmap_pars_vertex:Sb,displacementmap_vertex:wb,emissivemap_fragment:Ab,emissivemap_pars_fragment:Eb,colorspace_fragment:Tb,colorspace_pars_fragment:Cb,envmap_fragment:Pb,envmap_common_pars_fragment:Rb,envmap_pars_fragment:Ib,envmap_pars_vertex:Lb,envmap_physical_pars_fragment:Gb,envmap_vertex:Nb,fog_vertex:Db,fog_pars_vertex:Ub,fog_fragment:Ob,fog_pars_fragment:Fb,gradientmap_pars_fragment:kb,lightmap_pars_fragment:Bb,lights_lambert_fragment:zb,lights_lambert_pars_fragment:Vb,lights_pars_begin:Hb,lights_toon_fragment:Wb,lights_toon_pars_fragment:$b,lights_phong_fragment:Xb,lights_phong_pars_fragment:qb,lights_physical_fragment:Yb,lights_physical_pars_fragment:Zb,lights_fragment_begin:Kb,lights_fragment_maps:Jb,lights_fragment_end:jb,logdepthbuf_fragment:Qb,logdepthbuf_pars_fragment:eS,logdepthbuf_pars_vertex:tS,logdepthbuf_vertex:nS,map_fragment:iS,map_pars_fragment:sS,map_particle_fragment:rS,map_particle_pars_fragment:oS,metalnessmap_fragment:aS,metalnessmap_pars_fragment:lS,morphinstance_vertex:cS,morphcolor_vertex:uS,morphnormal_vertex:hS,morphtarget_pars_vertex:dS,morphtarget_vertex:fS,normal_fragment_begin:pS,normal_fragment_maps:mS,normal_pars_fragment:gS,normal_pars_vertex:_S,normal_vertex:vS,normalmap_pars_fragment:yS,clearcoat_normal_fragment_begin:xS,clearcoat_normal_fragment_maps:MS,clearcoat_pars_fragment:bS,iridescence_pars_fragment:SS,opaque_fragment:wS,packing:AS,premultiplied_alpha_fragment:ES,project_vertex:TS,dithering_fragment:CS,dithering_pars_fragment:PS,roughnessmap_fragment:RS,roughnessmap_pars_fragment:IS,shadowmap_pars_fragment:LS,shadowmap_pars_vertex:NS,shadowmap_vertex:DS,shadowmask_pars_fragment:US,skinbase_vertex:OS,skinning_pars_vertex:FS,skinning_vertex:kS,skinnormal_vertex:BS,specularmap_fragment:zS,specularmap_pars_fragment:VS,tonemapping_fragment:HS,tonemapping_pars_fragment:GS,transmission_fragment:WS,transmission_pars_fragment:$S,uv_pars_fragment:XS,uv_pars_vertex:qS,uv_vertex:YS,worldpos_vertex:ZS,background_vert:KS,background_frag:JS,backgroundCube_vert:jS,backgroundCube_frag:QS,cube_vert:ew,cube_frag:tw,depth_vert:nw,depth_frag:iw,distanceRGBA_vert:sw,distanceRGBA_frag:rw,equirect_vert:ow,equirect_frag:aw,linedashed_vert:lw,linedashed_frag:cw,meshbasic_vert:uw,meshbasic_frag:hw,meshlambert_vert:dw,meshlambert_frag:fw,meshmatcap_vert:pw,meshmatcap_frag:mw,meshnormal_vert:gw,meshnormal_frag:_w,meshphong_vert:vw,meshphong_frag:yw,meshphysical_vert:xw,meshphysical_frag:Mw,meshtoon_vert:bw,meshtoon_frag:Sw,points_vert:ww,points_frag:Aw,shadow_vert:Ew,shadow_frag:Tw,sprite_vert:Cw,sprite_frag:Pw},Pe={common:{diffuse:{value:new Ie(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new je},alphaMap:{value:null},alphaMapTransform:{value:new je},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new je}},envmap:{envMap:{value:null},envMapRotation:{value:new je},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new je}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new je}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new je},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new je},normalScale:{value:new te(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new je},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new je}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new je}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new je}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Ie(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Ie(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new je},alphaTest:{value:0},uvTransform:{value:new je}},sprite:{diffuse:{value:new Ie(16777215)},opacity:{value:1},center:{value:new te(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new je},alphaMap:{value:null},alphaMapTransform:{value:new je},alphaTest:{value:0}}},Rn={basic:{uniforms:sn([Pe.common,Pe.specularmap,Pe.envmap,Pe.aomap,Pe.lightmap,Pe.fog]),vertexShader:ot.meshbasic_vert,fragmentShader:ot.meshbasic_frag},lambert:{uniforms:sn([Pe.common,Pe.specularmap,Pe.envmap,Pe.aomap,Pe.lightmap,Pe.emissivemap,Pe.bumpmap,Pe.normalmap,Pe.displacementmap,Pe.fog,Pe.lights,{emissive:{value:new Ie(0)}}]),vertexShader:ot.meshlambert_vert,fragmentShader:ot.meshlambert_frag},phong:{uniforms:sn([Pe.common,Pe.specularmap,Pe.envmap,Pe.aomap,Pe.lightmap,Pe.emissivemap,Pe.bumpmap,Pe.normalmap,Pe.displacementmap,Pe.fog,Pe.lights,{emissive:{value:new Ie(0)},specular:{value:new Ie(1118481)},shininess:{value:30}}]),vertexShader:ot.meshphong_vert,fragmentShader:ot.meshphong_frag},standard:{uniforms:sn([Pe.common,Pe.envmap,Pe.aomap,Pe.lightmap,Pe.emissivemap,Pe.bumpmap,Pe.normalmap,Pe.displacementmap,Pe.roughnessmap,Pe.metalnessmap,Pe.fog,Pe.lights,{emissive:{value:new Ie(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ot.meshphysical_vert,fragmentShader:ot.meshphysical_frag},toon:{uniforms:sn([Pe.common,Pe.aomap,Pe.lightmap,Pe.emissivemap,Pe.bumpmap,Pe.normalmap,Pe.displacementmap,Pe.gradientmap,Pe.fog,Pe.lights,{emissive:{value:new Ie(0)}}]),vertexShader:ot.meshtoon_vert,fragmentShader:ot.meshtoon_frag},matcap:{uniforms:sn([Pe.common,Pe.bumpmap,Pe.normalmap,Pe.displacementmap,Pe.fog,{matcap:{value:null}}]),vertexShader:ot.meshmatcap_vert,fragmentShader:ot.meshmatcap_frag},points:{uniforms:sn([Pe.points,Pe.fog]),vertexShader:ot.points_vert,fragmentShader:ot.points_frag},dashed:{uniforms:sn([Pe.common,Pe.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ot.linedashed_vert,fragmentShader:ot.linedashed_frag},depth:{uniforms:sn([Pe.common,Pe.displacementmap]),vertexShader:ot.depth_vert,fragmentShader:ot.depth_frag},normal:{uniforms:sn([Pe.common,Pe.bumpmap,Pe.normalmap,Pe.displacementmap,{opacity:{value:1}}]),vertexShader:ot.meshnormal_vert,fragmentShader:ot.meshnormal_frag},sprite:{uniforms:sn([Pe.sprite,Pe.fog]),vertexShader:ot.sprite_vert,fragmentShader:ot.sprite_frag},background:{uniforms:{uvTransform:{value:new je},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ot.background_vert,fragmentShader:ot.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new je}},vertexShader:ot.backgroundCube_vert,fragmentShader:ot.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ot.cube_vert,fragmentShader:ot.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ot.equirect_vert,fragmentShader:ot.equirect_frag},distanceRGBA:{uniforms:sn([Pe.common,Pe.displacementmap,{referencePosition:{value:new N},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ot.distanceRGBA_vert,fragmentShader:ot.distanceRGBA_frag},shadow:{uniforms:sn([Pe.lights,Pe.fog,{color:{value:new Ie(0)},opacity:{value:1}}]),vertexShader:ot.shadow_vert,fragmentShader:ot.shadow_frag}};Rn.physical={uniforms:sn([Rn.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new je},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new je},clearcoatNormalScale:{value:new te(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new je},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new je},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new je},sheen:{value:0},sheenColor:{value:new Ie(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new je},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new je},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new je},transmissionSamplerSize:{value:new te},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new je},attenuationDistance:{value:0},attenuationColor:{value:new Ie(0)},specularColor:{value:new Ie(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new je},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new je},anisotropyVector:{value:new te},anisotropyMap:{value:null},anisotropyMapTransform:{value:new je}}]),vertexShader:ot.meshphysical_vert,fragmentShader:ot.meshphysical_frag};const Io={r:0,b:0,g:0},Gi=new bn,Rw=new Ze;function Iw(s,e,t,n,i,r,o){const a=new Ie(0);let l=r===!0?0:1,c,u,h=null,d=0,f=null;function g(y){let v=y.isScene===!0?y.background:null;return v&&v.isTexture&&(v=(y.backgroundBlurriness>0?t:e).get(v)),v}function _(y){let v=!1;const x=g(y);x===null?m(a,l):x&&x.isColor&&(m(x,1),v=!0);const E=s.xr.getEnvironmentBlendMode();E==="additive"?n.buffers.color.setClear(0,0,0,1,o):E==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,o),(s.autoClear||v)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),s.clear(s.autoClearColor,s.autoClearDepth,s.autoClearStencil))}function p(y,v){const x=g(v);x&&(x.isCubeTexture||x.mapping===Js)?(u===void 0&&(u=new Nt(new gs(1,1,1),new On({name:"BackgroundCubeMaterial",uniforms:Zs(Rn.backgroundCube.uniforms),vertexShader:Rn.backgroundCube.vertexShader,fragmentShader:Rn.backgroundCube.fragmentShader,side:an,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(E,S,C){this.matrixWorld.copyPosition(C.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),Gi.copy(v.backgroundRotation),Gi.x*=-1,Gi.y*=-1,Gi.z*=-1,x.isCubeTexture&&x.isRenderTargetTexture===!1&&(Gi.y*=-1,Gi.z*=-1),u.material.uniforms.envMap.value=x,u.material.uniforms.flipEnvMap.value=x.isCubeTexture&&x.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=v.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=v.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(Rw.makeRotationFromEuler(Gi)),u.material.toneMapped=dt.getTransfer(x.colorSpace)!==Mt,(h!==x||d!==x.version||f!==s.toneMapping)&&(u.material.needsUpdate=!0,h=x,d=x.version,f=s.toneMapping),u.layers.enableAll(),y.unshift(u,u.geometry,u.material,0,0,null)):x&&x.isTexture&&(c===void 0&&(c=new Nt(new js(2,2),new On({name:"BackgroundMaterial",uniforms:Zs(Rn.background.uniforms),vertexShader:Rn.background.vertexShader,fragmentShader:Rn.background.fragmentShader,side:ci,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=x,c.material.uniforms.backgroundIntensity.value=v.backgroundIntensity,c.material.toneMapped=dt.getTransfer(x.colorSpace)!==Mt,x.matrixAutoUpdate===!0&&x.updateMatrix(),c.material.uniforms.uvTransform.value.copy(x.matrix),(h!==x||d!==x.version||f!==s.toneMapping)&&(c.material.needsUpdate=!0,h=x,d=x.version,f=s.toneMapping),c.layers.enableAll(),y.unshift(c,c.geometry,c.material,0,0,null))}function m(y,v){y.getRGB(Io,Cp(s)),n.buffers.color.setClear(Io.r,Io.g,Io.b,v,o)}return{getClearColor:function(){return a},setClearColor:function(y,v=1){a.set(y),l=v,m(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(y){l=y,m(a,l)},render:_,addToRenderList:p}}function Lw(s,e){const t=s.getParameter(s.MAX_VERTEX_ATTRIBS),n={},i=d(null);let r=i,o=!1;function a(b,k,V,G,X){let ce=!1;const Z=h(G,V,k);r!==Z&&(r=Z,c(r.object)),ce=f(b,G,V,X),ce&&g(b,G,V,X),X!==null&&e.update(X,s.ELEMENT_ARRAY_BUFFER),(ce||o)&&(o=!1,x(b,k,V,G),X!==null&&s.bindBuffer(s.ELEMENT_ARRAY_BUFFER,e.get(X).buffer))}function l(){return s.createVertexArray()}function c(b){return s.bindVertexArray(b)}function u(b){return s.deleteVertexArray(b)}function h(b,k,V){const G=V.wireframe===!0;let X=n[b.id];X===void 0&&(X={},n[b.id]=X);let ce=X[k.id];ce===void 0&&(ce={},X[k.id]=ce);let Z=ce[G];return Z===void 0&&(Z=d(l()),ce[G]=Z),Z}function d(b){const k=[],V=[],G=[];for(let X=0;X=0){const we=X[z];let Ae=ce[z];if(Ae===void 0&&(z==="instanceMatrix"&&b.instanceMatrix&&(Ae=b.instanceMatrix),z==="instanceColor"&&b.instanceColor&&(Ae=b.instanceColor)),we===void 0||we.attribute!==Ae||Ae&&we.data!==Ae.data)return!0;Z++}return r.attributesNum!==Z||r.index!==G}function g(b,k,V,G){const X={},ce=k.attributes;let Z=0;const ae=V.getAttributes();for(const z in ae)if(ae[z].location>=0){let we=ce[z];we===void 0&&(z==="instanceMatrix"&&b.instanceMatrix&&(we=b.instanceMatrix),z==="instanceColor"&&b.instanceColor&&(we=b.instanceColor));const Ae={};Ae.attribute=we,we&&we.data&&(Ae.data=we.data),X[z]=Ae,Z++}r.attributes=X,r.attributesNum=Z,r.index=G}function _(){const b=r.newAttributes;for(let k=0,V=b.length;k=0){let Se=X[ae];if(Se===void 0&&(ae==="instanceMatrix"&&b.instanceMatrix&&(Se=b.instanceMatrix),ae==="instanceColor"&&b.instanceColor&&(Se=b.instanceColor)),Se!==void 0){const we=Se.normalized,Ae=Se.itemSize,_e=e.get(Se);if(_e===void 0)continue;const De=_e.buffer,F=_e.type,U=_e.bytesPerElement,I=F===s.INT||F===s.UNSIGNED_INT||Se.gpuType===fu;if(Se.isInterleavedBufferAttribute){const T=Se.data,se=T.stride,fe=Se.offset;if(T.isInstancedInterleavedBuffer){for(let K=0;K0&&s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT).precision>0)return"highp";S="mediump"}return S==="mediump"&&s.getShaderPrecisionFormat(s.VERTEX_SHADER,s.MEDIUM_FLOAT).precision>0&&s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=t.precision!==void 0?t.precision:"highp";const u=l(c);u!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",u,"instead."),c=u);const h=t.logarithmicDepthBuffer===!0,d=s.getParameter(s.MAX_TEXTURE_IMAGE_UNITS),f=s.getParameter(s.MAX_VERTEX_TEXTURE_IMAGE_UNITS),g=s.getParameter(s.MAX_TEXTURE_SIZE),_=s.getParameter(s.MAX_CUBE_MAP_TEXTURE_SIZE),p=s.getParameter(s.MAX_VERTEX_ATTRIBS),m=s.getParameter(s.MAX_VERTEX_UNIFORM_VECTORS),y=s.getParameter(s.MAX_VARYING_VECTORS),v=s.getParameter(s.MAX_FRAGMENT_UNIFORM_VECTORS),x=f>0,E=s.getParameter(s.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:r,getMaxPrecision:l,textureFormatReadable:o,textureTypeReadable:a,precision:c,logarithmicDepthBuffer:h,maxTextures:d,maxVertexTextures:f,maxTextureSize:g,maxCubemapSize:_,maxAttributes:p,maxVertexUniforms:m,maxVaryings:y,maxFragmentUniforms:v,vertexTextures:x,maxSamples:E}}function Uw(s){const e=this;let t=null,n=0,i=!1,r=!1;const o=new ii,a=new je,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,d){const f=h.length!==0||d||n!==0||i;return i=d,n=h.length,f},this.beginShadows=function(){r=!0,u(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,d){t=u(h,d,0)},this.setState=function(h,d,f){const g=h.clippingPlanes,_=h.clipIntersection,p=h.clipShadows,m=s.get(h);if(!i||g===null||g.length===0||r&&!p)r?u(null):c();else{const y=r?0:n,v=y*4;let x=m.clippingState||null;l.value=x,x=u(g,d,v,f);for(let E=0;E!==v;++E)x[E]=t[E];m.clippingState=x,this.numIntersection=_?this.numPlanes:0,this.numPlanes+=y}};function c(){l.value!==t&&(l.value=t,l.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function u(h,d,f,g){const _=h!==null?h.length:0;let p=null;if(_!==0){if(p=l.value,g!==!0||p===null){const m=f+_*4,y=d.matrixWorldInverse;a.getNormalMatrix(y),(p===null||p.length0){const c=new Ip(l.height);return c.fromEquirectangularTexture(s,o),e.set(o,c),o.addEventListener("dispose",i),t(c.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:n,dispose:r}}class Va extends Qr{constructor(e=-1,t=1,n=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-e,o=n+e,a=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=c*this.view.offsetX,o=r+c*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const Gs=4,Ch=[.125,.215,.35,.446,.526,.582],ts=20,Dl=new Va,Ph=new Ie;let Ul=null,Ol=0,Fl=0,kl=!1;const es=(1+Math.sqrt(5))/2,Ds=1/es,Rh=[new N(-es,Ds,0),new N(es,Ds,0),new N(-Ds,0,es),new N(Ds,0,es),new N(0,es,-Ds),new N(0,es,Ds),new N(-1,1,-1),new N(1,1,-1),new N(-1,1,1),new N(1,1,1)];class Vc{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){Ul=this._renderer.getRenderTarget(),Ol=this._renderer.getActiveCubeFace(),Fl=this._renderer.getActiveMipmapLevel(),kl=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,n,i,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Nh(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Lh(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?v:0,v,v),u.setRenderTarget(i),_&&u.render(g,a),u.render(e,a)}g.geometry.dispose(),g.material.dispose(),u.toneMapping=d,u.autoClear=h,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===ui||e.mapping===Ri;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=Nh()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Lh());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new Nt(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;Lo(t,0,0,3*l,2*l),n.setRenderTarget(t),n.render(o,Dl)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const i=this._lodPlanes.length;for(let r=1;rts&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${ts}`);const m=[];let y=0;for(let C=0;Cv-Gs?i-v+Gs:0),S=4*(this._cubeSize-x);Lo(t,E,S,3*x,2*x),l.setRenderTarget(t),l.render(h,Dl)}}function Fw(s){const e=[],t=[],n=[];let i=s;const r=s-Gs+1+Ch.length;for(let o=0;os-Gs?l=Ch[o-s+Gs-1]:o===0&&(l=0),n.push(l);const c=1/(a-2),u=-c,h=1+c,d=[u,u,h,u,h,h,u,u,h,h,u,h],f=6,g=6,_=3,p=2,m=1,y=new Float32Array(_*g*f),v=new Float32Array(p*g*f),x=new Float32Array(m*g*f);for(let S=0;S2?0:-1,A=[C,L,0,C+2/3,L,0,C+2/3,L+1,0,C,L,0,C+2/3,L+1,0,C,L+1,0];y.set(A,_*g*S),v.set(d,p*g*S);const b=[S,S,S,S,S,S];x.set(b,m*g*S)}const E=new at;E.setAttribute("position",new mt(y,_)),E.setAttribute("uv",new mt(v,p)),E.setAttribute("faceIndex",new mt(x,m)),e.push(E),i>Gs&&i--}return{lodPlanes:e,sizeLods:t,sigmas:n}}function Ih(s,e,t){const n=new Un(s,e,t);return n.texture.mapping=Js,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function Lo(s,e,t,n,i){s.viewport.set(e,t,n,i),s.scissor.set(e,t,n,i)}function kw(s,e,t){const n=new Float32Array(ts),i=new N(0,1,0);return new On({name:"SphericalGaussianBlur",defines:{n:ts,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${s}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:Cu(),fragmentShader:` +}`,nt={alphahash_fragment:$M,alphahash_pars_fragment:XM,alphamap_fragment:qM,alphamap_pars_fragment:YM,alphatest_fragment:ZM,alphatest_pars_fragment:JM,aomap_fragment:KM,aomap_pars_fragment:jM,batching_pars_vertex:QM,batching_vertex:eb,begin_vertex:tb,beginnormal_vertex:nb,bsdfs:ib,iridescence_fragment:sb,bumpmap_pars_fragment:rb,clipping_planes_fragment:ob,clipping_planes_pars_fragment:ab,clipping_planes_pars_vertex:lb,clipping_planes_vertex:cb,color_fragment:ub,color_pars_fragment:hb,color_pars_vertex:db,color_vertex:fb,common:pb,cube_uv_reflection_fragment:mb,defaultnormal_vertex:gb,displacementmap_pars_vertex:vb,displacementmap_vertex:_b,emissivemap_fragment:yb,emissivemap_pars_fragment:xb,colorspace_fragment:Mb,colorspace_pars_fragment:bb,envmap_fragment:Sb,envmap_common_pars_fragment:wb,envmap_pars_fragment:Ab,envmap_pars_vertex:Tb,envmap_physical_pars_fragment:Fb,envmap_vertex:Eb,fog_vertex:Cb,fog_pars_vertex:Pb,fog_fragment:Rb,fog_pars_fragment:Ib,gradientmap_pars_fragment:Lb,lightmap_pars_fragment:Nb,lights_lambert_fragment:Db,lights_lambert_pars_fragment:Ub,lights_pars_begin:Ob,lights_toon_fragment:kb,lights_toon_pars_fragment:Bb,lights_phong_fragment:zb,lights_phong_pars_fragment:Vb,lights_physical_fragment:Hb,lights_physical_pars_fragment:Gb,lights_fragment_begin:Wb,lights_fragment_maps:$b,lights_fragment_end:Xb,logdepthbuf_fragment:qb,logdepthbuf_pars_fragment:Yb,logdepthbuf_pars_vertex:Zb,logdepthbuf_vertex:Jb,map_fragment:Kb,map_pars_fragment:jb,map_particle_fragment:Qb,map_particle_pars_fragment:eS,metalnessmap_fragment:tS,metalnessmap_pars_fragment:nS,morphinstance_vertex:iS,morphcolor_vertex:sS,morphnormal_vertex:rS,morphtarget_pars_vertex:oS,morphtarget_vertex:aS,normal_fragment_begin:lS,normal_fragment_maps:cS,normal_pars_fragment:uS,normal_pars_vertex:hS,normal_vertex:dS,normalmap_pars_fragment:fS,clearcoat_normal_fragment_begin:pS,clearcoat_normal_fragment_maps:mS,clearcoat_pars_fragment:gS,iridescence_pars_fragment:vS,opaque_fragment:_S,packing:yS,premultiplied_alpha_fragment:xS,project_vertex:MS,dithering_fragment:bS,dithering_pars_fragment:SS,roughnessmap_fragment:wS,roughnessmap_pars_fragment:AS,shadowmap_pars_fragment:TS,shadowmap_pars_vertex:ES,shadowmap_vertex:CS,shadowmask_pars_fragment:PS,skinbase_vertex:RS,skinning_pars_vertex:IS,skinning_vertex:LS,skinnormal_vertex:NS,specularmap_fragment:DS,specularmap_pars_fragment:US,tonemapping_fragment:OS,tonemapping_pars_fragment:FS,transmission_fragment:kS,transmission_pars_fragment:BS,uv_pars_fragment:zS,uv_pars_vertex:VS,uv_vertex:HS,worldpos_vertex:GS,background_vert:WS,background_frag:$S,backgroundCube_vert:XS,backgroundCube_frag:qS,cube_vert:YS,cube_frag:ZS,depth_vert:JS,depth_frag:KS,distanceRGBA_vert:jS,distanceRGBA_frag:QS,equirect_vert:ew,equirect_frag:tw,linedashed_vert:nw,linedashed_frag:iw,meshbasic_vert:sw,meshbasic_frag:rw,meshlambert_vert:ow,meshlambert_frag:aw,meshmatcap_vert:lw,meshmatcap_frag:cw,meshnormal_vert:uw,meshnormal_frag:hw,meshphong_vert:dw,meshphong_frag:fw,meshphysical_vert:pw,meshphysical_frag:mw,meshtoon_vert:gw,meshtoon_frag:vw,points_vert:_w,points_frag:yw,shadow_vert:xw,shadow_frag:Mw,sprite_vert:bw,sprite_frag:Sw},Ce={common:{diffuse:{value:new Pe(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Ze},alphaMap:{value:null},alphaMapTransform:{value:new Ze},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Ze}},envmap:{envMap:{value:null},envMapRotation:{value:new Ze},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Ze}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Ze}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Ze},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Ze},normalScale:{value:new se(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Ze},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Ze}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Ze}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Ze}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Pe(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Pe(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Ze},alphaTest:{value:0},uvTransform:{value:new Ze}},sprite:{diffuse:{value:new Pe(16777215)},opacity:{value:1},center:{value:new se(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Ze},alphaMap:{value:null},alphaMapTransform:{value:new Ze},alphaTest:{value:0}}},Tn={basic:{uniforms:en([Ce.common,Ce.specularmap,Ce.envmap,Ce.aomap,Ce.lightmap,Ce.fog]),vertexShader:nt.meshbasic_vert,fragmentShader:nt.meshbasic_frag},lambert:{uniforms:en([Ce.common,Ce.specularmap,Ce.envmap,Ce.aomap,Ce.lightmap,Ce.emissivemap,Ce.bumpmap,Ce.normalmap,Ce.displacementmap,Ce.fog,Ce.lights,{emissive:{value:new Pe(0)}}]),vertexShader:nt.meshlambert_vert,fragmentShader:nt.meshlambert_frag},phong:{uniforms:en([Ce.common,Ce.specularmap,Ce.envmap,Ce.aomap,Ce.lightmap,Ce.emissivemap,Ce.bumpmap,Ce.normalmap,Ce.displacementmap,Ce.fog,Ce.lights,{emissive:{value:new Pe(0)},specular:{value:new Pe(1118481)},shininess:{value:30}}]),vertexShader:nt.meshphong_vert,fragmentShader:nt.meshphong_frag},standard:{uniforms:en([Ce.common,Ce.envmap,Ce.aomap,Ce.lightmap,Ce.emissivemap,Ce.bumpmap,Ce.normalmap,Ce.displacementmap,Ce.roughnessmap,Ce.metalnessmap,Ce.fog,Ce.lights,{emissive:{value:new Pe(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:nt.meshphysical_vert,fragmentShader:nt.meshphysical_frag},toon:{uniforms:en([Ce.common,Ce.aomap,Ce.lightmap,Ce.emissivemap,Ce.bumpmap,Ce.normalmap,Ce.displacementmap,Ce.gradientmap,Ce.fog,Ce.lights,{emissive:{value:new Pe(0)}}]),vertexShader:nt.meshtoon_vert,fragmentShader:nt.meshtoon_frag},matcap:{uniforms:en([Ce.common,Ce.bumpmap,Ce.normalmap,Ce.displacementmap,Ce.fog,{matcap:{value:null}}]),vertexShader:nt.meshmatcap_vert,fragmentShader:nt.meshmatcap_frag},points:{uniforms:en([Ce.points,Ce.fog]),vertexShader:nt.points_vert,fragmentShader:nt.points_frag},dashed:{uniforms:en([Ce.common,Ce.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:nt.linedashed_vert,fragmentShader:nt.linedashed_frag},depth:{uniforms:en([Ce.common,Ce.displacementmap]),vertexShader:nt.depth_vert,fragmentShader:nt.depth_frag},normal:{uniforms:en([Ce.common,Ce.bumpmap,Ce.normalmap,Ce.displacementmap,{opacity:{value:1}}]),vertexShader:nt.meshnormal_vert,fragmentShader:nt.meshnormal_frag},sprite:{uniforms:en([Ce.sprite,Ce.fog]),vertexShader:nt.sprite_vert,fragmentShader:nt.sprite_frag},background:{uniforms:{uvTransform:{value:new Ze},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:nt.background_vert,fragmentShader:nt.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Ze}},vertexShader:nt.backgroundCube_vert,fragmentShader:nt.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:nt.cube_vert,fragmentShader:nt.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:nt.equirect_vert,fragmentShader:nt.equirect_frag},distanceRGBA:{uniforms:en([Ce.common,Ce.displacementmap,{referencePosition:{value:new N},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:nt.distanceRGBA_vert,fragmentShader:nt.distanceRGBA_frag},shadow:{uniforms:en([Ce.lights,Ce.fog,{color:{value:new Pe(0)},opacity:{value:1}}]),vertexShader:nt.shadow_vert,fragmentShader:nt.shadow_frag}};Tn.physical={uniforms:en([Tn.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Ze},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Ze},clearcoatNormalScale:{value:new se(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Ze},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Ze},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Ze},sheen:{value:0},sheenColor:{value:new Pe(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Ze},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Ze},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Ze},transmissionSamplerSize:{value:new se},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Ze},attenuationDistance:{value:0},attenuationColor:{value:new Pe(0)},specularColor:{value:new Pe(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Ze},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Ze},anisotropyVector:{value:new se},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Ze}}]),vertexShader:nt.meshphysical_vert,fragmentShader:nt.meshphysical_frag};const Ao={r:0,b:0,g:0},Bi=new _n,ww=new Ye;function Aw(s,e,t,n,i,r,o){const a=new Pe(0);let l=r===!0?0:1,c,u,h=null,d=0,f=null;function g(y){let _=y.isScene===!0?y.background:null;return _&&_.isTexture&&(_=(y.backgroundBlurriness>0?t:e).get(_)),_}function v(y){let _=!1;const x=g(y);x===null?m(a,l):x&&x.isColor&&(m(x,1),_=!0);const A=s.xr.getEnvironmentBlendMode();A==="additive"?n.buffers.color.setClear(0,0,0,1,o):A==="alpha-blend"&&n.buffers.color.setClear(0,0,0,0,o),(s.autoClear||_)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),s.clear(s.autoClearColor,s.autoClearDepth,s.autoClearStencil))}function p(y,_){const x=g(_);x&&(x.isCubeTexture||x.mapping===Ws)?(u===void 0&&(u=new Nt(new cs(1,1,1),new Ln({name:"BackgroundCubeMaterial",uniforms:Hs(Tn.backgroundCube.uniforms),vertexShader:Tn.backgroundCube.vertexShader,fragmentShader:Tn.backgroundCube.fragmentShader,side:nn,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(A,b,E){this.matrixWorld.copyPosition(E.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),Bi.copy(_.backgroundRotation),Bi.x*=-1,Bi.y*=-1,Bi.z*=-1,x.isCubeTexture&&x.isRenderTargetTexture===!1&&(Bi.y*=-1,Bi.z*=-1),u.material.uniforms.envMap.value=x,u.material.uniforms.flipEnvMap.value=x.isCubeTexture&&x.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=_.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(ww.makeRotationFromEuler(Bi)),u.material.toneMapped=ht.getTransfer(x.colorSpace)!==Mt,(h!==x||d!==x.version||f!==s.toneMapping)&&(u.material.needsUpdate=!0,h=x,d=x.version,f=s.toneMapping),u.layers.enableAll(),y.unshift(u,u.geometry,u.material,0,0,null)):x&&x.isTexture&&(c===void 0&&(c=new Nt(new Xs(2,2),new Ln({name:"BackgroundMaterial",uniforms:Hs(Tn.background.uniforms),vertexShader:Tn.background.vertexShader,fragmentShader:Tn.background.fragmentShader,side:ri,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(c)),c.material.uniforms.t2D.value=x,c.material.uniforms.backgroundIntensity.value=_.backgroundIntensity,c.material.toneMapped=ht.getTransfer(x.colorSpace)!==Mt,x.matrixAutoUpdate===!0&&x.updateMatrix(),c.material.uniforms.uvTransform.value.copy(x.matrix),(h!==x||d!==x.version||f!==s.toneMapping)&&(c.material.needsUpdate=!0,h=x,d=x.version,f=s.toneMapping),c.layers.enableAll(),y.unshift(c,c.geometry,c.material,0,0,null))}function m(y,_){y.getRGB(Ao,xp(s)),n.buffers.color.setClear(Ao.r,Ao.g,Ao.b,_,o)}return{getClearColor:function(){return a},setClearColor:function(y,_=1){a.set(y),l=_,m(a,l)},getClearAlpha:function(){return l},setClearAlpha:function(y){l=y,m(a,l)},render:v,addToRenderList:p}}function Tw(s,e){const t=s.getParameter(s.MAX_VERTEX_ATTRIBS),n={},i=d(null);let r=i,o=!1;function a(M,F,z,G,q){let ae=!1;const j=h(G,z,F);r!==j&&(r=j,c(r.object)),ae=f(M,G,z,q),ae&&g(M,G,z,q),q!==null&&e.update(q,s.ELEMENT_ARRAY_BUFFER),(ae||o)&&(o=!1,x(M,F,z,G),q!==null&&s.bindBuffer(s.ELEMENT_ARRAY_BUFFER,e.get(q).buffer))}function l(){return s.createVertexArray()}function c(M){return s.bindVertexArray(M)}function u(M){return s.deleteVertexArray(M)}function h(M,F,z){const G=z.wireframe===!0;let q=n[M.id];q===void 0&&(q={},n[M.id]=q);let ae=q[F.id];ae===void 0&&(ae={},q[F.id]=ae);let j=ae[G];return j===void 0&&(j=d(l()),ae[G]=j),j}function d(M){const F=[],z=[],G=[];for(let q=0;q=0){const be=q[B];let Ae=ae[B];if(Ae===void 0&&(B==="instanceMatrix"&&M.instanceMatrix&&(Ae=M.instanceMatrix),B==="instanceColor"&&M.instanceColor&&(Ae=M.instanceColor)),be===void 0||be.attribute!==Ae||Ae&&be.data!==Ae.data)return!0;j++}return r.attributesNum!==j||r.index!==G}function g(M,F,z,G){const q={},ae=F.attributes;let j=0;const oe=z.getAttributes();for(const B in oe)if(oe[B].location>=0){let be=ae[B];be===void 0&&(B==="instanceMatrix"&&M.instanceMatrix&&(be=M.instanceMatrix),B==="instanceColor"&&M.instanceColor&&(be=M.instanceColor));const Ae={};Ae.attribute=be,be&&be.data&&(Ae.data=be.data),q[B]=Ae,j++}r.attributes=q,r.attributesNum=j,r.index=G}function v(){const M=r.newAttributes;for(let F=0,z=M.length;F=0){let Me=q[oe];if(Me===void 0&&(oe==="instanceMatrix"&&M.instanceMatrix&&(Me=M.instanceMatrix),oe==="instanceColor"&&M.instanceColor&&(Me=M.instanceColor)),Me!==void 0){const be=Me.normalized,Ae=Me.itemSize,ge=e.get(Me);if(ge===void 0)continue;const ze=ge.buffer,U=ge.type,D=ge.bytesPerElement,R=U===s.INT||U===s.UNSIGNED_INT||Me.gpuType===ou;if(Me.isInterleavedBufferAttribute){const T=Me.data,ie=T.stride,he=Me.offset;if(T.isInstancedInterleavedBuffer){for(let J=0;J0&&s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT).precision>0)return"highp";b="mediump"}return b==="mediump"&&s.getShaderPrecisionFormat(s.VERTEX_SHADER,s.MEDIUM_FLOAT).precision>0&&s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let c=t.precision!==void 0?t.precision:"highp";const u=l(c);u!==c&&(console.warn("THREE.WebGLRenderer:",c,"not supported, using",u,"instead."),c=u);const h=t.logarithmicDepthBuffer===!0,d=s.getParameter(s.MAX_TEXTURE_IMAGE_UNITS),f=s.getParameter(s.MAX_VERTEX_TEXTURE_IMAGE_UNITS),g=s.getParameter(s.MAX_TEXTURE_SIZE),v=s.getParameter(s.MAX_CUBE_MAP_TEXTURE_SIZE),p=s.getParameter(s.MAX_VERTEX_ATTRIBS),m=s.getParameter(s.MAX_VERTEX_UNIFORM_VECTORS),y=s.getParameter(s.MAX_VARYING_VECTORS),_=s.getParameter(s.MAX_FRAGMENT_UNIFORM_VECTORS),x=f>0,A=s.getParameter(s.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:r,getMaxPrecision:l,textureFormatReadable:o,textureTypeReadable:a,precision:c,logarithmicDepthBuffer:h,maxTextures:d,maxVertexTextures:f,maxTextureSize:g,maxCubemapSize:v,maxAttributes:p,maxVertexUniforms:m,maxVaryings:y,maxFragmentUniforms:_,vertexTextures:x,maxSamples:A}}function Pw(s){const e=this;let t=null,n=0,i=!1,r=!1;const o=new Si,a=new Ze,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(h,d){const f=h.length!==0||d||n!==0||i;return i=d,n=h.length,f},this.beginShadows=function(){r=!0,u(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(h,d){t=u(h,d,0)},this.setState=function(h,d,f){const g=h.clippingPlanes,v=h.clipIntersection,p=h.clipShadows,m=s.get(h);if(!i||g===null||g.length===0||r&&!p)r?u(null):c();else{const y=r?0:n,_=y*4;let x=m.clippingState||null;l.value=x,x=u(g,d,_,f);for(let A=0;A!==_;++A)x[A]=t[A];m.clippingState=x,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=y}};function c(){l.value!==t&&(l.value=t,l.needsUpdate=n>0),e.numPlanes=n,e.numIntersection=0}function u(h,d,f,g){const v=h!==null?h.length:0;let p=null;if(v!==0){if(p=l.value,g!==!0||p===null){const m=f+v*4,y=d.matrixWorldInverse;a.getNormalMatrix(y),(p===null||p.length0){const c=new Sp(l.height);return c.fromEquirectangularTexture(s,o),e.set(o,c),o.addEventListener("dispose",i),t(c.texture,o.mapping)}else return null}}return o}function i(o){const a=o.target;a.removeEventListener("dispose",i);const l=e.get(a);l!==void 0&&(e.delete(a),l.dispose())}function r(){e=new WeakMap}return{get:n,dispose:r}}class Da extends Xr{constructor(e=-1,t=1,n=1,i=-1,r=.1,o=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=r,this.far=o,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,r,o){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-e,o=n+e,a=i+t,l=i-t;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=c*this.view.offsetX,o=r+c*this.view.width,a-=u*this.view.offsetY,l=a-u*this.view.height}this.projectionMatrix.makeOrthographic(r,o,a,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}const Os=4,bh=[.125,.215,.35,.446,.526,.582],Zi=20,Cl=new Da,Sh=new Pe;let Pl=null,Rl=0,Il=0,Ll=!1;const Yi=(1+Math.sqrt(5))/2,Es=1/Yi,wh=[new N(-Yi,Es,0),new N(Yi,Es,0),new N(-Es,0,Yi),new N(Es,0,Yi),new N(0,Yi,-Es),new N(0,Yi,Es),new N(-1,1,-1),new N(1,1,-1),new N(-1,1,1),new N(1,1,1)];class Dc{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){Pl=this._renderer.getRenderTarget(),Rl=this._renderer.getActiveCubeFace(),Il=this._renderer.getActiveMipmapLevel(),Ll=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(e,n,i,r),t>0&&this._blur(r,0,0,t),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Eh(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Th(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?_:0,_,_),u.setRenderTarget(i),v&&u.render(g,a),u.render(e,a)}g.geometry.dispose(),g.material.dispose(),u.toneMapping=d,u.autoClear=h,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===oi||e.mapping===Ei;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=Eh()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Th());const r=i?this._cubemapMaterial:this._equirectMaterial,o=new Nt(this._lodPlanes[0],r),a=r.uniforms;a.envMap.value=e;const l=this._cubeSize;To(t,0,0,3*l,2*l),n.setRenderTarget(t),n.render(o,Cl)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const i=this._lodPlanes.length;for(let r=1;rZi&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${p} samples when the maximum is set to ${Zi}`);const m=[];let y=0;for(let E=0;E_-Os?i-_+Os:0),b=4*(this._cubeSize-x);To(t,A,b,3*x,2*x),l.setRenderTarget(t),l.render(h,Cl)}}function Iw(s){const e=[],t=[],n=[];let i=s;const r=s-Os+1+bh.length;for(let o=0;os-Os?l=bh[o-s+Os-1]:o===0&&(l=0),n.push(l);const c=1/(a-2),u=-c,h=1+c,d=[u,u,h,u,h,h,u,u,h,h,u,h],f=6,g=6,v=3,p=2,m=1,y=new Float32Array(v*g*f),_=new Float32Array(p*g*f),x=new Float32Array(m*g*f);for(let b=0;b2?0:-1,w=[E,I,0,E+2/3,I,0,E+2/3,I+1,0,E,I,0,E+2/3,I+1,0,E,I+1,0];y.set(w,v*g*b),_.set(d,p*g*b);const M=[b,b,b,b,b,b];x.set(M,m*g*b)}const A=new it;A.setAttribute("position",new pt(y,v)),A.setAttribute("uv",new pt(_,p)),A.setAttribute("faceIndex",new pt(x,m)),e.push(A),i>Os&&i--}return{lodPlanes:e,sizeLods:t,sigmas:n}}function Ah(s,e,t){const n=new In(s,e,t);return n.texture.mapping=Ws,n.texture.name="PMREM.cubeUv",n.scissorTest=!0,n}function To(s,e,t,n,i){s.viewport.set(e,t,n,i),s.scissor.set(e,t,n,i)}function Lw(s,e,t){const n=new Float32Array(Zi),i=new N(0,1,0);return new Ln({name:"SphericalGaussianBlur",defines:{n:Zi,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${s}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:n},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:xu(),fragmentShader:` precision mediump float; precision mediump int; @@ -3609,7 +3609,7 @@ void main() { } } - `,blending:ai,depthTest:!1,depthWrite:!1})}function Lh(){return new On({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Cu(),fragmentShader:` + `,blending:ii,depthTest:!1,depthWrite:!1})}function Th(){return new Ln({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:xu(),fragmentShader:` precision mediump float; precision mediump int; @@ -3628,7 +3628,7 @@ void main() { gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } - `,blending:ai,depthTest:!1,depthWrite:!1})}function Nh(){return new On({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Cu(),fragmentShader:` + `,blending:ii,depthTest:!1,depthWrite:!1})}function Eh(){return new Ln({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:xu(),fragmentShader:` precision mediump float; precision mediump int; @@ -3644,7 +3644,7 @@ void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } - `,blending:ai,depthTest:!1,depthWrite:!1})}function Cu(){return` + `,blending:ii,depthTest:!1,depthWrite:!1})}function xu(){return` precision mediump float; precision mediump int; @@ -3699,15 +3699,15 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}function Bw(s){let e=new WeakMap,t=null;function n(a){if(a&&a.isTexture){const l=a.mapping,c=l===Ar||l===Er,u=l===ui||l===Ri;if(c||u){let h=e.get(a);const d=h!==void 0?h.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==d)return t===null&&(t=new Vc(s)),h=c?t.fromEquirectangular(a,h):t.fromCubemap(a,h),h.texture.pmremVersion=a.pmremVersion,e.set(a,h),h.texture;if(h!==void 0)return h.texture;{const f=a.image;return c&&f&&f.height>0||u&&f&&i(f)?(t===null&&(t=new Vc(s)),h=c?t.fromEquirectangular(a):t.fromCubemap(a),h.texture.pmremVersion=a.pmremVersion,e.set(a,h),a.addEventListener("dispose",r),h.texture):null}}}return a}function i(a){let l=0;const c=6;for(let u=0;ue.maxTextureSize&&(E=Math.ceil(x/e.maxTextureSize),x=e.maxTextureSize);const S=new Float32Array(x*E*4*h),C=new Ba(S,x,E,h);C.type=xn,C.needsUpdate=!0;const L=v*4;for(let b=0;b0)return s;const i=e*t;let r=Dh[i];if(r===void 0&&(r=new Float32Array(i),Dh[i]=r),e!==0){n.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,s[o].toArray(r,a)}return r}function zt(s,e){if(s.length!==e.length)return!1;for(let t=0,n=s.length;t0||u&&f&&i(f)?(t===null&&(t=new Dc(s)),h=c?t.fromEquirectangular(a):t.fromCubemap(a),h.texture.pmremVersion=a.pmremVersion,e.set(a,h),a.addEventListener("dispose",r),h.texture):null}}}return a}function i(a){let l=0;const c=6;for(let u=0;ue.maxTextureSize&&(A=Math.ceil(x/e.maxTextureSize),x=e.maxTextureSize);const b=new Float32Array(x*A*4*h),E=new La(b,x,A,h);E.type=gn,E.needsUpdate=!0;const I=_*4;for(let M=0;M0)return s;const i=e*t;let r=Ch[i];if(r===void 0&&(r=new Float32Array(i),Ch[i]=r),e!==0){n.toArray(r,0);for(let o=1,a=0;o!==e;++o)a+=t,s[o].toArray(r,a)}return r}function Ft(s,e){if(s.length!==e.length)return!1;for(let t=0,n=s.length;t":" "} ${a}: ${t[o]}`)}return n.join(` -`)}function B1(s){const e=dt.getPrimaries(dt.workingColorSpace),t=dt.getPrimaries(s);let n;switch(e===t?n="":e===Dr&&t===Nr?n="LinearDisplayP3ToLinearSRGB":e===Nr&&t===Dr&&(n="LinearSRGBToLinearDisplayP3"),s){case fi:case jr:return[n,"LinearTransferOETF"];case dn:case ka:return[n,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",s),[n,"LinearTransferOETF"]}}function Vh(s,e,t){const n=s.getShaderParameter(e,s.COMPILE_STATUS),i=s.getShaderInfoLog(e).trim();if(n&&i==="")return"";const r=/ERROR: 0:(\d+)/.exec(i);if(r){const o=parseInt(r[1]);return t.toUpperCase()+` +`)}function N1(s){const e=ht.getPrimaries(ht.workingColorSpace),t=ht.getPrimaries(s);let n;switch(e===t?n="":e===Cr&&t===Er?n="LinearDisplayP3ToLinearSRGB":e===Er&&t===Cr&&(n="LinearSRGBToLinearDisplayP3"),s){case ci:case $r:return[n,"LinearTransferOETF"];case ln:case Ia:return[n,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",s),[n,"LinearTransferOETF"]}}function Uh(s,e,t){const n=s.getShaderParameter(e,s.COMPILE_STATUS),i=s.getShaderInfoLog(e).trim();if(n&&i==="")return"";const r=/ERROR: 0:(\d+)/.exec(i);if(r){const o=parseInt(r[1]);return t.toUpperCase()+` `+i+` -`+k1(s.getShaderSource(e),o)}else return i}function z1(s,e){const t=B1(e);return`vec4 ${s}( vec4 value ) { return ${t[0]}( ${t[1]}( value ) ); }`}function V1(s,e){let t;switch(e){case Yf:t="Linear";break;case Zf:t="Reinhard";break;case Kf:t="OptimizedCineon";break;case Ua:t="ACESFilmic";break;case jf:t="AgX";break;case Qf:t="Neutral";break;case Jf:t="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),t="Linear"}return"vec3 "+s+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}function H1(s){return[s.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",s.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(gr).join(` -`)}function G1(s){const e=[];for(const t in s){const n=s[t];n!==!1&&e.push("#define "+t+" "+n)}return e.join(` -`)}function W1(s,e){const t={},n=s.getProgramParameter(e,s.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Hc(s){return s.replace($1,q1)}const X1=new Map;function q1(s,e){let t=ot[e];if(t===void 0){const n=X1.get(e);if(n!==void 0)t=ot[n],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,n);else throw new Error("Can not resolve #include <"+e+">")}return Hc(t)}const Y1=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Wh(s){return s.replace(Y1,Z1)}function Z1(s,e,t,n){let i="";for(let r=parseInt(e);r/gm;function Uc(s){return s.replace(B1,V1)}const z1=new Map;function V1(s,e){let t=nt[e];if(t===void 0){const n=z1.get(e);if(n!==void 0)t=nt[n],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,n);else throw new Error("Can not resolve #include <"+e+">")}return Uc(t)}const H1=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function kh(s){return s.replace(H1,G1)}function G1(s,e,t,n){let i="";for(let r=parseInt(e);r0&&(p+=` -`),m=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g].filter(gr).join(` +`),m=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g].filter(ur).join(` `),m.length>0&&(m+=` -`)):(p=[$h(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.batchingColor?"#define USE_BATCHING_COLOR":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` -`].filter(gr).join(` -`),m=[$h(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.envMap?"#define "+u:"",t.envMap?"#define "+h:"",d?"#define CUBEUV_TEXEL_WIDTH "+d.texelWidth:"",d?"#define CUBEUV_TEXEL_HEIGHT "+d.texelHeight:"",d?"#define CUBEUV_MAX_MIP "+d.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor||t.batchingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Wn?"#define TONE_MAPPING":"",t.toneMapping!==Wn?ot.tonemapping_pars_fragment:"",t.toneMapping!==Wn?V1("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",ot.colorspace_pars_fragment,z1("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` -`].filter(gr).join(` -`)),o=Hc(o),o=Hh(o,t),o=Gh(o,t),a=Hc(a),a=Hh(a,t),a=Gh(a,t),o=Wh(o),a=Wh(a),t.isRawShaderMaterial!==!0&&(y=`#version 300 es +`)):(p=[Bh(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.batchingColor?"#define USE_BATCHING_COLOR":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING"," attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR"," attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH"," uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1"," attribute vec2 uv1;","#endif","#ifdef USE_UV2"," attribute vec2 uv2;","#endif","#ifdef USE_UV3"," attribute vec2 uv3;","#endif","#ifdef USE_TANGENT"," attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )"," attribute vec4 color;","#elif defined( USE_COLOR )"," attribute vec3 color;","#endif","#ifdef USE_SKINNING"," attribute vec4 skinIndex;"," attribute vec4 skinWeight;","#endif",` +`].filter(ur).join(` +`),m=[Bh(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+c:"",t.envMap?"#define "+u:"",t.envMap?"#define "+h:"",d?"#define CUBEUV_TEXEL_WIDTH "+d.texelWidth:"",d?"#define CUBEUV_TEXEL_HEIGHT "+d.texelHeight:"",d?"#define CUBEUV_MAX_MIP "+d.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor||t.batchingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+l:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==Hn?"#define TONE_MAPPING":"",t.toneMapping!==Hn?nt.tonemapping_pars_fragment:"",t.toneMapping!==Hn?U1("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",nt.colorspace_pars_fragment,D1("linearToOutputTexel",t.outputColorSpace),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",` +`].filter(ur).join(` +`)),o=Uc(o),o=Oh(o,t),o=Fh(o,t),a=Uc(a),a=Oh(a,t),a=Fh(a,t),o=kh(o),a=kh(a),t.isRawShaderMaterial!==!0&&(y=`#version 300 es `,p=[f,"#define attribute in","#define varying out","#define texture2D texture"].join(` `)+` -`+p,m=["#define varying in",t.glslVersion===zc?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===zc?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` +`+p,m=["#define varying in",t.glslVersion===Nc?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===Nc?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(` `)+` -`+m);const v=y+p+o,x=y+m+a,E=zh(i,i.VERTEX_SHADER,v),S=zh(i,i.FRAGMENT_SHADER,x);i.attachShader(_,E),i.attachShader(_,S),t.index0AttributeName!==void 0?i.bindAttribLocation(_,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(_,0,"position"),i.linkProgram(_);function C(k){if(s.debug.checkShaderErrors){const V=i.getProgramInfoLog(_).trim(),G=i.getShaderInfoLog(E).trim(),X=i.getShaderInfoLog(S).trim();let ce=!0,Z=!0;if(i.getProgramParameter(_,i.LINK_STATUS)===!1)if(ce=!1,typeof s.debug.onShaderError=="function")s.debug.onShaderError(i,_,E,S);else{const ae=Vh(i,E,"vertex"),z=Vh(i,S,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(_,i.VALIDATE_STATUS)+` +`+m);const _=y+p+o,x=y+m+a,A=Dh(i,i.VERTEX_SHADER,_),b=Dh(i,i.FRAGMENT_SHADER,x);i.attachShader(v,A),i.attachShader(v,b),t.index0AttributeName!==void 0?i.bindAttribLocation(v,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(v,0,"position"),i.linkProgram(v);function E(F){if(s.debug.checkShaderErrors){const z=i.getProgramInfoLog(v).trim(),G=i.getShaderInfoLog(A).trim(),q=i.getShaderInfoLog(b).trim();let ae=!0,j=!0;if(i.getProgramParameter(v,i.LINK_STATUS)===!1)if(ae=!1,typeof s.debug.onShaderError=="function")s.debug.onShaderError(i,v,A,b);else{const oe=Uh(i,A,"vertex"),B=Uh(i,b,"fragment");console.error("THREE.WebGLProgram: Shader Error "+i.getError()+" - VALIDATE_STATUS "+i.getProgramParameter(v,i.VALIDATE_STATUS)+` -Material Name: `+k.name+` -Material Type: `+k.type+` +Material Name: `+F.name+` +Material Type: `+F.type+` -Program Info Log: `+V+` -`+ae+` -`+z)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(G===""||X==="")&&(Z=!1);Z&&(k.diagnostics={runnable:ce,programLog:V,vertexShader:{log:G,prefix:p},fragmentShader:{log:X,prefix:m}})}i.deleteShader(E),i.deleteShader(S),L=new _a(i,_),A=W1(i,_)}let L;this.getUniforms=function(){return L===void 0&&C(this),L};let A;this.getAttributes=function(){return A===void 0&&C(this),A};let b=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return b===!1&&(b=i.getProgramParameter(_,O1)),b},this.destroy=function(){n.releaseStatesOfProgram(this),i.deleteProgram(_),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=F1++,this.cacheKey=e,this.usedTimes=1,this.program=_,this.vertexShader=E,this.fragmentShader=S,this}let nA=0;class iA{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return n===void 0&&(n=new sA(e),t.set(e,n)),n}}class sA{constructor(e){this.id=nA++,this.code=e,this.usedTimes=0}}function rA(s,e,t,n,i,r,o){const a=new za,l=new iA,c=new Set,u=[],h=i.logarithmicDepthBuffer,d=i.vertexTextures;let f=i.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function _(A){return c.add(A),A===0?"uv":`uv${A}`}function p(A,b,k,V,G){const X=V.fog,ce=G.geometry,Z=A.isMeshStandardMaterial?V.environment:null,ae=(A.isMeshStandardMaterial?t:e).get(A.envMap||Z),z=ae&&ae.mapping===Js?ae.image.height:null,Se=g[A.type];A.precision!==null&&(f=i.getMaxPrecision(A.precision),f!==A.precision&&console.warn("THREE.WebGLProgram.getParameters:",A.precision,"not supported, using",f,"instead."));const we=ce.morphAttributes.position||ce.morphAttributes.normal||ce.morphAttributes.color,Ae=we!==void 0?we.length:0;let _e=0;ce.morphAttributes.position!==void 0&&(_e=1),ce.morphAttributes.normal!==void 0&&(_e=2),ce.morphAttributes.color!==void 0&&(_e=3);let De,F,U,I;if(Se){const ht=Rn[Se];De=ht.vertexShader,F=ht.fragmentShader}else De=A.vertexShader,F=A.fragmentShader,l.update(A),U=l.getVertexShaderID(A),I=l.getFragmentShaderID(A);const T=s.getRenderTarget(),se=G.isInstancedMesh===!0,fe=G.isBatchedMesh===!0,K=!!A.map,D=!!A.matcap,q=!!ae,J=!!A.aoMap,H=!!A.lightMap,W=!!A.bumpMap,ie=!!A.normalMap,he=!!A.displacementMap,B=!!A.emissiveMap,O=!!A.metalnessMap,R=!!A.roughnessMap,w=A.anisotropy>0,Q=A.clearcoat>0,me=A.dispersion>0,de=A.iridescence>0,ye=A.sheen>0,Be=A.transmission>0,Ce=w&&!!A.anisotropyMap,Ee=Q&&!!A.clearcoatMap,Je=Q&&!!A.clearcoatNormalMap,be=Q&&!!A.clearcoatRoughnessMap,Ne=de&&!!A.iridescenceMap,rt=de&&!!A.iridescenceThicknessMap,Ke=ye&&!!A.sheenColorMap,Re=ye&&!!A.sheenRoughnessMap,nt=!!A.specularMap,it=!!A.specularColorMap,At=!!A.specularIntensityMap,M=Be&&!!A.transmissionMap,le=Be&&!!A.thicknessMap,ne=!!A.gradientMap,ue=!!A.alphaMap,Me=A.alphaTest>0,We=!!A.alphaHash,tt=!!A.extensions;let Et=Wn;A.toneMapped&&(T===null||T.isXRRenderTarget===!0)&&(Et=s.toneMapping);const Dt={shaderID:Se,shaderType:A.type,shaderName:A.name,vertexShader:De,fragmentShader:F,defines:A.defines,customVertexShaderID:U,customFragmentShaderID:I,isRawShaderMaterial:A.isRawShaderMaterial===!0,glslVersion:A.glslVersion,precision:f,batching:fe,batchingColor:fe&&G._colorsTexture!==null,instancing:se,instancingColor:se&&G.instanceColor!==null,instancingMorph:se&&G.morphTexture!==null,supportsVertexTextures:d,outputColorSpace:T===null?s.outputColorSpace:T.isXRRenderTarget===!0?T.texture.colorSpace:fi,alphaToCoverage:!!A.alphaToCoverage,map:K,matcap:D,envMap:q,envMapMode:q&&ae.mapping,envMapCubeUVHeight:z,aoMap:J,lightMap:H,bumpMap:W,normalMap:ie,displacementMap:d&&he,emissiveMap:B,normalMapObjectSpace:ie&&A.normalMapType===mp,normalMapTangentSpace:ie&&A.normalMapType===Ni,metalnessMap:O,roughnessMap:R,anisotropy:w,anisotropyMap:Ce,clearcoat:Q,clearcoatMap:Ee,clearcoatNormalMap:Je,clearcoatRoughnessMap:be,dispersion:me,iridescence:de,iridescenceMap:Ne,iridescenceThicknessMap:rt,sheen:ye,sheenColorMap:Ke,sheenRoughnessMap:Re,specularMap:nt,specularColorMap:it,specularIntensityMap:At,transmission:Be,transmissionMap:M,thicknessMap:le,gradientMap:ne,opaque:A.transparent===!1&&A.blending===os&&A.alphaToCoverage===!1,alphaMap:ue,alphaTest:Me,alphaHash:We,combine:A.combine,mapUv:K&&_(A.map.channel),aoMapUv:J&&_(A.aoMap.channel),lightMapUv:H&&_(A.lightMap.channel),bumpMapUv:W&&_(A.bumpMap.channel),normalMapUv:ie&&_(A.normalMap.channel),displacementMapUv:he&&_(A.displacementMap.channel),emissiveMapUv:B&&_(A.emissiveMap.channel),metalnessMapUv:O&&_(A.metalnessMap.channel),roughnessMapUv:R&&_(A.roughnessMap.channel),anisotropyMapUv:Ce&&_(A.anisotropyMap.channel),clearcoatMapUv:Ee&&_(A.clearcoatMap.channel),clearcoatNormalMapUv:Je&&_(A.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:be&&_(A.clearcoatRoughnessMap.channel),iridescenceMapUv:Ne&&_(A.iridescenceMap.channel),iridescenceThicknessMapUv:rt&&_(A.iridescenceThicknessMap.channel),sheenColorMapUv:Ke&&_(A.sheenColorMap.channel),sheenRoughnessMapUv:Re&&_(A.sheenRoughnessMap.channel),specularMapUv:nt&&_(A.specularMap.channel),specularColorMapUv:it&&_(A.specularColorMap.channel),specularIntensityMapUv:At&&_(A.specularIntensityMap.channel),transmissionMapUv:M&&_(A.transmissionMap.channel),thicknessMapUv:le&&_(A.thicknessMap.channel),alphaMapUv:ue&&_(A.alphaMap.channel),vertexTangents:!!ce.attributes.tangent&&(ie||w),vertexColors:A.vertexColors,vertexAlphas:A.vertexColors===!0&&!!ce.attributes.color&&ce.attributes.color.itemSize===4,pointsUvs:G.isPoints===!0&&!!ce.attributes.uv&&(K||ue),fog:!!X,useFog:A.fog===!0,fogExp2:!!X&&X.isFogExp2,flatShading:A.flatShading===!0,sizeAttenuation:A.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:G.isSkinnedMesh===!0,morphTargets:ce.morphAttributes.position!==void 0,morphNormals:ce.morphAttributes.normal!==void 0,morphColors:ce.morphAttributes.color!==void 0,morphTargetsCount:Ae,morphTextureStride:_e,numDirLights:b.directional.length,numPointLights:b.point.length,numSpotLights:b.spot.length,numSpotLightMaps:b.spotLightMap.length,numRectAreaLights:b.rectArea.length,numHemiLights:b.hemi.length,numDirLightShadows:b.directionalShadowMap.length,numPointLightShadows:b.pointShadowMap.length,numSpotLightShadows:b.spotShadowMap.length,numSpotLightShadowsWithMaps:b.numSpotLightShadowsWithMaps,numLightProbes:b.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:A.dithering,shadowMapEnabled:s.shadowMap.enabled&&k.length>0,shadowMapType:s.shadowMap.type,toneMapping:Et,decodeVideoTexture:K&&A.map.isVideoTexture===!0&&dt.getTransfer(A.map.colorSpace)===Mt,premultipliedAlpha:A.premultipliedAlpha,doubleSided:A.side===In,flipSided:A.side===an,useDepthPacking:A.depthPacking>=0,depthPacking:A.depthPacking||0,index0AttributeName:A.index0AttributeName,extensionClipCullDistance:tt&&A.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:tt&&A.extensions.multiDraw===!0&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:A.customProgramCacheKey()};return Dt.vertexUv1s=c.has(1),Dt.vertexUv2s=c.has(2),Dt.vertexUv3s=c.has(3),c.clear(),Dt}function m(A){const b=[];if(A.shaderID?b.push(A.shaderID):(b.push(A.customVertexShaderID),b.push(A.customFragmentShaderID)),A.defines!==void 0)for(const k in A.defines)b.push(k),b.push(A.defines[k]);return A.isRawShaderMaterial===!1&&(y(b,A),v(b,A),b.push(s.outputColorSpace)),b.push(A.customProgramCacheKey),b.join()}function y(A,b){A.push(b.precision),A.push(b.outputColorSpace),A.push(b.envMapMode),A.push(b.envMapCubeUVHeight),A.push(b.mapUv),A.push(b.alphaMapUv),A.push(b.lightMapUv),A.push(b.aoMapUv),A.push(b.bumpMapUv),A.push(b.normalMapUv),A.push(b.displacementMapUv),A.push(b.emissiveMapUv),A.push(b.metalnessMapUv),A.push(b.roughnessMapUv),A.push(b.anisotropyMapUv),A.push(b.clearcoatMapUv),A.push(b.clearcoatNormalMapUv),A.push(b.clearcoatRoughnessMapUv),A.push(b.iridescenceMapUv),A.push(b.iridescenceThicknessMapUv),A.push(b.sheenColorMapUv),A.push(b.sheenRoughnessMapUv),A.push(b.specularMapUv),A.push(b.specularColorMapUv),A.push(b.specularIntensityMapUv),A.push(b.transmissionMapUv),A.push(b.thicknessMapUv),A.push(b.combine),A.push(b.fogExp2),A.push(b.sizeAttenuation),A.push(b.morphTargetsCount),A.push(b.morphAttributeCount),A.push(b.numDirLights),A.push(b.numPointLights),A.push(b.numSpotLights),A.push(b.numSpotLightMaps),A.push(b.numHemiLights),A.push(b.numRectAreaLights),A.push(b.numDirLightShadows),A.push(b.numPointLightShadows),A.push(b.numSpotLightShadows),A.push(b.numSpotLightShadowsWithMaps),A.push(b.numLightProbes),A.push(b.shadowMapType),A.push(b.toneMapping),A.push(b.numClippingPlanes),A.push(b.numClipIntersection),A.push(b.depthPacking)}function v(A,b){a.disableAll(),b.supportsVertexTextures&&a.enable(0),b.instancing&&a.enable(1),b.instancingColor&&a.enable(2),b.instancingMorph&&a.enable(3),b.matcap&&a.enable(4),b.envMap&&a.enable(5),b.normalMapObjectSpace&&a.enable(6),b.normalMapTangentSpace&&a.enable(7),b.clearcoat&&a.enable(8),b.iridescence&&a.enable(9),b.alphaTest&&a.enable(10),b.vertexColors&&a.enable(11),b.vertexAlphas&&a.enable(12),b.vertexUv1s&&a.enable(13),b.vertexUv2s&&a.enable(14),b.vertexUv3s&&a.enable(15),b.vertexTangents&&a.enable(16),b.anisotropy&&a.enable(17),b.alphaHash&&a.enable(18),b.batching&&a.enable(19),b.dispersion&&a.enable(20),b.batchingColor&&a.enable(21),A.push(a.mask),a.disableAll(),b.fog&&a.enable(0),b.useFog&&a.enable(1),b.flatShading&&a.enable(2),b.logarithmicDepthBuffer&&a.enable(3),b.skinning&&a.enable(4),b.morphTargets&&a.enable(5),b.morphNormals&&a.enable(6),b.morphColors&&a.enable(7),b.premultipliedAlpha&&a.enable(8),b.shadowMapEnabled&&a.enable(9),b.doubleSided&&a.enable(10),b.flipSided&&a.enable(11),b.useDepthPacking&&a.enable(12),b.dithering&&a.enable(13),b.transmission&&a.enable(14),b.sheen&&a.enable(15),b.opaque&&a.enable(16),b.pointsUvs&&a.enable(17),b.decodeVideoTexture&&a.enable(18),b.alphaToCoverage&&a.enable(19),A.push(a.mask)}function x(A){const b=g[A.type];let k;if(b){const V=Rn[b];k=Pp.clone(V.uniforms)}else k=A.uniforms;return k}function E(A,b){let k;for(let V=0,G=u.length;V0?n.push(m):f.transparent===!0?i.push(m):t.push(m)}function l(h,d,f,g,_,p){const m=o(h,d,f,g,_,p);f.transmission>0?n.unshift(m):f.transparent===!0?i.unshift(m):t.unshift(m)}function c(h,d){t.length>1&&t.sort(h||aA),n.length>1&&n.sort(d||Xh),i.length>1&&i.sort(d||Xh)}function u(){for(let h=e,d=s.length;h=r.length?(o=new qh,r.push(o)):o=r[i],o}function t(){s=new WeakMap}return{get:e,dispose:t}}function cA(){const s={};return{get:function(e){if(s[e.id]!==void 0)return s[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new N,color:new Ie};break;case"SpotLight":t={position:new N,direction:new N,color:new Ie,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new N,color:new Ie,distance:0,decay:0};break;case"HemisphereLight":t={direction:new N,skyColor:new Ie,groundColor:new Ie};break;case"RectAreaLight":t={color:new Ie,position:new N,halfWidth:new N,halfHeight:new N};break}return s[e.id]=t,t}}}function uA(){const s={};return{get:function(e){if(s[e.id]!==void 0)return s[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new te};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new te};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new te,shadowCameraNear:1,shadowCameraFar:1e3};break}return s[e.id]=t,t}}}let hA=0;function dA(s,e){return(e.castShadow?2:0)-(s.castShadow?2:0)+(e.map?1:0)-(s.map?1:0)}function fA(s){const e=new cA,t=uA(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)n.probe.push(new N);const i=new N,r=new Ze,o=new Ze;function a(c){let u=0,h=0,d=0;for(let A=0;A<9;A++)n.probe[A].set(0,0,0);let f=0,g=0,_=0,p=0,m=0,y=0,v=0,x=0,E=0,S=0,C=0;c.sort(dA);for(let A=0,b=c.length;A0&&(s.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=Pe.LTC_FLOAT_1,n.rectAreaLTC2=Pe.LTC_FLOAT_2):(n.rectAreaLTC1=Pe.LTC_HALF_1,n.rectAreaLTC2=Pe.LTC_HALF_2)),n.ambient[0]=u,n.ambient[1]=h,n.ambient[2]=d;const L=n.hash;(L.directionalLength!==f||L.pointLength!==g||L.spotLength!==_||L.rectAreaLength!==p||L.hemiLength!==m||L.numDirectionalShadows!==y||L.numPointShadows!==v||L.numSpotShadows!==x||L.numSpotMaps!==E||L.numLightProbes!==C)&&(n.directional.length=f,n.spot.length=_,n.rectArea.length=p,n.point.length=g,n.hemi.length=m,n.directionalShadow.length=y,n.directionalShadowMap.length=y,n.pointShadow.length=v,n.pointShadowMap.length=v,n.spotShadow.length=x,n.spotShadowMap.length=x,n.directionalShadowMatrix.length=y,n.pointShadowMatrix.length=v,n.spotLightMatrix.length=x+E-S,n.spotLightMap.length=E,n.numSpotLightShadowsWithMaps=S,n.numLightProbes=C,L.directionalLength=f,L.pointLength=g,L.spotLength=_,L.rectAreaLength=p,L.hemiLength=m,L.numDirectionalShadows=y,L.numPointShadows=v,L.numSpotShadows=x,L.numSpotMaps=E,L.numLightProbes=C,n.version=hA++)}function l(c,u){let h=0,d=0,f=0,g=0,_=0;const p=u.matrixWorldInverse;for(let m=0,y=c.length;m=o.length?(a=new Yh(s),o.push(a)):a=o[r],a}function n(){e=new WeakMap}return{get:t,dispose:n}}class Ru extends en{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=fp,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Iu extends en{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const mA=`void main() { +Program Info Log: `+z+` +`+oe+` +`+B)}else z!==""?console.warn("THREE.WebGLProgram: Program Info Log:",z):(G===""||q==="")&&(j=!1);j&&(F.diagnostics={runnable:ae,programLog:z,vertexShader:{log:G,prefix:p},fragmentShader:{log:q,prefix:m}})}i.deleteShader(A),i.deleteShader(b),I=new ua(i,v),w=k1(i,v)}let I;this.getUniforms=function(){return I===void 0&&E(this),I};let w;this.getAttributes=function(){return w===void 0&&E(this),w};let M=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return M===!1&&(M=i.getProgramParameter(v,R1)),M},this.destroy=function(){n.releaseStatesOfProgram(this),i.deleteProgram(v),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=I1++,this.cacheKey=e,this.usedTimes=1,this.program=v,this.vertexShader=A,this.fragmentShader=b,this}let J1=0;class K1{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),r=this._getShaderStage(n),o=this._getShaderCacheForMaterial(e);return o.has(i)===!1&&(o.add(i),i.usedTimes++),o.has(r)===!1&&(o.add(r),r.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,n.usedTimes===0&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return n===void 0&&(n=new j1(e),t.set(e,n)),n}}class j1{constructor(e){this.id=J1++,this.code=e,this.usedTimes=0}}function Q1(s,e,t,n,i,r,o){const a=new Na,l=new K1,c=new Set,u=[],h=i.logarithmicDepthBuffer,d=i.vertexTextures;let f=i.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function v(w){return c.add(w),w===0?"uv":`uv${w}`}function p(w,M,F,z,G){const q=z.fog,ae=G.geometry,j=w.isMeshStandardMaterial?z.environment:null,oe=(w.isMeshStandardMaterial?t:e).get(w.envMap||j),B=oe&&oe.mapping===Ws?oe.image.height:null,Me=g[w.type];w.precision!==null&&(f=i.getMaxPrecision(w.precision),f!==w.precision&&console.warn("THREE.WebGLProgram.getParameters:",w.precision,"not supported, using",f,"instead."));const be=ae.morphAttributes.position||ae.morphAttributes.normal||ae.morphAttributes.color,Ae=be!==void 0?be.length:0;let ge=0;ae.morphAttributes.position!==void 0&&(ge=1),ae.morphAttributes.normal!==void 0&&(ge=2),ae.morphAttributes.color!==void 0&&(ge=3);let ze,U,D,R;if(Me){const vt=Tn[Me];ze=vt.vertexShader,U=vt.fragmentShader}else ze=w.vertexShader,U=w.fragmentShader,l.update(w),D=l.getVertexShaderID(w),R=l.getFragmentShaderID(w);const T=s.getRenderTarget(),ie=G.isInstancedMesh===!0,he=G.isBatchedMesh===!0,J=!!w.map,L=!!w.matcap,X=!!oe,K=!!w.aoMap,H=!!w.lightMap,$=!!w.bumpMap,te=!!w.normalMap,le=!!w.displacementMap,k=!!w.emissiveMap,O=!!w.metalnessMap,P=!!w.roughnessMap,S=w.anisotropy>0,Q=w.clearcoat>0,pe=w.dispersion>0,ce=w.iridescence>0,ve=w.sheen>0,He=w.transmission>0,Ee=S&&!!w.anisotropyMap,Te=Q&&!!w.clearcoatMap,Qe=Q&&!!w.clearcoatNormalMap,xe=Q&&!!w.clearcoatRoughnessMap,Ue=ce&&!!w.iridescenceMap,st=ce&&!!w.iridescenceThicknessMap,Je=ve&&!!w.sheenColorMap,Re=ve&&!!w.sheenRoughnessMap,rt=!!w.specularMap,at=!!w.specularColorMap,Rt=!!w.specularIntensityMap,V=He&&!!w.transmissionMap,Ie=He&&!!w.thicknessMap,de=!!w.gradientMap,_e=!!w.alphaMap,we=w.alphaTest>0,et=!!w.alphaHash,ut=!!w.extensions;let It=Hn;w.toneMapped&&(T===null||T.isXRRenderTarget===!0)&&(It=s.toneMapping);const Bt={shaderID:Me,shaderType:w.type,shaderName:w.name,vertexShader:ze,fragmentShader:U,defines:w.defines,customVertexShaderID:D,customFragmentShaderID:R,isRawShaderMaterial:w.isRawShaderMaterial===!0,glslVersion:w.glslVersion,precision:f,batching:he,batchingColor:he&&G._colorsTexture!==null,instancing:ie,instancingColor:ie&&G.instanceColor!==null,instancingMorph:ie&&G.morphTexture!==null,supportsVertexTextures:d,outputColorSpace:T===null?s.outputColorSpace:T.isXRRenderTarget===!0?T.texture.colorSpace:ci,alphaToCoverage:!!w.alphaToCoverage,map:J,matcap:L,envMap:X,envMapMode:X&&oe.mapping,envMapCubeUVHeight:B,aoMap:K,lightMap:H,bumpMap:$,normalMap:te,displacementMap:d&&le,emissiveMap:k,normalMapObjectSpace:te&&w.normalMapType===op,normalMapTangentSpace:te&&w.normalMapType===Ri,metalnessMap:O,roughnessMap:P,anisotropy:S,anisotropyMap:Ee,clearcoat:Q,clearcoatMap:Te,clearcoatNormalMap:Qe,clearcoatRoughnessMap:xe,dispersion:pe,iridescence:ce,iridescenceMap:Ue,iridescenceThicknessMap:st,sheen:ve,sheenColorMap:Je,sheenRoughnessMap:Re,specularMap:rt,specularColorMap:at,specularIntensityMap:Rt,transmission:He,transmissionMap:V,thicknessMap:Ie,gradientMap:de,opaque:w.transparent===!1&&w.blending===es&&w.alphaToCoverage===!1,alphaMap:_e,alphaTest:we,alphaHash:et,combine:w.combine,mapUv:J&&v(w.map.channel),aoMapUv:K&&v(w.aoMap.channel),lightMapUv:H&&v(w.lightMap.channel),bumpMapUv:$&&v(w.bumpMap.channel),normalMapUv:te&&v(w.normalMap.channel),displacementMapUv:le&&v(w.displacementMap.channel),emissiveMapUv:k&&v(w.emissiveMap.channel),metalnessMapUv:O&&v(w.metalnessMap.channel),roughnessMapUv:P&&v(w.roughnessMap.channel),anisotropyMapUv:Ee&&v(w.anisotropyMap.channel),clearcoatMapUv:Te&&v(w.clearcoatMap.channel),clearcoatNormalMapUv:Qe&&v(w.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:xe&&v(w.clearcoatRoughnessMap.channel),iridescenceMapUv:Ue&&v(w.iridescenceMap.channel),iridescenceThicknessMapUv:st&&v(w.iridescenceThicknessMap.channel),sheenColorMapUv:Je&&v(w.sheenColorMap.channel),sheenRoughnessMapUv:Re&&v(w.sheenRoughnessMap.channel),specularMapUv:rt&&v(w.specularMap.channel),specularColorMapUv:at&&v(w.specularColorMap.channel),specularIntensityMapUv:Rt&&v(w.specularIntensityMap.channel),transmissionMapUv:V&&v(w.transmissionMap.channel),thicknessMapUv:Ie&&v(w.thicknessMap.channel),alphaMapUv:_e&&v(w.alphaMap.channel),vertexTangents:!!ae.attributes.tangent&&(te||S),vertexColors:w.vertexColors,vertexAlphas:w.vertexColors===!0&&!!ae.attributes.color&&ae.attributes.color.itemSize===4,pointsUvs:G.isPoints===!0&&!!ae.attributes.uv&&(J||_e),fog:!!q,useFog:w.fog===!0,fogExp2:!!q&&q.isFogExp2,flatShading:w.flatShading===!0,sizeAttenuation:w.sizeAttenuation===!0,logarithmicDepthBuffer:h,skinning:G.isSkinnedMesh===!0,morphTargets:ae.morphAttributes.position!==void 0,morphNormals:ae.morphAttributes.normal!==void 0,morphColors:ae.morphAttributes.color!==void 0,morphTargetsCount:Ae,morphTextureStride:ge,numDirLights:M.directional.length,numPointLights:M.point.length,numSpotLights:M.spot.length,numSpotLightMaps:M.spotLightMap.length,numRectAreaLights:M.rectArea.length,numHemiLights:M.hemi.length,numDirLightShadows:M.directionalShadowMap.length,numPointLightShadows:M.pointShadowMap.length,numSpotLightShadows:M.spotShadowMap.length,numSpotLightShadowsWithMaps:M.numSpotLightShadowsWithMaps,numLightProbes:M.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:w.dithering,shadowMapEnabled:s.shadowMap.enabled&&F.length>0,shadowMapType:s.shadowMap.type,toneMapping:It,decodeVideoTexture:J&&w.map.isVideoTexture===!0&&ht.getTransfer(w.map.colorSpace)===Mt,premultipliedAlpha:w.premultipliedAlpha,doubleSided:w.side===En,flipSided:w.side===nn,useDepthPacking:w.depthPacking>=0,depthPacking:w.depthPacking||0,index0AttributeName:w.index0AttributeName,extensionClipCullDistance:ut&&w.extensions.clipCullDistance===!0&&n.has("WEBGL_clip_cull_distance"),extensionMultiDraw:ut&&w.extensions.multiDraw===!0&&n.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:n.has("KHR_parallel_shader_compile"),customProgramCacheKey:w.customProgramCacheKey()};return Bt.vertexUv1s=c.has(1),Bt.vertexUv2s=c.has(2),Bt.vertexUv3s=c.has(3),c.clear(),Bt}function m(w){const M=[];if(w.shaderID?M.push(w.shaderID):(M.push(w.customVertexShaderID),M.push(w.customFragmentShaderID)),w.defines!==void 0)for(const F in w.defines)M.push(F),M.push(w.defines[F]);return w.isRawShaderMaterial===!1&&(y(M,w),_(M,w),M.push(s.outputColorSpace)),M.push(w.customProgramCacheKey),M.join()}function y(w,M){w.push(M.precision),w.push(M.outputColorSpace),w.push(M.envMapMode),w.push(M.envMapCubeUVHeight),w.push(M.mapUv),w.push(M.alphaMapUv),w.push(M.lightMapUv),w.push(M.aoMapUv),w.push(M.bumpMapUv),w.push(M.normalMapUv),w.push(M.displacementMapUv),w.push(M.emissiveMapUv),w.push(M.metalnessMapUv),w.push(M.roughnessMapUv),w.push(M.anisotropyMapUv),w.push(M.clearcoatMapUv),w.push(M.clearcoatNormalMapUv),w.push(M.clearcoatRoughnessMapUv),w.push(M.iridescenceMapUv),w.push(M.iridescenceThicknessMapUv),w.push(M.sheenColorMapUv),w.push(M.sheenRoughnessMapUv),w.push(M.specularMapUv),w.push(M.specularColorMapUv),w.push(M.specularIntensityMapUv),w.push(M.transmissionMapUv),w.push(M.thicknessMapUv),w.push(M.combine),w.push(M.fogExp2),w.push(M.sizeAttenuation),w.push(M.morphTargetsCount),w.push(M.morphAttributeCount),w.push(M.numDirLights),w.push(M.numPointLights),w.push(M.numSpotLights),w.push(M.numSpotLightMaps),w.push(M.numHemiLights),w.push(M.numRectAreaLights),w.push(M.numDirLightShadows),w.push(M.numPointLightShadows),w.push(M.numSpotLightShadows),w.push(M.numSpotLightShadowsWithMaps),w.push(M.numLightProbes),w.push(M.shadowMapType),w.push(M.toneMapping),w.push(M.numClippingPlanes),w.push(M.numClipIntersection),w.push(M.depthPacking)}function _(w,M){a.disableAll(),M.supportsVertexTextures&&a.enable(0),M.instancing&&a.enable(1),M.instancingColor&&a.enable(2),M.instancingMorph&&a.enable(3),M.matcap&&a.enable(4),M.envMap&&a.enable(5),M.normalMapObjectSpace&&a.enable(6),M.normalMapTangentSpace&&a.enable(7),M.clearcoat&&a.enable(8),M.iridescence&&a.enable(9),M.alphaTest&&a.enable(10),M.vertexColors&&a.enable(11),M.vertexAlphas&&a.enable(12),M.vertexUv1s&&a.enable(13),M.vertexUv2s&&a.enable(14),M.vertexUv3s&&a.enable(15),M.vertexTangents&&a.enable(16),M.anisotropy&&a.enable(17),M.alphaHash&&a.enable(18),M.batching&&a.enable(19),M.dispersion&&a.enable(20),M.batchingColor&&a.enable(21),w.push(a.mask),a.disableAll(),M.fog&&a.enable(0),M.useFog&&a.enable(1),M.flatShading&&a.enable(2),M.logarithmicDepthBuffer&&a.enable(3),M.skinning&&a.enable(4),M.morphTargets&&a.enable(5),M.morphNormals&&a.enable(6),M.morphColors&&a.enable(7),M.premultipliedAlpha&&a.enable(8),M.shadowMapEnabled&&a.enable(9),M.doubleSided&&a.enable(10),M.flipSided&&a.enable(11),M.useDepthPacking&&a.enable(12),M.dithering&&a.enable(13),M.transmission&&a.enable(14),M.sheen&&a.enable(15),M.opaque&&a.enable(16),M.pointsUvs&&a.enable(17),M.decodeVideoTexture&&a.enable(18),M.alphaToCoverage&&a.enable(19),w.push(a.mask)}function x(w){const M=g[w.type];let F;if(M){const z=Tn[M];F=Mp.clone(z.uniforms)}else F=w.uniforms;return F}function A(w,M){let F;for(let z=0,G=u.length;z0?n.push(m):f.transparent===!0?i.push(m):t.push(m)}function l(h,d,f,g,v,p){const m=o(h,d,f,g,v,p);f.transmission>0?n.unshift(m):f.transparent===!0?i.unshift(m):t.unshift(m)}function c(h,d){t.length>1&&t.sort(h||tA),n.length>1&&n.sort(d||zh),i.length>1&&i.sort(d||zh)}function u(){for(let h=e,d=s.length;h=r.length?(o=new Vh,r.push(o)):o=r[i],o}function t(){s=new WeakMap}return{get:e,dispose:t}}function iA(){const s={};return{get:function(e){if(s[e.id]!==void 0)return s[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new N,color:new Pe};break;case"SpotLight":t={position:new N,direction:new N,color:new Pe,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new N,color:new Pe,distance:0,decay:0};break;case"HemisphereLight":t={direction:new N,skyColor:new Pe,groundColor:new Pe};break;case"RectAreaLight":t={color:new Pe,position:new N,halfWidth:new N,halfHeight:new N};break}return s[e.id]=t,t}}}function sA(){const s={};return{get:function(e){if(s[e.id]!==void 0)return s[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new se};break;case"SpotLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new se};break;case"PointLight":t={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new se,shadowCameraNear:1,shadowCameraFar:1e3};break}return s[e.id]=t,t}}}let rA=0;function oA(s,e){return(e.castShadow?2:0)-(s.castShadow?2:0)+(e.map?1:0)-(s.map?1:0)}function aA(s){const e=new iA,t=sA(),n={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)n.probe.push(new N);const i=new N,r=new Ye,o=new Ye;function a(c){let u=0,h=0,d=0;for(let w=0;w<9;w++)n.probe[w].set(0,0,0);let f=0,g=0,v=0,p=0,m=0,y=0,_=0,x=0,A=0,b=0,E=0;c.sort(oA);for(let w=0,M=c.length;w0&&(s.has("OES_texture_float_linear")===!0?(n.rectAreaLTC1=Ce.LTC_FLOAT_1,n.rectAreaLTC2=Ce.LTC_FLOAT_2):(n.rectAreaLTC1=Ce.LTC_HALF_1,n.rectAreaLTC2=Ce.LTC_HALF_2)),n.ambient[0]=u,n.ambient[1]=h,n.ambient[2]=d;const I=n.hash;(I.directionalLength!==f||I.pointLength!==g||I.spotLength!==v||I.rectAreaLength!==p||I.hemiLength!==m||I.numDirectionalShadows!==y||I.numPointShadows!==_||I.numSpotShadows!==x||I.numSpotMaps!==A||I.numLightProbes!==E)&&(n.directional.length=f,n.spot.length=v,n.rectArea.length=p,n.point.length=g,n.hemi.length=m,n.directionalShadow.length=y,n.directionalShadowMap.length=y,n.pointShadow.length=_,n.pointShadowMap.length=_,n.spotShadow.length=x,n.spotShadowMap.length=x,n.directionalShadowMatrix.length=y,n.pointShadowMatrix.length=_,n.spotLightMatrix.length=x+A-b,n.spotLightMap.length=A,n.numSpotLightShadowsWithMaps=b,n.numLightProbes=E,I.directionalLength=f,I.pointLength=g,I.spotLength=v,I.rectAreaLength=p,I.hemiLength=m,I.numDirectionalShadows=y,I.numPointShadows=_,I.numSpotShadows=x,I.numSpotMaps=A,I.numLightProbes=E,n.version=rA++)}function l(c,u){let h=0,d=0,f=0,g=0,v=0;const p=u.matrixWorldInverse;for(let m=0,y=c.length;m=o.length?(a=new Hh(s),o.push(a)):a=o[r],a}function n(){e=new WeakMap}return{get:t,dispose:n}}class bu extends Kt{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=sp,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Su extends Kt{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const cA=`void main() { gl_Position = vec4( position, 1.0 ); -}`,gA=`uniform sampler2D shadow_pass; +}`,uA=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; #include @@ -3776,12 +3776,12 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( squared_mean - mean * mean ); gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) ); -}`;function _A(s,e,t){let n=new to;const i=new te,r=new te,o=new _t,a=new Ru({depthPacking:pp}),l=new Iu,c={},u=t.maxTextureSize,h={[ci]:an,[an]:ci,[In]:In},d=new On({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new te},radius:{value:4}},vertexShader:mA,fragmentShader:gA}),f=d.clone();f.defines.HORIZONTAL_PASS=1;const g=new at;g.setAttribute("position",new mt(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const _=new Nt(g,d),p=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=uu;let m=this.type;this.render=function(S,C,L){if(p.enabled===!1||p.autoUpdate===!1&&p.needsUpdate===!1||S.length===0)return;const A=s.getRenderTarget(),b=s.getActiveCubeFace(),k=s.getActiveMipmapLevel(),V=s.state;V.setBlending(ai),V.buffers.color.setClear(1,1,1,1),V.buffers.depth.setTest(!0),V.setScissorTest(!1);const G=m!==zn&&this.type===zn,X=m===zn&&this.type!==zn;for(let ce=0,Z=S.length;ceu||i.y>u)&&(i.x>u&&(r.x=Math.floor(u/Se.x),i.x=r.x*Se.x,z.mapSize.x=r.x),i.y>u&&(r.y=Math.floor(u/Se.y),i.y=r.y*Se.y,z.mapSize.y=r.y)),z.map===null||G===!0||X===!0){const Ae=this.type!==zn?{minFilter:Wt,magFilter:Wt}:{};z.map!==null&&z.map.dispose(),z.map=new Un(i.x,i.y,Ae),z.map.texture.name=ae.name+".shadowMap",z.camera.updateProjectionMatrix()}s.setRenderTarget(z.map),s.clear();const we=z.getViewportCount();for(let Ae=0;Ae0||C.map&&C.alphaTest>0){const V=b.uuid,G=C.uuid;let X=c[V];X===void 0&&(X={},c[V]=X);let ce=X[G];ce===void 0&&(ce=b.clone(),X[G]=ce,C.addEventListener("dispose",E)),b=ce}if(b.visible=C.visible,b.wireframe=C.wireframe,A===zn?b.side=C.shadowSide!==null?C.shadowSide:C.side:b.side=C.shadowSide!==null?C.shadowSide:h[C.side],b.alphaMap=C.alphaMap,b.alphaTest=C.alphaTest,b.map=C.map,b.clipShadows=C.clipShadows,b.clippingPlanes=C.clippingPlanes,b.clipIntersection=C.clipIntersection,b.displacementMap=C.displacementMap,b.displacementScale=C.displacementScale,b.displacementBias=C.displacementBias,b.wireframeLinewidth=C.wireframeLinewidth,b.linewidth=C.linewidth,L.isPointLight===!0&&b.isMeshDistanceMaterial===!0){const V=s.properties.get(b);V.light=L}return b}function x(S,C,L,A,b){if(S.visible===!1)return;if(S.layers.test(C.layers)&&(S.isMesh||S.isLine||S.isPoints)&&(S.castShadow||S.receiveShadow&&b===zn)&&(!S.frustumCulled||n.intersectsObject(S))){S.modelViewMatrix.multiplyMatrices(L.matrixWorldInverse,S.matrixWorld);const G=e.update(S),X=S.material;if(Array.isArray(X)){const ce=G.groups;for(let Z=0,ae=ce.length;Z=1):ae.indexOf("OpenGL ES")!==-1&&(Z=parseFloat(/^OpenGL ES (\d)/.exec(ae)[1]),ce=Z>=2);let z=null,Se={};const we=s.getParameter(s.SCISSOR_BOX),Ae=s.getParameter(s.VIEWPORT),_e=new _t().fromArray(we),De=new _t().fromArray(Ae);function F(M,le,ne,ue){const Me=new Uint8Array(4),We=s.createTexture();s.bindTexture(M,We),s.texParameteri(M,s.TEXTURE_MIN_FILTER,s.NEAREST),s.texParameteri(M,s.TEXTURE_MAG_FILTER,s.NEAREST);for(let tt=0;tt"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new te,u=new WeakMap;let h;const d=new WeakMap;let f=!1;try{f=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function g(R,w){return f?new OffscreenCanvas(R,w):Fr("canvas")}function _(R,w,Q){let me=1;const de=O(R);if((de.width>Q||de.height>Q)&&(me=Q/Math.max(de.width,de.height)),me<1)if(typeof HTMLImageElement<"u"&&R instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&R instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&R instanceof ImageBitmap||typeof VideoFrame<"u"&&R instanceof VideoFrame){const ye=Math.floor(me*de.width),Be=Math.floor(me*de.height);h===void 0&&(h=g(ye,Be));const Ce=w?g(ye,Be):h;return Ce.width=ye,Ce.height=Be,Ce.getContext("2d").drawImage(R,0,0,ye,Be),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+de.width+"x"+de.height+") to ("+ye+"x"+Be+")."),Ce}else return"data"in R&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+de.width+"x"+de.height+")."),R;return R}function p(R){return R.generateMipmaps&&R.minFilter!==Wt&&R.minFilter!==Bt}function m(R){s.generateMipmap(R)}function y(R,w,Q,me,de=!1){if(R!==null){if(s[R]!==void 0)return s[R];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+R+"'")}let ye=w;if(w===s.RED&&(Q===s.FLOAT&&(ye=s.R32F),Q===s.HALF_FLOAT&&(ye=s.R16F),Q===s.UNSIGNED_BYTE&&(ye=s.R8)),w===s.RED_INTEGER&&(Q===s.UNSIGNED_BYTE&&(ye=s.R8UI),Q===s.UNSIGNED_SHORT&&(ye=s.R16UI),Q===s.UNSIGNED_INT&&(ye=s.R32UI),Q===s.BYTE&&(ye=s.R8I),Q===s.SHORT&&(ye=s.R16I),Q===s.INT&&(ye=s.R32I)),w===s.RG&&(Q===s.FLOAT&&(ye=s.RG32F),Q===s.HALF_FLOAT&&(ye=s.RG16F),Q===s.UNSIGNED_BYTE&&(ye=s.RG8)),w===s.RG_INTEGER&&(Q===s.UNSIGNED_BYTE&&(ye=s.RG8UI),Q===s.UNSIGNED_SHORT&&(ye=s.RG16UI),Q===s.UNSIGNED_INT&&(ye=s.RG32UI),Q===s.BYTE&&(ye=s.RG8I),Q===s.SHORT&&(ye=s.RG16I),Q===s.INT&&(ye=s.RG32I)),w===s.RGB&&Q===s.UNSIGNED_INT_5_9_9_9_REV&&(ye=s.RGB9_E5),w===s.RGBA){const Be=de?Lr:dt.getTransfer(me);Q===s.FLOAT&&(ye=s.RGBA32F),Q===s.HALF_FLOAT&&(ye=s.RGBA16F),Q===s.UNSIGNED_BYTE&&(ye=Be===Mt?s.SRGB8_ALPHA8:s.RGBA8),Q===s.UNSIGNED_SHORT_4_4_4_4&&(ye=s.RGBA4),Q===s.UNSIGNED_SHORT_5_5_5_1&&(ye=s.RGB5_A1)}return(ye===s.R16F||ye===s.R32F||ye===s.RG16F||ye===s.RG32F||ye===s.RGBA16F||ye===s.RGBA32F)&&e.get("EXT_color_buffer_float"),ye}function v(R,w){let Q;return R?w===null||w===us||w===hs?Q=s.DEPTH24_STENCIL8:w===xn?Q=s.DEPTH32F_STENCIL8:w===Pr&&(Q=s.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):w===null||w===us||w===hs?Q=s.DEPTH_COMPONENT24:w===xn?Q=s.DEPTH_COMPONENT32F:w===Pr&&(Q=s.DEPTH_COMPONENT16),Q}function x(R,w){return p(R)===!0||R.isFramebufferTexture&&R.minFilter!==Wt&&R.minFilter!==Bt?Math.log2(Math.max(w.width,w.height))+1:R.mipmaps!==void 0&&R.mipmaps.length>0?R.mipmaps.length:R.isCompressedTexture&&Array.isArray(R.image)?w.mipmaps.length:1}function E(R){const w=R.target;w.removeEventListener("dispose",E),C(w),w.isVideoTexture&&u.delete(w)}function S(R){const w=R.target;w.removeEventListener("dispose",S),A(w)}function C(R){const w=n.get(R);if(w.__webglInit===void 0)return;const Q=R.source,me=d.get(Q);if(me){const de=me[w.__cacheKey];de.usedTimes--,de.usedTimes===0&&L(R),Object.keys(me).length===0&&d.delete(Q)}n.remove(R)}function L(R){const w=n.get(R);s.deleteTexture(w.__webglTexture);const Q=R.source,me=d.get(Q);delete me[w.__cacheKey],o.memory.textures--}function A(R){const w=n.get(R);if(R.depthTexture&&R.depthTexture.dispose(),R.isWebGLCubeRenderTarget)for(let me=0;me<6;me++){if(Array.isArray(w.__webglFramebuffer[me]))for(let de=0;de=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+R+" texture units while this GPU supports only "+i.maxTextures),b+=1,R}function G(R){const w=[];return w.push(R.wrapS),w.push(R.wrapT),w.push(R.wrapR||0),w.push(R.magFilter),w.push(R.minFilter),w.push(R.anisotropy),w.push(R.internalFormat),w.push(R.format),w.push(R.type),w.push(R.generateMipmaps),w.push(R.premultiplyAlpha),w.push(R.flipY),w.push(R.unpackAlignment),w.push(R.colorSpace),w.join()}function X(R,w){const Q=n.get(R);if(R.isVideoTexture&&he(R),R.isRenderTargetTexture===!1&&R.version>0&&Q.__version!==R.version){const me=R.image;if(me===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(me.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{De(Q,R,w);return}}t.bindTexture(s.TEXTURE_2D,Q.__webglTexture,s.TEXTURE0+w)}function ce(R,w){const Q=n.get(R);if(R.version>0&&Q.__version!==R.version){De(Q,R,w);return}t.bindTexture(s.TEXTURE_2D_ARRAY,Q.__webglTexture,s.TEXTURE0+w)}function Z(R,w){const Q=n.get(R);if(R.version>0&&Q.__version!==R.version){De(Q,R,w);return}t.bindTexture(s.TEXTURE_3D,Q.__webglTexture,s.TEXTURE0+w)}function ae(R,w){const Q=n.get(R);if(R.version>0&&Q.__version!==R.version){F(Q,R,w);return}t.bindTexture(s.TEXTURE_CUBE_MAP,Q.__webglTexture,s.TEXTURE0+w)}const z={[Tr]:s.REPEAT,[An]:s.CLAMP_TO_EDGE,[Cr]:s.MIRRORED_REPEAT},Se={[Wt]:s.NEAREST,[du]:s.NEAREST_MIPMAP_NEAREST,[Vs]:s.NEAREST_MIPMAP_LINEAR,[Bt]:s.LINEAR,[_r]:s.LINEAR_MIPMAP_NEAREST,[Vn]:s.LINEAR_MIPMAP_LINEAR},we={[gp]:s.NEVER,[bp]:s.ALWAYS,[_p]:s.LESS,[Mu]:s.LEQUAL,[vp]:s.EQUAL,[Mp]:s.GEQUAL,[yp]:s.GREATER,[xp]:s.NOTEQUAL};function Ae(R,w){if(w.type===xn&&e.has("OES_texture_float_linear")===!1&&(w.magFilter===Bt||w.magFilter===_r||w.magFilter===Vs||w.magFilter===Vn||w.minFilter===Bt||w.minFilter===_r||w.minFilter===Vs||w.minFilter===Vn)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),s.texParameteri(R,s.TEXTURE_WRAP_S,z[w.wrapS]),s.texParameteri(R,s.TEXTURE_WRAP_T,z[w.wrapT]),(R===s.TEXTURE_3D||R===s.TEXTURE_2D_ARRAY)&&s.texParameteri(R,s.TEXTURE_WRAP_R,z[w.wrapR]),s.texParameteri(R,s.TEXTURE_MAG_FILTER,Se[w.magFilter]),s.texParameteri(R,s.TEXTURE_MIN_FILTER,Se[w.minFilter]),w.compareFunction&&(s.texParameteri(R,s.TEXTURE_COMPARE_MODE,s.COMPARE_REF_TO_TEXTURE),s.texParameteri(R,s.TEXTURE_COMPARE_FUNC,we[w.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(w.magFilter===Wt||w.minFilter!==Vs&&w.minFilter!==Vn||w.type===xn&&e.has("OES_texture_float_linear")===!1)return;if(w.anisotropy>1||n.get(w).__currentAnisotropy){const Q=e.get("EXT_texture_filter_anisotropic");s.texParameterf(R,Q.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(w.anisotropy,i.getMaxAnisotropy())),n.get(w).__currentAnisotropy=w.anisotropy}}}function _e(R,w){let Q=!1;R.__webglInit===void 0&&(R.__webglInit=!0,w.addEventListener("dispose",E));const me=w.source;let de=d.get(me);de===void 0&&(de={},d.set(me,de));const ye=G(w);if(ye!==R.__cacheKey){de[ye]===void 0&&(de[ye]={texture:s.createTexture(),usedTimes:0},o.memory.textures++,Q=!0),de[ye].usedTimes++;const Be=de[R.__cacheKey];Be!==void 0&&(de[R.__cacheKey].usedTimes--,Be.usedTimes===0&&L(w)),R.__cacheKey=ye,R.__webglTexture=de[ye].texture}return Q}function De(R,w,Q){let me=s.TEXTURE_2D;(w.isDataArrayTexture||w.isCompressedArrayTexture)&&(me=s.TEXTURE_2D_ARRAY),w.isData3DTexture&&(me=s.TEXTURE_3D);const de=_e(R,w),ye=w.source;t.bindTexture(me,R.__webglTexture,s.TEXTURE0+Q);const Be=n.get(ye);if(ye.version!==Be.__version||de===!0){t.activeTexture(s.TEXTURE0+Q);const Ce=dt.getPrimaries(dt.workingColorSpace),Ee=w.colorSpace===si?null:dt.getPrimaries(w.colorSpace),Je=w.colorSpace===si||Ce===Ee?s.NONE:s.BROWSER_DEFAULT_WEBGL;s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL,w.flipY),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,w.premultiplyAlpha),s.pixelStorei(s.UNPACK_ALIGNMENT,w.unpackAlignment),s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL,Je);let be=_(w.image,!1,i.maxTextureSize);be=B(w,be);const Ne=r.convert(w.format,w.colorSpace),rt=r.convert(w.type);let Ke=y(w.internalFormat,Ne,rt,w.colorSpace,w.isVideoTexture);Ae(me,w);let Re;const nt=w.mipmaps,it=w.isVideoTexture!==!0,At=Be.__version===void 0||de===!0,M=ye.dataReady,le=x(w,be);if(w.isDepthTexture)Ke=v(w.format===ds,w.type),At&&(it?t.texStorage2D(s.TEXTURE_2D,1,Ke,be.width,be.height):t.texImage2D(s.TEXTURE_2D,0,Ke,be.width,be.height,0,Ne,rt,null));else if(w.isDataTexture)if(nt.length>0){it&&At&&t.texStorage2D(s.TEXTURE_2D,le,Ke,nt[0].width,nt[0].height);for(let ne=0,ue=nt.length;ne0){for(const Me of w.layerUpdates){const We=Re.width*Re.height;t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY,ne,0,0,Me,Re.width,Re.height,1,Ne,Re.data.slice(We*Me,We*(Me+1)),0,0)}w.clearLayerUpdates()}else t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY,ne,0,0,0,Re.width,Re.height,be.depth,Ne,Re.data,0,0)}else t.compressedTexImage3D(s.TEXTURE_2D_ARRAY,ne,Ke,Re.width,Re.height,be.depth,0,Re.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else it?M&&t.texSubImage3D(s.TEXTURE_2D_ARRAY,ne,0,0,0,Re.width,Re.height,be.depth,Ne,rt,Re.data):t.texImage3D(s.TEXTURE_2D_ARRAY,ne,Ke,Re.width,Re.height,be.depth,0,Ne,rt,Re.data)}else{it&&At&&t.texStorage2D(s.TEXTURE_2D,le,Ke,nt[0].width,nt[0].height);for(let ne=0,ue=nt.length;ne0){let ne;switch(rt){case s.UNSIGNED_BYTE:switch(Ne){case s.ALPHA:ne=1;break;case s.LUMINANCE:ne=1;break;case s.LUMINANCE_ALPHA:ne=2;break;case s.RGB:ne=3;break;case s.RGBA:ne=4;break;default:throw new Error(`Unknown texel size for format ${Ne}.`)}break;case s.UNSIGNED_SHORT_4_4_4_4:case s.UNSIGNED_SHORT_5_5_5_1:case s.UNSIGNED_SHORT_5_6_5:ne=1;break;default:throw new Error(`Unknown texel size for type ${rt}.`)}const ue=be.width*be.height*ne;for(const Me of w.layerUpdates)t.texSubImage3D(s.TEXTURE_2D_ARRAY,0,0,0,Me,be.width,be.height,1,Ne,rt,be.data.slice(ue*Me,ue*(Me+1)));w.clearLayerUpdates()}else t.texSubImage3D(s.TEXTURE_2D_ARRAY,0,0,0,0,be.width,be.height,be.depth,Ne,rt,be.data)}else t.texImage3D(s.TEXTURE_2D_ARRAY,0,Ke,be.width,be.height,be.depth,0,Ne,rt,be.data);else if(w.isData3DTexture)it?(At&&t.texStorage3D(s.TEXTURE_3D,le,Ke,be.width,be.height,be.depth),M&&t.texSubImage3D(s.TEXTURE_3D,0,0,0,0,be.width,be.height,be.depth,Ne,rt,be.data)):t.texImage3D(s.TEXTURE_3D,0,Ke,be.width,be.height,be.depth,0,Ne,rt,be.data);else if(w.isFramebufferTexture){if(At)if(it)t.texStorage2D(s.TEXTURE_2D,le,Ke,be.width,be.height);else{let ne=be.width,ue=be.height;for(let Me=0;Me>=1,ue>>=1}}else if(nt.length>0){if(it&&At){const ne=O(nt[0]);t.texStorage2D(s.TEXTURE_2D,le,Ke,ne.width,ne.height)}for(let ne=0,ue=nt.length;ne0&&le++;const ue=O(Ne[0]);t.texStorage2D(s.TEXTURE_CUBE_MAP,le,nt,ue.width,ue.height)}for(let ue=0;ue<6;ue++)if(be){it?M&&t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+ue,0,0,0,Ne[ue].width,Ne[ue].height,Ke,Re,Ne[ue].data):t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+ue,0,nt,Ne[ue].width,Ne[ue].height,0,Ke,Re,Ne[ue].data);for(let Me=0;Me>ye),Ne=Math.max(1,w.height>>ye);de===s.TEXTURE_3D||de===s.TEXTURE_2D_ARRAY?t.texImage3D(de,ye,Ee,be,Ne,w.depth,0,Be,Ce,null):t.texImage2D(de,ye,Ee,be,Ne,0,Be,Ce,null)}t.bindFramebuffer(s.FRAMEBUFFER,R),ie(w)?a.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER,me,de,n.get(Q).__webglTexture,0,W(w)):(de===s.TEXTURE_2D||de>=s.TEXTURE_CUBE_MAP_POSITIVE_X&&de<=s.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&s.framebufferTexture2D(s.FRAMEBUFFER,me,de,n.get(Q).__webglTexture,ye),t.bindFramebuffer(s.FRAMEBUFFER,null)}function I(R,w,Q){if(s.bindRenderbuffer(s.RENDERBUFFER,R),w.depthBuffer){const me=w.depthTexture,de=me&&me.isDepthTexture?me.type:null,ye=v(w.stencilBuffer,de),Be=w.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,Ce=W(w);ie(w)?a.renderbufferStorageMultisampleEXT(s.RENDERBUFFER,Ce,ye,w.width,w.height):Q?s.renderbufferStorageMultisample(s.RENDERBUFFER,Ce,ye,w.width,w.height):s.renderbufferStorage(s.RENDERBUFFER,ye,w.width,w.height),s.framebufferRenderbuffer(s.FRAMEBUFFER,Be,s.RENDERBUFFER,R)}else{const me=w.textures;for(let de=0;de1;if(Be||(me.__webglTexture===void 0&&(me.__webglTexture=s.createTexture()),me.__version=w.version,o.memory.textures++),ye){Q.__webglFramebuffer=[];for(let Ce=0;Ce<6;Ce++)if(w.mipmaps&&w.mipmaps.length>0){Q.__webglFramebuffer[Ce]=[];for(let Ee=0;Ee0){Q.__webglFramebuffer=[];for(let Ce=0;Ce0&&ie(R)===!1){Q.__webglMultisampledFramebuffer=s.createFramebuffer(),Q.__webglColorRenderbuffer=[],t.bindFramebuffer(s.FRAMEBUFFER,Q.__webglMultisampledFramebuffer);for(let Ce=0;Ce0)for(let Ee=0;Ee0)for(let Ee=0;Ee0){if(ie(R)===!1){const w=R.textures,Q=R.width,me=R.height;let de=s.COLOR_BUFFER_BIT;const ye=R.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,Be=n.get(R),Ce=w.length>1;if(Ce)for(let Ee=0;Ee0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&w.__useRenderToTexture!==!1}function he(R){const w=o.render.frame;u.get(R)!==w&&(u.set(R,w),R.update())}function B(R,w){const Q=R.colorSpace,me=R.format,de=R.type;return R.isCompressedTexture===!0||R.isVideoTexture===!0||Q!==fi&&Q!==si&&(dt.getTransfer(Q)===Mt?(me!==fn||de!==hi)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Q)),w}function O(R){return typeof HTMLImageElement<"u"&&R instanceof HTMLImageElement?(c.width=R.naturalWidth||R.width,c.height=R.naturalHeight||R.height):typeof VideoFrame<"u"&&R instanceof VideoFrame?(c.width=R.displayWidth,c.height=R.displayHeight):(c.width=R.width,c.height=R.height),c}this.allocateTextureUnit=V,this.resetTextureUnits=k,this.setTexture2D=X,this.setTexture2DArray=ce,this.setTexture3D=Z,this.setTextureCube=ae,this.rebindTextures=fe,this.setupRenderTarget=K,this.updateRenderTargetMipmap=D,this.updateMultisampleRenderTarget=H,this.setupDepthRenderbuffer=se,this.setupFrameBufferTexture=U,this.useMultisampledRTT=ie}function kp(s,e){function t(n,i=si){let r;const o=dt.getTransfer(i);if(n===hi)return s.UNSIGNED_BYTE;if(n===pu)return s.UNSIGNED_SHORT_4_4_4_4;if(n===mu)return s.UNSIGNED_SHORT_5_5_5_1;if(n===ip)return s.UNSIGNED_INT_5_9_9_9_REV;if(n===tp)return s.BYTE;if(n===np)return s.SHORT;if(n===Pr)return s.UNSIGNED_SHORT;if(n===fu)return s.INT;if(n===us)return s.UNSIGNED_INT;if(n===xn)return s.FLOAT;if(n===Jr)return s.HALF_FLOAT;if(n===sp)return s.ALPHA;if(n===rp)return s.RGB;if(n===fn)return s.RGBA;if(n===op)return s.LUMINANCE;if(n===ap)return s.LUMINANCE_ALPHA;if(n===as)return s.DEPTH_COMPONENT;if(n===ds)return s.DEPTH_STENCIL;if(n===gu)return s.RED;if(n===_u)return s.RED_INTEGER;if(n===lp)return s.RG;if(n===vu)return s.RG_INTEGER;if(n===yu)return s.RGBA_INTEGER;if(n===ha||n===da||n===fa||n===pa)if(o===Mt)if(r=e.get("WEBGL_compressed_texture_s3tc_srgb"),r!==null){if(n===ha)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===da)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===fa)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===pa)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(r=e.get("WEBGL_compressed_texture_s3tc"),r!==null){if(n===ha)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===da)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===fa)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===pa)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===fc||n===pc||n===mc||n===gc)if(r=e.get("WEBGL_compressed_texture_pvrtc"),r!==null){if(n===fc)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===pc)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===mc)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===gc)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===_c||n===vc||n===yc)if(r=e.get("WEBGL_compressed_texture_etc"),r!==null){if(n===_c||n===vc)return o===Mt?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===yc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===xc||n===Mc||n===bc||n===Sc||n===wc||n===Ac||n===Ec||n===Tc||n===Cc||n===Pc||n===Rc||n===Ic||n===Lc||n===Nc)if(r=e.get("WEBGL_compressed_texture_astc"),r!==null){if(n===xc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Mc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===bc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Sc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===wc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===Ac)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Ec)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Tc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===Cc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Pc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Rc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===Ic)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===Lc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===Nc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===ma||n===Dc||n===Uc)if(r=e.get("EXT_texture_compression_bptc"),r!==null){if(n===ma)return o===Mt?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===Dc)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===Uc)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===cp||n===Oc||n===Fc||n===kc)if(r=e.get("EXT_texture_compression_rgtc"),r!==null){if(n===ma)return r.COMPRESSED_RED_RGTC1_EXT;if(n===Oc)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===Fc)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===kc)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===hs?s.UNSIGNED_INT_24_8:s[n]!==void 0?s[n]:null}return{convert:t}}class Bp extends kt{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Ws extends ut{constructor(){super(),this.isGroup=!0,this.type="Group"}}const xA={type:"move"};class zl{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Ws,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Ws,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new N,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new N),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Ws,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new N,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new N),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let i=null,r=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const _ of e.hand.values()){const p=t.getJointPose(_,n),m=this._getHandJoint(c,_);p!==null&&(m.matrix.fromArray(p.transform.matrix),m.matrix.decompose(m.position,m.rotation,m.scale),m.matrixWorldNeedsUpdate=!0,m.jointRadius=p.radius),m.visible=p!==null}const u=c.joints["index-finger-tip"],h=c.joints["thumb-tip"],d=u.position.distanceTo(h.position),f=.02,g=.005;c.inputState.pinching&&d>f+g?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&d<=f-g&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,n),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,n),i===null&&r!==null&&(i=r),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(xA)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=r!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const n=new Ws;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}const MA=` +}`;function hA(s,e,t){let n=new Yr;const i=new se,r=new se,o=new gt,a=new bu({depthPacking:rp}),l=new Su,c={},u=t.maxTextureSize,h={[ri]:nn,[nn]:ri,[En]:En},d=new Ln({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new se},radius:{value:4}},vertexShader:cA,fragmentShader:uA}),f=d.clone();f.defines.HORIZONTAL_PASS=1;const g=new it;g.setAttribute("position",new pt(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new Nt(g,d),p=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=iu;let m=this.type;this.render=function(b,E,I){if(p.enabled===!1||p.autoUpdate===!1&&p.needsUpdate===!1||b.length===0)return;const w=s.getRenderTarget(),M=s.getActiveCubeFace(),F=s.getActiveMipmapLevel(),z=s.state;z.setBlending(ii),z.buffers.color.setClear(1,1,1,1),z.buffers.depth.setTest(!0),z.setScissorTest(!1);const G=m!==kn&&this.type===kn,q=m===kn&&this.type!==kn;for(let ae=0,j=b.length;aeu||i.y>u)&&(i.x>u&&(r.x=Math.floor(u/Me.x),i.x=r.x*Me.x,B.mapSize.x=r.x),i.y>u&&(r.y=Math.floor(u/Me.y),i.y=r.y*Me.y,B.mapSize.y=r.y)),B.map===null||G===!0||q===!0){const Ae=this.type!==kn?{minFilter:Ht,magFilter:Ht}:{};B.map!==null&&B.map.dispose(),B.map=new In(i.x,i.y,Ae),B.map.texture.name=oe.name+".shadowMap",B.camera.updateProjectionMatrix()}s.setRenderTarget(B.map),s.clear();const be=B.getViewportCount();for(let Ae=0;Ae0||E.map&&E.alphaTest>0){const z=M.uuid,G=E.uuid;let q=c[z];q===void 0&&(q={},c[z]=q);let ae=q[G];ae===void 0&&(ae=M.clone(),q[G]=ae,E.addEventListener("dispose",A)),M=ae}if(M.visible=E.visible,M.wireframe=E.wireframe,w===kn?M.side=E.shadowSide!==null?E.shadowSide:E.side:M.side=E.shadowSide!==null?E.shadowSide:h[E.side],M.alphaMap=E.alphaMap,M.alphaTest=E.alphaTest,M.map=E.map,M.clipShadows=E.clipShadows,M.clippingPlanes=E.clippingPlanes,M.clipIntersection=E.clipIntersection,M.displacementMap=E.displacementMap,M.displacementScale=E.displacementScale,M.displacementBias=E.displacementBias,M.wireframeLinewidth=E.wireframeLinewidth,M.linewidth=E.linewidth,I.isPointLight===!0&&M.isMeshDistanceMaterial===!0){const z=s.properties.get(M);z.light=I}return M}function x(b,E,I,w,M){if(b.visible===!1)return;if(b.layers.test(E.layers)&&(b.isMesh||b.isLine||b.isPoints)&&(b.castShadow||b.receiveShadow&&M===kn)&&(!b.frustumCulled||n.intersectsObject(b))){b.modelViewMatrix.multiplyMatrices(I.matrixWorldInverse,b.matrixWorld);const G=e.update(b),q=b.material;if(Array.isArray(q)){const ae=G.groups;for(let j=0,oe=ae.length;j=1):oe.indexOf("OpenGL ES")!==-1&&(j=parseFloat(/^OpenGL ES (\d)/.exec(oe)[1]),ae=j>=2);let B=null,Me={};const be=s.getParameter(s.SCISSOR_BOX),Ae=s.getParameter(s.VIEWPORT),ge=new gt().fromArray(be),ze=new gt().fromArray(Ae);function U(V,Ie,de,_e){const we=new Uint8Array(4),et=s.createTexture();s.bindTexture(V,et),s.texParameteri(V,s.TEXTURE_MIN_FILTER,s.NEAREST),s.texParameteri(V,s.TEXTURE_MAG_FILTER,s.NEAREST);for(let ut=0;ut"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new se,u=new WeakMap;let h;const d=new WeakMap;let f=!1;try{f=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function g(P,S){return f?new OffscreenCanvas(P,S):Ir("canvas")}function v(P,S,Q){let pe=1;const ce=O(P);if((ce.width>Q||ce.height>Q)&&(pe=Q/Math.max(ce.width,ce.height)),pe<1)if(typeof HTMLImageElement<"u"&&P instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&P instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&P instanceof ImageBitmap||typeof VideoFrame<"u"&&P instanceof VideoFrame){const ve=Math.floor(pe*ce.width),He=Math.floor(pe*ce.height);h===void 0&&(h=g(ve,He));const Ee=S?g(ve,He):h;return Ee.width=ve,Ee.height=He,Ee.getContext("2d").drawImage(P,0,0,ve,He),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+ce.width+"x"+ce.height+") to ("+ve+"x"+He+")."),Ee}else return"data"in P&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+ce.width+"x"+ce.height+")."),P;return P}function p(P){return P.generateMipmaps&&P.minFilter!==Ht&&P.minFilter!==Ot}function m(P){s.generateMipmap(P)}function y(P,S,Q,pe,ce=!1){if(P!==null){if(s[P]!==void 0)return s[P];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+P+"'")}let ve=S;if(S===s.RED&&(Q===s.FLOAT&&(ve=s.R32F),Q===s.HALF_FLOAT&&(ve=s.R16F),Q===s.UNSIGNED_BYTE&&(ve=s.R8)),S===s.RED_INTEGER&&(Q===s.UNSIGNED_BYTE&&(ve=s.R8UI),Q===s.UNSIGNED_SHORT&&(ve=s.R16UI),Q===s.UNSIGNED_INT&&(ve=s.R32UI),Q===s.BYTE&&(ve=s.R8I),Q===s.SHORT&&(ve=s.R16I),Q===s.INT&&(ve=s.R32I)),S===s.RG&&(Q===s.FLOAT&&(ve=s.RG32F),Q===s.HALF_FLOAT&&(ve=s.RG16F),Q===s.UNSIGNED_BYTE&&(ve=s.RG8)),S===s.RG_INTEGER&&(Q===s.UNSIGNED_BYTE&&(ve=s.RG8UI),Q===s.UNSIGNED_SHORT&&(ve=s.RG16UI),Q===s.UNSIGNED_INT&&(ve=s.RG32UI),Q===s.BYTE&&(ve=s.RG8I),Q===s.SHORT&&(ve=s.RG16I),Q===s.INT&&(ve=s.RG32I)),S===s.RGB&&Q===s.UNSIGNED_INT_5_9_9_9_REV&&(ve=s.RGB9_E5),S===s.RGBA){const He=ce?Tr:ht.getTransfer(pe);Q===s.FLOAT&&(ve=s.RGBA32F),Q===s.HALF_FLOAT&&(ve=s.RGBA16F),Q===s.UNSIGNED_BYTE&&(ve=He===Mt?s.SRGB8_ALPHA8:s.RGBA8),Q===s.UNSIGNED_SHORT_4_4_4_4&&(ve=s.RGBA4),Q===s.UNSIGNED_SHORT_5_5_5_1&&(ve=s.RGB5_A1)}return(ve===s.R16F||ve===s.R32F||ve===s.RG16F||ve===s.RG32F||ve===s.RGBA16F||ve===s.RGBA32F)&&e.get("EXT_color_buffer_float"),ve}function _(P,S){let Q;return P?S===null||S===ss||S===rs?Q=s.DEPTH24_STENCIL8:S===gn?Q=s.DEPTH32F_STENCIL8:S===Sr&&(Q=s.DEPTH24_STENCIL8,console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")):S===null||S===ss||S===rs?Q=s.DEPTH_COMPONENT24:S===gn?Q=s.DEPTH_COMPONENT32F:S===Sr&&(Q=s.DEPTH_COMPONENT16),Q}function x(P,S){return p(P)===!0||P.isFramebufferTexture&&P.minFilter!==Ht&&P.minFilter!==Ot?Math.log2(Math.max(S.width,S.height))+1:P.mipmaps!==void 0&&P.mipmaps.length>0?P.mipmaps.length:P.isCompressedTexture&&Array.isArray(P.image)?S.mipmaps.length:1}function A(P){const S=P.target;S.removeEventListener("dispose",A),E(S),S.isVideoTexture&&u.delete(S)}function b(P){const S=P.target;S.removeEventListener("dispose",b),w(S)}function E(P){const S=n.get(P);if(S.__webglInit===void 0)return;const Q=P.source,pe=d.get(Q);if(pe){const ce=pe[S.__cacheKey];ce.usedTimes--,ce.usedTimes===0&&I(P),Object.keys(pe).length===0&&d.delete(Q)}n.remove(P)}function I(P){const S=n.get(P);s.deleteTexture(S.__webglTexture);const Q=P.source,pe=d.get(Q);delete pe[S.__cacheKey],o.memory.textures--}function w(P){const S=n.get(P);if(P.depthTexture&&P.depthTexture.dispose(),P.isWebGLCubeRenderTarget)for(let pe=0;pe<6;pe++){if(Array.isArray(S.__webglFramebuffer[pe]))for(let ce=0;ce=i.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+P+" texture units while this GPU supports only "+i.maxTextures),M+=1,P}function G(P){const S=[];return S.push(P.wrapS),S.push(P.wrapT),S.push(P.wrapR||0),S.push(P.magFilter),S.push(P.minFilter),S.push(P.anisotropy),S.push(P.internalFormat),S.push(P.format),S.push(P.type),S.push(P.generateMipmaps),S.push(P.premultiplyAlpha),S.push(P.flipY),S.push(P.unpackAlignment),S.push(P.colorSpace),S.join()}function q(P,S){const Q=n.get(P);if(P.isVideoTexture&&le(P),P.isRenderTargetTexture===!1&&P.version>0&&Q.__version!==P.version){const pe=P.image;if(pe===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(pe.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{ze(Q,P,S);return}}t.bindTexture(s.TEXTURE_2D,Q.__webglTexture,s.TEXTURE0+S)}function ae(P,S){const Q=n.get(P);if(P.version>0&&Q.__version!==P.version){ze(Q,P,S);return}t.bindTexture(s.TEXTURE_2D_ARRAY,Q.__webglTexture,s.TEXTURE0+S)}function j(P,S){const Q=n.get(P);if(P.version>0&&Q.__version!==P.version){ze(Q,P,S);return}t.bindTexture(s.TEXTURE_3D,Q.__webglTexture,s.TEXTURE0+S)}function oe(P,S){const Q=n.get(P);if(P.version>0&&Q.__version!==P.version){U(Q,P,S);return}t.bindTexture(s.TEXTURE_CUBE_MAP,Q.__webglTexture,s.TEXTURE0+S)}const B={[Mr]:s.REPEAT,[Mn]:s.CLAMP_TO_EDGE,[br]:s.MIRRORED_REPEAT},Me={[Ht]:s.NEAREST,[ru]:s.NEAREST_MIPMAP_NEAREST,[Ds]:s.NEAREST_MIPMAP_LINEAR,[Ot]:s.LINEAR,[hr]:s.LINEAR_MIPMAP_NEAREST,[Bn]:s.LINEAR_MIPMAP_LINEAR},be={[ap]:s.NEVER,[fp]:s.ALWAYS,[lp]:s.LESS,[pu]:s.LEQUAL,[cp]:s.EQUAL,[dp]:s.GEQUAL,[up]:s.GREATER,[hp]:s.NOTEQUAL};function Ae(P,S){if(S.type===gn&&e.has("OES_texture_float_linear")===!1&&(S.magFilter===Ot||S.magFilter===hr||S.magFilter===Ds||S.magFilter===Bn||S.minFilter===Ot||S.minFilter===hr||S.minFilter===Ds||S.minFilter===Bn)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),s.texParameteri(P,s.TEXTURE_WRAP_S,B[S.wrapS]),s.texParameteri(P,s.TEXTURE_WRAP_T,B[S.wrapT]),(P===s.TEXTURE_3D||P===s.TEXTURE_2D_ARRAY)&&s.texParameteri(P,s.TEXTURE_WRAP_R,B[S.wrapR]),s.texParameteri(P,s.TEXTURE_MAG_FILTER,Me[S.magFilter]),s.texParameteri(P,s.TEXTURE_MIN_FILTER,Me[S.minFilter]),S.compareFunction&&(s.texParameteri(P,s.TEXTURE_COMPARE_MODE,s.COMPARE_REF_TO_TEXTURE),s.texParameteri(P,s.TEXTURE_COMPARE_FUNC,be[S.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(S.magFilter===Ht||S.minFilter!==Ds&&S.minFilter!==Bn||S.type===gn&&e.has("OES_texture_float_linear")===!1)return;if(S.anisotropy>1||n.get(S).__currentAnisotropy){const Q=e.get("EXT_texture_filter_anisotropic");s.texParameterf(P,Q.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(S.anisotropy,i.getMaxAnisotropy())),n.get(S).__currentAnisotropy=S.anisotropy}}}function ge(P,S){let Q=!1;P.__webglInit===void 0&&(P.__webglInit=!0,S.addEventListener("dispose",A));const pe=S.source;let ce=d.get(pe);ce===void 0&&(ce={},d.set(pe,ce));const ve=G(S);if(ve!==P.__cacheKey){ce[ve]===void 0&&(ce[ve]={texture:s.createTexture(),usedTimes:0},o.memory.textures++,Q=!0),ce[ve].usedTimes++;const He=ce[P.__cacheKey];He!==void 0&&(ce[P.__cacheKey].usedTimes--,He.usedTimes===0&&I(S)),P.__cacheKey=ve,P.__webglTexture=ce[ve].texture}return Q}function ze(P,S,Q){let pe=s.TEXTURE_2D;(S.isDataArrayTexture||S.isCompressedArrayTexture)&&(pe=s.TEXTURE_2D_ARRAY),S.isData3DTexture&&(pe=s.TEXTURE_3D);const ce=ge(P,S),ve=S.source;t.bindTexture(pe,P.__webglTexture,s.TEXTURE0+Q);const He=n.get(ve);if(ve.version!==He.__version||ce===!0){t.activeTexture(s.TEXTURE0+Q);const Ee=ht.getPrimaries(ht.workingColorSpace),Te=S.colorSpace===ei?null:ht.getPrimaries(S.colorSpace),Qe=S.colorSpace===ei||Ee===Te?s.NONE:s.BROWSER_DEFAULT_WEBGL;s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL,S.flipY),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S.premultiplyAlpha),s.pixelStorei(s.UNPACK_ALIGNMENT,S.unpackAlignment),s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL,Qe);let xe=v(S.image,!1,i.maxTextureSize);xe=k(S,xe);const Ue=r.convert(S.format,S.colorSpace),st=r.convert(S.type);let Je=y(S.internalFormat,Ue,st,S.colorSpace,S.isVideoTexture);Ae(pe,S);let Re;const rt=S.mipmaps,at=S.isVideoTexture!==!0,Rt=He.__version===void 0||ce===!0,V=ve.dataReady,Ie=x(S,xe);if(S.isDepthTexture)Je=_(S.format===os,S.type),Rt&&(at?t.texStorage2D(s.TEXTURE_2D,1,Je,xe.width,xe.height):t.texImage2D(s.TEXTURE_2D,0,Je,xe.width,xe.height,0,Ue,st,null));else if(S.isDataTexture)if(rt.length>0){at&&Rt&&t.texStorage2D(s.TEXTURE_2D,Ie,Je,rt[0].width,rt[0].height);for(let de=0,_e=rt.length;de<_e;de++)Re=rt[de],at?V&&t.texSubImage2D(s.TEXTURE_2D,de,0,0,Re.width,Re.height,Ue,st,Re.data):t.texImage2D(s.TEXTURE_2D,de,Je,Re.width,Re.height,0,Ue,st,Re.data);S.generateMipmaps=!1}else at?(Rt&&t.texStorage2D(s.TEXTURE_2D,Ie,Je,xe.width,xe.height),V&&t.texSubImage2D(s.TEXTURE_2D,0,0,0,xe.width,xe.height,Ue,st,xe.data)):t.texImage2D(s.TEXTURE_2D,0,Je,xe.width,xe.height,0,Ue,st,xe.data);else if(S.isCompressedTexture)if(S.isCompressedArrayTexture){at&&Rt&&t.texStorage3D(s.TEXTURE_2D_ARRAY,Ie,Je,rt[0].width,rt[0].height,xe.depth);for(let de=0,_e=rt.length;de<_e;de++)if(Re=rt[de],S.format!==un)if(Ue!==null)if(at){if(V)if(S.layerUpdates.size>0){for(const we of S.layerUpdates){const et=Re.width*Re.height;t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY,de,0,0,we,Re.width,Re.height,1,Ue,Re.data.slice(et*we,et*(we+1)),0,0)}S.clearLayerUpdates()}else t.compressedTexSubImage3D(s.TEXTURE_2D_ARRAY,de,0,0,0,Re.width,Re.height,xe.depth,Ue,Re.data,0,0)}else t.compressedTexImage3D(s.TEXTURE_2D_ARRAY,de,Je,Re.width,Re.height,xe.depth,0,Re.data,0,0);else console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()");else at?V&&t.texSubImage3D(s.TEXTURE_2D_ARRAY,de,0,0,0,Re.width,Re.height,xe.depth,Ue,st,Re.data):t.texImage3D(s.TEXTURE_2D_ARRAY,de,Je,Re.width,Re.height,xe.depth,0,Ue,st,Re.data)}else{at&&Rt&&t.texStorage2D(s.TEXTURE_2D,Ie,Je,rt[0].width,rt[0].height);for(let de=0,_e=rt.length;de<_e;de++)Re=rt[de],S.format!==un?Ue!==null?at?V&&t.compressedTexSubImage2D(s.TEXTURE_2D,de,0,0,Re.width,Re.height,Ue,Re.data):t.compressedTexImage2D(s.TEXTURE_2D,de,Je,Re.width,Re.height,0,Re.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):at?V&&t.texSubImage2D(s.TEXTURE_2D,de,0,0,Re.width,Re.height,Ue,st,Re.data):t.texImage2D(s.TEXTURE_2D,de,Je,Re.width,Re.height,0,Ue,st,Re.data)}else if(S.isDataArrayTexture)if(at){if(Rt&&t.texStorage3D(s.TEXTURE_2D_ARRAY,Ie,Je,xe.width,xe.height,xe.depth),V)if(S.layerUpdates.size>0){let de;switch(st){case s.UNSIGNED_BYTE:switch(Ue){case s.ALPHA:de=1;break;case s.LUMINANCE:de=1;break;case s.LUMINANCE_ALPHA:de=2;break;case s.RGB:de=3;break;case s.RGBA:de=4;break;default:throw new Error(`Unknown texel size for format ${Ue}.`)}break;case s.UNSIGNED_SHORT_4_4_4_4:case s.UNSIGNED_SHORT_5_5_5_1:case s.UNSIGNED_SHORT_5_6_5:de=1;break;default:throw new Error(`Unknown texel size for type ${st}.`)}const _e=xe.width*xe.height*de;for(const we of S.layerUpdates)t.texSubImage3D(s.TEXTURE_2D_ARRAY,0,0,0,we,xe.width,xe.height,1,Ue,st,xe.data.slice(_e*we,_e*(we+1)));S.clearLayerUpdates()}else t.texSubImage3D(s.TEXTURE_2D_ARRAY,0,0,0,0,xe.width,xe.height,xe.depth,Ue,st,xe.data)}else t.texImage3D(s.TEXTURE_2D_ARRAY,0,Je,xe.width,xe.height,xe.depth,0,Ue,st,xe.data);else if(S.isData3DTexture)at?(Rt&&t.texStorage3D(s.TEXTURE_3D,Ie,Je,xe.width,xe.height,xe.depth),V&&t.texSubImage3D(s.TEXTURE_3D,0,0,0,0,xe.width,xe.height,xe.depth,Ue,st,xe.data)):t.texImage3D(s.TEXTURE_3D,0,Je,xe.width,xe.height,xe.depth,0,Ue,st,xe.data);else if(S.isFramebufferTexture){if(Rt)if(at)t.texStorage2D(s.TEXTURE_2D,Ie,Je,xe.width,xe.height);else{let de=xe.width,_e=xe.height;for(let we=0;we>=1,_e>>=1}}else if(rt.length>0){if(at&&Rt){const de=O(rt[0]);t.texStorage2D(s.TEXTURE_2D,Ie,Je,de.width,de.height)}for(let de=0,_e=rt.length;de<_e;de++)Re=rt[de],at?V&&t.texSubImage2D(s.TEXTURE_2D,de,0,0,Ue,st,Re):t.texImage2D(s.TEXTURE_2D,de,Je,Ue,st,Re);S.generateMipmaps=!1}else if(at){if(Rt){const de=O(xe);t.texStorage2D(s.TEXTURE_2D,Ie,Je,de.width,de.height)}V&&t.texSubImage2D(s.TEXTURE_2D,0,0,0,Ue,st,xe)}else t.texImage2D(s.TEXTURE_2D,0,Je,Ue,st,xe);p(S)&&m(pe),He.__version=ve.version,S.onUpdate&&S.onUpdate(S)}P.__version=S.version}function U(P,S,Q){if(S.image.length!==6)return;const pe=ge(P,S),ce=S.source;t.bindTexture(s.TEXTURE_CUBE_MAP,P.__webglTexture,s.TEXTURE0+Q);const ve=n.get(ce);if(ce.version!==ve.__version||pe===!0){t.activeTexture(s.TEXTURE0+Q);const He=ht.getPrimaries(ht.workingColorSpace),Ee=S.colorSpace===ei?null:ht.getPrimaries(S.colorSpace),Te=S.colorSpace===ei||He===Ee?s.NONE:s.BROWSER_DEFAULT_WEBGL;s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL,S.flipY),s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S.premultiplyAlpha),s.pixelStorei(s.UNPACK_ALIGNMENT,S.unpackAlignment),s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL,Te);const Qe=S.isCompressedTexture||S.image[0].isCompressedTexture,xe=S.image[0]&&S.image[0].isDataTexture,Ue=[];for(let _e=0;_e<6;_e++)!Qe&&!xe?Ue[_e]=v(S.image[_e],!0,i.maxCubemapSize):Ue[_e]=xe?S.image[_e].image:S.image[_e],Ue[_e]=k(S,Ue[_e]);const st=Ue[0],Je=r.convert(S.format,S.colorSpace),Re=r.convert(S.type),rt=y(S.internalFormat,Je,Re,S.colorSpace),at=S.isVideoTexture!==!0,Rt=ve.__version===void 0||pe===!0,V=ce.dataReady;let Ie=x(S,st);Ae(s.TEXTURE_CUBE_MAP,S);let de;if(Qe){at&&Rt&&t.texStorage2D(s.TEXTURE_CUBE_MAP,Ie,rt,st.width,st.height);for(let _e=0;_e<6;_e++){de=Ue[_e].mipmaps;for(let we=0;we0&&Ie++;const _e=O(Ue[0]);t.texStorage2D(s.TEXTURE_CUBE_MAP,Ie,rt,_e.width,_e.height)}for(let _e=0;_e<6;_e++)if(xe){at?V&&t.texSubImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+_e,0,0,0,Ue[_e].width,Ue[_e].height,Je,Re,Ue[_e].data):t.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X+_e,0,rt,Ue[_e].width,Ue[_e].height,0,Je,Re,Ue[_e].data);for(let we=0;we>ve),Ue=Math.max(1,S.height>>ve);ce===s.TEXTURE_3D||ce===s.TEXTURE_2D_ARRAY?t.texImage3D(ce,ve,Te,xe,Ue,S.depth,0,He,Ee,null):t.texImage2D(ce,ve,Te,xe,Ue,0,He,Ee,null)}t.bindFramebuffer(s.FRAMEBUFFER,P),te(S)?a.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER,pe,ce,n.get(Q).__webglTexture,0,$(S)):(ce===s.TEXTURE_2D||ce>=s.TEXTURE_CUBE_MAP_POSITIVE_X&&ce<=s.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&s.framebufferTexture2D(s.FRAMEBUFFER,pe,ce,n.get(Q).__webglTexture,ve),t.bindFramebuffer(s.FRAMEBUFFER,null)}function R(P,S,Q){if(s.bindRenderbuffer(s.RENDERBUFFER,P),S.depthBuffer){const pe=S.depthTexture,ce=pe&&pe.isDepthTexture?pe.type:null,ve=_(S.stencilBuffer,ce),He=S.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,Ee=$(S);te(S)?a.renderbufferStorageMultisampleEXT(s.RENDERBUFFER,Ee,ve,S.width,S.height):Q?s.renderbufferStorageMultisample(s.RENDERBUFFER,Ee,ve,S.width,S.height):s.renderbufferStorage(s.RENDERBUFFER,ve,S.width,S.height),s.framebufferRenderbuffer(s.FRAMEBUFFER,He,s.RENDERBUFFER,P)}else{const pe=S.textures;for(let ce=0;ce1;if(He||(pe.__webglTexture===void 0&&(pe.__webglTexture=s.createTexture()),pe.__version=S.version,o.memory.textures++),ve){Q.__webglFramebuffer=[];for(let Ee=0;Ee<6;Ee++)if(S.mipmaps&&S.mipmaps.length>0){Q.__webglFramebuffer[Ee]=[];for(let Te=0;Te0){Q.__webglFramebuffer=[];for(let Ee=0;Ee0&&te(P)===!1){Q.__webglMultisampledFramebuffer=s.createFramebuffer(),Q.__webglColorRenderbuffer=[],t.bindFramebuffer(s.FRAMEBUFFER,Q.__webglMultisampledFramebuffer);for(let Ee=0;Ee0)for(let Te=0;Te0)for(let Te=0;Te0){if(te(P)===!1){const S=P.textures,Q=P.width,pe=P.height;let ce=s.COLOR_BUFFER_BIT;const ve=P.stencilBuffer?s.DEPTH_STENCIL_ATTACHMENT:s.DEPTH_ATTACHMENT,He=n.get(P),Ee=S.length>1;if(Ee)for(let Te=0;Te0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&S.__useRenderToTexture!==!1}function le(P){const S=o.render.frame;u.get(P)!==S&&(u.set(P,S),P.update())}function k(P,S){const Q=P.colorSpace,pe=P.format,ce=P.type;return P.isCompressedTexture===!0||P.isVideoTexture===!0||Q!==ci&&Q!==ei&&(ht.getTransfer(Q)===Mt?(pe!==un||ce!==ai)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",Q)),S}function O(P){return typeof HTMLImageElement<"u"&&P instanceof HTMLImageElement?(c.width=P.naturalWidth||P.width,c.height=P.naturalHeight||P.height):typeof VideoFrame<"u"&&P instanceof VideoFrame?(c.width=P.displayWidth,c.height=P.displayHeight):(c.width=P.width,c.height=P.height),c}this.allocateTextureUnit=z,this.resetTextureUnits=F,this.setTexture2D=q,this.setTexture2DArray=ae,this.setTexture3D=j,this.setTextureCube=oe,this.rebindTextures=he,this.setupRenderTarget=J,this.updateRenderTargetMipmap=L,this.updateMultisampleRenderTarget=H,this.setupDepthRenderbuffer=ie,this.setupFrameBufferTexture=D,this.useMultisampledRTT=te}function Rp(s,e){function t(n,i=ei){let r;const o=ht.getTransfer(i);if(n===ai)return s.UNSIGNED_BYTE;if(n===au)return s.UNSIGNED_SHORT_4_4_4_4;if(n===lu)return s.UNSIGNED_SHORT_5_5_5_1;if(n===Yf)return s.UNSIGNED_INT_5_9_9_9_REV;if(n===Xf)return s.BYTE;if(n===qf)return s.SHORT;if(n===Sr)return s.UNSIGNED_SHORT;if(n===ou)return s.INT;if(n===ss)return s.UNSIGNED_INT;if(n===gn)return s.FLOAT;if(n===Wr)return s.HALF_FLOAT;if(n===Zf)return s.ALPHA;if(n===Jf)return s.RGB;if(n===un)return s.RGBA;if(n===Kf)return s.LUMINANCE;if(n===jf)return s.LUMINANCE_ALPHA;if(n===ts)return s.DEPTH_COMPONENT;if(n===os)return s.DEPTH_STENCIL;if(n===cu)return s.RED;if(n===uu)return s.RED_INTEGER;if(n===Qf)return s.RG;if(n===hu)return s.RG_INTEGER;if(n===du)return s.RGBA_INTEGER;if(n===sa||n===ra||n===oa||n===aa)if(o===Mt)if(r=e.get("WEBGL_compressed_texture_s3tc_srgb"),r!==null){if(n===sa)return r.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===ra)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===oa)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===aa)return r.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(r=e.get("WEBGL_compressed_texture_s3tc"),r!==null){if(n===sa)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===ra)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===oa)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===aa)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(n===oc||n===ac||n===lc||n===cc)if(r=e.get("WEBGL_compressed_texture_pvrtc"),r!==null){if(n===oc)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===ac)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===lc)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===cc)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(n===uc||n===hc||n===dc)if(r=e.get("WEBGL_compressed_texture_etc"),r!==null){if(n===uc||n===hc)return o===Mt?r.COMPRESSED_SRGB8_ETC2:r.COMPRESSED_RGB8_ETC2;if(n===dc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:r.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(n===fc||n===pc||n===mc||n===gc||n===vc||n===_c||n===yc||n===xc||n===Mc||n===bc||n===Sc||n===wc||n===Ac||n===Tc)if(r=e.get("WEBGL_compressed_texture_astc"),r!==null){if(n===fc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:r.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===pc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:r.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===mc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:r.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===gc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:r.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===vc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:r.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===_c)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:r.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===yc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:r.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===xc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:r.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===Mc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:r.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===bc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:r.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Sc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:r.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===wc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:r.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===Ac)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:r.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===Tc)return o===Mt?r.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:r.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(n===la||n===Ec||n===Cc)if(r=e.get("EXT_texture_compression_bptc"),r!==null){if(n===la)return o===Mt?r.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:r.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===Ec)return r.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===Cc)return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(n===ep||n===Pc||n===Rc||n===Ic)if(r=e.get("EXT_texture_compression_rgtc"),r!==null){if(n===la)return r.COMPRESSED_RED_RGTC1_EXT;if(n===Pc)return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===Rc)return r.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===Ic)return r.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return n===rs?s.UNSIGNED_INT_24_8:s[n]!==void 0?s[n]:null}return{convert:t}}class Ip extends Ut{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Fs extends ct{constructor(){super(),this.isGroup=!0,this.type="Group"}}const pA={type:"move"};class Dl{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Fs,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Fs,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new N,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new N),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Fs,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new N,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new N),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,n){let i=null,r=null,o=null;const a=this._targetRay,l=this._grip,c=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(c&&e.hand){o=!0;for(const v of e.hand.values()){const p=t.getJointPose(v,n),m=this._getHandJoint(c,v);p!==null&&(m.matrix.fromArray(p.transform.matrix),m.matrix.decompose(m.position,m.rotation,m.scale),m.matrixWorldNeedsUpdate=!0,m.jointRadius=p.radius),m.visible=p!==null}const u=c.joints["index-finger-tip"],h=c.joints["thumb-tip"],d=u.position.distanceTo(h.position),f=.02,g=.005;c.inputState.pinching&&d>f+g?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&d<=f-g&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else l!==null&&e.gripSpace&&(r=t.getPose(e.gripSpace,n),r!==null&&(l.matrix.fromArray(r.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,r.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(r.linearVelocity)):l.hasLinearVelocity=!1,r.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(r.angularVelocity)):l.hasAngularVelocity=!1));a!==null&&(i=t.getPose(e.targetRaySpace,n),i===null&&r!==null&&(i=r),i!==null&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),a.matrixWorldNeedsUpdate=!0,i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(pA)))}return a!==null&&(a.visible=i!==null),l!==null&&(l.visible=r!==null),c!==null&&(c.visible=o!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const n=new Fs;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}const mA=` void main() { gl_Position = vec4( position, 1.0 ); -}`,bA=` +}`,gA=` uniform sampler2DArray depthColor; uniform float depthWidth; uniform float depthHeight; @@ -3800,7 +3800,7 @@ void main() { } -}`;class SA{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){const i=new It,r=e.properties.get(i);r.__webglTexture=t.texture,(t.depthNear!=n.depthNear||t.depthFar!=n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,n=new On({vertexShader:MA,fragmentShader:bA,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Nt(new js(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}}class wA extends Yn{constructor(e,t){super();const n=this;let i=null,r=1,o=null,a="local-floor",l=1,c=null,u=null,h=null,d=null,f=null,g=null;const _=new SA,p=t.getContextAttributes();let m=null,y=null;const v=[],x=[],E=new te;let S=null;const C=new kt;C.layers.enable(1),C.viewport=new _t;const L=new kt;L.layers.enable(2),L.viewport=new _t;const A=[C,L],b=new Bp;b.layers.enable(1),b.layers.enable(2);let k=null,V=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(F){let U=v[F];return U===void 0&&(U=new zl,v[F]=U),U.getTargetRaySpace()},this.getControllerGrip=function(F){let U=v[F];return U===void 0&&(U=new zl,v[F]=U),U.getGripSpace()},this.getHand=function(F){let U=v[F];return U===void 0&&(U=new zl,v[F]=U),U.getHandSpace()};function G(F){const U=x.indexOf(F.inputSource);if(U===-1)return;const I=v[U];I!==void 0&&(I.update(F.inputSource,F.frame,c||o),I.dispatchEvent({type:F.type,data:F.inputSource}))}function X(){i.removeEventListener("select",G),i.removeEventListener("selectstart",G),i.removeEventListener("selectend",G),i.removeEventListener("squeeze",G),i.removeEventListener("squeezestart",G),i.removeEventListener("squeezeend",G),i.removeEventListener("end",X),i.removeEventListener("inputsourceschange",ce);for(let F=0;F=0&&(x[T]=null,v[T].disconnect(I))}for(let U=0;U=x.length){x.push(I),T=fe;break}else if(x[fe]===null){x[fe]=I,T=fe;break}if(T===-1)break}const se=v[T];se&&se.connect(I)}}const Z=new N,ae=new N;function z(F,U,I){Z.setFromMatrixPosition(U.matrixWorld),ae.setFromMatrixPosition(I.matrixWorld);const T=Z.distanceTo(ae),se=U.projectionMatrix.elements,fe=I.projectionMatrix.elements,K=se[14]/(se[10]-1),D=se[14]/(se[10]+1),q=(se[9]+1)/se[5],J=(se[9]-1)/se[5],H=(se[8]-1)/se[0],W=(fe[8]+1)/fe[0],ie=K*H,he=K*W,B=T/(-H+W),O=B*-H;U.matrixWorld.decompose(F.position,F.quaternion,F.scale),F.translateX(O),F.translateZ(B),F.matrixWorld.compose(F.position,F.quaternion,F.scale),F.matrixWorldInverse.copy(F.matrixWorld).invert();const R=K+B,w=D+B,Q=ie-O,me=he+(T-O),de=q*D/w*R,ye=J*D/w*R;F.projectionMatrix.makePerspective(Q,me,de,ye,R,w),F.projectionMatrixInverse.copy(F.projectionMatrix).invert()}function Se(F,U){U===null?F.matrixWorld.copy(F.matrix):F.matrixWorld.multiplyMatrices(U.matrixWorld,F.matrix),F.matrixWorldInverse.copy(F.matrixWorld).invert()}this.updateCamera=function(F){if(i===null)return;_.texture!==null&&(F.near=_.depthNear,F.far=_.depthFar),b.near=L.near=C.near=F.near,b.far=L.far=C.far=F.far,(k!==b.near||V!==b.far)&&(i.updateRenderState({depthNear:b.near,depthFar:b.far}),k=b.near,V=b.far,C.near=k,C.far=V,L.near=k,L.far=V,C.updateProjectionMatrix(),L.updateProjectionMatrix(),F.updateProjectionMatrix());const U=F.parent,I=b.cameras;Se(b,U);for(let T=0;T0&&(p.alphaTest.value=m.alphaTest);const y=e.get(m),v=y.envMap,x=y.envMapRotation;v&&(p.envMap.value=v,Wi.copy(x),Wi.x*=-1,Wi.y*=-1,Wi.z*=-1,v.isCubeTexture&&v.isRenderTargetTexture===!1&&(Wi.y*=-1,Wi.z*=-1),p.envMapRotation.value.setFromMatrix4(AA.makeRotationFromEuler(Wi)),p.flipEnvMap.value=v.isCubeTexture&&v.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=m.reflectivity,p.ior.value=m.ior,p.refractionRatio.value=m.refractionRatio),m.lightMap&&(p.lightMap.value=m.lightMap,p.lightMapIntensity.value=m.lightMapIntensity,t(m.lightMap,p.lightMapTransform)),m.aoMap&&(p.aoMap.value=m.aoMap,p.aoMapIntensity.value=m.aoMapIntensity,t(m.aoMap,p.aoMapTransform))}function o(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,m.map&&(p.map.value=m.map,t(m.map,p.mapTransform))}function a(p,m){p.dashSize.value=m.dashSize,p.totalSize.value=m.dashSize+m.gapSize,p.scale.value=m.scale}function l(p,m,y,v){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.size.value=m.size*y,p.scale.value=v*.5,m.map&&(p.map.value=m.map,t(m.map,p.uvTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,t(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function c(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.rotation.value=m.rotation,m.map&&(p.map.value=m.map,t(m.map,p.mapTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,t(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function u(p,m){p.specular.value.copy(m.specular),p.shininess.value=Math.max(m.shininess,1e-4)}function h(p,m){m.gradientMap&&(p.gradientMap.value=m.gradientMap)}function d(p,m){p.metalness.value=m.metalness,m.metalnessMap&&(p.metalnessMap.value=m.metalnessMap,t(m.metalnessMap,p.metalnessMapTransform)),p.roughness.value=m.roughness,m.roughnessMap&&(p.roughnessMap.value=m.roughnessMap,t(m.roughnessMap,p.roughnessMapTransform)),m.envMap&&(p.envMapIntensity.value=m.envMapIntensity)}function f(p,m,y){p.ior.value=m.ior,m.sheen>0&&(p.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen),p.sheenRoughness.value=m.sheenRoughness,m.sheenColorMap&&(p.sheenColorMap.value=m.sheenColorMap,t(m.sheenColorMap,p.sheenColorMapTransform)),m.sheenRoughnessMap&&(p.sheenRoughnessMap.value=m.sheenRoughnessMap,t(m.sheenRoughnessMap,p.sheenRoughnessMapTransform))),m.clearcoat>0&&(p.clearcoat.value=m.clearcoat,p.clearcoatRoughness.value=m.clearcoatRoughness,m.clearcoatMap&&(p.clearcoatMap.value=m.clearcoatMap,t(m.clearcoatMap,p.clearcoatMapTransform)),m.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=m.clearcoatRoughnessMap,t(m.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),m.clearcoatNormalMap&&(p.clearcoatNormalMap.value=m.clearcoatNormalMap,t(m.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(m.clearcoatNormalScale),m.side===an&&p.clearcoatNormalScale.value.negate())),m.dispersion>0&&(p.dispersion.value=m.dispersion),m.iridescence>0&&(p.iridescence.value=m.iridescence,p.iridescenceIOR.value=m.iridescenceIOR,p.iridescenceThicknessMinimum.value=m.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=m.iridescenceThicknessRange[1],m.iridescenceMap&&(p.iridescenceMap.value=m.iridescenceMap,t(m.iridescenceMap,p.iridescenceMapTransform)),m.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=m.iridescenceThicknessMap,t(m.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),m.transmission>0&&(p.transmission.value=m.transmission,p.transmissionSamplerMap.value=y.texture,p.transmissionSamplerSize.value.set(y.width,y.height),m.transmissionMap&&(p.transmissionMap.value=m.transmissionMap,t(m.transmissionMap,p.transmissionMapTransform)),p.thickness.value=m.thickness,m.thicknessMap&&(p.thicknessMap.value=m.thicknessMap,t(m.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=m.attenuationDistance,p.attenuationColor.value.copy(m.attenuationColor)),m.anisotropy>0&&(p.anisotropyVector.value.set(m.anisotropy*Math.cos(m.anisotropyRotation),m.anisotropy*Math.sin(m.anisotropyRotation)),m.anisotropyMap&&(p.anisotropyMap.value=m.anisotropyMap,t(m.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=m.specularIntensity,p.specularColor.value.copy(m.specularColor),m.specularColorMap&&(p.specularColorMap.value=m.specularColorMap,t(m.specularColorMap,p.specularColorMapTransform)),m.specularIntensityMap&&(p.specularIntensityMap.value=m.specularIntensityMap,t(m.specularIntensityMap,p.specularIntensityMapTransform))}function g(p,m){m.matcap&&(p.matcap.value=m.matcap)}function _(p,m){const y=e.get(m).light;p.referencePosition.value.setFromMatrixPosition(y.matrixWorld),p.nearDistance.value=y.shadow.camera.near,p.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:i}}function TA(s,e,t,n){let i={},r={},o=[];const a=s.getParameter(s.MAX_UNIFORM_BUFFER_BINDINGS);function l(y,v){const x=v.program;n.uniformBlockBinding(y,x)}function c(y,v){let x=i[y.id];x===void 0&&(g(y),x=u(y),i[y.id]=x,y.addEventListener("dispose",p));const E=v.program;n.updateUBOMapping(y,E);const S=e.render.frame;r[y.id]!==S&&(d(y),r[y.id]=S)}function u(y){const v=h();y.__bindingPointIndex=v;const x=s.createBuffer(),E=y.__size,S=y.usage;return s.bindBuffer(s.UNIFORM_BUFFER,x),s.bufferData(s.UNIFORM_BUFFER,E,S),s.bindBuffer(s.UNIFORM_BUFFER,null),s.bindBufferBase(s.UNIFORM_BUFFER,v,x),x}function h(){for(let y=0;y0&&(x+=E-S),y.__size=x,y.__cache={},this}function _(y){const v={boundary:0,storage:0};return typeof y=="number"||typeof y=="boolean"?(v.boundary=4,v.storage=4):y.isVector2?(v.boundary=8,v.storage=8):y.isVector3||y.isColor?(v.boundary=16,v.storage=12):y.isVector4?(v.boundary=16,v.storage=16):y.isMatrix3?(v.boundary=48,v.storage=48):y.isMatrix4?(v.boundary=64,v.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),v}function p(y){const v=y.target;v.removeEventListener("dispose",p);const x=o.indexOf(v.__bindingPointIndex);o.splice(x,1),s.deleteBuffer(i[v.id]),delete i[v.id],delete r[v.id]}function m(){for(const y in i)s.deleteBuffer(i[y]);o=[],i={},r={}}return{bind:l,update:c,dispose:m}}class va{constructor(e={}){const{canvas:t=wp(),context:n=null,depth:i=!0,stencil:r=!1,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let d;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");d=n.getContextAttributes().alpha}else d=o;const f=new Uint32Array(4),g=new Int32Array(4);let _=null,p=null;const m=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=dn,this.toneMapping=Wn,this.toneMappingExposure=1;const v=this;let x=!1,E=0,S=0,C=null,L=-1,A=null;const b=new _t,k=new _t;let V=null;const G=new Ie(0);let X=0,ce=t.width,Z=t.height,ae=1,z=null,Se=null;const we=new _t(0,0,ce,Z),Ae=new _t(0,0,ce,Z);let _e=!1;const De=new to;let F=!1,U=!1;const I=new Ze,T=new N,se={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let fe=!1;function K(){return C===null?ae:1}let D=n;function q(P,$){return t.getContext(P,$)}try{const P={alpha:!0,depth:i,stencil:r,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:h};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${Zr}`),t.addEventListener("webglcontextlost",le,!1),t.addEventListener("webglcontextrestored",ne,!1),t.addEventListener("webglcontextcreationerror",ue,!1),D===null){const $="webgl2";if(D=q($,P),D===null)throw q($)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(P){throw console.error("THREE.WebGLRenderer: "+P.message),P}let J,H,W,ie,he,B,O,R,w,Q,me,de,ye,Be,Ce,Ee,Je,be,Ne,rt,Ke,Re,nt,it;function At(){J=new zw(D),J.init(),Re=new kp(D,J),H=new Dw(D,J,e,Re),W=new vA(D),ie=new Gw(D),he=new oA,B=new yA(D,J,W,he,H,Re,ie),O=new Ow(v),R=new Bw(v),w=new KM(D),nt=new Lw(D,w),Q=new Vw(D,w,ie,nt),me=new $w(D,Q,w,ie),Ne=new Ww(D,H,B),Ee=new Uw(he),de=new rA(v,O,R,J,H,nt,Ee),ye=new EA(v,he),Be=new lA,Ce=new pA(J),be=new Iw(v,O,R,W,me,d,l),Je=new _A(v,me,H),it=new TA(D,ie,H,W),rt=new Nw(D,J,ie),Ke=new Hw(D,J,ie),ie.programs=de.programs,v.capabilities=H,v.extensions=J,v.properties=he,v.renderLists=Be,v.shadowMap=Je,v.state=W,v.info=ie}At();const M=new wA(v,D);this.xr=M,this.getContext=function(){return D},this.getContextAttributes=function(){return D.getContextAttributes()},this.forceContextLoss=function(){const P=J.get("WEBGL_lose_context");P&&P.loseContext()},this.forceContextRestore=function(){const P=J.get("WEBGL_lose_context");P&&P.restoreContext()},this.getPixelRatio=function(){return ae},this.setPixelRatio=function(P){P!==void 0&&(ae=P,this.setSize(ce,Z,!1))},this.getSize=function(P){return P.set(ce,Z)},this.setSize=function(P,$,re=!0){if(M.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}ce=P,Z=$,t.width=Math.floor(P*ae),t.height=Math.floor($*ae),re===!0&&(t.style.width=P+"px",t.style.height=$+"px"),this.setViewport(0,0,P,$)},this.getDrawingBufferSize=function(P){return P.set(ce*ae,Z*ae).floor()},this.setDrawingBufferSize=function(P,$,re){ce=P,Z=$,ae=re,t.width=Math.floor(P*re),t.height=Math.floor($*re),this.setViewport(0,0,P,$)},this.getCurrentViewport=function(P){return P.copy(b)},this.getViewport=function(P){return P.copy(we)},this.setViewport=function(P,$,re,oe){P.isVector4?we.set(P.x,P.y,P.z,P.w):we.set(P,$,re,oe),W.viewport(b.copy(we).multiplyScalar(ae).round())},this.getScissor=function(P){return P.copy(Ae)},this.setScissor=function(P,$,re,oe){P.isVector4?Ae.set(P.x,P.y,P.z,P.w):Ae.set(P,$,re,oe),W.scissor(k.copy(Ae).multiplyScalar(ae).round())},this.getScissorTest=function(){return _e},this.setScissorTest=function(P){W.setScissorTest(_e=P)},this.setOpaqueSort=function(P){z=P},this.setTransparentSort=function(P){Se=P},this.getClearColor=function(P){return P.copy(be.getClearColor())},this.setClearColor=function(){be.setClearColor.apply(be,arguments)},this.getClearAlpha=function(){return be.getClearAlpha()},this.setClearAlpha=function(){be.setClearAlpha.apply(be,arguments)},this.clear=function(P=!0,$=!0,re=!0){let oe=0;if(P){let j=!1;if(C!==null){const Te=C.texture.format;j=Te===yu||Te===vu||Te===_u}if(j){const Te=C.texture.type,Le=Te===hi||Te===us||Te===Pr||Te===hs||Te===pu||Te===mu,ze=be.getClearColor(),Ge=be.getClearAlpha(),Qe=ze.r,et=ze.g,Ye=ze.b;Le?(f[0]=Qe,f[1]=et,f[2]=Ye,f[3]=Ge,D.clearBufferuiv(D.COLOR,0,f)):(g[0]=Qe,g[1]=et,g[2]=Ye,g[3]=Ge,D.clearBufferiv(D.COLOR,0,g))}else oe|=D.COLOR_BUFFER_BIT}$&&(oe|=D.DEPTH_BUFFER_BIT),re&&(oe|=D.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),D.clear(oe)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",le,!1),t.removeEventListener("webglcontextrestored",ne,!1),t.removeEventListener("webglcontextcreationerror",ue,!1),Be.dispose(),Ce.dispose(),he.dispose(),O.dispose(),R.dispose(),me.dispose(),nt.dispose(),it.dispose(),de.dispose(),M.dispose(),M.removeEventListener("sessionstart",Ut),M.removeEventListener("sessionend",Ot),pn.stop()};function le(P){P.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),x=!0}function ne(){console.log("THREE.WebGLRenderer: Context Restored."),x=!1;const P=ie.autoReset,$=Je.enabled,re=Je.autoUpdate,oe=Je.needsUpdate,j=Je.type;At(),ie.autoReset=P,Je.enabled=$,Je.autoUpdate=re,Je.needsUpdate=oe,Je.type=j}function ue(P){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",P.statusMessage)}function Me(P){const $=P.target;$.removeEventListener("dispose",Me),We($)}function We(P){tt(P),he.remove(P)}function tt(P){const $=he.get(P).programs;$!==void 0&&($.forEach(function(re){de.releaseProgram(re)}),P.isShaderMaterial&&de.releaseShaderCache(P))}this.renderBufferDirect=function(P,$,re,oe,j,Te){$===null&&($=se);const Le=j.isMesh&&j.matrixWorld.determinant()<0,ze=Wm(P,$,re,oe,j);W.setMaterial(oe,Le);let Ge=re.index,Qe=1;if(oe.wireframe===!0){if(Ge=Q.getWireframeAttribute(re),Ge===void 0)return;Qe=2}const et=re.drawRange,Ye=re.attributes.position;let ft=et.start*Qe,Tt=(et.start+et.count)*Qe;Te!==null&&(ft=Math.max(ft,Te.start*Qe),Tt=Math.min(Tt,(Te.start+Te.count)*Qe)),Ge!==null?(ft=Math.max(ft,0),Tt=Math.min(Tt,Ge.count)):Ye!=null&&(ft=Math.max(ft,0),Tt=Math.min(Tt,Ye.count));const Ct=Tt-ft;if(Ct<0||Ct===1/0)return;nt.setup(j,oe,ze,re,Ge);let gn,gt=rt;if(Ge!==null&&(gn=w.get(Ge),gt=Ke,gt.setIndex(gn)),j.isMesh)oe.wireframe===!0?(W.setLineWidth(oe.wireframeLinewidth*K()),gt.setMode(D.LINES)):gt.setMode(D.TRIANGLES);else if(j.isLine){let $e=oe.linewidth;$e===void 0&&($e=1),W.setLineWidth($e*K()),j.isLineSegments?gt.setMode(D.LINES):j.isLineLoop?gt.setMode(D.LINE_LOOP):gt.setMode(D.LINE_STRIP)}else j.isPoints?gt.setMode(D.POINTS):j.isSprite&>.setMode(D.TRIANGLES);if(j.isBatchedMesh)j._multiDrawInstances!==null?gt.renderMultiDrawInstances(j._multiDrawStarts,j._multiDrawCounts,j._multiDrawCount,j._multiDrawInstances):gt.renderMultiDraw(j._multiDrawStarts,j._multiDrawCounts,j._multiDrawCount);else if(j.isInstancedMesh)gt.renderInstances(ft,Ct,j.count);else if(re.isInstancedBufferGeometry){const $e=re._maxInstanceCount!==void 0?re._maxInstanceCount:1/0,tn=Math.min(re.instanceCount,$e);gt.renderInstances(ft,Ct,tn)}else gt.render(ft,Ct)};function Et(P,$,re){P.transparent===!0&&P.side===In&&P.forceSinglePass===!1?(P.side=an,P.needsUpdate=!0,co(P,$,re),P.side=ci,P.needsUpdate=!0,co(P,$,re),P.side=In):co(P,$,re)}this.compile=function(P,$,re=null){re===null&&(re=P),p=Ce.get(re),p.init($),y.push(p),re.traverseVisible(function(j){j.isLight&&j.layers.test($.layers)&&(p.pushLight(j),j.castShadow&&p.pushShadow(j))}),P!==re&&P.traverseVisible(function(j){j.isLight&&j.layers.test($.layers)&&(p.pushLight(j),j.castShadow&&p.pushShadow(j))}),p.setupLights();const oe=new Set;return P.traverse(function(j){const Te=j.material;if(Te)if(Array.isArray(Te))for(let Le=0;Le{function Te(){if(oe.forEach(function(Le){he.get(Le).currentProgram.isReady()&&oe.delete(Le)}),oe.size===0){j(P);return}setTimeout(Te,10)}J.get("KHR_parallel_shader_compile")!==null?Te():setTimeout(Te,10)})};let Dt=null;function ht(P){Dt&&Dt(P)}function Ut(){pn.stop()}function Ot(){pn.start()}const pn=new Lp;pn.setAnimationLoop(ht),typeof self<"u"&&pn.setContext(self),this.setAnimationLoop=function(P){Dt=P,M.setAnimationLoop(P),P===null?pn.stop():pn.start()},M.addEventListener("sessionstart",Ut),M.addEventListener("sessionend",Ot),this.render=function(P,$){if($!==void 0&&$.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(x===!0)return;if(P.matrixWorldAutoUpdate===!0&&P.updateMatrixWorld(),$.parent===null&&$.matrixWorldAutoUpdate===!0&&$.updateMatrixWorld(),M.enabled===!0&&M.isPresenting===!0&&(M.cameraAutoUpdate===!0&&M.updateCamera($),$=M.getCamera()),P.isScene===!0&&P.onBeforeRender(v,P,$,C),p=Ce.get(P,y.length),p.init($),y.push(p),I.multiplyMatrices($.projectionMatrix,$.matrixWorldInverse),De.setFromProjectionMatrix(I),U=this.localClippingEnabled,F=Ee.init(this.clippingPlanes,U),_=Be.get(P,m.length),_.init(),m.push(_),M.enabled===!0&&M.isPresenting===!0){const Te=v.xr.getDepthSensingMesh();Te!==null&&mn(Te,$,-1/0,v.sortObjects)}mn(P,$,0,v.sortObjects),_.finish(),v.sortObjects===!0&&_.sort(z,Se),fe=M.enabled===!1||M.isPresenting===!1||M.hasDepthSensing()===!1,fe&&be.addToRenderList(_,P),this.info.render.frame++,F===!0&&Ee.beginShadows();const re=p.state.shadowsArray;Je.render(re,P,$),F===!0&&Ee.endShadows(),this.info.autoReset===!0&&this.info.reset();const oe=_.opaque,j=_.transmissive;if(p.setupLights(),$.isArrayCamera){const Te=$.cameras;if(j.length>0)for(let Le=0,ze=Te.length;Le0&&Oi(oe,j,P,$),fe&&be.render(P),gi(_,P,$);C!==null&&(B.updateMultisampleRenderTarget(C),B.updateRenderTargetMipmap(C)),P.isScene===!0&&P.onAfterRender(v,P,$),nt.resetDefaultState(),L=-1,A=null,y.pop(),y.length>0?(p=y[y.length-1],F===!0&&Ee.setGlobalState(v.clippingPlanes,p.state.camera)):p=null,m.pop(),m.length>0?_=m[m.length-1]:_=null};function mn(P,$,re,oe){if(P.visible===!1)return;if(P.layers.test($.layers)){if(P.isGroup)re=P.renderOrder;else if(P.isLOD)P.autoUpdate===!0&&P.update($);else if(P.isLight)p.pushLight(P),P.castShadow&&p.pushShadow(P);else if(P.isSprite){if(!P.frustumCulled||De.intersectsSprite(P)){oe&&T.setFromMatrixPosition(P.matrixWorld).applyMatrix4(I);const Le=me.update(P),ze=P.material;ze.visible&&_.push(P,Le,ze,re,T.z,null)}}else if((P.isMesh||P.isLine||P.isPoints)&&(!P.frustumCulled||De.intersectsObject(P))){const Le=me.update(P),ze=P.material;if(oe&&(P.boundingSphere!==void 0?(P.boundingSphere===null&&P.computeBoundingSphere(),T.copy(P.boundingSphere.center)):(Le.boundingSphere===null&&Le.computeBoundingSphere(),T.copy(Le.boundingSphere.center)),T.applyMatrix4(P.matrixWorld).applyMatrix4(I)),Array.isArray(ze)){const Ge=Le.groups;for(let Qe=0,et=Ge.length;Qe0&&Fi(j,$,re),Te.length>0&&Fi(Te,$,re),Le.length>0&&Fi(Le,$,re),W.buffers.depth.setTest(!0),W.buffers.depth.setMask(!0),W.buffers.color.setMask(!0),W.setPolygonOffset(!1)}function Oi(P,$,re,oe){if((re.isScene===!0?re.overrideMaterial:null)!==null)return;p.state.transmissionRenderTarget[oe.id]===void 0&&(p.state.transmissionRenderTarget[oe.id]=new Un(1,1,{generateMipmaps:!0,type:J.has("EXT_color_buffer_half_float")||J.has("EXT_color_buffer_float")?Jr:hi,minFilter:Vn,samples:4,stencilBuffer:r,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:dt.workingColorSpace}));const Te=p.state.transmissionRenderTarget[oe.id],Le=oe.viewport||b;Te.setSize(Le.z,Le.w);const ze=v.getRenderTarget();v.setRenderTarget(Te),v.getClearColor(G),X=v.getClearAlpha(),X<1&&v.setClearColor(16777215,.5),fe?be.render(re):v.clear();const Ge=v.toneMapping;v.toneMapping=Wn;const Qe=oe.viewport;if(oe.viewport!==void 0&&(oe.viewport=void 0),p.setupLightsView(oe),F===!0&&Ee.setGlobalState(v.clippingPlanes,oe),Fi(P,re,oe),B.updateMultisampleRenderTarget(Te),B.updateRenderTargetMipmap(Te),J.has("WEBGL_multisampled_render_to_texture")===!1){let et=!1;for(let Ye=0,ft=$.length;Ye0),Ye=!!re.morphAttributes.position,ft=!!re.morphAttributes.normal,Tt=!!re.morphAttributes.color;let Ct=Wn;oe.toneMapped&&(C===null||C.isXRRenderTarget===!0)&&(Ct=v.toneMapping);const gn=re.morphAttributes.position||re.morphAttributes.normal||re.morphAttributes.color,gt=gn!==void 0?gn.length:0,$e=he.get(oe),tn=p.state.lights;if(F===!0&&(U===!0||P!==A)){const Sn=P===A&&oe.id===L;Ee.setState(oe,P,Sn)}let vt=!1;oe.version===$e.__version?($e.needsLights&&$e.lightsStateVersion!==tn.state.version||$e.outputColorSpace!==ze||j.isBatchedMesh&&$e.batching===!1||!j.isBatchedMesh&&$e.batching===!0||j.isBatchedMesh&&$e.batchingColor===!0&&j.colorTexture===null||j.isBatchedMesh&&$e.batchingColor===!1&&j.colorTexture!==null||j.isInstancedMesh&&$e.instancing===!1||!j.isInstancedMesh&&$e.instancing===!0||j.isSkinnedMesh&&$e.skinning===!1||!j.isSkinnedMesh&&$e.skinning===!0||j.isInstancedMesh&&$e.instancingColor===!0&&j.instanceColor===null||j.isInstancedMesh&&$e.instancingColor===!1&&j.instanceColor!==null||j.isInstancedMesh&&$e.instancingMorph===!0&&j.morphTexture===null||j.isInstancedMesh&&$e.instancingMorph===!1&&j.morphTexture!==null||$e.envMap!==Ge||oe.fog===!0&&$e.fog!==Te||$e.numClippingPlanes!==void 0&&($e.numClippingPlanes!==Ee.numPlanes||$e.numIntersection!==Ee.numIntersection)||$e.vertexAlphas!==Qe||$e.vertexTangents!==et||$e.morphTargets!==Ye||$e.morphNormals!==ft||$e.morphColors!==Tt||$e.toneMapping!==Ct||$e.morphTargetsCount!==gt)&&(vt=!0):(vt=!0,$e.__version=oe.version);let Kn=$e.currentProgram;vt===!0&&(Kn=co(oe,$,j));let uo=!1,ki=!1,dl=!1;const Ht=Kn.getUniforms(),_i=$e.uniforms;if(W.useProgram(Kn.program)&&(uo=!0,ki=!0,dl=!0),oe.id!==L&&(L=oe.id,ki=!0),uo||A!==P){Ht.setValue(D,"projectionMatrix",P.projectionMatrix),Ht.setValue(D,"viewMatrix",P.matrixWorldInverse);const Sn=Ht.map.cameraPosition;Sn!==void 0&&Sn.setValue(D,T.setFromMatrixPosition(P.matrixWorld)),H.logarithmicDepthBuffer&&Ht.setValue(D,"logDepthBufFC",2/(Math.log(P.far+1)/Math.LN2)),(oe.isMeshPhongMaterial||oe.isMeshToonMaterial||oe.isMeshLambertMaterial||oe.isMeshBasicMaterial||oe.isMeshStandardMaterial||oe.isShaderMaterial)&&Ht.setValue(D,"isOrthographic",P.isOrthographicCamera===!0),A!==P&&(A=P,ki=!0,dl=!0)}if(j.isSkinnedMesh){Ht.setOptional(D,j,"bindMatrix"),Ht.setOptional(D,j,"bindMatrixInverse");const Sn=j.skeleton;Sn&&(Sn.boneTexture===null&&Sn.computeBoneTexture(),Ht.setValue(D,"boneTexture",Sn.boneTexture,B))}j.isBatchedMesh&&(Ht.setOptional(D,j,"batchingTexture"),Ht.setValue(D,"batchingTexture",j._matricesTexture,B),Ht.setOptional(D,j,"batchingColorTexture"),j._colorsTexture!==null&&Ht.setValue(D,"batchingColorTexture",j._colorsTexture,B));const fl=re.morphAttributes;if((fl.position!==void 0||fl.normal!==void 0||fl.color!==void 0)&&Ne.update(j,re,Kn),(ki||$e.receiveShadow!==j.receiveShadow)&&($e.receiveShadow=j.receiveShadow,Ht.setValue(D,"receiveShadow",j.receiveShadow)),oe.isMeshGouraudMaterial&&oe.envMap!==null&&(_i.envMap.value=Ge,_i.flipEnvMap.value=Ge.isCubeTexture&&Ge.isRenderTargetTexture===!1?-1:1),oe.isMeshStandardMaterial&&oe.envMap===null&&$.environment!==null&&(_i.envMapIntensity.value=$.environmentIntensity),ki&&(Ht.setValue(D,"toneMappingExposure",v.toneMappingExposure),$e.needsLights&&$m(_i,dl),Te&&oe.fog===!0&&ye.refreshFogUniforms(_i,Te),ye.refreshMaterialUniforms(_i,oe,ae,Z,p.state.transmissionRenderTarget[P.id]),_a.upload(D,ih($e),_i,B)),oe.isShaderMaterial&&oe.uniformsNeedUpdate===!0&&(_a.upload(D,ih($e),_i,B),oe.uniformsNeedUpdate=!1),oe.isSpriteMaterial&&Ht.setValue(D,"center",j.center),Ht.setValue(D,"modelViewMatrix",j.modelViewMatrix),Ht.setValue(D,"normalMatrix",j.normalMatrix),Ht.setValue(D,"modelMatrix",j.matrixWorld),oe.isShaderMaterial||oe.isRawShaderMaterial){const Sn=oe.uniformsGroups;for(let pl=0,qm=Sn.length;pl0&&B.useMultisampledRTT(P)===!1?j=he.get(P).__webglMultisampledFramebuffer:Array.isArray(et)?j=et[re]:j=et,b.copy(P.viewport),k.copy(P.scissor),V=P.scissorTest}else b.copy(we).multiplyScalar(ae).floor(),k.copy(Ae).multiplyScalar(ae).floor(),V=_e;if(W.bindFramebuffer(D.FRAMEBUFFER,j)&&oe&&W.drawBuffers(P,j),W.viewport(b),W.scissor(k),W.setScissorTest(V),Te){const Ge=he.get(P.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+$,Ge.__webglTexture,re)}else if(Le){const Ge=he.get(P.texture),Qe=$||0;D.framebufferTextureLayer(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,Ge.__webglTexture,re||0,Qe)}L=-1},this.readRenderTargetPixels=function(P,$,re,oe,j,Te,Le){if(!(P&&P.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ze=he.get(P).__webglFramebuffer;if(P.isWebGLCubeRenderTarget&&Le!==void 0&&(ze=ze[Le]),ze){W.bindFramebuffer(D.FRAMEBUFFER,ze);try{const Ge=P.texture,Qe=Ge.format,et=Ge.type;if(!H.textureFormatReadable(Qe)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!H.textureTypeReadable(et)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}$>=0&&$<=P.width-oe&&re>=0&&re<=P.height-j&&D.readPixels($,re,oe,j,Re.convert(Qe),Re.convert(et),Te)}finally{const Ge=C!==null?he.get(C).__webglFramebuffer:null;W.bindFramebuffer(D.FRAMEBUFFER,Ge)}}},this.readRenderTargetPixelsAsync=async function(P,$,re,oe,j,Te,Le){if(!(P&&P.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let ze=he.get(P).__webglFramebuffer;if(P.isWebGLCubeRenderTarget&&Le!==void 0&&(ze=ze[Le]),ze){W.bindFramebuffer(D.FRAMEBUFFER,ze);try{const Ge=P.texture,Qe=Ge.format,et=Ge.type;if(!H.textureFormatReadable(Qe))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!H.textureTypeReadable(et))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if($>=0&&$<=P.width-oe&&re>=0&&re<=P.height-j){const Ye=D.createBuffer();D.bindBuffer(D.PIXEL_PACK_BUFFER,Ye),D.bufferData(D.PIXEL_PACK_BUFFER,Te.byteLength,D.STREAM_READ),D.readPixels($,re,oe,j,Re.convert(Qe),Re.convert(et),0),D.flush();const ft=D.fenceSync(D.SYNC_GPU_COMMANDS_COMPLETE,0);await MM(D,ft,4);try{D.bindBuffer(D.PIXEL_PACK_BUFFER,Ye),D.getBufferSubData(D.PIXEL_PACK_BUFFER,0,Te)}finally{D.deleteBuffer(Ye),D.deleteSync(ft)}return Te}}finally{const Ge=C!==null?he.get(C).__webglFramebuffer:null;W.bindFramebuffer(D.FRAMEBUFFER,Ge)}}},this.copyFramebufferToTexture=function(P,$=null,re=0){P.isTexture!==!0&&(console.warn("WebGLRenderer: copyFramebufferToTexture function signature has changed."),$=arguments[0]||null,P=arguments[1]);const oe=Math.pow(2,-re),j=Math.floor(P.image.width*oe),Te=Math.floor(P.image.height*oe),Le=$!==null?$.x:0,ze=$!==null?$.y:0;B.setTexture2D(P,0),D.copyTexSubImage2D(D.TEXTURE_2D,re,0,0,Le,ze,j,Te),W.unbindTexture()},this.copyTextureToTexture=function(P,$,re=null,oe=null,j=0){P.isTexture!==!0&&(console.warn("WebGLRenderer: copyTextureToTexture function signature has changed."),oe=arguments[0]||null,P=arguments[1],$=arguments[2],j=arguments[3]||0,re=null);let Te,Le,ze,Ge,Qe,et;re!==null?(Te=re.max.x-re.min.x,Le=re.max.y-re.min.y,ze=re.min.x,Ge=re.min.y):(Te=P.image.width,Le=P.image.height,ze=0,Ge=0),oe!==null?(Qe=oe.x,et=oe.y):(Qe=0,et=0);const Ye=Re.convert($.format),ft=Re.convert($.type);B.setTexture2D($,0),D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,$.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,$.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,$.unpackAlignment);const Tt=D.getParameter(D.UNPACK_ROW_LENGTH),Ct=D.getParameter(D.UNPACK_IMAGE_HEIGHT),gn=D.getParameter(D.UNPACK_SKIP_PIXELS),gt=D.getParameter(D.UNPACK_SKIP_ROWS),$e=D.getParameter(D.UNPACK_SKIP_IMAGES),tn=P.isCompressedTexture?P.mipmaps[j]:P.image;D.pixelStorei(D.UNPACK_ROW_LENGTH,tn.width),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,tn.height),D.pixelStorei(D.UNPACK_SKIP_PIXELS,ze),D.pixelStorei(D.UNPACK_SKIP_ROWS,Ge),P.isDataTexture?D.texSubImage2D(D.TEXTURE_2D,j,Qe,et,Te,Le,Ye,ft,tn.data):P.isCompressedTexture?D.compressedTexSubImage2D(D.TEXTURE_2D,j,Qe,et,tn.width,tn.height,Ye,tn.data):D.texSubImage2D(D.TEXTURE_2D,j,Qe,et,Ye,ft,tn),D.pixelStorei(D.UNPACK_ROW_LENGTH,Tt),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Ct),D.pixelStorei(D.UNPACK_SKIP_PIXELS,gn),D.pixelStorei(D.UNPACK_SKIP_ROWS,gt),D.pixelStorei(D.UNPACK_SKIP_IMAGES,$e),j===0&&$.generateMipmaps&&D.generateMipmap(D.TEXTURE_2D),W.unbindTexture()},this.copyTextureToTexture3D=function(P,$,re=null,oe=null,j=0){P.isTexture!==!0&&(console.warn("WebGLRenderer: copyTextureToTexture3D function signature has changed."),re=arguments[0]||null,oe=arguments[1]||null,P=arguments[2],$=arguments[3],j=arguments[4]||0);let Te,Le,ze,Ge,Qe,et,Ye,ft,Tt;const Ct=P.isCompressedTexture?P.mipmaps[j]:P.image;re!==null?(Te=re.max.x-re.min.x,Le=re.max.y-re.min.y,ze=re.max.z-re.min.z,Ge=re.min.x,Qe=re.min.y,et=re.min.z):(Te=Ct.width,Le=Ct.height,ze=Ct.depth,Ge=0,Qe=0,et=0),oe!==null?(Ye=oe.x,ft=oe.y,Tt=oe.z):(Ye=0,ft=0,Tt=0);const gn=Re.convert($.format),gt=Re.convert($.type);let $e;if($.isData3DTexture)B.setTexture3D($,0),$e=D.TEXTURE_3D;else if($.isDataArrayTexture||$.isCompressedArrayTexture)B.setTexture2DArray($,0),$e=D.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,$.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,$.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,$.unpackAlignment);const tn=D.getParameter(D.UNPACK_ROW_LENGTH),vt=D.getParameter(D.UNPACK_IMAGE_HEIGHT),Kn=D.getParameter(D.UNPACK_SKIP_PIXELS),uo=D.getParameter(D.UNPACK_SKIP_ROWS),ki=D.getParameter(D.UNPACK_SKIP_IMAGES);D.pixelStorei(D.UNPACK_ROW_LENGTH,Ct.width),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,Ct.height),D.pixelStorei(D.UNPACK_SKIP_PIXELS,Ge),D.pixelStorei(D.UNPACK_SKIP_ROWS,Qe),D.pixelStorei(D.UNPACK_SKIP_IMAGES,et),P.isDataTexture||P.isData3DTexture?D.texSubImage3D($e,j,Ye,ft,Tt,Te,Le,ze,gn,gt,Ct.data):$.isCompressedArrayTexture?D.compressedTexSubImage3D($e,j,Ye,ft,Tt,Te,Le,ze,gn,Ct.data):D.texSubImage3D($e,j,Ye,ft,Tt,Te,Le,ze,gn,gt,Ct),D.pixelStorei(D.UNPACK_ROW_LENGTH,tn),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,vt),D.pixelStorei(D.UNPACK_SKIP_PIXELS,Kn),D.pixelStorei(D.UNPACK_SKIP_ROWS,uo),D.pixelStorei(D.UNPACK_SKIP_IMAGES,ki),j===0&&$.generateMipmaps&&D.generateMipmap($e),W.unbindTexture()},this.initRenderTarget=function(P){he.get(P).__webglFramebuffer===void 0&&B.setupRenderTarget(P)},this.initTexture=function(P){P.isCubeTexture?B.setTextureCube(P,0):P.isData3DTexture?B.setTexture3D(P,0):P.isDataArrayTexture||P.isCompressedArrayTexture?B.setTexture2DArray(P,0):B.setTexture2D(P,0),W.unbindTexture()},this.resetState=function(){E=0,S=0,C=null,W.reset(),nt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Hn}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===ka?"display-p3":"srgb",t.unpackColorSpace=dt.workingColorSpace===jr?"display-p3":"srgb"}}class Ga{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new Ie(e),this.density=t}clone(){return new Ga(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class Wa{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new Ie(e),this.near=t,this.far=n}clone(){return new Wa(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class $a extends ut{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new bn,this.environmentIntensity=1,this.environmentRotation=new bn,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class Xa{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=Ur,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=Mn()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return wu("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,r=this.stride;ie.far||t.push({distance:l,point:rr.clone(),uv:yn.getInterpolation(rr,No,ar,Do,Zh,Vl,Kh,new te),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function Uo(s,e,t,n,i,r){ks.subVectors(s,t).addScalar(.5).multiply(n),i!==void 0?(or.x=r*ks.x-i*ks.y,or.y=i*ks.x+r*ks.y):or.copy(ks),s.copy(e),s.x+=or.x,s.y+=or.y,s.applyMatrix4(zp)}const Oo=new N,Jh=new N;class Hp extends ut{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let n=0,i=t.length;n0){let n,i;for(n=1,i=t.length;n0){Oo.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(Oo);this.getObjectForDistance(i).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Oo.setFromMatrixPosition(e.matrixWorld),Jh.setFromMatrixPosition(this.matrixWorld);const n=Oo.distanceTo(Jh)/e.zoom;t[0].object.visible=!0;let i,r;for(i=1,r=t.length;i=o)t[i-1].object.visible=!1,t[i].object.visible=!0;else break}for(this._currentLevel=i-1;i=n.length&&n.push({start:-1,count:-1,z:-1});const r=n[this.index];i.push(r),this.index++,r.start=e.start,r.count=e.count,r.z=t}reset(){this.list.length=0,this.index=0}}const zs="batchId",wi=new Ze,Wl=new Ze,DA=new Ze,UA=new Ie(1,1,1),od=new Ze,$l=new to,Bo=new ln,$i=new jt,ur=new N,ad=new N,OA=new N,Xl=new NA,Kt=new Nt,zo=[];function FA(s,e,t=0){const n=e.itemSize;if(s.isInterleavedBufferAttribute||s.array.constructor!==e.array.constructor){const i=s.count;for(let r=0;r65536?new Uint32Array(r):new Uint16Array(r);t.setIndex(new mt(a,1))}const o=i>65536?new Uint32Array(n):new Uint16Array(n);t.setAttribute(zs,new mt(o,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(zs))throw new Error(`BatchedMesh: Geometry cannot use attribute "${zs}"`);const t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const n in t.attributes){if(n===zs)continue;if(!e.hasAttribute(n))throw new Error(`BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);const i=e.getAttribute(n),r=t.getAttribute(n);if(i.itemSize!==r.itemSize||i.normalized!==r.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new ln);const e=this._geometryCount,t=this.boundingBox,n=this._active;t.makeEmpty();for(let i=0;i=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const i={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let r=null;const o=this._reservedRanges,a=this._drawRanges,l=this._bounds;this._geometryCount!==0&&(r=o[o.length-1]),t===-1?i.vertexCount=e.getAttribute("position").count:i.vertexCount=t,r===null?i.vertexStart=0:i.vertexStart=r.vertexStart+r.vertexCount;const c=e.getIndex(),u=c!==null;if(u&&(n===-1?i.indexCount=c.count:i.indexCount=n,r===null?i.indexStart=0:i.indexStart=r.indexStart+r.indexCount),i.indexStart!==-1&&i.indexStart+i.indexCount>this._maxIndexCount||i.vertexStart+i.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const h=this._visibility,d=this._active,f=this._matricesTexture,g=this._matricesTexture.image.data,_=this._colorsTexture;h.push(!0),d.push(!0);const p=this._geometryCount;this._geometryCount++,DA.toArray(g,p*16),f.needsUpdate=!0,_!==null&&(UA.toArray(_.image.data,p*4),_.needsUpdate=!0),o.push(i),a.push({start:u?i.indexStart:i.vertexStart,count:-1}),l.push({boxInitialized:!1,box:new ln,sphereInitialized:!1,sphere:new jt});const m=this.geometry.getAttribute(zs);for(let y=0;y=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const n=this.geometry,i=n.getIndex()!==null,r=n.getIndex(),o=t.getIndex(),a=this._reservedRanges[e];if(i&&o.count>a.indexCount||t.attributes.position.count>a.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const l=a.vertexStart,c=a.vertexCount;for(const f in n.attributes){if(f===zs)continue;const g=t.getAttribute(f),_=n.getAttribute(f);FA(g,_,l);const p=g.itemSize;for(let m=g.count,y=c;m=t.length||t[e]===!1?this:(t[e]=!1,this._visibilityChanged=!0,this)}getInstanceCountAt(e){return this._multiDrawInstances===null?null:this._multiDrawInstances[e]}setInstanceCountAt(e,t){return this._multiDrawInstances===null&&(this._multiDrawInstances=new Int32Array(this._maxGeometryCount).fill(1)),this._multiDrawInstances[e]=t,e}getBoundingBoxAt(e,t){if(this._active[e]===!1)return null;const i=this._bounds[e],r=i.box,o=this.geometry;if(i.boxInitialized===!1){r.makeEmpty();const a=o.index,l=o.attributes.position,c=this._drawRanges[e];for(let u=c.start,h=c.start+c.count;u=o||n[e]===!1?this:(t.toArray(r,e*16),i.needsUpdate=!0,this)}getMatrixAt(e,t){const n=this._active,i=this._matricesTexture.image.data,r=this._geometryCount;return e>=r||n[e]===!1?null:t.fromArray(i,e*16)}setColorAt(e,t){this._colorsTexture===null&&this._initColorsTexture();const n=this._active,i=this._colorsTexture,r=this._colorsTexture.image.data,o=this._geometryCount;return e>=o||n[e]===!1?this:(t.toArray(r,e*4),i.needsUpdate=!0,this)}getColorAt(e,t){const n=this._active,i=this._colorsTexture.image.data,r=this._geometryCount;return e>=r||n[e]===!1?null:t.fromArray(i,e*4)}setVisibleAt(e,t){const n=this._visibility,i=this._active,r=this._geometryCount;return e>=r||i[e]===!1||n[e]===t?this:(n[e]=t,this._visibilityChanged=!0,this)}getVisibleAt(e){const t=this._visibility,n=this._active,i=this._geometryCount;return e>=i||n[e]===!1?!1:t[e]}raycast(e,t){const n=this._visibility,i=this._active,r=this._drawRanges,o=this._geometryCount,a=this.matrixWorld,l=this.geometry;Kt.material=this.material,Kt.geometry.index=l.index,Kt.geometry.attributes=l.attributes,Kt.geometry.boundingBox===null&&(Kt.geometry.boundingBox=new ln),Kt.geometry.boundingSphere===null&&(Kt.geometry.boundingSphere=new jt);for(let c=0;c({...t})),this._reservedRanges=e._reservedRanges.map(t=>({...t})),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(t=>({boxInitialized:t.boxInitialized,box:t.box.clone(),sphereInitialized:t.sphereInitialized,sphere:t.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),this._colorsTexture!==null&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.slice()),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this._colorsTexture!==null&&(this._colorsTexture.dispose(),this._colorsTexture=null),this}onBeforeRender(e,t,n,i,r){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const o=i.getIndex(),a=o===null?1:o.array.BYTES_PER_ELEMENT,l=this._active,c=this._visibility,u=this._multiDrawStarts,h=this._multiDrawCounts,d=this._drawRanges,f=this.perObjectFrustumCulled;f&&(od.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),$l.setFromProjectionMatrix(od,e.coordinateSystem));let g=0;if(this.sortObjects){Wl.copy(this.matrixWorld).invert(),ur.setFromMatrixPosition(n.matrixWorld).applyMatrix4(Wl),ad.set(0,0,-1).transformDirection(n.matrixWorld).transformDirection(Wl);for(let m=0,y=c.length;m0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;rn)return;ql.applyMatrix4(s.matrixWorld);const l=e.ray.origin.distanceTo(ql);if(!(le.far))return{distance:l,point:cd.clone().applyMatrix4(s.matrixWorld),index:i,face:null,faceIndex:null,object:s}}const ud=new N,hd=new N;class Zn extends Ii{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[];for(let i=0,r=t.count;i0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;ri.far)return;r.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class kA extends It{constructor(e,t,n,i,r,o,a,l,c){super(e,t,n,i,r,o,a,l,c),this.isVideoTexture=!0,this.minFilter=o!==void 0?o:Bt,this.magFilter=r!==void 0?r:Bt,this.generateMipmaps=!1;const u=this;function h(){u.needsUpdate=!0,e.requestVideoFrameCallback(h)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(h)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class BA extends It{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=Wt,this.minFilter=Wt,this.generateMipmaps=!1,this.needsUpdate=!0}}class Ya extends It{constructor(e,t,n,i,r,o,a,l,c,u,h,d){super(null,o,a,l,c,u,i,r,h,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class zA extends Ya{constructor(e,t,n,i,r,o){super(e,t,n,r,o),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=An,this.layerUpdates=new Set}addLayerUpdates(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class VA extends Ya{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,ui),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class HA extends It{constructor(e,t,n,i,r,o,a,l,c){super(e,t,n,i,r,o,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class kn{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,i=this.getPoint(0),r=0;t.push(0);for(let o=1;o<=e;o++)n=this.getPoint(o/e),r+=n.distanceTo(i),t.push(r),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let i=0;const r=n.length;let o;t?o=t:o=e*n[r-1];let a=0,l=r-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=n[i]-o,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,n[i]===o)return i/(r-1);const u=n[i],d=n[i+1]-u,f=(o-u)/d;return(i+f)/(r-1)}getTangent(e,t){let i=e-1e-4,r=e+1e-4;i<0&&(i=0),r>1&&(r=1);const o=this.getPoint(i),a=this.getPoint(r),l=t||(o.isVector2?new te:new N);return l.copy(a).sub(o).normalize(),l}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new N,i=[],r=[],o=[],a=new N,l=new Ze;for(let f=0;f<=e;f++){const g=f/e;i[f]=this.getTangentAt(g,new N)}r[0]=new N,o[0]=new N;let c=Number.MAX_VALUE;const u=Math.abs(i[0].x),h=Math.abs(i[0].y),d=Math.abs(i[0].z);u<=c&&(c=u,n.set(1,0,0)),h<=c&&(c=h,n.set(0,1,0)),d<=c&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),o[0].crossVectors(i[0],r[0]);for(let f=1;f<=e;f++){if(r[f]=r[f-1].clone(),o[f]=o[f-1].clone(),a.crossVectors(i[f-1],i[f]),a.length()>Number.EPSILON){a.normalize();const g=Math.acos(Rt(i[f-1].dot(i[f]),-1,1));r[f].applyMatrix4(l.makeRotationAxis(a,g))}o[f].crossVectors(i[f],r[f])}if(t===!0){let f=Math.acos(Rt(r[0].dot(r[e]),-1,1));f/=e,i[0].dot(a.crossVectors(r[0],r[e]))>0&&(f=-f);for(let g=1;g<=e;g++)r[g].applyMatrix4(l.makeRotationAxis(i[g],f*g)),o[g].crossVectors(i[g],r[g])}return{tangents:i,normals:r,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Za extends kn{constructor(e=0,t=0,n=1,i=1,r=0,o=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a,this.aRotation=l}getPoint(e,t=new te){const n=t,i=Math.PI*2;let r=this.aEndAngle-this.aStartAngle;const o=Math.abs(r)i;)r-=i;r0?0:(Math.floor(Math.abs(a)/r)+1)*r:l===0&&a===r-1&&(a=r-2,l=1);let c,u;this.closed||a>0?c=i[(a-1)%r]:($o.subVectors(i[0],i[1]).add(i[0]),c=$o);const h=i[a%r],d=i[(a+1)%r];if(this.closed||a+2i.length-2?i.length-1:o+1],h=i[o>i.length-3?i.length-1:o+2];return n.set(pd(a,l.x,c.x,u.x,h.x),pd(a,l.y,c.y,u.y,h.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const o=i[r]-n,a=this.curves[r],l=a.getLength(),c=l===0?0:1-o/l;return a.getPointAt(c,t)}r++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,i=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const h=c.getPoint(0);h.equals(this.currentPoint)||this.lineTo(h.x,h.y)}this.curves.push(c);const u=c.getPoint(1);return this.currentPoint.copy(u),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class no extends at{constructor(e=[new te(0,-.5),new te(.5,0),new te(0,.5)],t=12,n=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},t=Math.floor(t),i=Rt(i,0,Math.PI*2);const r=[],o=[],a=[],l=[],c=[],u=1/t,h=new N,d=new te,f=new N,g=new N,_=new N;let p=0,m=0;for(let y=0;y<=e.length-1;y++)switch(y){case 0:p=e[y+1].x-e[y].x,m=e[y+1].y-e[y].y,f.x=m*1,f.y=-p,f.z=m*0,_.copy(f),f.normalize(),l.push(f.x,f.y,f.z);break;case e.length-1:l.push(_.x,_.y,_.z);break;default:p=e[y+1].x-e[y].x,m=e[y+1].y-e[y].y,f.x=m*1,f.y=-p,f.z=m*0,g.copy(f),f.x+=_.x,f.y+=_.y,f.z+=_.z,f.normalize(),l.push(f.x,f.y,f.z),_.copy(g)}for(let y=0;y<=t;y++){const v=n+y*u*i,x=Math.sin(v),E=Math.cos(v);for(let S=0;S<=e.length-1;S++){h.x=e[S].x*x,h.y=e[S].y,h.z=e[S].x*E,o.push(h.x,h.y,h.z),d.x=y/t,d.y=S/(e.length-1),a.push(d.x,d.y);const C=l[3*S+0]*x,L=l[3*S+1],A=l[3*S+0]*E;c.push(C,L,A)}}for(let y=0;y0&&v(!0),t>0&&v(!1)),this.setIndex(u),this.setAttribute("position",new Oe(h,3)),this.setAttribute("normal",new Oe(d,3)),this.setAttribute("uv",new Oe(f,2));function y(){const x=new N,E=new N;let S=0;const C=(t-e)/n;for(let L=0;L<=r;L++){const A=[],b=L/r,k=b*(t-e)+e;for(let V=0;V<=i;V++){const G=V/i,X=G*l+a,ce=Math.sin(X),Z=Math.cos(X);E.x=k*ce,E.y=-b*n+p,E.z=k*Z,h.push(E.x,E.y,E.z),x.set(ce,C,Z).normalize(),d.push(x.x,x.y,x.z),f.push(G,1-b),A.push(g++)}_.push(A)}for(let L=0;L.9&&C<.1&&(v<.2&&(o[y+0]+=1),x<.2&&(o[y+2]+=1),E<.2&&(o[y+4]+=1))}}function d(y){r.push(y.x,y.y,y.z)}function f(y,v){const x=y*3;v.x=e[x+0],v.y=e[x+1],v.z=e[x+2]}function g(){const y=new N,v=new N,x=new N,E=new N,S=new te,C=new te,L=new te;for(let A=0,b=0;A80*t){a=c=s[0],l=u=s[1];for(let g=t;gc&&(c=h),d>u&&(u=d);f=Math.max(c-a,u-l),f=f!==0?32767/f:0}return kr(r,o,t,a,l,f,0),o}};function em(s,e,t,n,i){let r,o;if(i===dE(s,e,t,n)>0)for(r=e;r=e;r-=n)o=md(r,s[r],s[r+1],o);return o&&el(o,o.next)&&(zr(o),o=o.next),o}function ps(s,e){if(!s)return s;e||(e=s);let t=s,n;do if(n=!1,!t.steiner&&(el(t,t.next)||St(t.prev,t,t.next)===0)){if(zr(t),t=e=t.prev,t===t.next)break;n=!0}else t=t.next;while(n||t!==e);return e}function kr(s,e,t,n,i,r,o){if(!s)return;!o&&r&&oE(s,n,i,r);let a=s,l,c;for(;s.prev!==s.next;){if(l=s.prev,c=s.next,r?jA(s,n,i,r):JA(s)){e.push(l.i/t|0),e.push(s.i/t|0),e.push(c.i/t|0),zr(s),s=c.next,a=c.next;continue}if(s=c,s===a){o?o===1?(s=QA(ps(s),e,t),kr(s,e,t,n,i,r,2)):o===2&&eE(s,e,t,n,i,r):kr(ps(s),e,t,n,i,r,1);break}}}function JA(s){const e=s.prev,t=s,n=s.next;if(St(e,t,n)>=0)return!1;const i=e.x,r=t.x,o=n.x,a=e.y,l=t.y,c=n.y,u=ir?i>o?i:o:r>o?r:o,f=a>l?a>c?a:c:l>c?l:c;let g=n.next;for(;g!==e;){if(g.x>=u&&g.x<=d&&g.y>=h&&g.y<=f&&$s(i,a,r,l,o,c,g.x,g.y)&&St(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function jA(s,e,t,n){const i=s.prev,r=s,o=s.next;if(St(i,r,o)>=0)return!1;const a=i.x,l=r.x,c=o.x,u=i.y,h=r.y,d=o.y,f=al?a>c?a:c:l>c?l:c,p=u>h?u>d?u:d:h>d?h:d,m=Wc(f,g,e,t,n),y=Wc(_,p,e,t,n);let v=s.prevZ,x=s.nextZ;for(;v&&v.z>=m&&x&&x.z<=y;){if(v.x>=f&&v.x<=_&&v.y>=g&&v.y<=p&&v!==i&&v!==o&&$s(a,u,l,h,c,d,v.x,v.y)&&St(v.prev,v,v.next)>=0||(v=v.prevZ,x.x>=f&&x.x<=_&&x.y>=g&&x.y<=p&&x!==i&&x!==o&&$s(a,u,l,h,c,d,x.x,x.y)&&St(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;v&&v.z>=m;){if(v.x>=f&&v.x<=_&&v.y>=g&&v.y<=p&&v!==i&&v!==o&&$s(a,u,l,h,c,d,v.x,v.y)&&St(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;x&&x.z<=y;){if(x.x>=f&&x.x<=_&&x.y>=g&&x.y<=p&&x!==i&&x!==o&&$s(a,u,l,h,c,d,x.x,x.y)&&St(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function QA(s,e,t){let n=s;do{const i=n.prev,r=n.next.next;!el(i,r)&&tm(i,n,n.next,r)&&Br(i,r)&&Br(r,i)&&(e.push(i.i/t|0),e.push(n.i/t|0),e.push(r.i/t|0),zr(n),zr(n.next),n=s=r),n=n.next}while(n!==s);return ps(n)}function eE(s,e,t,n,i,r){let o=s;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&cE(o,a)){let l=nm(o,a);o=ps(o,o.next),l=ps(l,l.next),kr(o,e,t,n,i,r,0),kr(l,e,t,n,i,r,0);return}a=a.next}o=o.next}while(o!==s)}function tE(s,e,t,n){const i=[];let r,o,a,l,c;for(r=0,o=e.length;r=t.next.y&&t.next.y!==t.y){const d=t.x+(o-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(d<=r&&d>n&&(n=d,i=t.x=t.x&&t.x>=l&&r!==t.x&&$s(oi.x||t.x===i.x&&rE(i,t)))&&(i=t,u=h)),t=t.next;while(t!==a);return i}function rE(s,e){return St(s.prev,s,e.prev)<0&&St(e.next,s,s.next)<0}function oE(s,e,t,n){let i=s;do i.z===0&&(i.z=Wc(i.x,i.y,e,t,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==s);i.prevZ.nextZ=null,i.prevZ=null,aE(i)}function aE(s){let e,t,n,i,r,o,a,l,c=1;do{for(t=s,s=null,r=null,o=0;t;){for(o++,n=t,a=0,e=0;e0||l>0&&n;)a!==0&&(l===0||!n||t.z<=n.z)?(i=t,t=t.nextZ,a--):(i=n,n=n.nextZ,l--),r?r.nextZ=i:s=i,i.prevZ=r,r=i;t=n}r.nextZ=null,c*=2}while(o>1);return s}function Wc(s,e,t,n,i){return s=(s-t)*i|0,e=(e-n)*i|0,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,s|e<<1}function lE(s){let e=s,t=s;do(e.x=(s-o)*(r-a)&&(s-o)*(n-a)>=(t-o)*(e-a)&&(t-o)*(r-a)>=(i-o)*(n-a)}function cE(s,e){return s.next.i!==e.i&&s.prev.i!==e.i&&!uE(s,e)&&(Br(s,e)&&Br(e,s)&&hE(s,e)&&(St(s.prev,s,e.prev)||St(s,e.prev,e))||el(s,e)&&St(s.prev,s,s.next)>0&&St(e.prev,e,e.next)>0)}function St(s,e,t){return(e.y-s.y)*(t.x-e.x)-(e.x-s.x)*(t.y-e.y)}function el(s,e){return s.x===e.x&&s.y===e.y}function tm(s,e,t,n){const i=Ko(St(s,e,t)),r=Ko(St(s,e,n)),o=Ko(St(t,n,s)),a=Ko(St(t,n,e));return!!(i!==r&&o!==a||i===0&&Zo(s,t,e)||r===0&&Zo(s,n,e)||o===0&&Zo(t,s,n)||a===0&&Zo(t,e,n))}function Zo(s,e,t){return e.x<=Math.max(s.x,t.x)&&e.x>=Math.min(s.x,t.x)&&e.y<=Math.max(s.y,t.y)&&e.y>=Math.min(s.y,t.y)}function Ko(s){return s>0?1:s<0?-1:0}function uE(s,e){let t=s;do{if(t.i!==s.i&&t.next.i!==s.i&&t.i!==e.i&&t.next.i!==e.i&&tm(t,t.next,s,e))return!0;t=t.next}while(t!==s);return!1}function Br(s,e){return St(s.prev,s,s.next)<0?St(s,e,s.next)>=0&&St(s,s.prev,e)>=0:St(s,e,s.prev)<0||St(s,s.next,e)<0}function hE(s,e){let t=s,n=!1;const i=(s.x+e.x)/2,r=(s.y+e.y)/2;do t.y>r!=t.next.y>r&&t.next.y!==t.y&&i<(t.next.x-t.x)*(r-t.y)/(t.next.y-t.y)+t.x&&(n=!n),t=t.next;while(t!==s);return n}function nm(s,e){const t=new $c(s.i,s.x,s.y),n=new $c(e.i,e.x,e.y),i=s.next,r=e.prev;return s.next=e,e.prev=s,t.next=i,i.prev=t,n.next=t,t.prev=n,r.next=n,n.prev=r,n}function md(s,e,t,n){const i=new $c(s,e,t);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function zr(s){s.next.prev=s.prev,s.prev.next=s.next,s.prevZ&&(s.prevZ.nextZ=s.nextZ),s.nextZ&&(s.nextZ.prevZ=s.prevZ)}function $c(s,e,t){this.i=s,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function dE(s,e,t,n){let i=0;for(let r=e,o=t-n;r2&&s[e-1].equals(s[0])&&s.pop()}function _d(s,e){for(let t=0;tNumber.EPSILON){const de=Math.sqrt(Q),ye=Math.sqrt(R*R+w*w),Be=J.x-O/de,Ce=J.y+B/de,Ee=H.x-w/ye,Je=H.y+R/ye,be=((Ee-Be)*w-(Je-Ce)*R)/(B*w-O*R);W=Be+B*be-q.x,ie=Ce+O*be-q.y;const Ne=W*W+ie*ie;if(Ne<=2)return new te(W,ie);he=Math.sqrt(Ne/2)}else{let de=!1;B>Number.EPSILON?R>Number.EPSILON&&(de=!0):B<-Number.EPSILON?R<-Number.EPSILON&&(de=!0):Math.sign(O)===Math.sign(w)&&(de=!0),de?(W=-O,ie=B,he=Math.sqrt(Q)):(W=B,ie=O,he=Math.sqrt(Q/2))}return new te(W/he,ie/he)}const Se=[];for(let q=0,J=X.length,H=J-1,W=q+1;q=0;q--){const J=q/p,H=f*Math.cos(J*Math.PI/2),W=g*Math.sin(J*Math.PI/2)+_;for(let ie=0,he=X.length;ie=0;){const W=H;let ie=H-1;ie<0&&(ie=q.length-1);for(let he=0,B=u+p*2;he0)&&f.push(v,x,S),(m!==n-1||l0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class am extends en{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Ie(16777215),this.specular=new Ie(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ie(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ni,this.normalScale=new te(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new bn,this.combine=Kr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class lm extends en{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Ie(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ie(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ni,this.normalScale=new te(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class cm extends en{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ni,this.normalScale=new te(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class um extends en{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Ie(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Ie(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ni,this.normalScale=new te(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new bn,this.combine=Kr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class hm extends en{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Ie(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ni,this.normalScale=new te(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class dm extends cn{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function rs(s,e,t){return!s||!t&&s.constructor===e?s:typeof e.BYTES_PER_ELEMENT=="number"?new e(s):Array.prototype.slice.call(s)}function fm(s){return ArrayBuffer.isView(s)&&!(s instanceof DataView)}function pm(s){function e(i,r){return s[i]-s[r]}const t=s.length,n=new Array(t);for(let i=0;i!==t;++i)n[i]=i;return n.sort(e),n}function Xc(s,e,t){const n=s.length,i=new s.constructor(n);for(let r=0,o=0;o!==n;++r){const a=t[r]*e;for(let l=0;l!==e;++l)i[o++]=s[a+l]}return i}function Hu(s,e,t,n){let i=1,r=s[0];for(;r!==void 0&&r[n]===void 0;)r=s[i++];if(r===void 0)return;let o=r[n];if(o!==void 0)if(Array.isArray(o))do o=r[n],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=s[i++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[n],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=s[i++];while(r!==void 0);else do o=r[n],o!==void 0&&(e.push(r.time),t.push(o)),r=s[i++];while(r!==void 0)}function gE(s,e,t,n,i=30){const r=s.clone();r.name=e;const o=[];for(let l=0;l=n)){h.push(c.times[f]);for(let _=0;_r.tracks[l].times[0]&&(a=r.tracks[l].times[0]);for(let l=0;l=a.times[g]){const m=g*h+u,y=m+h-u;_=a.values.slice(m,y)}else{const m=a.createInterpolant(),y=u,v=h-u;m.evaluate(r),_=m.resultBuffer.slice(y,v)}l==="quaternion"&&new Jt().fromArray(_).normalize().conjugate().toArray(_);const p=c.times.length;for(let m=0;m=r)){const a=t[1];e=r)break t}o=n,n=0;break n}break e}for(;n>>1;et;)--o;if(++o,r!==0||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=n.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,r=n.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=n[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&fm(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===ga,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*n,l=o*n,c=0;c!==n;++c)t[l+c]=t[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=this.constructor,i=new n(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}Bn.prototype.TimeBufferType=Float32Array;Bn.prototype.ValueBufferType=Float32Array;Bn.prototype.DefaultInterpolation=Ea;class _s extends Bn{constructor(e,t,n){super(e,t,n)}}_s.prototype.ValueTypeName="bool";_s.prototype.ValueBufferType=Array;_s.prototype.DefaultInterpolation=Rr;_s.prototype.InterpolantFactoryMethodLinear=void 0;_s.prototype.InterpolantFactoryMethodSmooth=void 0;class Wu extends Bn{}Wu.prototype.ValueTypeName="color";class Vr extends Bn{}Vr.prototype.ValueTypeName="number";class _m extends ro{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(n-t)/(i-t);let c=e*a;for(let u=c+a;c!==u;c+=4)Jt.slerpFlat(r,0,o,c-a,o,c,l);return r}}class oo extends Bn{InterpolantFactoryMethodLinear(e){return new _m(this.times,this.values,this.getValueSize(),e)}}oo.prototype.ValueTypeName="quaternion";oo.prototype.InterpolantFactoryMethodSmooth=void 0;class vs extends Bn{constructor(e,t,n){super(e,t,n)}}vs.prototype.ValueTypeName="string";vs.prototype.ValueBufferType=Array;vs.prototype.DefaultInterpolation=Rr;vs.prototype.InterpolantFactoryMethodLinear=void 0;vs.prototype.InterpolantFactoryMethodSmooth=void 0;class Hr extends Bn{}Hr.prototype.ValueTypeName="vector";class Gr{constructor(e="",t=-1,n=[],i=Fa){this.name=e,this.tracks=n,this.duration=t,this.blendMode=i,this.uuid=Mn(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,i=1/(e.fps||1);for(let o=0,a=n.length;o!==a;++o)t.push(xE(n[o]).scale(i));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=n.length;r!==o;++r)t.push(Bn.toJSON(n[r]));return i}static CreateFromMorphTargetSequence(e,t,n,i){const r=t.length,o=[];for(let a=0;a1){const h=u[1];let d=i[h];d||(i[h]=d=[]),d.push(c)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],t,n));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(h,d,f,g,_){if(f.length!==0){const p=[],m=[];Hu(f,p,m,g),p.length!==0&&_.push(new h(d,p,m))}},i=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let h=0;h{t&&t(r),this.manager.itemEnd(e)},0),r;if(ni[e]!==void 0){ni[e].push({onLoad:t,onProgress:n,onError:i});return}ni[e]=[],ni[e].push({onLoad:t,onProgress:n,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const u=ni[e],h=c.body.getReader(),d=c.headers.get("X-File-Size")||c.headers.get("Content-Length"),f=d?parseInt(d):0,g=f!==0;let _=0;const p=new ReadableStream({start(m){y();function y(){h.read().then(({done:v,value:x})=>{if(v)m.close();else{_+=x.byteLength;const E=new ProgressEvent("progress",{lengthComputable:g,loaded:_,total:f});for(let S=0,C=u.length;S{m.error(v)})}}});return new Response(p)}else throw new ME(`fetch for "${c.url}" responded with ${c.status}: ${c.statusText}`,c)}).then(c=>{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return c.json();default:if(a===void 0)return c.text();{const h=/charset="?([^;"\s]*)"?/i.exec(a),d=h&&h[1]?h[1].toLowerCase():void 0,f=new TextDecoder(d);return c.arrayBuffer().then(g=>f.decode(g))}}}).then(c=>{oi.add(e,c);const u=ni[e];delete ni[e];for(let h=0,d=u.length;h{const u=ni[e];if(u===void 0)throw this.manager.itemError(e),c;delete ni[e];for(let h=0,d=u.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class bE extends un{constructor(e){super(e)}load(e,t,n,i){const r=this,o=new Xn(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(a){try{t(r.parse(JSON.parse(a)))}catch(l){i?i(l):console.error(l),r.manager.itemError(e)}},n,i)}parse(e){const t=[];for(let n=0;n0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const r in e.uniforms){const o=e.uniforms[r];switch(i.uniforms[r]={},o.type){case"t":i.uniforms[r].value=n(o.value);break;case"c":i.uniforms[r].value=new Ie().setHex(o.value);break;case"v2":i.uniforms[r].value=new te().fromArray(o.value);break;case"v3":i.uniforms[r].value=new N().fromArray(o.value);break;case"v4":i.uniforms[r].value=new _t().fromArray(o.value);break;case"m3":i.uniforms[r].value=new je().fromArray(o.value);break;case"m4":i.uniforms[r].value=new Ze().fromArray(o.value);break;default:i.uniforms[r].value=o.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(i.glslVersion=e.glslVersion),e.extensions!==void 0)for(const r in e.extensions)i.extensions[r]=e.extensions[r];if(e.lights!==void 0&&(i.lights=e.lights),e.clipping!==void 0&&(i.clipping=e.clipping),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=n(e.map)),e.matcap!==void 0&&(i.matcap=n(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=n(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=n(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=n(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let r=e.normalScale;Array.isArray(r)===!1&&(r=[r,r]),i.normalScale=new te().fromArray(r)}return e.displacementMap!==void 0&&(i.displacementMap=n(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=n(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=n(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=n(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=n(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=n(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=n(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=n(e.envMap)),e.envMapRotation!==void 0&&i.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=n(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=n(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=n(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=n(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=n(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new te().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=n(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=n(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=n(e.thicknessMap)),e.anisotropyMap!==void 0&&(i.anisotropyMap=n(e.anisotropyMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=n(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=n(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const t={ShadowMaterial:sm,SpriteMaterial:Lu,RawShaderMaterial:rm,ShaderMaterial:On,PointsMaterial:Du,MeshPhysicalMaterial:om,MeshStandardMaterial:Vu,MeshPhongMaterial:am,MeshToonMaterial:lm,MeshNormalMaterial:cm,MeshLambertMaterial:um,MeshDepthMaterial:Ru,MeshDistanceMaterial:Iu,MeshBasicMaterial:pi,MeshMatcapMaterial:hm,LineDashedMaterial:dm,LineBasicMaterial:cn,Material:en};return new t[e]}}class qc{static decodeText(e){if(console.warn("THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead."),typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let n=0,i=e.length;n0){const l=new $u(t);r=new Wr(l),r.setCrossOrigin(this.crossOrigin);for(let c=0,u=e.length;c0){i=new Wr(this.manager),i.setCrossOrigin(this.crossOrigin);for(let o=0,a=e.length;o{const p=new ln;p.min.fromArray(_.boxMin),p.max.fromArray(_.boxMax);const m=new jt;return m.radius=_.sphereRadius,m.center.fromArray(_.sphereCenter),{boxInitialized:_.boxInitialized,box:p,sphereInitialized:_.sphereInitialized,sphere:m}}),o._maxGeometryCount=e.maxGeometryCount,o._maxVertexCount=e.maxVertexCount,o._maxIndexCount=e.maxIndexCount,o._geometryInitialized=e.geometryInitialized,o._geometryCount=e.geometryCount,o._matricesTexture=c(e.matricesTexture.uuid),e.colorsTexture!==void 0&&(o._colorsTexture=c(e.colorsTexture.uuid));break;case"LOD":o=new Hp;break;case"Line":o=new Ii(a(e.geometry),l(e.material));break;case"LineLoop":o=new Xp(a(e.geometry),l(e.material));break;case"LineSegments":o=new Zn(a(e.geometry),l(e.material));break;case"PointCloud":case"Points":o=new qp(a(e.geometry),l(e.material));break;case"Sprite":o=new Vp(l(e.material));break;case"Group":o=new Ws;break;case"Bone":o=new Nu;break;default:o=new ut}if(o.uuid=e.uuid,e.name!==void 0&&(o.name=e.name),e.matrix!==void 0?(o.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(e.position!==void 0&&o.position.fromArray(e.position),e.rotation!==void 0&&o.rotation.fromArray(e.rotation),e.quaternion!==void 0&&o.quaternion.fromArray(e.quaternion),e.scale!==void 0&&o.scale.fromArray(e.scale)),e.up!==void 0&&o.up.fromArray(e.up),e.castShadow!==void 0&&(o.castShadow=e.castShadow),e.receiveShadow!==void 0&&(o.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.bias!==void 0&&(o.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(o.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(o.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&o.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(o.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(o.visible=e.visible),e.frustumCulled!==void 0&&(o.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(o.renderOrder=e.renderOrder),e.userData!==void 0&&(o.userData=e.userData),e.layers!==void 0&&(o.layers.mask=e.layers),e.children!==void 0){const d=e.children;for(let f=0;f"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=oi.get(e);if(o!==void 0){if(r.manager.itemStart(e),o.then){o.then(c=>{t&&t(c),r.manager.itemEnd(e)}).catch(c=>{i&&i(c)});return}return setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o}const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader;const l=fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(c){return oi.add(e,c),t&&t(c),r.manager.itemEnd(e),c}).catch(function(c){i&&i(c),oi.remove(e),r.manager.itemError(e),r.manager.itemEnd(e)});oi.add(e,l),r.manager.itemStart(e)}}let Jo;class qu{static getContext(){return Jo===void 0&&(Jo=new(window.AudioContext||window.webkitAudioContext)),Jo}static setContext(e){Jo=e}}class NE extends un{constructor(e){super(e)}load(e,t,n,i){const r=this,o=new Xn(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{const c=l.slice(0);qu.getContext().decodeAudioData(c,function(h){t(h)}).catch(a)}catch(c){a(c)}},n,i);function a(l){i?i(l):console.error(l),r.manager.itemError(e)}}}const Ad=new Ze,Ed=new Ze,Xi=new Ze;class DE{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new kt,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new kt,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,Xi.copy(e.projectionMatrix);const i=t.eyeSep/2,r=i*t.near/t.focus,o=t.near*Math.tan(ls*t.fov*.5)/t.zoom;let a,l;Ed.elements[12]=-i,Ad.elements[12]=i,a=-o*t.aspect+r,l=o*t.aspect+r,Xi.elements[0]=2*t.near/(l-a),Xi.elements[8]=(l+a)/(l-a),this.cameraL.projectionMatrix.copy(Xi),a=-o*t.aspect-r,l=o*t.aspect-r,Xi.elements[0]=2*t.near/(l-a),Xi.elements[8]=(l+a)/(l-a),this.cameraR.projectionMatrix.copy(Xi)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(Ed),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(Ad)}}class ul{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Td(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=Td();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function Td(){return(typeof performance>"u"?Date:performance).now()}const qi=new N,Cd=new Jt,UE=new N,Yi=new N;class OE extends ut{constructor(){super(),this.type="AudioListener",this.context=qu.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new ul}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(qi,Cd,UE),Yi.set(0,0,-1).applyQuaternion(Cd),t.positionX){const i=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(qi.x,i),t.positionY.linearRampToValueAtTime(qi.y,i),t.positionZ.linearRampToValueAtTime(qi.z,i),t.forwardX.linearRampToValueAtTime(Yi.x,i),t.forwardY.linearRampToValueAtTime(Yi.y,i),t.forwardZ.linearRampToValueAtTime(Yi.z,i),t.upX.linearRampToValueAtTime(n.x,i),t.upY.linearRampToValueAtTime(n.y,i),t.upZ.linearRampToValueAtTime(n.z,i)}else t.setPosition(qi.x,qi.y,qi.z),t.setOrientation(Yi.x,Yi.y,Yi.z,n.x,n.y,n.z)}}class Pm extends ut{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source!==null&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,i,this._addIndex*t,1,t);for(let l=t,c=t+t;l!==c;++l)if(n[l]!==n[l+t]){a.setValue(n,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,i=n*this._origIndex;e.getValue(t,i);for(let r=n,o=i;r!==o;++r)t[r]=t[i+r%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let o=0;o!==r;++o)e[t+o]=e[n+o]}_slerp(e,t,n,i){Jt.slerpFlat(e,t,e,t,e,n,i)}_slerpAdditive(e,t,n,i,r){const o=this._workIndex*r;Jt.multiplyQuaternionsFlat(e,o,e,t,e,n),Jt.slerpFlat(e,t,e,t,e,o,i)}_lerp(e,t,n,i,r){const o=1-i;for(let a=0;a!==r;++a){const l=t+a;e[l]=e[l]*o+e[n+a]*i}}_lerpAdditive(e,t,n,i,r){for(let o=0;o!==r;++o){const a=t+o;e[a]=e[a]+e[n+o]*i}}}const Yu="\\[\\]\\.:\\/",zE=new RegExp("["+Yu+"]","g"),Zu="[^"+Yu+"]",VE="[^"+Yu.replace("\\.","")+"]",HE=/((?:WC+[\/:])*)/.source.replace("WC",Zu),GE=/(WCOD+)?/.source.replace("WCOD",VE),WE=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Zu),$E=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Zu),XE=new RegExp("^"+HE+GE+WE+$E+"$"),qE=["material","materials","bones","map"];class YE{constructor(e,t,n){const i=n||ct.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];i!==void 0&&i.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class ct{constructor(e,t,n){this.path=t,this.parsedPath=n||ct.parseTrackName(t),this.node=ct.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new ct.Composite(e,t,n):new ct(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(zE,"")}static parseTrackName(e){const t=XE.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const r=n.nodeName.substring(i+1);qE.indexOf(r)!==-1&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=r)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){const n=function(r){for(let o=0;o=r){const h=r++,d=e[h];t[d.uuid]=u,e[u]=d,t[c]=h,e[h]=l;for(let f=0,g=i;f!==g;++f){const _=n[f],p=_[h],m=_[u];_[u]=p,_[h]=m}}}this.nCachedObjects_=r}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,i=n.length;let r=this.nCachedObjects_,o=e.length;for(let a=0,l=arguments.length;a!==l;++a){const c=arguments[a],u=c.uuid,h=t[u];if(h!==void 0)if(delete t[u],h0&&(t[f.uuid]=h),e[h]=f,e.pop();for(let g=0,_=i;g!==_;++g){const p=n[g];p[h]=p[d],p.pop()}}}this.nCachedObjects_=r}subscribe_(e,t){const n=this._bindingsIndicesByPath;let i=n[e];const r=this._bindings;if(i!==void 0)return r[i];const o=this._paths,a=this._parsedPaths,l=this._objects,c=l.length,u=this.nCachedObjects_,h=new Array(c);i=r.length,n[e]=i,o.push(e),a.push(t),r.push(h);for(let d=u,f=l.length;d!==f;++d){const g=l[d];h[d]=new ct(g,e,t)}return h}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(n!==void 0){const i=this._paths,r=this._parsedPaths,o=this._bindings,a=o.length-1,l=o[a],c=e[a];t[c]=n,o[n]=l,o.pop(),r[n]=r[a],r.pop(),i[n]=i[a],i.pop()}}}class Im{constructor(e,t,n=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=i;const r=t.tracks,o=r.length,a=new Array(o),l={endingStart:ns,endingEnd:ns};for(let c=0;c!==o;++c){const u=r[c].createInterpolant(null);a[c]=u,u.settings=l}this._interpolantSettings=l,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=hp,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const i=this._clip.duration,r=e._clip.duration,o=r/i,a=i/r;e.warp(1,o,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const i=this._mixer,r=i.time,o=this.timeScale;let a=this._timeScaleInterpolant;a===null&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const l=a.parameterPositions,c=a.sampleValues;return l[0]=r,l[1]=r+n,c[0]=e/o,c[1]=t/o,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,i){if(!this.enabled){this._updateWeight(e);return}const r=this._startTime;if(r!==null){const l=(e-r)*n;l<0||n===0?t=0:(this._startTime=null,t=n*l)}t*=this._updateTimeScale(e);const o=this._updateTime(t),a=this._updateWeight(e);if(a>0){const l=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case xu:for(let u=0,h=l.length;u!==h;++u)l[u].evaluate(o),c[u].accumulateAdditive(a);break;case Fa:default:for(let u=0,h=l.length;u!==h;++u)l[u].evaluate(o),c[u].accumulate(i,a)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let i=this.time+e,r=this._loopCount;const o=n===dp;if(e===0)return r===-1?i:o&&(r&1)===1?t-i:i;if(n===up){r===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(r===-1&&(e>=0?(r=0,this._setEndings(!0,this.repetitions===0,o)):this._setEndings(this.repetitions===0,!0,o)),i>=t||i<0){const a=Math.floor(i/t);i-=t*a,r+=Math.abs(a);const l=this.repetitions-r;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const c=e<0;this._setEndings(c,!c,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}else this.time=i;if(o&&(r&1)===1)return t-i}return i}_setEndings(e,t,n){const i=this._interpolantSettings;n?(i.endingStart=is,i.endingEnd=is):(e?i.endingStart=this.zeroSlopeAtStart?is:ns:i.endingStart=Ir,t?i.endingEnd=this.zeroSlopeAtEnd?is:ns:i.endingEnd=Ir)}_scheduleFading(e,t,n){const i=this._mixer,r=i.time;let o=this._weightInterpolant;o===null&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,l=o.sampleValues;return a[0]=r,l[0]=t,a[1]=r+e,l[1]=n,this}}const KE=new Float32Array(1);class JE extends Yn{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,i=e._clip.tracks,r=i.length,o=e._propertyBindings,a=e._interpolants,l=n.uuid,c=this._bindingsByRootAndName;let u=c[l];u===void 0&&(u={},c[l]=u);for(let h=0;h!==r;++h){const d=i[h],f=d.name;let g=u[f];if(g!==void 0)++g.referenceCount,o[h]=g;else{if(g=o[h],g!==void 0){g._cacheIndex===null&&(++g.referenceCount,this._addInactiveBinding(g,l,f));continue}const _=t&&t._propertyBindings[h].binding.parsedPath;g=new Rm(ct.create(n,f,_),d.ValueTypeName,d.getValueSize()),++g.referenceCount,this._addInactiveBinding(g,l,f),o[h]=g}a[h].resultBuffer=g.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const n=(e._localRoot||this._root).uuid,i=e._clip.uuid,r=this._actionsByClip[i];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,i,n)}const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const r=t[n];r.useCount++===0&&(this._lendBinding(r),r.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const r=t[n];--r.useCount===0&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return t!==null&&t=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,i=this.time+=e,r=Math.sign(e),o=this._accuIndex^=1;for(let c=0;c!==n;++c)t[c]._update(i,e,r,o);const a=this._bindings,l=this._nActiveBindings;for(let c=0;c!==l;++c)a[c].apply(o);return this}setTime(e){this.time=0;for(let t=0;tthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Ld).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Nd=new N,jo=new N;class iT{constructor(e=new N,t=new N){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){Nd.subVectors(e,this.start),jo.subVectors(this.end,this.start);const n=jo.dot(jo);let r=jo.dot(Nd)/n;return t&&(r=Rt(r,0,1)),r}closestPointToPoint(e,t,n){const i=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const Dd=new N;class sT extends ut{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const n=new at,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,a=1,l=32;o1)for(let h=0;h.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{Bd.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(Bd,t)}}setLength(e,t=e*.2,n=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class _T extends Zn{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new at;i.setAttribute("position",new Oe(t,3)),i.setAttribute("color",new Oe(n,3));const r=new cn({vertexColors:!0,toneMapped:!1});super(i,r),this.type="AxesHelper"}setColors(e,t,n){const i=new Ie,r=this.geometry.attributes.color.array;return i.set(e),i.toArray(r,0),i.toArray(r,3),i.set(t),i.toArray(r,6),i.toArray(r,9),i.set(n),i.toArray(r,12),i.toArray(r,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class Ei{constructor(){this.type="ShapePath",this.color=new Ie,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Ci,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,i){return this.currentPath.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,r,o){return this.currentPath.bezierCurveTo(e,t,n,i,r,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(m){const y=[];for(let v=0,x=m.length;vNumber.EPSILON){if(b<0&&(C=y[S],A=-A,L=y[E],b=-b),m.yL.y)continue;if(m.y===C.y){if(m.x===C.x)return!0}else{const k=b*(m.x-C.x)-A*(m.y-C.y);if(k===0)return!0;if(k<0)continue;x=!x}}else{if(m.y!==C.y)continue;if(L.x<=m.x&&m.x<=C.x||C.x<=m.x&&m.x<=L.x)return!0}}return x}const i=Nn.isClockWise,r=this.subPaths;if(r.length===0)return[];let o,a,l;const c=[];if(r.length===1)return a=r[0],l=new Pi,l.curves=a.curves,c.push(l),c;let u=!i(r[0].getPoints());u=e?!u:u;const h=[],d=[];let f=[],g=0,_;d[g]=void 0,f[g]=[];for(let m=0,y=r.length;m1){let m=!1,y=0;for(let v=0,x=d.length;v0&&m===!1&&(f=h)}let p;for(let m=0,y=d.length;m{s.delete(i)};return{on:i=>{s.add(i);const r=()=>e(i);return qn(r),{off:r}},off:e,trigger:(...i)=>Promise.all(Array.from(s).map(r=>r(...i)))}}function bt(s){return typeof s=="function"?s():ee(s)}const Kc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xT=s=>s!=null,MT=Object.prototype.toString,bT=s=>MT.call(s)==="[object Object]",Jc=()=>{};function ST(s,e){function t(...n){return new Promise((i,r)=>{Promise.resolve(s(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(r)})}return t}function wT(s,e={}){let t,n,i=Jc;const r=a=>{clearTimeout(a),i(),i=Jc};return a=>{const l=bt(s),c=bt(e.maxWait);return t&&r(t),l<=0||c!==void 0&&c<=0?(n&&(r(n),n=null),Promise.resolve(a())):new Promise((u,h)=>{i=e.rejectOnCancel?h:u,c&&!n&&(n=setTimeout(()=>{t&&r(t),n=null,u(a())},c)),t=setTimeout(()=>{n&&r(n),n=null,u(a())},l)})}}function AT(s,e,t=!1){return e.reduce((n,i)=>(i in s&&(!t||s[i]!==void 0)&&(n[i]=s[i]),n),{})}function ET(s){return Ma()}function TT(s,e=200,t={}){return ST(wT(e,t),s)}function zd(s,e=200,t={}){const n=Ve(s.value),i=TT(()=>{n.value=s.value},e,t);return wt(s,()=>i()),n}function CT(s,e={}){if(!of(s))return lg(s);const t=Array.isArray(s.value)?Array.from({length:s.value.length}):{};for(const n in s.value)t[n]=cg(()=>({get(){return s.value[n]},set(i){var r;if((r=bt(e.replaceRef))!=null?r:!0)if(Array.isArray(s.value)){const a=[...s.value];a[n]=i,s.value=a}else{const a={...s.value,[n]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(s.value)),s.value=a}else s.value[n]=i}}));return t}function Ju(s,e=!0,t){ET()?Fn(s,t):e?s():iu(s)}function PT(s,e=1e3,t={}){const{immediate:n=!0,immediateCallback:i=!1}=t;let r=null;const o=Ve(!1);function a(){r&&(clearInterval(r),r=null)}function l(){o.value=!1,a()}function c(){const u=bt(e);u<=0||(o.value=!0,i&&s(),a(),r=setInterval(s,u))}if(n&&Kc&&c(),of(e)||typeof e=="function"){const u=wt(e,()=>{o.value&&Kc&&c()});qn(u)}return qn(l),{isActive:o,pause:l,resume:c}}function Ln(s){var e;const t=bt(s);return(e=t==null?void 0:t.$el)!=null?e:t}const mi=Kc?window:void 0;function $r(...s){let e,t,n,i;if(typeof s[0]=="string"||Array.isArray(s[0])?([t,n,i]=s,e=mi):[e,t,n,i]=s,!e)return Jc;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,h,d,f)=>(u.addEventListener(h,d,f),()=>u.removeEventListener(h,d,f)),l=wt(()=>[Ln(e),bt(i)],([u,h])=>{if(o(),!u)return;const d=bT(h)?{...h}:h;r.push(...t.flatMap(f=>n.map(g=>a(u,f,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return qn(c),c}function RT(){const s=Ve(!1),e=Ma();return e&&Fn(()=>{s.value=!0},e),s}function hl(s){const e=RT();return He(()=>(e.value,!!s()))}function IT(s,e,t={}){const{window:n=mi,...i}=t;let r;const o=hl(()=>n&&"MutationObserver"in n),a=()=>{r&&(r.disconnect(),r=void 0)},l=He(()=>{const d=bt(s),f=(Array.isArray(d)?d:[d]).map(Ln).filter(xT);return new Set(f)}),c=wt(()=>l.value,d=>{a(),o.value&&d.size&&(r=new MutationObserver(e),d.forEach(f=>r.observe(f,i)))},{immediate:!0,flush:"post"}),u=()=>r==null?void 0:r.takeRecords(),h=()=>{a(),c()};return qn(h),{isSupported:o,stop:h,takeRecords:u}}function ju(s,e={}){const{immediate:t=!0,fpsLimit:n=void 0,window:i=mi}=e,r=Ve(!1),o=n?1e3/n:null;let a=0,l=null;function c(d){if(!r.value||!i)return;a||(a=d);const f=d-a;if(o&&ft&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const r=Ve(!1),o=c=>{r.value=c.matches},a=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},l=Li(()=>{n.value&&(a(),i=t.matchMedia(bt(s)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),r.value=i.matches)});return qn(()=>{l(),a(),i=void 0}),r}function NT(s={}){const{window:e=mi}=s,t=Ve(1);if(e){let n=function(){t.value=e.devicePixelRatio,i(),r=e.matchMedia(`(resolution: ${t.value}dppx)`),r.addEventListener("change",n,{once:!0})},i=function(){r==null||r.removeEventListener("change",n)},r;n(),qn(i)}return{pixelRatio:t}}function Um(s,e,t={}){const{window:n=mi,...i}=t;let r;const o=hl(()=>n&&"ResizeObserver"in n),a=()=>{r&&(r.disconnect(),r=void 0)},l=He(()=>Array.isArray(s)?s.map(h=>Ln(h)):[Ln(s)]),c=wt(l,h=>{if(a(),o.value&&n){r=new ResizeObserver(e);for(const d of h)d&&r.observe(d,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return qn(u),{isSupported:o,stop:u}}function DT(s,e={}){const{reset:t=!0,windowResize:n=!0,windowScroll:i=!0,immediate:r=!0}=e,o=Ve(0),a=Ve(0),l=Ve(0),c=Ve(0),u=Ve(0),h=Ve(0),d=Ve(0),f=Ve(0);function g(){const _=Ln(s);if(!_){t&&(o.value=0,a.value=0,l.value=0,c.value=0,u.value=0,h.value=0,d.value=0,f.value=0);return}const p=_.getBoundingClientRect();o.value=p.height,a.value=p.bottom,l.value=p.left,c.value=p.right,u.value=p.top,h.value=p.width,d.value=p.x,f.value=p.y}return Um(s,g),wt(()=>Ln(s),_=>!_&&g()),IT(s,g,{attributeFilter:["style","class"]}),i&&$r("scroll",g,{capture:!0,passive:!0}),n&&$r("resize",g,{passive:!0}),Ju(()=>{r&&g()}),{height:o,bottom:a,left:l,right:c,top:u,width:h,x:d,y:f,update:g}}function UT(s,e={width:0,height:0},t={}){const{window:n=mi,box:i="content-box"}=t,r=He(()=>{var h,d;return(d=(h=Ln(s))==null?void 0:h.namespaceURI)==null?void 0:d.includes("svg")}),o=Ve(e.width),a=Ve(e.height),{stop:l}=Um(s,([h])=>{const d=i==="border-box"?h.borderBoxSize:i==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(n&&r.value){const f=Ln(s);if(f){const g=f.getBoundingClientRect();o.value=g.width,a.value=g.height}}else if(d){const f=Array.isArray(d)?d:[d];o.value=f.reduce((g,{inlineSize:_})=>g+_,0),a.value=f.reduce((g,{blockSize:_})=>g+_,0)}else o.value=h.contentRect.width,a.value=h.contentRect.height},t);Ju(()=>{const h=Ln(s);h&&(o.value="offsetWidth"in h?h.offsetWidth:e.width,a.value="offsetHeight"in h?h.offsetHeight:e.height)});const c=wt(()=>Ln(s),h=>{o.value=h?e.width:0,a.value=h?e.height:0});function u(){l(),c()}return{width:o,height:a,stop:u}}function OT(s){var e;const t=Ve(0);if(typeof performance>"u")return t;const n=(e=s==null?void 0:s.every)!=null?e:10;let i=performance.now(),r=0;return ju(()=>{if(r+=1,r>=n){const o=performance.now(),a=o-i;t.value=Math.round(1e3/(a/r)),i=o,r=0}}),t}function FT(s={}){const e=Ve(),t=hl(()=>typeof performance<"u"&&"memory"in performance);if(t.value){const{interval:n=1e3}=s;PT(()=>{e.value=performance.memory},n,{immediate:s.immediate,immediateCallback:s.immediateCallback})}return{isSupported:t,memory:e}}const Om={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},kT=Object.keys(Om);function BT(s={}){const{target:e=mi}=s,t=Ve(!1),n=Ve(s.initialValue||{});Object.assign(n.value,Om,n.value);const i=r=>{t.value=!0,!(s.pointerTypes&&!s.pointerTypes.includes(r.pointerType))&&(n.value=AT(r,kT,!1))};if(e){const r={passive:!0};$r(e,["pointerdown","pointermove","pointerup"],i,r),$r(e,"pointerleave",()=>t.value=!1,r)}return{...CT(n),isInside:t}}function zT(s={}){const{window:e=mi,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0}=s,o=Ve(t),a=Ve(n),l=()=>{e&&(r?(o.value=e.innerWidth,a.value=e.innerHeight):(o.value=e.document.documentElement.clientWidth,a.value=e.document.documentElement.clientHeight))};if(l(),Ju(l),$r("resize",l,{passive:!0}),i){const c=LT("(orientation: portrait)");wt(c,()=>l())}return{width:o,height:a}}var VT=Object.defineProperty,HT=(s,e,t)=>e in s?VT(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Vd=(s,e,t)=>(HT(s,typeof e!="symbol"?e+"":e,t),t);const GT="@tresjs/core",WT="module",$T="4.0.2",XT="pnpm@9.1.4",qT="Declarative ThreeJS using Vue Components",YT="Alvaro Saburido (https://github.com/alvarosabu/)",ZT="MIT",KT=["vue","3d","threejs","three","threejs-vue"],JT=!1,jT={".":{types:"./dist/index.d.ts",import:"./dist/tres.js",require:"./dist/tres.umd.cjs"},"./components":{types:"./dist/src/components/index.d.ts"},"./composables":{types:"./dist/src/composables/index.d.ts"},"./types":{types:"./dist/src/types/index.d.ts"},"./utils":{types:"./dist/src/utils/index.d.ts"},"./*":"./*"},QT="./dist/tres.js",eC="./dist/tres.js",tC="./dist/index.d.ts",nC=["*.d.ts","dist"],iC={access:"public"},sC={dev:"cd playground && npm run dev",build:"vite build",playground:"cd playground && npm run dev",test:"vitest","test:ci":"vitest run","test:ui":"vitest --ui --coverage.enabled=true",release:"release-it",coverage:"vitest run --coverage",lint:"eslint .","lint:fix":"eslint . --fix","docs:dev":"vitepress dev docs","docs:build":"vitepress build docs","docs:serve":"vitepress serve docs","docs:preview":"vitepress preview docs","docs:contributors":"esno scripts/update-contributors.ts",prepare:"node .husky/install.mjs"},rC={three:">=0.133",vue:">=3.4"},oC={"@alvarosabu/utils":"^3.2.0","@vue/devtools-api":"^6.6.2","@vueuse/core":"^10.10.0"},aC={"@release-it/conventional-changelog":"^8.0.1","@stackblitz/sdk":"^1.10.0","@tresjs/cientos":"3.9.0","@tresjs/eslint-config":"^1.1.0","@types/three":"^0.165.0","@typescript-eslint/eslint-plugin":"^7.11.0","@typescript-eslint/parser":"^7.11.0","@vitejs/plugin-vue":"^5.0.5","@vitest/coverage-c8":"^0.33.0","@vitest/coverage-v8":"^1.6.0","@vitest/ui":"^1.6.0","@vue/test-utils":"^2.4.6",eslint:"^9.4.0","eslint-plugin-vue":"^9.26.0",esno:"^4.7.0",gsap:"^3.12.5",husky:"^9.0.11",jsdom:"^24.1.0",kolorist:"^1.8.0",ohmyfetch:"^0.4.21",pathe:"^1.1.2","release-it":"^17.3.0","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-copy":"^3.5.0","rollup-plugin-visualizer":"^5.12.0",three:"^0.165.0",unocss:"^0.60.4",unplugin:"^1.10.1","unplugin-vue-components":"^0.27.0",vite:"^5.2.12","vite-plugin-banner":"^0.7.1","vite-plugin-dts":"3.9.1","vite-plugin-inspect":"^0.8.4","vite-plugin-require-transform":"^1.0.21","vite-svg-loader":"^5.1.0",vitepress:"1.2.2",vitest:"^1.6.0",vue:"^3.4.27","vue-demi":"^0.14.8"},lC={name:GT,type:WT,version:$T,packageManager:XT,description:qT,author:YT,license:ZT,keywords:KT,sideEffects:JT,exports:jT,main:QT,module:eC,types:tC,files:nC,publishConfig:iC,scripts:sC,peerDependencies:rC,dependencies:oC,devDependencies:aC},cC=({sizes:s})=>{const e=Ve([]),t=He(()=>e.value[0]),n=o=>{const a=o instanceof Qr?o:e.value.find(c=>c.uuid===o);if(!a)return;const l=e.value.filter(({uuid:c})=>c!==a.uuid);e.value=[a,...l]},i=(o,a=!1)=>{e.value.some(({uuid:l})=>l===o.uuid)||(a?n(o):e.value.push(o))},r=o=>{e.value=e.value.filter(({uuid:a})=>a!==o.uuid)};return Li(()=>{s.aspectRatio.value&&e.value.forEach(o=>{!o.manual&&(o instanceof kt||uC(o))&&(o instanceof kt?o.aspect=s.aspectRatio.value:(o.left=s.width.value*-.5,o.right=s.width.value*.5,o.top=s.height.value*.5,o.bottom=s.height.value*-.5),o.updateProjectionMatrix())})}),$n(()=>{e.value=[]}),{camera:t,cameras:e,registerCamera:i,deregisterCamera:r,setCameraActive:n}};function uC(s){return s.hasOwnProperty("isOrthographicCamera")&&s.isOrthographicCamera}const Fm=Pn(),km=Pn(),Qu=Pn(),Mr=new ul;let ya=0,xa=0;const{pause:hC,resume:Hd,isActive:dC}=ju(()=>{Fm.trigger({delta:ya,elapsed:xa,clock:Mr}),km.trigger({delta:ya,elapsed:xa,clock:Mr}),Qu.trigger({delta:ya,elapsed:xa,clock:Mr})},{immediate:!1});Qu.on(()=>{ya=Mr.getDelta(),xa=Mr.getElapsedTime()});let Gd=!1;const fC=()=>(Gd||(Gd=!0,Hd()),{onBeforeLoop:Fm.on,onLoop:km.on,onAfterLoop:Qu.on,pause:hC,resume:Hd,isActive:dC}),sa="[TresJS ▲ ■ ●] ";function ao(){function s(...n){typeof n[0]=="string"?n[0]=sa+n[0]:n.unshift(sa),console.error(...n)}function e(...n){typeof n[0]=="string"?n[0]=sa+n[0]:n.unshift(sa),console.warn(...n)}function t(n,i){}return{logError:s,logWarning:e,logMessage:t}}function pC(s){return s instanceof Ie?s:Array.isArray(s)?new Ie(...s):new Ie(s)}class mC extends Nt{constructor(...e){super(...e),Vd(this,"type","HightlightMesh"),Vd(this,"createTime"),this.createTime=Date.now()}onBeforeRender(){const e=(Date.now()-this.createTime)/1e3,t=1+.07*Math.sin(2.5*e);this.scale.set(t,t,t)}}const Bm=(s,e)=>{for(const t of Object.keys(e))e[t]instanceof Object&&Object.assign(e[t],Bm(s[t],e[t]));return Object.assign(s||{},e),s},gC="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",_C=xC(gC);function Wd(s){return s&&s.nodeType===1}function ra(s){return s.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}const vC=/\B([A-Z])/g;function yC(s){return s.replace(vC,"-$1").toLowerCase()}function xC(s,e){const t=Object.create(null),n=s.split(",");for(let i=0;i!!t[i]}const $d=(s,e)=>{if(!e)return;const t=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return t==null?void 0:t.reduce((n,i)=>n&&n[i],s)},MC=(s,e,t)=>{const n=Array.isArray(e)?e:e.match(/([^[.\]])+/g);n&&n.reduce((i,r,o)=>(i[r]===void 0&&(i[r]={}),o===n.length-1&&(i[r]=t),i[r]),s)};function zm(s,e){if(Wd(s)&&Wd(e)){const i=s.attributes,r=e.attributes;return i.length!==r.length?!1:Array.from(i).every(({name:o,value:a})=>e.getAttribute(o)===a)}if(s===e)return!0;if(s===null||typeof s!="object"||e===null||typeof e!="object")return!1;const t=Object.keys(s),n=Object.keys(e);if(t.length!==n.length)return!1;for(const i of t)if(!n.includes(i)||!zm(s[i],e[i]))return!1;return!0}function bC(s,e){if(!Array.isArray(s)||!Array.isArray(e)||s.length!==e.length)return!1;for(let t=0;t{if(l.uuid===e)return l;for(const c of l.children){const u=i(c);if(u)return u}},r=i(s);if(!r){console.warn("Object with UUID not found in the scene.");return}let o=r;for(let l=0;leh(n)),!(s instanceof $a)){const n=s;s&&((t=s.dispose)==null||t.call(s)),n.geometry&&(n.geometry.dispose(),delete n.geometry),Array.isArray(n.material)?(n.material.forEach(i=>Xd(i)),delete n.material):n.material&&(Xd(n.material),delete n.material)}}const EC=Number.parseInt(Zr.replace("dev","")),oa={realistic:{shadows:!0,physicallyCorrectLights:!0,outputColorSpace:dn,toneMapping:Ua,toneMappingExposure:3,shadowMap:{enabled:!0,type:hu}},flat:{toneMapping:Wn,toneMappingExposure:1}};function TC({canvas:s,options:e,contextParts:{sizes:t,render:n,invalidate:i,advance:r}}){const o=He(()=>({alpha:bt(e.alpha)??!0,depth:bt(e.depth),canvas:Ln(s),context:bt(e.context),stencil:bt(e.stencil),antialias:bt(e.antialias)??!0,precision:bt(e.precision),powerPreference:bt(e.powerPreference),premultipliedAlpha:bt(e.premultipliedAlpha),preserveDrawingBuffer:bt(e.preserveDrawingBuffer),logarithmicDepthBuffer:bt(e.logarithmicDepthBuffer),failIfMajorPerformanceCaveat:bt(e.failIfMajorPerformanceCaveat)})),a=Dn(new va(o.value));function l(){e.renderMode==="on-demand"&&i()}wt(o,()=>{a.value.dispose(),a.value=new va(o.value),l()}),wt([t.width,t.height],()=>{a.value.setSize(t.width.value,t.height.value),l()},{immediate:!0}),wt(()=>e.clearColor,l);const{pixelRatio:c}=NT();wt(c,()=>{a.value.setPixelRatio(c.value)});const{logError:u}=ao(),h=(()=>{const f=new va,g={shadowMap:{enabled:f.shadowMap.enabled,type:f.shadowMap.type},toneMapping:f.toneMapping,toneMappingExposure:f.toneMappingExposure,outputColorSpace:f.outputColorSpace};return f.dispose(),g})(),d=bt(e.renderMode);return d==="on-demand"&&i(),d==="manual"&&setTimeout(()=>{r()},100),Li(()=>{const f=bt(e.preset);f&&(f in oa||u(`Renderer Preset must be one of these: ${Object.keys(oa).join(", ")}`),Bm(a.value,oa[f])),d==="always"&&(n.frames.value=Math.max(1,n.frames.value));const g=(m,y)=>{const v=bt(m),x=()=>{if(f)return $d(oa[f],y)};if(v!==void 0)return v;const E=x();return E!==void 0?E:$d(h,y)},_=(m,y)=>MC(a.value,y,g(m,y));_(e.shadows,"shadowMap.enabled"),_(e.toneMapping??Ua,"toneMapping"),_(e.shadowMapType,"shadowMap.type"),EC<150&&_(!e.useLegacyLights,"physicallyCorrectLights"),_(e.outputColorSpace,"outputColorSpace"),_(e.toneMappingExposure,"toneMappingExposure");const p=g(e.clearColor,"clearColor");p&&a.value.setClearColor(p?pC(p):new Ie(0))}),$n(()=>{a.value.dispose(),a.value.forceContextLoss()}),{renderer:a}}const aa=s=>typeof s=="function",CC=s=>!!s&&s.constructor===Array;function PC(s){const e={nodes:{},materials:{}};return s&&s.traverse(t=>{t.name&&(e.nodes[t.name]=t),t.material&&!e.materials[t.material.name]&&(e.materials[t.material.name]=t.material)}),e}async function RC(s,e,t,n,i){const{logError:r}=ao(),o=new s,a=(Array.isArray(e)?e:[e]).map(l=>new Promise((c,u)=>{o.load(l,h=>{h.scene&&Object.assign(h,PC(h.scene)),c(h)},n,h=>u(r("[useLoader] - Failed to load resource",h)))}));return CC(e)?await Promise.all(a):await a[0]}const IC=(s,e)=>{const t=He(()=>e.renderer.value.domElement),n=Dn([]),{x:i,y:r}=BT({target:t}),o=He(()=>s.value.filter(_e=>{var De;return((De=_e.__tres)==null?void 0:De.eventCount)>0}));let a=0;const{width:l,height:c,top:u,left:h}=DT(t),d=({x:_e,y:De})=>{if(t.value)return{x:(_e-h.value)/l.value*2-1,y:-((De-u.value)/c.value)*2+1}},f=({x:_e,y:De})=>{if(e.camera.value)return e.raycaster.value.setFromCamera(new te(_e,De),e.camera.value),n.value=e.raycaster.value.intersectObjects(o.value,!0),n.value},g=_e=>{const De=d({x:(_e==null?void 0:_e.clientX)??i.value,y:(_e==null?void 0:_e.clientY)??r.value});return De?f(De)||[]:[]},_=Pn(),p=Pn(),m=Pn(),y=Pn(),v=Pn(),x=Pn(),E=Pn(),S=Pn();function C(_e){const De={};for(const F in _e)typeof F!="function"&&(De[F]=_e[F]);return De}const L=(_e,De)=>{var F,U,I;const T=C(De),se=new N(De==null?void 0:De.clientX,De==null?void 0:De.clientY,0).unproject((F=e.camera)==null?void 0:F.value);_e.trigger({...T,intersections:n.value,unprojectedPoint:se,ray:(U=e.raycaster)==null?void 0:U.value.ray,camera:(I=e.camera)==null?void 0:I.value,sourceEvent:De,delta:a,stopPropagating:!1})};let A;const b=_e=>{g(_e),L(m,_e),A=_e},k=()=>{A&&b(A)};let V,G,X;const ce=_e=>{var De;V=(De=n.value[0])==null?void 0:De.object,a=0,G=new te((_e==null?void 0:_e.clientX)??i.value,(_e==null?void 0:_e.clientY)??r.value),L(v,_e)};let Z,ae=!1;const z=_e=>{var De,F,U;_e instanceof PointerEvent&&(n.value.length===0&&L(x,_e),V===((De=n.value[0])==null?void 0:De.object)&&(X=new te((_e==null?void 0:_e.clientX)??i.value,(_e==null?void 0:_e.clientY)??r.value),a=G==null?void 0:G.distanceTo(X),_e.button===0?(L(_,_e),Z===((F=n.value[0])==null?void 0:F.object)?ae=!0:(Z=(U=n.value[0])==null?void 0:U.object,ae=!1)):_e.button===2&&L(E,_e)),L(y,_e))},Se=_e=>{ae&&(L(p,_e),Z=void 0,ae=!1)},we=_e=>L(m,_e),Ae=_e=>L(S,_e);return t.value.addEventListener("pointerup",z),t.value.addEventListener("pointerdown",ce),t.value.addEventListener("pointermove",b),t.value.addEventListener("pointerleave",we),t.value.addEventListener("dblclick",Se),t.value.addEventListener("wheel",Ae),$n(()=>{t!=null&&t.value&&(t.value.removeEventListener("pointerup",z),t.value.removeEventListener("pointerdown",ce),t.value.removeEventListener("pointermove",b),t.value.removeEventListener("pointerleave",we),t.value.removeEventListener("dblclick",Se),t.value.removeEventListener("wheel",Ae))}),{intersects:n,onClick:_e=>_.on(_e).off,onDblClick:_e=>p.on(_e).off,onContextMenu:_e=>E.on(_e).off,onPointerMove:_e=>m.on(_e).off,onPointerUp:_e=>y.on(_e).off,onPointerDown:_e=>v.on(_e).off,onPointerMissed:_e=>x.on(_e).off,onWheel:_e=>S.on(_e).off,forceUpdate:k}};function th(s){let e=0;return s.traverse(t=>{if(t.isMesh&&t.geometry){const n=t.geometry,i=n.attributes.position.count*3*Float32Array.BYTES_PER_ELEMENT,r=n.index?n.index.count*Uint32Array.BYTES_PER_ELEMENT:0,o=n.attributes.normal?n.attributes.normal.count*3*Float32Array.BYTES_PER_ELEMENT:0,a=n.attributes.uv?n.attributes.uv.count*2*Float32Array.BYTES_PER_ELEMENT:0,l=i+r+o+a;e+=l}}),e}function LC(s){return(s/1024).toFixed(2)}const jc=Ve({}),Ra=s=>Object.assign(jc.value,s);function NC(s,e,t=10){const n=bt(s)?zT():UT(He(()=>bt(e).parentElement)),i=br(zd(n.width,t)),r=br(zd(n.height,t)),o=He(()=>i.value/r.value);return{height:r,width:i,aspectRatio:o}}function nc(){const s=new Map,e=new Set;let t=0,n=!1;const i=()=>{const o=Array.from(s.entries()).sort((a,l)=>{const c=a[1].priority-l[1].priority;return c===0?a[1].addI-l[1].addI:c});e.clear(),o.forEach(a=>e.add(a[0]))},r=o=>{s.delete(o),e.delete(o)};return{on:(o,a=0)=>{s.set(o,{priority:a,addI:t++});const l=()=>r(o);return qn(l),n=!0,{off:l}},off:r,trigger:(...o)=>{n&&(i(),n=!1),e.forEach(a=>a(...o))},dispose:()=>{s.clear(),e.clear()},get count(){return s.size}}}function DC(){const s=new ul(!1),e=Ve(!1),t=Ve(!1);let n;const i=Su.generateUUID();let r=null;const o=nc(),a=nc(),l=nc();let c={};function u(v){c=v}function h(v,x,E=0){switch(x){case"before":return o.on(v,E);case"render":return r||(r=v),a.dispose(),a.on(v);case"after":return l.on(v,E)}}function d(){e.value||(s.start(),e.value=!0,y())}function f(){e.value&&(s.stop(),cancelAnimationFrame(n),e.value=!1)}function g(){s.stop(),e.value=!1}function _(){s.start(),e.value=!0}function p(){t.value=!0}function m(){t.value=!1}function y(){const v=s.getDelta(),x=s.getElapsedTime(),E={camera:ee(c.camera),scene:ee(c.scene),renderer:ee(c.renderer),raycaster:ee(c.raycaster),controls:ee(c.controls),invalidate:c.invalidate,advance:c.advance},S={delta:v,elapsed:x,clock:s,...E};e.value&&o.trigger(S),t.value||(a.count?a.trigger(S):r&&r(S)),e.value&&l.trigger(S),n=requestAnimationFrame(y)}return{loopId:i,register:(v,x,E)=>h(v,x,E),start:d,stop:f,pause:g,resume:_,pauseRender:p,resumeRender:m,isRenderPaused:t,isActive:e,setContext:u}}function UC({scene:s,canvas:e,windowSize:t,disableRender:n,rendererOptions:i,emit:r}){const{logWarning:o}=ao(),a=Dn(s),l=NC(t,e),{camera:c,cameras:u,registerCamera:h,deregisterCamera:d,setCameraActive:f}=cC({sizes:l,scene:s}),g={mode:Ve(i.renderMode||"always"),priority:Ve(0),frames:Ve(0),maxFrames:60,canBeInvalidated:He(()=>g.mode.value==="on-demand"&&g.frames.value===0)};function _(G=1){i.renderMode==="on-demand"?g.frames.value=Math.min(g.maxFrames,g.frames.value+G):o("`invalidate` can only be used when `renderMode` is set to `on-demand`")}function p(){i.renderMode==="manual"?g.frames.value=1:o("`advance` can only be used when `renderMode` is set to `manual`")}const{renderer:m}=TC({scene:s,canvas:e,options:i,emit:r,contextParts:{sizes:l,camera:c,render:g,invalidate:_,advance:p},disableRender:n}),y={sizes:l,scene:a,camera:c,cameras:br(u),renderer:m,raycaster:Dn(new Lm),controls:Ve(null),perf:{maxFrames:160,fps:{value:0,accumulator:[]},memory:{currentMem:0,allocatedMem:0,accumulator:[]}},render:g,advance:p,extend:Ra,invalidate:_,registerCamera:h,setCameraActive:f,deregisterCamera:d,loop:DC()};Sr("useTres",y),y.scene.value.__tres={root:y},y.loop.register(()=>{c.value&&g.frames.value>0&&(m.value.render(s,c.value),r("render",y.renderer.value)),g.priority.value=0,g.mode.value==="always"?g.frames.value=1:g.frames.value=Math.max(0,g.frames.value-1)},"render"),y.loop.start(),$n(()=>{y.loop.stop()});const v=100,x=OT({every:v}),{isSupported:E,memory:S}=FT({interval:v}),C=160;let L=performance.now();const A=({timestamp:G})=>{y.scene.value&&(y.perf.memory.allocatedMem=th(y.scene.value)),G-L>=v&&(L=G,y.perf.fps.accumulator.push(x.value),y.perf.fps.accumulator.length>C&&y.perf.fps.accumulator.shift(),y.perf.fps.value=x.value,E.value&&S.value&&(y.perf.memory.accumulator.push(S.value.usedJSHeapSize/1024/1024),y.perf.memory.accumulator.length>C&&y.perf.memory.accumulator.shift(),y.perf.memory.currentMem=y.perf.memory.accumulator.reduce((X,ce)=>X+ce,0)/y.perf.memory.accumulator.length))};let b=0;const k=1,{pause:V}=ju(({delta:G})=>{window.__TRES__DEVTOOLS__&&(A({timestamp:performance.now()}),b+=G,b>=k&&(window.__TRES__DEVTOOLS__.cb(y),b=0))},{immediate:!0});return $n(()=>{V()}),y}function OC(){const s=qr("useTres");if(!s)throw new Error("useTresContext must be used together with useTresContextProvider");return s}function FC(s,e,t){const n=Dn(),i=Dn();s&&(n.value=s),e&&(i.value=e);const r=He(()=>n.value?n.value.children:[]);function o(E,S){if(Array.isArray(E))for(const C of E)C(S);typeof E=="function"&&E(S)}function a(E,S){const C=[],L=()=>S.stopPropagating=!0;S.stopPropagation=L;for(const A of S==null?void 0:S.intersections){if(S.stopPropagating)return;S={...S,...A};const{object:b}=A;S.eventObject=b,o(b[E],S),C.push(b);let k=b.parent;for(;k!==null&&!S.stopPropagating&&!C.includes(k);)S.eventObject=k,o(k[E],S),C.push(k),k=k.parent;const V=yC(E.slice(2));t(V,{intersection:A,event:S})}}const{onClick:l,onDblClick:c,onContextMenu:u,onPointerMove:h,onPointerDown:d,onPointerUp:f,onPointerMissed:g,onWheel:_,forceUpdate:p}=IC(r,e);f(E=>a("onPointerUp",E)),d(E=>a("onPointerDown",E)),l(E=>a("onClick",E)),c(E=>a("onDoubleClick",E)),u(E=>a("onContextMenu",E)),_(E=>a("onWheel",E));let m=[];h(E=>{const S=E.intersections.map(({object:L})=>L),C=E.intersections;m.forEach(({object:L})=>{S.includes(L)||(E.intersections=m,a("onPointerLeave",E),a("onPointerOut",E))}),E.intersections=C,E.intersections.forEach(({object:L})=>{m.includes(L)||(a("onPointerEnter",E),a("onPointerOver",E))}),a("onPointerMove",E),m=E.intersections});const y=[];g(E=>{const S=()=>E.stopPropagating=!0;E.stopPropagation=S,y.forEach(C=>{E.stopPropagating||(E.eventObject=C,o(C.onPointerMissed,E))}),t("pointer-missed",{event:E})});function v(E){y.push(E)}function x(E){const S=y.indexOf(E);S>-1&&y.splice(S,1)}return e.eventManager={forceUpdate:p,registerPointerMissedObject:v,deregisterPointerMissedObject:x},{forceUpdate:p,registerPointerMissedObject:v,deregisterPointerMissedObject:x}}const{logError:qd}=ao(),Yd=["onClick","onContextMenu","onPointerMove","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onDoubleClick","onPointerDown","onPointerUp","onPointerCancel","onPointerMissed","onLostPointerCapture","onWheel"];function Zd(s){var e;const t=(e=s==null?void 0:s.__tres)==null?void 0:e.root;t&&t.render&&t.render.canBeInvalidated.value&&t.invalidate()}const kC=()=>{let s=null;function e(l,c,u,h){if(h||(h={}),h.args||(h.args=[]),l==="template"||_C(l))return null;let d=l.replace("Tres",""),f;if(l==="primitive"){(h==null?void 0:h.object)===void 0&&qd("Tres primitives need a prop 'object'");const g=h.object;d=g.type,f=Object.assign(g.clone(),{type:d})}else{const g=jc.value[d];g||qd(`${d} is not defined on the THREE namespace. Use extend to add it to the catalog.`),f=new g(...h.args)}return f?(f.isCamera&&(h!=null&&h.position||f.position.set(3,3,3),h!=null&&h.lookAt||f.lookAt(0,0,0)),(h==null?void 0:h.attach)===void 0&&(f.isMaterial?f.attach="material":f.isBufferGeometry&&(f.attach="geometry")),f.__tres={...f.__tres,type:d,memoizedProps:h,eventCount:0,disposable:!0,primitive:l==="primitive"},f.isObject3D&&f.__tres&&(h!=null&&h.material||h!=null&&h.geometry)&&(f.__tres.disposable=!1),f):null}function t(l,c){var u,h,d,f,g;if(!l)return;c&&c.isScene&&(s=c),s&&l.__tres&&(l.__tres.root=s.__tres.root);const _=c||s;if(l!=null&&l.isObject3D){const{registerCamera:p}=(u=l==null?void 0:l.__tres)==null?void 0:u.root;l!=null&&l.isCamera&&p(l),l.onPointerMissed&&(h=l==null?void 0:l.__tres)!=null&&h.root&&((g=(f=(d=l==null?void 0:l.__tres)==null?void 0:d.root)==null?void 0:f.eventManager)==null||g.registerPointerMissedObject(l))}l!=null&&l.isObject3D&&_!=null&&_.isObject3D?(_.add(l),l.dispatchEvent({type:"added"})):l!=null&&l.isFog?_.fog=l:typeof(l==null?void 0:l.attach)=="string"&&(l.__previousAttach=l[_==null?void 0:_.attach],_&&(_[l.attach]=l))}function n(l){var c,u,h,d;if(!l)return;const f=l.__tres;if(l.parent=l.parent||s,l.isObject3D){const g=_=>{var p,m;const y=(m=(p=l==null?void 0:l.__tres)==null?void 0:p.root)==null?void 0:m.deregisterCamera;_.isCamera&&(y==null||y(_))};(c=l.removeFromParent)==null||c.call(l),l.traverse(_=>{var p,m;g(_),_.onPointerMissed&&((m=(p=f==null?void 0:f.root)==null?void 0:p.eventManager)==null||m.deregisterPointerMissedObject(_))}),g(l),Zd(l),!((u=l.__tres)!=null&&u.primitive)&&(h=l.__tres)!=null&&h.disposable&&eh(l),(d=l.dispose)==null||d.call(l)}}function i(l,c,u,h){var d,f;if(l){let g=l,_=c;if((d=l==null?void 0:l.__tres)!=null&&d.primitive&&_==="object"&&u!==null){const v=e("primitive",void 0,void 0,{object:h});for(const x in v){if(x==="uuid")continue;const E=l[x],S=v[x];!(E!=null&&E.set)&&!aa(E)?l[x]=S:E.constructor===S.constructor&&E!=null&&E.copy?E==null||E.copy(S):Array.isArray(S)?E.set(...S):!E.isColor&&E.setScalar?E.setScalar(S):E.set(S)}v!=null&&v.__tres&&(v.__tres.root=s==null?void 0:s.__tres.root),v!=null&&v.isGroup?(l.geometry=void 0,l.material=void 0):delete l.isGroup}if(l!=null&&l.isObject3D&&_==="blocks-pointer-events"){h||h===""?l[_]=h:delete l[_];return}Yd.includes(c)&&(l.__tres.eventCount+=1);let p=ra(_),m=g==null?void 0:g[p];if(_==="args"){const v=l,x=u??[],E=h??[],S=((f=l==null?void 0:l.__tres)==null?void 0:f.type)||l.type;S&&x.length&&!bC(x,E)&&(g=Object.assign(v,new jc.value[S](...h)));return}if(g.type==="BufferGeometry"){if(_==="args")return;g.setAttribute(ra(_),new mt(...h));return}if(_.includes("-")&&m===void 0){const v=_.split("-");m=v.reduce((x,E)=>x[ra(E)],g),_=v.pop(),p=_,m!=null&&m.set||(g=v.reduce((x,E)=>x[ra(E)],g))}let y=h;if(y===""&&(y=!0),aa(m)){Yd.includes(c)||(Array.isArray(y)?l[p](...y):l[p](y)),p.startsWith("on")&&aa(y)&&(g[p]=y);return}!(m!=null&&m.set)&&!aa(m)?g[p]=y:m.constructor===y.constructor&&m!=null&&m.copy?m==null||m.copy(y):Array.isArray(y)?m.set(...y):!m.isColor&&m.setScalar?m.setScalar(y):m.set(y),Zd(l)}}function r(l){return(l==null?void 0:l.parent)||null}function o(l){const c=new ut;return c.name=l,c.__tres={type:"Comment"},c.__tres.root=s==null?void 0:s.__tres.root,c}function a(l){if(!l)return null;const c=l.parent||s,u=c.children.indexOf(l);return c.children[u+1]||null}return{insert:t,remove:n,createElement:e,patchProp:i,parentNode:r,createText:()=>{},createComment:o,setText:()=>{},setElementText:()=>{},nextSibling:a,querySelector:()=>{},setScopeId:()=>{},cloneNode:()=>{},insertStaticContent:()=>{}}};function BC(){return Vm().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Vm(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const zC=typeof Proxy=="function",VC="devtools-plugin:setup",HC="plugin:settings:set";let fr,Qc;function GC(){var s;return fr!==void 0||(typeof window<"u"&&window.performance?(fr=!0,Qc=window.performance):typeof globalThis<"u"&&!((s=globalThis.perf_hooks)===null||s===void 0)&&s.performance?(fr=!0,Qc=globalThis.perf_hooks.performance):fr=!1),fr}function WC(){return GC()?Qc.now():Date.now()}class $C{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const o in e.settings){const a=e.settings[o];n[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},n);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return WC()}},t&&t.on(HC,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function XC(s,e){const t=s,n=Vm(),i=BC(),r=zC&&t.enableEarlyProxy;if(i&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(VC,s,e);else{const o=r?new $C(t,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}function qC(s,e){const t=`▲ ■ ●${s}`;typeof Kd=="function"?Kd(t,e):console.log(t)}function Kd(s,e){throw new Error(s+e)}const Hm=s=>{const e={id:s.uuid,label:s.type,children:[],tags:[]};s.name!==""&&e.tags.push({label:s.name,textColor:5750629,backgroundColor:15793395});const t=th(s);return t>0&&e.tags.push({label:`${LC(t)} KB`,textColor:15707189,backgroundColor:16775644,tooltip:"Memory usage"}),s.type.includes("Light")&&(e.tags.push({label:`${s.intensity}`,textColor:9738662,backgroundColor:16316922,tooltip:"Intensity"}),e.tags.push({label:`#${s.color.getHexString()}`,textColor:9738662,backgroundColor:16316922,tooltip:"Color"})),s.type.includes("Camera")&&(e.tags.push({label:`${s.fov}°`,textColor:9738662,backgroundColor:16316922,tooltip:"Field of view"}),e.tags.push({label:`x: ${Math.round(s.position.x)} y: ${Math.round(s.position.y)} z: ${Math.round(s.position.z)}`,textColor:9738662,backgroundColor:16316922,tooltip:"Position"})),e};function Gm(s,e,t=""){s.children.forEach(n=>{if(n.type==="HightlightMesh"||t&&!n.type.includes(t)&&!n.name.includes(t))return;const i=Hm(n);e.children.push(i),Gm(n,i,t)})}const YC=[],pr="tres:inspector",ZC=ug({sceneGraph:null});function KC(s,e){XC({id:"dev.esm.tres",label:"TresJS 🪐",logo:"https://raw.githubusercontent.com/Tresjs/tres/main/public/favicon.svg",packageName:"tresjs",homepage:"https://tresjs.org",componentStateTypes:YC,app:s},t=>{typeof t.now!="function"&&qC("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),t.addInspector({id:pr,label:"TresJS 🪐",icon:"account_tree",treeFilterPlaceholder:"Search instances"}),setInterval(()=>{t.sendInspectorTree(pr)},1e3),setInterval(()=>{t.notifyComponentUpdate()},5e3),t.on.getInspectorTree(r=>{if(r.inspectorId===pr){const o=Hm(e.scene.value);Gm(e.scene.value,o,r.filter),ZC.sceneGraph=o,r.rootNodes=[o]}});let n=null,i=null;t.on.getInspectorState(r=>{var o;if(r.inspectorId===pr){const[a]=e.scene.value.getObjectsByProperty("uuid",r.nodeId);if(!a)return;if(i&&n&&n.parent&&i.remove(n),a.isMesh){const l=wC(a);a.add(l),n=l,i=a}r.state={object:[{key:"uuid",editable:!0,value:a.uuid},{key:"name",editable:!0,value:a.name},{key:"type",editable:!0,value:a.type},{key:"position",editable:!0,value:a.position},{key:"rotation",editable:!0,value:a.rotation},{key:"scale",editable:!0,value:a.scale},{key:"geometry",value:a.geometry},{key:"material",value:a.material},{key:"color",editable:!0,value:a.color},{key:"intensity",editable:!0,value:a.intensity},{key:"castShadow",editable:!0,value:a.castShadow},{key:"receiveShadow",editable:!0,value:a.receiveShadow},{key:"frustumCulled",editable:!0,value:a.frustumCulled},{key:"matrixAutoUpdate",editable:!0,value:a.matrixAutoUpdate},{key:"matrixWorldNeedsUpdate",editable:!0,value:a.matrixWorldNeedsUpdate},{key:"matrixWorld",value:a.matrixWorld},{key:"visible",editable:!0,value:a.visible}]},a.isScene&&(r.state.info={memory:th(a),objects:a.children.length,calls:e.renderer.value.info.render.calls,triangles:e.renderer.value.info.render.triangles,points:e.renderer.value.info.render.points,lines:e.renderer.value.info.render.lines},r.state.programs=((o=e.renderer.value.info.programs)==null?void 0:o.map(l=>({key:l.name,value:{...l,vertexShader:l.vertexShader,attributes:l.getAttributes(),uniforms:l.getUniforms()}})))||[])}}),t.on.editInspectorState(r=>{r.inspectorId===pr&&SC(e.scene.value,r.nodeId,r.path,r.state.value)})})}const JC=["data-scene","data-tres"],jC=ke({__name:"TresCanvas",props:{shadows:{type:Boolean,default:void 0},clearColor:{},toneMapping:{},shadowMapType:{},useLegacyLights:{type:Boolean,default:void 0},outputColorSpace:{},toneMappingExposure:{},renderMode:{default:"always"},camera:{},preset:{},windowSize:{type:Boolean,default:void 0},disableRender:{type:Boolean,default:void 0},context:{},precision:{},alpha:{type:Boolean,default:void 0},premultipliedAlpha:{type:Boolean},antialias:{type:Boolean,default:void 0},stencil:{type:Boolean,default:void 0},preserveDrawingBuffer:{type:Boolean,default:void 0},powerPreference:{},depth:{type:Boolean,default:void 0},logarithmicDepthBuffer:{type:Boolean,default:void 0},failIfMajorPerformanceCaveat:{type:Boolean,default:void 0}},emits:["render","click","double-click","context-menu","pointer-move","pointer-up","pointer-down","pointer-enter","pointer-leave","pointer-over","pointer-out","pointer-missed","wheel"],setup(s,{expose:e,emit:t}){var n;const i=s,r=t,o=rf(),{logWarning:a}=ao(),l=Ve(),c=Dn(new $a),u=(n=Ma())==null?void 0:n.appContext.app;Ra(yT);const h=p=>ke({setup(){var m;const y=(m=Ma())==null?void 0:m.appContext;return y&&(y.app=u),Sr("useTres",p),Sr("extend",Ra),typeof window<"u"&&KC(y==null?void 0:y.app,p),()=>oh(xt,null,o!=null&&o.default?o.default():[])}}),d=p=>{const m=h(p),{render:y}=hg(kC());y(oh(m),c.value)},f=(p,m=!1)=>{eh(p.scene.value),m&&(p.renderer.value.dispose(),p.renderer.value.renderLists.dispose(),p.renderer.value.forceContextLoss()),c.value.__tres={root:p},d(p)},g=He(()=>i.disableRender),_=Dn(null);return e({context:_,dispose:()=>f(_.value,!0)}),Fn(()=>{const p=l;_.value=UC({scene:c.value,canvas:p,windowSize:i.windowSize??!1,disableRender:g.value??!1,rendererOptions:i,emit:r}),FC(c.value,_.value,r);const{registerCamera:m,camera:y,cameras:v,deregisterCamera:x}=_.value;d(_.value);const E=()=>{const S=new kt(45,window.innerWidth/window.innerHeight,.1,1e3);S.position.set(3,3,3),S.lookAt(0,0,0),m(S);const C=Li(()=>{v.value.length>=2&&(S.removeFromParent(),x(S),C==null||C())})};wt(()=>i.camera,(S,C)=>{S&&m(S),C&&(C.removeFromParent(),x(C))},{immediate:!0}),y.value||(a("No camera found. Creating a default perspective camera. To have full control over a camera, please add one to the scene."),E())}),$n(()=>{f(_.value)}),(p,m)=>(Y(),ge("canvas",{ref_key:"canvas",ref:l,"data-scene":c.value.uuid,class:yt(p.$attrs.class),"data-tres":`tresjs ${ee(lC).version}`,style:nu({display:"block",width:"100%",height:"100%",position:p.windowSize?"fixed":"relative",top:0,left:0,pointerEvents:"auto",touchAction:"none",...p.$attrs.style})},null,14,JC))}}),QC=dn;class Ia extends un{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,t,n,i){const r=this,o=new Xn(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(e,function(a){try{t(r.parse(a))}catch(l){i?i(l):console.error(l),r.manager.itemError(e)}},n,i)}parse(e){const t=this;function n(F,U){if(F.nodeType!==1)return;const I=x(F);let T=!1,se=null;switch(F.nodeName){case"svg":U=g(F,U);break;case"style":r(F);break;case"g":U=g(F,U);break;case"path":U=g(F,U),F.hasAttribute("d")&&(se=i(F));break;case"rect":U=g(F,U),se=l(F);break;case"polygon":U=g(F,U),se=c(F);break;case"polyline":U=g(F,U),se=u(F);break;case"circle":U=g(F,U),se=h(F);break;case"ellipse":U=g(F,U),se=d(F);break;case"line":U=g(F,U),se=f(F);break;case"defs":T=!0;break;case"use":U=g(F,U);const D=(F.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),q=F.viewportElement.getElementById(D);q?n(q,U):console.warn("SVGLoader: 'use node' references non-existent node id: "+D);break}se&&(U.fill!==void 0&&U.fill!=="none"&&se.color.setStyle(U.fill,QC),S(se,Ae),V.push(se),se.userData={node:F,style:U});const fe=F.childNodes;for(let K=0;K0?Ae.copy(X[X.length-1]):Ae.identity())}function i(F){const U=new Ei,I=new te,T=new te,se=new te;let fe=!0,K=!1;const D=F.getAttribute("d");if(D===""||D==="none")return null;const q=D.match(/[a-df-z][^a-df-z]*/ig);for(let J=0,H=q.length;J0&&(I.copy(se),U.currentPath.currentPoint.copy(I),fe=!0);break;default:console.warn(W)}K=!1}return U}function r(F){if(!(!F.sheet||!F.sheet.cssRules||!F.sheet.cssRules.length))for(let U=0;Use.trim());for(let se=0;seK!==""));G[T[se]]=Object.assign(G[T[se]]||{},fe)}}}function o(F,U,I,T,se,fe,K,D){if(U==0||I==0){F.lineTo(D.x,D.y);return}T=T*Math.PI/180,U=Math.abs(U),I=Math.abs(I);const q=(K.x-D.x)/2,J=(K.y-D.y)/2,H=Math.cos(T)*q+Math.sin(T)*J,W=-Math.sin(T)*q+Math.cos(T)*J;let ie=U*U,he=I*I;const B=H*H,O=W*W,R=B/ie+O/he;if(R>1){const be=Math.sqrt(R);U=be*U,I=be*I,ie=U*U,he=I*I}const w=ie*O+he*B,Q=(ie*he-w)/w;let me=Math.sqrt(Math.max(0,Q));se===fe&&(me=-me);const de=me*U*W/I,ye=-me*I*H/U,Be=Math.cos(T)*de-Math.sin(T)*ye+(K.x+D.x)/2,Ce=Math.sin(T)*de+Math.cos(T)*ye+(K.y+D.y)/2,Ee=a(1,0,(H-de)/U,(W-ye)/I),Je=a((H-de)/U,(W-ye)/I,(-H-de)/U,(-W-ye)/I)%(Math.PI*2);F.currentPath.absellipse(Be,Ce,U,I,Ee,Ee+Je,fe===0,T)}function a(F,U,I,T){const se=F*I+U*T,fe=Math.sqrt(F*F+U*U)*Math.sqrt(I*I+T*T);let K=Math.acos(Math.max(-1,Math.min(1,se/fe)));return F*T-U*I<0&&(K=-K),K}function l(F){const U=v(F.getAttribute("x")||0),I=v(F.getAttribute("y")||0),T=v(F.getAttribute("rx")||F.getAttribute("ry")||0),se=v(F.getAttribute("ry")||F.getAttribute("rx")||0),fe=v(F.getAttribute("width")),K=v(F.getAttribute("height")),D=1-.551915024494,q=new Ei;return q.moveTo(U+T,I),q.lineTo(U+fe-T,I),(T!==0||se!==0)&&q.bezierCurveTo(U+fe-T*D,I,U+fe,I+se*D,U+fe,I+se),q.lineTo(U+fe,I+K-se),(T!==0||se!==0)&&q.bezierCurveTo(U+fe,I+K-se*D,U+fe-T*D,I+K,U+fe-T,I+K),q.lineTo(U+T,I+K),(T!==0||se!==0)&&q.bezierCurveTo(U+T*D,I+K,U,I+K-se*D,U,I+K-se),q.lineTo(U,I+se),(T!==0||se!==0)&&q.bezierCurveTo(U,I+se*D,U+T*D,I,U+T,I),q}function c(F){function U(fe,K,D){const q=v(K),J=v(D);se===0?T.moveTo(q,J):T.lineTo(q,J),se++}const I=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,T=new Ei;let se=0;return F.getAttribute("points").replace(I,U),T.currentPath.autoClose=!0,T}function u(F){function U(fe,K,D){const q=v(K),J=v(D);se===0?T.moveTo(q,J):T.lineTo(q,J),se++}const I=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,T=new Ei;let se=0;return F.getAttribute("points").replace(I,U),T.currentPath.autoClose=!1,T}function h(F){const U=v(F.getAttribute("cx")||0),I=v(F.getAttribute("cy")||0),T=v(F.getAttribute("r")||0),se=new Ci;se.absarc(U,I,T,0,Math.PI*2);const fe=new Ei;return fe.subPaths.push(se),fe}function d(F){const U=v(F.getAttribute("cx")||0),I=v(F.getAttribute("cy")||0),T=v(F.getAttribute("rx")||0),se=v(F.getAttribute("ry")||0),fe=new Ci;fe.absellipse(U,I,T,se,0,Math.PI*2);const K=new Ei;return K.subPaths.push(fe),K}function f(F){const U=v(F.getAttribute("x1")||0),I=v(F.getAttribute("y1")||0),T=v(F.getAttribute("x2")||0),se=v(F.getAttribute("y2")||0),fe=new Ei;return fe.moveTo(U,I),fe.lineTo(T,se),fe.currentPath.autoClose=!1,fe}function g(F,U){U=Object.assign({},U);let I={};if(F.hasAttribute("class")){const K=F.getAttribute("class").split(/\s/).filter(Boolean).map(D=>D.trim());for(let D=0;D0&&U.premultiply(X[X.length-1]),Ae.copy(U),X.push(U),U}function E(F){const U=new je,I=ce;if(F.nodeName==="use"&&(F.hasAttribute("x")||F.hasAttribute("y"))){const T=v(F.getAttribute("x")),se=v(F.getAttribute("y"));U.translate(T,se)}if(F.hasAttribute("transform")){const T=F.getAttribute("transform").split(")");for(let se=T.length-1;se>=0;se--){const fe=T[se].trim();if(fe==="")continue;const K=fe.indexOf("("),D=fe.length;if(K>0&&K=1){const H=J[0];let W=0;J.length>=2&&(W=J[1]),I.translate(H,W)}break;case"rotate":if(J.length>=1){let H=0,W=0,ie=0;H=J[0]*Math.PI/180,J.length>=3&&(W=J[1],ie=J[2]),Z.makeTranslation(-W,-ie),ae.makeRotation(H),z.multiplyMatrices(ae,Z),Z.makeTranslation(W,ie),I.multiplyMatrices(Z,z)}break;case"scale":if(J.length>=1){const H=J[0];let W=H;J.length>=2&&(W=J[1]),I.scale(H,W)}break;case"skewX":J.length===1&&I.set(1,Math.tan(J[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":J.length===1&&I.set(1,0,0,Math.tan(J[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":J.length===6&&I.set(J[0],J[2],J[4],J[1],J[3],J[5],0,0,1);break}}U.premultiply(I)}}return U}function S(F,U){function I(K){we.set(K.x,K.y,1).applyMatrix3(U),K.set(we.x,we.y)}function T(K){const D=K.xRadius,q=K.yRadius,J=Math.cos(K.aRotation),H=Math.sin(K.aRotation),W=new N(D*J,D*H,0),ie=new N(-q*H,q*J,0),he=W.applyMatrix3(U),B=ie.applyMatrix3(U),O=ce.set(he.x,B.x,0,he.y,B.y,0,0,0,1),R=Z.copy(O).invert(),me=ae.copy(R).transpose().multiply(R).elements,de=k(me[0],me[1],me[4]),ye=Math.sqrt(de.rt1),Be=Math.sqrt(de.rt2);if(K.xRadius=1/ye,K.yRadius=1/Be,K.aRotation=Math.atan2(de.sn,de.cs),!((K.aEndAngle-K.aStartAngle)%(2*Math.PI){const{x:Ke,y:Re}=new N(Math.cos(rt),Math.sin(rt),0).applyMatrix3(be);return Math.atan2(Re,Ke)};K.aStartAngle=Ne(K.aStartAngle),K.aEndAngle=Ne(K.aEndAngle),C(U)&&(K.aClockwise=!K.aClockwise)}}function se(K){const D=A(U),q=b(U);K.xRadius*=D,K.yRadius*=q;const J=D>Number.EPSILON?Math.atan2(U.elements[1],U.elements[0]):Math.atan2(-U.elements[3],U.elements[4]);K.aRotation+=J,C(U)&&(K.aStartAngle*=-1,K.aEndAngle*=-1,K.aClockwise=!K.aClockwise)}const fe=F.subPaths;for(let K=0,D=fe.length;KNumber.EPSILON}function A(F){const U=F.elements;return Math.sqrt(U[0]*U[0]+U[1]*U[1])}function b(F){const U=F.elements;return Math.sqrt(U[3]*U[3]+U[4]*U[4])}function k(F,U,I){let T,se,fe,K,D;const q=F+I,J=F-I,H=Math.sqrt(J*J+4*U*U);return q>0?(T=.5*(q+H),D=1/T,se=F*D*I-U*D*U):q<0?se=.5*(q-H):(T=.5*H,se=-.5*H),J>0?fe=J+H:fe=J-H,Math.abs(fe)>2*Math.abs(U)?(D=-2*U/fe,K=1/Math.sqrt(1+D*D),fe=D*K):Math.abs(U)===0?(fe=1,K=0):(D=-.5*fe/U,fe=1/Math.sqrt(1+D*D),K=D*fe),J>0&&(D=fe,fe=-K,K=D),{rt1:T,rt2:se,cs:fe,sn:K}}const V=[],G={},X=[],ce=new je,Z=new je,ae=new je,z=new je,Se=new te,we=new N,Ae=new je,_e=new DOMParser().parseFromString(e,"image/svg+xml");return n(_e.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:V,xml:_e.documentElement}}static createShapes(e){const n={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:n.ORIGIN,t:0};function r(_,p,m,y){const v=_.x,x=p.x,E=m.x,S=y.x,C=_.y,L=p.y,A=m.y,b=y.y,k=(S-E)*(C-A)-(b-A)*(v-E),V=(x-v)*(C-A)-(L-C)*(v-E),G=(b-A)*(x-v)-(S-E)*(L-C),X=k/G,ce=V/G;if(G===0&&k!==0||X<=0||X>=1||ce<0||ce>1)return null;if(k===0&&G===0){for(let Z=0;Z<2;Z++)if(o(Z===0?m:y,_,p),i.loc==n.ORIGIN){const ae=Z===0?m:y;return{x:ae.x,y:ae.y,t:i.t}}else if(i.loc==n.BETWEEN){const ae=+(v+i.t*(x-v)).toPrecision(10),z=+(C+i.t*(L-C)).toPrecision(10);return{x:ae,y:z,t:i.t}}return null}else{for(let z=0;z<2;z++)if(o(z===0?m:y,_,p),i.loc==n.ORIGIN){const Se=z===0?m:y;return{x:Se.x,y:Se.y,t:i.t}}const Z=+(v+X*(x-v)).toPrecision(10),ae=+(C+X*(L-C)).toPrecision(10);return{x:Z,y:ae,t:X}}}function o(_,p,m){const y=m.x-p.x,v=m.y-p.y,x=_.x-p.x,E=_.y-p.y,S=y*E-x*v;if(_.x===p.x&&_.y===p.y){i.loc=n.ORIGIN,i.t=0;return}if(_.x===m.x&&_.y===m.y){i.loc=n.DESTINATION,i.t=1;return}if(S<-Number.EPSILON){i.loc=n.LEFT;return}if(S>Number.EPSILON){i.loc=n.RIGHT;return}if(y*x<0||v*E<0){i.loc=n.BEHIND;return}if(Math.sqrt(y*y+v*v)b.t<=A.t+Number.EPSILON&&b.t>=A.t-Number.EPSILON)===void 0&&(m.push(A),y.push(new te(A.x,A.y)))}}return y}function l(_,p,m){const y=new te;p.getCenter(y);const v=[];return m.forEach(x=>{x.boundingBox.containsPoint(y)&&a(_,x.points).forEach(S=>{v.push({identifier:x.identifier,isCW:x.isCW,point:S})})}),v.sort((x,E)=>x.point.x-E.point.x),v}function c(_,p,m,y,v){(v==null||v==="")&&(v="nonzero");const x=new te;_.boundingBox.getCenter(x);const E=[new te(m,x.y),new te(y,x.y)],S=l(E,_.boundingBox,p);S.sort((V,G)=>V.point.x-G.point.x);const C=[],L=[];S.forEach(V=>{V.identifier===_.identifier?C.push(V):L.push(V)});const A=C[0].point.x,b=[];let k=0;for(;k0&&b[b.length-1]===L[k].identifier?b.pop():b.push(L[k].identifier),k++;if(b.push(_.identifier),v==="evenodd"){const V=b.length%2===0,G=b[b.length-2];return{identifier:_.identifier,isHole:V,for:G}}else if(v==="nonzero"){let V=!0,G=null,X=null;for(let ce=0;ce{const p=_.getPoints();let m=-999999999,y=999999999,v=-999999999,x=999999999;for(let E=0;Em&&(m=S.y),S.yv&&(v=S.x),S.x=x&&(u=x-1),{curves:_.curves,points:p,isCW:Nn.isClockWise(p),identifier:-1,boundingBox:new Nm(new te(x,y),new te(v,m))}});d=d.filter(_=>_.points.length>1);for(let _=0;_c(_,d,u,h,e.userData?e.userData.style.fillRule:void 0)),g=[];return d.forEach(_=>{if(!f[_.identifier].isHole){const m=new Pi;m.curves=_.curves,f.filter(v=>v.isHole&&v.for===_.identifier).forEach(v=>{const x=d[v.identifier],E=new Ci;E.curves=x.curves,m.holes.push(E)}),g.push(m)}}),g}static getStrokeStyle(e,t,n,i,r){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",n=n!==void 0?n:"miter",i=i!==void 0?i:"butt",r=r!==void 0?r:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:n,strokeLineCap:i,strokeMiterLimit:r}}static pointsToStroke(e,t,n,i){const r=[],o=[],a=[];if(Ia.pointsToStrokeWithBuffers(e,t,n,i,r,o,a)===0)return null;const l=new at;return l.setAttribute("position",new Oe(r,3)),l.setAttribute("normal",new Oe(o,3)),l.setAttribute("uv",new Oe(a,2)),l}static pointsToStrokeWithBuffers(e,t,n,i,r,o,a,l){const c=new te,u=new te,h=new te,d=new te,f=new te,g=new te,_=new te,p=new te,m=new te,y=new te,v=new te,x=new te,E=new te,S=new te,C=new te,L=new te,A=new te;n=n!==void 0?n:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=J(e);const b=e.length;if(b<2)return 0;const k=e[0].equals(e[b-1]);let V,G=e[0],X;const ce=t.strokeWidth/2,Z=1/(b-1);let ae=0,z,Se,we,Ae,_e=!1,De=0,F=l*3,U=l*2;I(e[0],e[1],c).multiplyScalar(ce),p.copy(e[0]).sub(c),m.copy(e[0]).add(c),y.copy(p),v.copy(m);for(let H=1;HNumber.EPSILON){const he=ce/ie;h.multiplyScalar(-he),d.subVectors(V,G),f.copy(d).setLength(he).add(h),L.copy(f).negate();const B=f.length(),O=d.length();d.divideScalar(O),g.subVectors(X,V);const R=g.length();switch(g.divideScalar(R),d.dot(L)=i&&ie.push(H[he]);return ie.push(H[H.length-1]),ie}}}const Jd={type:"change"},ic={type:"start"},jd={type:"end"},la=new ms,Qd=new ii,eP=Math.cos(70*Su.DEG2RAD);let tP=class extends Yn{constructor(e,t){super(),this.object=e,this.domElement=t,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new N,this.cursor=new N,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:Ji.ROTATE,MIDDLE:Ji.DOLLY,RIGHT:Ji.PAN},this.touches={ONE:ji.ROTATE,TWO:ji.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return a.phi},this.getAzimuthalAngle=function(){return a.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(M){M.addEventListener("keydown",Ee),this._domElementKeyEvents=M},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",Ee),this._domElementKeyEvents=null},this.saveState=function(){n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=function(){n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(Jd),n.update(),r=i.NONE},this.update=function(){const M=new N,le=new Jt().setFromUnitVectors(e.up,new N(0,1,0)),ne=le.clone().invert(),ue=new N,Me=new Jt,We=new N,tt=2*Math.PI;return function(Dt=null){const ht=n.object.position;M.copy(ht).sub(n.target),M.applyQuaternion(le),a.setFromVector3(M),n.autoRotate&&r===i.NONE&&V(b(Dt)),n.enableDamping?(a.theta+=l.theta*n.dampingFactor,a.phi+=l.phi*n.dampingFactor):(a.theta+=l.theta,a.phi+=l.phi);let Ut=n.minAzimuthAngle,Ot=n.maxAzimuthAngle;isFinite(Ut)&&isFinite(Ot)&&(Ut<-Math.PI?Ut+=tt:Ut>Math.PI&&(Ut-=tt),Ot<-Math.PI?Ot+=tt:Ot>Math.PI&&(Ot-=tt),Ut<=Ot?a.theta=Math.max(Ut,Math.min(Ot,a.theta)):a.theta=a.theta>(Ut+Ot)/2?Math.max(Ut,a.theta):Math.min(Ot,a.theta)),a.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,a.phi)),a.makeSafe(),n.enableDamping===!0?n.target.addScaledVector(u,n.dampingFactor):n.target.add(u),n.target.sub(n.cursor),n.target.clampLength(n.minTargetRadius,n.maxTargetRadius),n.target.add(n.cursor);let pn=!1;if(n.zoomToCursor&&S||n.object.isOrthographicCamera)a.radius=we(a.radius);else{const mn=a.radius;a.radius=we(a.radius*c),pn=mn!=a.radius}if(M.setFromSpherical(a),M.applyQuaternion(ne),ht.copy(n.target).add(M),n.object.lookAt(n.target),n.enableDamping===!0?(l.theta*=1-n.dampingFactor,l.phi*=1-n.dampingFactor,u.multiplyScalar(1-n.dampingFactor)):(l.set(0,0,0),u.set(0,0,0)),n.zoomToCursor&&S){let mn=null;if(n.object.isPerspectiveCamera){const gi=M.length();mn=we(gi*c);const Oi=gi-mn;n.object.position.addScaledVector(x,Oi),n.object.updateMatrixWorld(),pn=!!Oi}else if(n.object.isOrthographicCamera){const gi=new N(E.x,E.y,0);gi.unproject(n.object);const Oi=n.object.zoom;n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/c)),n.object.updateProjectionMatrix(),pn=Oi!==n.object.zoom;const Fi=new N(E.x,E.y,0);Fi.unproject(n.object),n.object.position.sub(Fi).add(gi),n.object.updateMatrixWorld(),mn=M.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;mn!==null&&(this.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(mn).add(n.object.position):(la.origin.copy(n.object.position),la.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(la.direction))o||8*(1-Me.dot(n.object.quaternion))>o||We.distanceToSquared(n.target)>o?(n.dispatchEvent(Jd),ue.copy(n.object.position),Me.copy(n.object.quaternion),We.copy(n.target),!0):!1}}(),this.dispose=function(){n.domElement.removeEventListener("contextmenu",Ne),n.domElement.removeEventListener("pointerdown",O),n.domElement.removeEventListener("pointercancel",w),n.domElement.removeEventListener("wheel",de),n.domElement.removeEventListener("pointermove",R),n.domElement.removeEventListener("pointerup",w),n.domElement.getRootNode().removeEventListener("keydown",Be,{capture:!0}),n._domElementKeyEvents!==null&&(n._domElementKeyEvents.removeEventListener("keydown",Ee),n._domElementKeyEvents=null)};const n=this,i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let r=i.NONE;const o=1e-6,a=new Zc,l=new Zc;let c=1;const u=new N,h=new te,d=new te,f=new te,g=new te,_=new te,p=new te,m=new te,y=new te,v=new te,x=new N,E=new te;let S=!1;const C=[],L={};let A=!1;function b(M){return M!==null?2*Math.PI/60*n.autoRotateSpeed*M:2*Math.PI/60/60*n.autoRotateSpeed}function k(M){const le=Math.abs(M*.01);return Math.pow(.95,n.zoomSpeed*le)}function V(M){l.theta-=M}function G(M){l.phi-=M}const X=function(){const M=new N;return function(ne,ue){M.setFromMatrixColumn(ue,0),M.multiplyScalar(-ne),u.add(M)}}(),ce=function(){const M=new N;return function(ne,ue){n.screenSpacePanning===!0?M.setFromMatrixColumn(ue,1):(M.setFromMatrixColumn(ue,0),M.crossVectors(n.object.up,M)),M.multiplyScalar(ne),u.add(M)}}(),Z=function(){const M=new N;return function(ne,ue){const Me=n.domElement;if(n.object.isPerspectiveCamera){const We=n.object.position;M.copy(We).sub(n.target);let tt=M.length();tt*=Math.tan(n.object.fov/2*Math.PI/180),X(2*ne*tt/Me.clientHeight,n.object.matrix),ce(2*ue*tt/Me.clientHeight,n.object.matrix)}else n.object.isOrthographicCamera?(X(ne*(n.object.right-n.object.left)/n.object.zoom/Me.clientWidth,n.object.matrix),ce(ue*(n.object.top-n.object.bottom)/n.object.zoom/Me.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}}();function ae(M){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c/=M:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function z(M){n.object.isPerspectiveCamera||n.object.isOrthographicCamera?c*=M:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function Se(M,le){if(!n.zoomToCursor)return;S=!0;const ne=n.domElement.getBoundingClientRect(),ue=M-ne.left,Me=le-ne.top,We=ne.width,tt=ne.height;E.x=ue/We*2-1,E.y=-(Me/tt)*2+1,x.set(E.x,E.y,1).unproject(n.object).sub(n.object.position).normalize()}function we(M){return Math.max(n.minDistance,Math.min(n.maxDistance,M))}function Ae(M){h.set(M.clientX,M.clientY)}function _e(M){Se(M.clientX,M.clientX),m.set(M.clientX,M.clientY)}function De(M){g.set(M.clientX,M.clientY)}function F(M){d.set(M.clientX,M.clientY),f.subVectors(d,h).multiplyScalar(n.rotateSpeed);const le=n.domElement;V(2*Math.PI*f.x/le.clientHeight),G(2*Math.PI*f.y/le.clientHeight),h.copy(d),n.update()}function U(M){y.set(M.clientX,M.clientY),v.subVectors(y,m),v.y>0?ae(k(v.y)):v.y<0&&z(k(v.y)),m.copy(y),n.update()}function I(M){_.set(M.clientX,M.clientY),p.subVectors(_,g).multiplyScalar(n.panSpeed),Z(p.x,p.y),g.copy(_),n.update()}function T(M){Se(M.clientX,M.clientY),M.deltaY<0?z(k(M.deltaY)):M.deltaY>0&&ae(k(M.deltaY)),n.update()}function se(M){let le=!1;switch(M.code){case n.keys.UP:M.ctrlKey||M.metaKey||M.shiftKey?G(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(0,n.keyPanSpeed),le=!0;break;case n.keys.BOTTOM:M.ctrlKey||M.metaKey||M.shiftKey?G(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(0,-n.keyPanSpeed),le=!0;break;case n.keys.LEFT:M.ctrlKey||M.metaKey||M.shiftKey?V(2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(n.keyPanSpeed,0),le=!0;break;case n.keys.RIGHT:M.ctrlKey||M.metaKey||M.shiftKey?V(-2*Math.PI*n.rotateSpeed/n.domElement.clientHeight):Z(-n.keyPanSpeed,0),le=!0;break}le&&(M.preventDefault(),n.update())}function fe(M){if(C.length===1)h.set(M.pageX,M.pageY);else{const le=it(M),ne=.5*(M.pageX+le.x),ue=.5*(M.pageY+le.y);h.set(ne,ue)}}function K(M){if(C.length===1)g.set(M.pageX,M.pageY);else{const le=it(M),ne=.5*(M.pageX+le.x),ue=.5*(M.pageY+le.y);g.set(ne,ue)}}function D(M){const le=it(M),ne=M.pageX-le.x,ue=M.pageY-le.y,Me=Math.sqrt(ne*ne+ue*ue);m.set(0,Me)}function q(M){n.enableZoom&&D(M),n.enablePan&&K(M)}function J(M){n.enableZoom&&D(M),n.enableRotate&&fe(M)}function H(M){if(C.length==1)d.set(M.pageX,M.pageY);else{const ne=it(M),ue=.5*(M.pageX+ne.x),Me=.5*(M.pageY+ne.y);d.set(ue,Me)}f.subVectors(d,h).multiplyScalar(n.rotateSpeed);const le=n.domElement;V(2*Math.PI*f.x/le.clientHeight),G(2*Math.PI*f.y/le.clientHeight),h.copy(d)}function W(M){if(C.length===1)_.set(M.pageX,M.pageY);else{const le=it(M),ne=.5*(M.pageX+le.x),ue=.5*(M.pageY+le.y);_.set(ne,ue)}p.subVectors(_,g).multiplyScalar(n.panSpeed),Z(p.x,p.y),g.copy(_)}function ie(M){const le=it(M),ne=M.pageX-le.x,ue=M.pageY-le.y,Me=Math.sqrt(ne*ne+ue*ue);y.set(0,Me),v.set(0,Math.pow(y.y/m.y,n.zoomSpeed)),ae(v.y),m.copy(y);const We=(M.pageX+le.x)*.5,tt=(M.pageY+le.y)*.5;Se(We,tt)}function he(M){n.enableZoom&&ie(M),n.enablePan&&W(M)}function B(M){n.enableZoom&&ie(M),n.enableRotate&&H(M)}function O(M){n.enabled!==!1&&(C.length===0&&(n.domElement.setPointerCapture(M.pointerId),n.domElement.addEventListener("pointermove",R),n.domElement.addEventListener("pointerup",w)),!Re(M)&&(rt(M),M.pointerType==="touch"?Je(M):Q(M)))}function R(M){n.enabled!==!1&&(M.pointerType==="touch"?be(M):me(M))}function w(M){switch(Ke(M),C.length){case 0:n.domElement.releasePointerCapture(M.pointerId),n.domElement.removeEventListener("pointermove",R),n.domElement.removeEventListener("pointerup",w),n.dispatchEvent(jd),r=i.NONE;break;case 1:const le=C[0],ne=L[le];Je({pointerId:le,pageX:ne.x,pageY:ne.y});break}}function Q(M){let le;switch(M.button){case 0:le=n.mouseButtons.LEFT;break;case 1:le=n.mouseButtons.MIDDLE;break;case 2:le=n.mouseButtons.RIGHT;break;default:le=-1}switch(le){case Ji.DOLLY:if(n.enableZoom===!1)return;_e(M),r=i.DOLLY;break;case Ji.ROTATE:if(M.ctrlKey||M.metaKey||M.shiftKey){if(n.enablePan===!1)return;De(M),r=i.PAN}else{if(n.enableRotate===!1)return;Ae(M),r=i.ROTATE}break;case Ji.PAN:if(M.ctrlKey||M.metaKey||M.shiftKey){if(n.enableRotate===!1)return;Ae(M),r=i.ROTATE}else{if(n.enablePan===!1)return;De(M),r=i.PAN}break;default:r=i.NONE}r!==i.NONE&&n.dispatchEvent(ic)}function me(M){switch(r){case i.ROTATE:if(n.enableRotate===!1)return;F(M);break;case i.DOLLY:if(n.enableZoom===!1)return;U(M);break;case i.PAN:if(n.enablePan===!1)return;I(M);break}}function de(M){n.enabled===!1||n.enableZoom===!1||r!==i.NONE||(M.preventDefault(),n.dispatchEvent(ic),T(ye(M)),n.dispatchEvent(jd))}function ye(M){const le=M.deltaMode,ne={clientX:M.clientX,clientY:M.clientY,deltaY:M.deltaY};switch(le){case 1:ne.deltaY*=16;break;case 2:ne.deltaY*=100;break}return M.ctrlKey&&!A&&(ne.deltaY*=10),ne}function Be(M){M.key==="Control"&&(A=!0,n.domElement.getRootNode().addEventListener("keyup",Ce,{passive:!0,capture:!0}))}function Ce(M){M.key==="Control"&&(A=!1,n.domElement.getRootNode().removeEventListener("keyup",Ce,{passive:!0,capture:!0}))}function Ee(M){n.enabled===!1||n.enablePan===!1||se(M)}function Je(M){switch(nt(M),C.length){case 1:switch(n.touches.ONE){case ji.ROTATE:if(n.enableRotate===!1)return;fe(M),r=i.TOUCH_ROTATE;break;case ji.PAN:if(n.enablePan===!1)return;K(M),r=i.TOUCH_PAN;break;default:r=i.NONE}break;case 2:switch(n.touches.TWO){case ji.DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;q(M),r=i.TOUCH_DOLLY_PAN;break;case ji.DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;J(M),r=i.TOUCH_DOLLY_ROTATE;break;default:r=i.NONE}break;default:r=i.NONE}r!==i.NONE&&n.dispatchEvent(ic)}function be(M){switch(nt(M),r){case i.TOUCH_ROTATE:if(n.enableRotate===!1)return;H(M),n.update();break;case i.TOUCH_PAN:if(n.enablePan===!1)return;W(M),n.update();break;case i.TOUCH_DOLLY_PAN:if(n.enableZoom===!1&&n.enablePan===!1)return;he(M),n.update();break;case i.TOUCH_DOLLY_ROTATE:if(n.enableZoom===!1&&n.enableRotate===!1)return;B(M),n.update();break;default:r=i.NONE}}function Ne(M){n.enabled!==!1&&M.preventDefault()}function rt(M){C.push(M.pointerId)}function Ke(M){delete L[M.pointerId];for(let le=0;le{var o;const r=rn("TresOrbitControls");return ee(t)?(Y(),Xe(r,{key:0,args:[ee(e),(o=ee(t))==null?void 0:o.domElement]},null,8,["args"])):Fe("",!0)}}}),iP=qe(nP,[["__scopeId","data-v-50048212"]]),sP=`// +}`;class vA{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){const i=new Pt,r=e.properties.get(i);r.__webglTexture=t.texture,(t.depthNear!=n.depthNear||t.depthFar!=n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,n=new Ln({vertexShader:mA,fragmentShader:gA,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Nt(new Xs(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}}class _A extends ui{constructor(e,t){super();const n=this;let i=null,r=1,o=null,a="local-floor",l=1,c=null,u=null,h=null,d=null,f=null,g=null;const v=new vA,p=t.getContextAttributes();let m=null,y=null;const _=[],x=[],A=new se;let b=null;const E=new Ut;E.layers.enable(1),E.viewport=new gt;const I=new Ut;I.layers.enable(2),I.viewport=new gt;const w=[E,I],M=new Ip;M.layers.enable(1),M.layers.enable(2);let F=null,z=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(U){let D=_[U];return D===void 0&&(D=new Dl,_[U]=D),D.getTargetRaySpace()},this.getControllerGrip=function(U){let D=_[U];return D===void 0&&(D=new Dl,_[U]=D),D.getGripSpace()},this.getHand=function(U){let D=_[U];return D===void 0&&(D=new Dl,_[U]=D),D.getHandSpace()};function G(U){const D=x.indexOf(U.inputSource);if(D===-1)return;const R=_[D];R!==void 0&&(R.update(U.inputSource,U.frame,c||o),R.dispatchEvent({type:U.type,data:U.inputSource}))}function q(){i.removeEventListener("select",G),i.removeEventListener("selectstart",G),i.removeEventListener("selectend",G),i.removeEventListener("squeeze",G),i.removeEventListener("squeezestart",G),i.removeEventListener("squeezeend",G),i.removeEventListener("end",q),i.removeEventListener("inputsourceschange",ae);for(let U=0;U<_.length;U++){const D=x[U];D!==null&&(x[U]=null,_[U].disconnect(D))}F=null,z=null,v.reset(),e.setRenderTarget(m),f=null,d=null,h=null,i=null,y=null,ze.stop(),n.isPresenting=!1,e.setPixelRatio(b),e.setSize(A.width,A.height,!1),n.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(U){r=U,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(U){a=U,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return c||o},this.setReferenceSpace=function(U){c=U},this.getBaseLayer=function(){return d!==null?d:f},this.getBinding=function(){return h},this.getFrame=function(){return g},this.getSession=function(){return i},this.setSession=async function(U){if(i=U,i!==null){if(m=e.getRenderTarget(),i.addEventListener("select",G),i.addEventListener("selectstart",G),i.addEventListener("selectend",G),i.addEventListener("squeeze",G),i.addEventListener("squeezestart",G),i.addEventListener("squeezeend",G),i.addEventListener("end",q),i.addEventListener("inputsourceschange",ae),p.xrCompatible!==!0&&await t.makeXRCompatible(),b=e.getPixelRatio(),e.getSize(A),i.renderState.layers===void 0){const D={antialias:p.antialias,alpha:!0,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:r};f=new XRWebGLLayer(i,t,D),i.updateRenderState({baseLayer:f}),e.setPixelRatio(1),e.setSize(f.framebufferWidth,f.framebufferHeight,!1),y=new In(f.framebufferWidth,f.framebufferHeight,{format:un,type:ai,colorSpace:e.outputColorSpace,stencilBuffer:p.stencil})}else{let D=null,R=null,T=null;p.depth&&(T=p.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,D=p.stencil?os:ts,R=p.stencil?rs:ss);const ie={colorFormat:t.RGBA8,depthFormat:T,scaleFactor:r};h=new XRWebGLBinding(i,t),d=h.createProjectionLayer(ie),i.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),y=new In(d.textureWidth,d.textureHeight,{format:un,type:ai,depthTexture:new Mu(d.textureWidth,d.textureHeight,R,void 0,void 0,void 0,void 0,void 0,void 0,D),stencilBuffer:p.stencil,colorSpace:e.outputColorSpace,samples:p.antialias?4:0,resolveDepthBuffer:d.ignoreDepthValues===!1})}y.isXRRenderTarget=!0,this.setFoveation(l),c=null,o=await i.requestReferenceSpace(a),ze.setContext(i),ze.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(i!==null)return i.environmentBlendMode};function ae(U){for(let D=0;D=0&&(x[T]=null,_[T].disconnect(R))}for(let D=0;D=x.length){x.push(R),T=he;break}else if(x[he]===null){x[he]=R,T=he;break}if(T===-1)break}const ie=_[T];ie&&ie.connect(R)}}const j=new N,oe=new N;function B(U,D,R){j.setFromMatrixPosition(D.matrixWorld),oe.setFromMatrixPosition(R.matrixWorld);const T=j.distanceTo(oe),ie=D.projectionMatrix.elements,he=R.projectionMatrix.elements,J=ie[14]/(ie[10]-1),L=ie[14]/(ie[10]+1),X=(ie[9]+1)/ie[5],K=(ie[9]-1)/ie[5],H=(ie[8]-1)/ie[0],$=(he[8]+1)/he[0],te=J*H,le=J*$,k=T/(-H+$),O=k*-H;D.matrixWorld.decompose(U.position,U.quaternion,U.scale),U.translateX(O),U.translateZ(k),U.matrixWorld.compose(U.position,U.quaternion,U.scale),U.matrixWorldInverse.copy(U.matrixWorld).invert();const P=J+k,S=L+k,Q=te-O,pe=le+(T-O),ce=X*L/S*P,ve=K*L/S*P;U.projectionMatrix.makePerspective(Q,pe,ce,ve,P,S),U.projectionMatrixInverse.copy(U.projectionMatrix).invert()}function Me(U,D){D===null?U.matrixWorld.copy(U.matrix):U.matrixWorld.multiplyMatrices(D.matrixWorld,U.matrix),U.matrixWorldInverse.copy(U.matrixWorld).invert()}this.updateCamera=function(U){if(i===null)return;v.texture!==null&&(U.near=v.depthNear,U.far=v.depthFar),M.near=I.near=E.near=U.near,M.far=I.far=E.far=U.far,(F!==M.near||z!==M.far)&&(i.updateRenderState({depthNear:M.near,depthFar:M.far}),F=M.near,z=M.far,E.near=F,E.far=z,I.near=F,I.far=z,E.updateProjectionMatrix(),I.updateProjectionMatrix(),U.updateProjectionMatrix());const D=U.parent,R=M.cameras;Me(M,D);for(let T=0;T0&&(p.alphaTest.value=m.alphaTest);const y=e.get(m),_=y.envMap,x=y.envMapRotation;_&&(p.envMap.value=_,zi.copy(x),zi.x*=-1,zi.y*=-1,zi.z*=-1,_.isCubeTexture&&_.isRenderTargetTexture===!1&&(zi.y*=-1,zi.z*=-1),p.envMapRotation.value.setFromMatrix4(yA.makeRotationFromEuler(zi)),p.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=m.reflectivity,p.ior.value=m.ior,p.refractionRatio.value=m.refractionRatio),m.lightMap&&(p.lightMap.value=m.lightMap,p.lightMapIntensity.value=m.lightMapIntensity,t(m.lightMap,p.lightMapTransform)),m.aoMap&&(p.aoMap.value=m.aoMap,p.aoMapIntensity.value=m.aoMapIntensity,t(m.aoMap,p.aoMapTransform))}function o(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,m.map&&(p.map.value=m.map,t(m.map,p.mapTransform))}function a(p,m){p.dashSize.value=m.dashSize,p.totalSize.value=m.dashSize+m.gapSize,p.scale.value=m.scale}function l(p,m,y,_){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.size.value=m.size*y,p.scale.value=_*.5,m.map&&(p.map.value=m.map,t(m.map,p.uvTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,t(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function c(p,m){p.diffuse.value.copy(m.color),p.opacity.value=m.opacity,p.rotation.value=m.rotation,m.map&&(p.map.value=m.map,t(m.map,p.mapTransform)),m.alphaMap&&(p.alphaMap.value=m.alphaMap,t(m.alphaMap,p.alphaMapTransform)),m.alphaTest>0&&(p.alphaTest.value=m.alphaTest)}function u(p,m){p.specular.value.copy(m.specular),p.shininess.value=Math.max(m.shininess,1e-4)}function h(p,m){m.gradientMap&&(p.gradientMap.value=m.gradientMap)}function d(p,m){p.metalness.value=m.metalness,m.metalnessMap&&(p.metalnessMap.value=m.metalnessMap,t(m.metalnessMap,p.metalnessMapTransform)),p.roughness.value=m.roughness,m.roughnessMap&&(p.roughnessMap.value=m.roughnessMap,t(m.roughnessMap,p.roughnessMapTransform)),m.envMap&&(p.envMapIntensity.value=m.envMapIntensity)}function f(p,m,y){p.ior.value=m.ior,m.sheen>0&&(p.sheenColor.value.copy(m.sheenColor).multiplyScalar(m.sheen),p.sheenRoughness.value=m.sheenRoughness,m.sheenColorMap&&(p.sheenColorMap.value=m.sheenColorMap,t(m.sheenColorMap,p.sheenColorMapTransform)),m.sheenRoughnessMap&&(p.sheenRoughnessMap.value=m.sheenRoughnessMap,t(m.sheenRoughnessMap,p.sheenRoughnessMapTransform))),m.clearcoat>0&&(p.clearcoat.value=m.clearcoat,p.clearcoatRoughness.value=m.clearcoatRoughness,m.clearcoatMap&&(p.clearcoatMap.value=m.clearcoatMap,t(m.clearcoatMap,p.clearcoatMapTransform)),m.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=m.clearcoatRoughnessMap,t(m.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),m.clearcoatNormalMap&&(p.clearcoatNormalMap.value=m.clearcoatNormalMap,t(m.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(m.clearcoatNormalScale),m.side===nn&&p.clearcoatNormalScale.value.negate())),m.dispersion>0&&(p.dispersion.value=m.dispersion),m.iridescence>0&&(p.iridescence.value=m.iridescence,p.iridescenceIOR.value=m.iridescenceIOR,p.iridescenceThicknessMinimum.value=m.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=m.iridescenceThicknessRange[1],m.iridescenceMap&&(p.iridescenceMap.value=m.iridescenceMap,t(m.iridescenceMap,p.iridescenceMapTransform)),m.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=m.iridescenceThicknessMap,t(m.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),m.transmission>0&&(p.transmission.value=m.transmission,p.transmissionSamplerMap.value=y.texture,p.transmissionSamplerSize.value.set(y.width,y.height),m.transmissionMap&&(p.transmissionMap.value=m.transmissionMap,t(m.transmissionMap,p.transmissionMapTransform)),p.thickness.value=m.thickness,m.thicknessMap&&(p.thicknessMap.value=m.thicknessMap,t(m.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=m.attenuationDistance,p.attenuationColor.value.copy(m.attenuationColor)),m.anisotropy>0&&(p.anisotropyVector.value.set(m.anisotropy*Math.cos(m.anisotropyRotation),m.anisotropy*Math.sin(m.anisotropyRotation)),m.anisotropyMap&&(p.anisotropyMap.value=m.anisotropyMap,t(m.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=m.specularIntensity,p.specularColor.value.copy(m.specularColor),m.specularColorMap&&(p.specularColorMap.value=m.specularColorMap,t(m.specularColorMap,p.specularColorMapTransform)),m.specularIntensityMap&&(p.specularIntensityMap.value=m.specularIntensityMap,t(m.specularIntensityMap,p.specularIntensityMapTransform))}function g(p,m){m.matcap&&(p.matcap.value=m.matcap)}function v(p,m){const y=e.get(m).light;p.referencePosition.value.setFromMatrixPosition(y.matrixWorld),p.nearDistance.value=y.shadow.camera.near,p.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:i}}function MA(s,e,t,n){let i={},r={},o=[];const a=s.getParameter(s.MAX_UNIFORM_BUFFER_BINDINGS);function l(y,_){const x=_.program;n.uniformBlockBinding(y,x)}function c(y,_){let x=i[y.id];x===void 0&&(g(y),x=u(y),i[y.id]=x,y.addEventListener("dispose",p));const A=_.program;n.updateUBOMapping(y,A);const b=e.render.frame;r[y.id]!==b&&(d(y),r[y.id]=b)}function u(y){const _=h();y.__bindingPointIndex=_;const x=s.createBuffer(),A=y.__size,b=y.usage;return s.bindBuffer(s.UNIFORM_BUFFER,x),s.bufferData(s.UNIFORM_BUFFER,A,b),s.bindBuffer(s.UNIFORM_BUFFER,null),s.bindBufferBase(s.UNIFORM_BUFFER,_,x),x}function h(){for(let y=0;y0&&(x+=A-b),y.__size=x,y.__cache={},this}function v(y){const _={boundary:0,storage:0};return typeof y=="number"||typeof y=="boolean"?(_.boundary=4,_.storage=4):y.isVector2?(_.boundary=8,_.storage=8):y.isVector3||y.isColor?(_.boundary=16,_.storage=12):y.isVector4?(_.boundary=16,_.storage=16):y.isMatrix3?(_.boundary=48,_.storage=48):y.isMatrix4?(_.boundary=64,_.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),_}function p(y){const _=y.target;_.removeEventListener("dispose",p);const x=o.indexOf(_.__bindingPointIndex);o.splice(x,1),s.deleteBuffer(i[_.id]),delete i[_.id],delete r[_.id]}function m(){for(const y in i)s.deleteBuffer(i[y]);o=[],i={},r={}}return{bind:l,update:c,dispose:m}}class ha{constructor(e={}){const{canvas:t=gp(),context:n=null,depth:i=!0,stencil:r=!1,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:h=!1}=e;this.isWebGLRenderer=!0;let d;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");d=n.getContextAttributes().alpha}else d=o;const f=new Uint32Array(4),g=new Int32Array(4);let v=null,p=null;const m=[],y=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=ln,this.toneMapping=Hn,this.toneMappingExposure=1;const _=this;let x=!1,A=0,b=0,E=null,I=-1,w=null;const M=new gt,F=new gt;let z=null;const G=new Pe(0);let q=0,ae=t.width,j=t.height,oe=1,B=null,Me=null;const be=new gt(0,0,ae,j),Ae=new gt(0,0,ae,j);let ge=!1;const ze=new Yr;let U=!1,D=!1;const R=new Ye,T=new N,ie={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let he=!1;function J(){return E===null?oe:1}let L=n;function X(C,W){return t.getContext(C,W)}try{const C={alpha:!0,depth:i,stencil:r,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:h};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${Hr}`),t.addEventListener("webglcontextlost",Ie,!1),t.addEventListener("webglcontextrestored",de,!1),t.addEventListener("webglcontextcreationerror",_e,!1),L===null){const W="webgl2";if(L=X(W,C),L===null)throw X(W)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(C){throw console.error("THREE.WebGLRenderer: "+C.message),C}let K,H,$,te,le,k,O,P,S,Q,pe,ce,ve,He,Ee,Te,Qe,xe,Ue,st,Je,Re,rt,at;function Rt(){K=new Dw(L),K.init(),Re=new Rp(L,K),H=new Cw(L,K,e,Re),$=new dA(L),te=new Fw(L),le=new eA,k=new fA(L,K,$,le,H,Re,te),O=new Rw(_),P=new Nw(_),S=new WM(L),rt=new Tw(L,S),Q=new Uw(L,S,te,rt),pe=new Bw(L,Q,S,te),Ue=new kw(L,H,k),Te=new Pw(le),ce=new Q1(_,O,P,K,H,rt,Te),ve=new xA(_,le),He=new nA,Ee=new lA(K),xe=new Aw(_,O,P,$,pe,d,l),Qe=new hA(_,pe,H),at=new MA(L,te,H,$),st=new Ew(L,K,te),Je=new Ow(L,K,te),te.programs=ce.programs,_.capabilities=H,_.extensions=K,_.properties=le,_.renderLists=He,_.shadowMap=Qe,_.state=$,_.info=te}Rt();const V=new _A(_,L);this.xr=V,this.getContext=function(){return L},this.getContextAttributes=function(){return L.getContextAttributes()},this.forceContextLoss=function(){const C=K.get("WEBGL_lose_context");C&&C.loseContext()},this.forceContextRestore=function(){const C=K.get("WEBGL_lose_context");C&&C.restoreContext()},this.getPixelRatio=function(){return oe},this.setPixelRatio=function(C){C!==void 0&&(oe=C,this.setSize(ae,j,!1))},this.getSize=function(C){return C.set(ae,j)},this.setSize=function(C,W,ne=!0){if(V.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}ae=C,j=W,t.width=Math.floor(C*oe),t.height=Math.floor(W*oe),ne===!0&&(t.style.width=C+"px",t.style.height=W+"px"),this.setViewport(0,0,C,W)},this.getDrawingBufferSize=function(C){return C.set(ae*oe,j*oe).floor()},this.setDrawingBufferSize=function(C,W,ne){ae=C,j=W,oe=ne,t.width=Math.floor(C*ne),t.height=Math.floor(W*ne),this.setViewport(0,0,C,W)},this.getCurrentViewport=function(C){return C.copy(M)},this.getViewport=function(C){return C.copy(be)},this.setViewport=function(C,W,ne,re){C.isVector4?be.set(C.x,C.y,C.z,C.w):be.set(C,W,ne,re),$.viewport(M.copy(be).multiplyScalar(oe).round())},this.getScissor=function(C){return C.copy(Ae)},this.setScissor=function(C,W,ne,re){C.isVector4?Ae.set(C.x,C.y,C.z,C.w):Ae.set(C,W,ne,re),$.scissor(F.copy(Ae).multiplyScalar(oe).round())},this.getScissorTest=function(){return ge},this.setScissorTest=function(C){$.setScissorTest(ge=C)},this.setOpaqueSort=function(C){B=C},this.setTransparentSort=function(C){Me=C},this.getClearColor=function(C){return C.copy(xe.getClearColor())},this.setClearColor=function(){xe.setClearColor.apply(xe,arguments)},this.getClearAlpha=function(){return xe.getClearAlpha()},this.setClearAlpha=function(){xe.setClearAlpha.apply(xe,arguments)},this.clear=function(C=!0,W=!0,ne=!0){let re=0;if(C){let Z=!1;if(E!==null){const Se=E.texture.format;Z=Se===du||Se===hu||Se===uu}if(Z){const Se=E.texture.type,Le=Se===ai||Se===ss||Se===Sr||Se===rs||Se===au||Se===lu,Oe=xe.getClearColor(),Ge=xe.getClearAlpha(),Ke=Oe.r,je=Oe.g,qe=Oe.b;Le?(f[0]=Ke,f[1]=je,f[2]=qe,f[3]=Ge,L.clearBufferuiv(L.COLOR,0,f)):(g[0]=Ke,g[1]=je,g[2]=qe,g[3]=Ge,L.clearBufferiv(L.COLOR,0,g))}else re|=L.COLOR_BUFFER_BIT}W&&(re|=L.DEPTH_BUFFER_BIT),ne&&(re|=L.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),L.clear(re)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",Ie,!1),t.removeEventListener("webglcontextrestored",de,!1),t.removeEventListener("webglcontextcreationerror",_e,!1),He.dispose(),Ee.dispose(),le.dispose(),O.dispose(),P.dispose(),pe.dispose(),rt.dispose(),at.dispose(),ce.dispose(),V.dispose(),V.removeEventListener("sessionstart",On),V.removeEventListener("sessionend",Fn),Ni.stop()};function Ie(C){C.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),x=!0}function de(){console.log("THREE.WebGLRenderer: Context Restored."),x=!1;const C=te.autoReset,W=Qe.enabled,ne=Qe.autoUpdate,re=Qe.needsUpdate,Z=Qe.type;Rt(),te.autoReset=C,Qe.enabled=W,Qe.autoUpdate=ne,Qe.needsUpdate=re,Qe.type=Z}function _e(C){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",C.statusMessage)}function we(C){const W=C.target;W.removeEventListener("dispose",we),et(W)}function et(C){ut(C),le.remove(C)}function ut(C){const W=le.get(C).programs;W!==void 0&&(W.forEach(function(ne){ce.releaseProgram(ne)}),C.isShaderMaterial&&ce.releaseShaderCache(C))}this.renderBufferDirect=function(C,W,ne,re,Z,Se){W===null&&(W=ie);const Le=Z.isMesh&&Z.matrixWorld.determinant()<0,Oe=Om(C,W,ne,re,Z);$.setMaterial(re,Le);let Ge=ne.index,Ke=1;if(re.wireframe===!0){if(Ge=Q.getWireframeAttribute(ne),Ge===void 0)return;Ke=2}const je=ne.drawRange,qe=ne.attributes.position;let dt=je.start*Ke,At=(je.start+je.count)*Ke;Se!==null&&(dt=Math.max(dt,Se.start*Ke),At=Math.min(At,(Se.start+Se.count)*Ke)),Ge!==null?(dt=Math.max(dt,0),At=Math.min(At,Ge.count)):qe!=null&&(dt=Math.max(dt,0),At=Math.min(At,qe.count));const Tt=At-dt;if(Tt<0||Tt===1/0)return;rt.setup(Z,re,Oe,ne,Ge);let dn,mt=st;if(Ge!==null&&(dn=S.get(Ge),mt=Je,mt.setIndex(dn)),Z.isMesh)re.wireframe===!0?($.setLineWidth(re.wireframeLinewidth*J()),mt.setMode(L.LINES)):mt.setMode(L.TRIANGLES);else if(Z.isLine){let We=re.linewidth;We===void 0&&(We=1),$.setLineWidth(We*J()),Z.isLineSegments?mt.setMode(L.LINES):Z.isLineLoop?mt.setMode(L.LINE_LOOP):mt.setMode(L.LINE_STRIP)}else Z.isPoints?mt.setMode(L.POINTS):Z.isSprite&&mt.setMode(L.TRIANGLES);if(Z.isBatchedMesh)Z._multiDrawInstances!==null?mt.renderMultiDrawInstances(Z._multiDrawStarts,Z._multiDrawCounts,Z._multiDrawCount,Z._multiDrawInstances):mt.renderMultiDraw(Z._multiDrawStarts,Z._multiDrawCounts,Z._multiDrawCount);else if(Z.isInstancedMesh)mt.renderInstances(dt,Tt,Z.count);else if(ne.isInstancedBufferGeometry){const We=ne._maxInstanceCount!==void 0?ne._maxInstanceCount:1/0,jt=Math.min(ne.instanceCount,We);mt.renderInstances(dt,Tt,jt)}else mt.render(dt,Tt)};function It(C,W,ne){C.transparent===!0&&C.side===En&&C.forceSinglePass===!1?(C.side=nn,C.needsUpdate=!0,io(C,W,ne),C.side=ri,C.needsUpdate=!0,io(C,W,ne),C.side=En):io(C,W,ne)}this.compile=function(C,W,ne=null){ne===null&&(ne=C),p=Ee.get(ne),p.init(W),y.push(p),ne.traverseVisible(function(Z){Z.isLight&&Z.layers.test(W.layers)&&(p.pushLight(Z),Z.castShadow&&p.pushShadow(Z))}),C!==ne&&C.traverseVisible(function(Z){Z.isLight&&Z.layers.test(W.layers)&&(p.pushLight(Z),Z.castShadow&&p.pushShadow(Z))}),p.setupLights();const re=new Set;return C.traverse(function(Z){const Se=Z.material;if(Se)if(Array.isArray(Se))for(let Le=0;Le{function Se(){if(re.forEach(function(Le){le.get(Le).currentProgram.isReady()&&re.delete(Le)}),re.size===0){Z(C);return}setTimeout(Se,10)}K.get("KHR_parallel_shader_compile")!==null?Se():setTimeout(Se,10)})};let Bt=null;function vt(C){Bt&&Bt(C)}function On(){Ni.stop()}function Fn(){Ni.start()}const Ni=new wp;Ni.setAnimationLoop(vt),typeof self<"u"&&Ni.setContext(self),this.setAnimationLoop=function(C){Bt=C,V.setAnimationLoop(C),C===null?Ni.stop():Ni.start()},V.addEventListener("sessionstart",On),V.addEventListener("sessionend",Fn),this.render=function(C,W){if(W!==void 0&&W.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(x===!0)return;if(C.matrixWorldAutoUpdate===!0&&C.updateMatrixWorld(),W.parent===null&&W.matrixWorldAutoUpdate===!0&&W.updateMatrixWorld(),V.enabled===!0&&V.isPresenting===!0&&(V.cameraAutoUpdate===!0&&V.updateCamera(W),W=V.getCamera()),C.isScene===!0&&C.onBeforeRender(_,C,W,E),p=Ee.get(C,y.length),p.init(W),y.push(p),R.multiplyMatrices(W.projectionMatrix,W.matrixWorldInverse),ze.setFromProjectionMatrix(R),D=this.localClippingEnabled,U=Te.init(this.clippingPlanes,D),v=He.get(C,m.length),v.init(),m.push(v),V.enabled===!0&&V.isPresenting===!0){const Se=_.xr.getDepthSensingMesh();Se!==null&&rl(Se,W,-1/0,_.sortObjects)}rl(C,W,0,_.sortObjects),v.finish(),_.sortObjects===!0&&v.sort(B,Me),he=V.enabled===!1||V.isPresenting===!1||V.hasDepthSensing()===!1,he&&xe.addToRenderList(v,C),this.info.render.frame++,U===!0&&Te.beginShadows();const ne=p.state.shadowsArray;Qe.render(ne,C,W),U===!0&&Te.endShadows(),this.info.autoReset===!0&&this.info.reset();const re=v.opaque,Z=v.transmissive;if(p.setupLights(),W.isArrayCamera){const Se=W.cameras;if(Z.length>0)for(let Le=0,Oe=Se.length;Le0&&Zu(re,Z,C,W),he&&xe.render(C),Yu(v,C,W);E!==null&&(k.updateMultisampleRenderTarget(E),k.updateRenderTargetMipmap(E)),C.isScene===!0&&C.onAfterRender(_,C,W),rt.resetDefaultState(),I=-1,w=null,y.pop(),y.length>0?(p=y[y.length-1],U===!0&&Te.setGlobalState(_.clippingPlanes,p.state.camera)):p=null,m.pop(),m.length>0?v=m[m.length-1]:v=null};function rl(C,W,ne,re){if(C.visible===!1)return;if(C.layers.test(W.layers)){if(C.isGroup)ne=C.renderOrder;else if(C.isLOD)C.autoUpdate===!0&&C.update(W);else if(C.isLight)p.pushLight(C),C.castShadow&&p.pushShadow(C);else if(C.isSprite){if(!C.frustumCulled||ze.intersectsSprite(C)){re&&T.setFromMatrixPosition(C.matrixWorld).applyMatrix4(R);const Le=pe.update(C),Oe=C.material;Oe.visible&&v.push(C,Le,Oe,ne,T.z,null)}}else if((C.isMesh||C.isLine||C.isPoints)&&(!C.frustumCulled||ze.intersectsObject(C))){const Le=pe.update(C),Oe=C.material;if(re&&(C.boundingSphere!==void 0?(C.boundingSphere===null&&C.computeBoundingSphere(),T.copy(C.boundingSphere.center)):(Le.boundingSphere===null&&Le.computeBoundingSphere(),T.copy(Le.boundingSphere.center)),T.applyMatrix4(C.matrixWorld).applyMatrix4(R)),Array.isArray(Oe)){const Ge=Le.groups;for(let Ke=0,je=Ge.length;Ke0&&no(Z,W,ne),Se.length>0&&no(Se,W,ne),Le.length>0&&no(Le,W,ne),$.buffers.depth.setTest(!0),$.buffers.depth.setMask(!0),$.buffers.color.setMask(!0),$.setPolygonOffset(!1)}function Zu(C,W,ne,re){if((ne.isScene===!0?ne.overrideMaterial:null)!==null)return;p.state.transmissionRenderTarget[re.id]===void 0&&(p.state.transmissionRenderTarget[re.id]=new In(1,1,{generateMipmaps:!0,type:K.has("EXT_color_buffer_half_float")||K.has("EXT_color_buffer_float")?Wr:ai,minFilter:Bn,samples:4,stencilBuffer:r,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ht.workingColorSpace}));const Se=p.state.transmissionRenderTarget[re.id],Le=re.viewport||M;Se.setSize(Le.z,Le.w);const Oe=_.getRenderTarget();_.setRenderTarget(Se),_.getClearColor(G),q=_.getClearAlpha(),q<1&&_.setClearColor(16777215,.5),he?xe.render(ne):_.clear();const Ge=_.toneMapping;_.toneMapping=Hn;const Ke=re.viewport;if(re.viewport!==void 0&&(re.viewport=void 0),p.setupLightsView(re),U===!0&&Te.setGlobalState(_.clippingPlanes,re),no(C,ne,re),k.updateMultisampleRenderTarget(Se),k.updateRenderTargetMipmap(Se),K.has("WEBGL_multisampled_render_to_texture")===!1){let je=!1;for(let qe=0,dt=W.length;qe0),qe=!!ne.morphAttributes.position,dt=!!ne.morphAttributes.normal,At=!!ne.morphAttributes.color;let Tt=Hn;re.toneMapped&&(E===null||E.isXRRenderTarget===!0)&&(Tt=_.toneMapping);const dn=ne.morphAttributes.position||ne.morphAttributes.normal||ne.morphAttributes.color,mt=dn!==void 0?dn.length:0,We=le.get(re),jt=p.state.lights;if(U===!0&&(D===!0||C!==w)){const yn=C===w&&re.id===I;Te.setState(re,C,yn)}let _t=!1;re.version===We.__version?(We.needsLights&&We.lightsStateVersion!==jt.state.version||We.outputColorSpace!==Oe||Z.isBatchedMesh&&We.batching===!1||!Z.isBatchedMesh&&We.batching===!0||Z.isBatchedMesh&&We.batchingColor===!0&&Z.colorTexture===null||Z.isBatchedMesh&&We.batchingColor===!1&&Z.colorTexture!==null||Z.isInstancedMesh&&We.instancing===!1||!Z.isInstancedMesh&&We.instancing===!0||Z.isSkinnedMesh&&We.skinning===!1||!Z.isSkinnedMesh&&We.skinning===!0||Z.isInstancedMesh&&We.instancingColor===!0&&Z.instanceColor===null||Z.isInstancedMesh&&We.instancingColor===!1&&Z.instanceColor!==null||Z.isInstancedMesh&&We.instancingMorph===!0&&Z.morphTexture===null||Z.isInstancedMesh&&We.instancingMorph===!1&&Z.morphTexture!==null||We.envMap!==Ge||re.fog===!0&&We.fog!==Se||We.numClippingPlanes!==void 0&&(We.numClippingPlanes!==Te.numPlanes||We.numIntersection!==Te.numIntersection)||We.vertexAlphas!==Ke||We.vertexTangents!==je||We.morphTargets!==qe||We.morphNormals!==dt||We.morphColors!==At||We.toneMapping!==Tt||We.morphTargetsCount!==mt)&&(_t=!0):(_t=!0,We.__version=re.version);let qn=We.currentProgram;_t===!0&&(qn=io(re,W,Z));let so=!1,Di=!1,ol=!1;const zt=qn.getUniforms(),fi=We.uniforms;if($.useProgram(qn.program)&&(so=!0,Di=!0,ol=!0),re.id!==I&&(I=re.id,Di=!0),so||w!==C){zt.setValue(L,"projectionMatrix",C.projectionMatrix),zt.setValue(L,"viewMatrix",C.matrixWorldInverse);const yn=zt.map.cameraPosition;yn!==void 0&&yn.setValue(L,T.setFromMatrixPosition(C.matrixWorld)),H.logarithmicDepthBuffer&&zt.setValue(L,"logDepthBufFC",2/(Math.log(C.far+1)/Math.LN2)),(re.isMeshPhongMaterial||re.isMeshToonMaterial||re.isMeshLambertMaterial||re.isMeshBasicMaterial||re.isMeshStandardMaterial||re.isShaderMaterial)&&zt.setValue(L,"isOrthographic",C.isOrthographicCamera===!0),w!==C&&(w=C,Di=!0,ol=!0)}if(Z.isSkinnedMesh){zt.setOptional(L,Z,"bindMatrix"),zt.setOptional(L,Z,"bindMatrixInverse");const yn=Z.skeleton;yn&&(yn.boneTexture===null&&yn.computeBoneTexture(),zt.setValue(L,"boneTexture",yn.boneTexture,k))}Z.isBatchedMesh&&(zt.setOptional(L,Z,"batchingTexture"),zt.setValue(L,"batchingTexture",Z._matricesTexture,k),zt.setOptional(L,Z,"batchingColorTexture"),Z._colorsTexture!==null&&zt.setValue(L,"batchingColorTexture",Z._colorsTexture,k));const al=ne.morphAttributes;if((al.position!==void 0||al.normal!==void 0||al.color!==void 0)&&Ue.update(Z,ne,qn),(Di||We.receiveShadow!==Z.receiveShadow)&&(We.receiveShadow=Z.receiveShadow,zt.setValue(L,"receiveShadow",Z.receiveShadow)),re.isMeshGouraudMaterial&&re.envMap!==null&&(fi.envMap.value=Ge,fi.flipEnvMap.value=Ge.isCubeTexture&&Ge.isRenderTargetTexture===!1?-1:1),re.isMeshStandardMaterial&&re.envMap===null&&W.environment!==null&&(fi.envMapIntensity.value=W.environmentIntensity),Di&&(zt.setValue(L,"toneMappingExposure",_.toneMappingExposure),We.needsLights&&Fm(fi,ol),Se&&re.fog===!0&&ve.refreshFogUniforms(fi,Se),ve.refreshMaterialUniforms(fi,re,oe,j,p.state.transmissionRenderTarget[C.id]),ua.upload(L,Ku(We),fi,k)),re.isShaderMaterial&&re.uniformsNeedUpdate===!0&&(ua.upload(L,Ku(We),fi,k),re.uniformsNeedUpdate=!1),re.isSpriteMaterial&&zt.setValue(L,"center",Z.center),zt.setValue(L,"modelViewMatrix",Z.modelViewMatrix),zt.setValue(L,"normalMatrix",Z.normalMatrix),zt.setValue(L,"modelMatrix",Z.matrixWorld),re.isShaderMaterial||re.isRawShaderMaterial){const yn=re.uniformsGroups;for(let ll=0,Bm=yn.length;ll0&&k.useMultisampledRTT(C)===!1?Z=le.get(C).__webglMultisampledFramebuffer:Array.isArray(je)?Z=je[ne]:Z=je,M.copy(C.viewport),F.copy(C.scissor),z=C.scissorTest}else M.copy(be).multiplyScalar(oe).floor(),F.copy(Ae).multiplyScalar(oe).floor(),z=ge;if($.bindFramebuffer(L.FRAMEBUFFER,Z)&&re&&$.drawBuffers(C,Z),$.viewport(M),$.scissor(F),$.setScissorTest(z),Se){const Ge=le.get(C.texture);L.framebufferTexture2D(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,L.TEXTURE_CUBE_MAP_POSITIVE_X+W,Ge.__webglTexture,ne)}else if(Le){const Ge=le.get(C.texture),Ke=W||0;L.framebufferTextureLayer(L.FRAMEBUFFER,L.COLOR_ATTACHMENT0,Ge.__webglTexture,ne||0,Ke)}I=-1},this.readRenderTargetPixels=function(C,W,ne,re,Z,Se,Le){if(!(C&&C.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Oe=le.get(C).__webglFramebuffer;if(C.isWebGLCubeRenderTarget&&Le!==void 0&&(Oe=Oe[Le]),Oe){$.bindFramebuffer(L.FRAMEBUFFER,Oe);try{const Ge=C.texture,Ke=Ge.format,je=Ge.type;if(!H.textureFormatReadable(Ke)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!H.textureTypeReadable(je)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}W>=0&&W<=C.width-re&&ne>=0&&ne<=C.height-Z&&L.readPixels(W,ne,re,Z,Re.convert(Ke),Re.convert(je),Se)}finally{const Ge=E!==null?le.get(E).__webglFramebuffer:null;$.bindFramebuffer(L.FRAMEBUFFER,Ge)}}},this.readRenderTargetPixelsAsync=async function(C,W,ne,re,Z,Se,Le){if(!(C&&C.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let Oe=le.get(C).__webglFramebuffer;if(C.isWebGLCubeRenderTarget&&Le!==void 0&&(Oe=Oe[Le]),Oe){$.bindFramebuffer(L.FRAMEBUFFER,Oe);try{const Ge=C.texture,Ke=Ge.format,je=Ge.type;if(!H.textureFormatReadable(Ke))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!H.textureTypeReadable(je))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(W>=0&&W<=C.width-re&&ne>=0&&ne<=C.height-Z){const qe=L.createBuffer();L.bindBuffer(L.PIXEL_PACK_BUFFER,qe),L.bufferData(L.PIXEL_PACK_BUFFER,Se.byteLength,L.STREAM_READ),L.readPixels(W,ne,re,Z,Re.convert(Ke),Re.convert(je),0),L.flush();const dt=L.fenceSync(L.SYNC_GPU_COMMANDS_COMPLETE,0);await mM(L,dt,4);try{L.bindBuffer(L.PIXEL_PACK_BUFFER,qe),L.getBufferSubData(L.PIXEL_PACK_BUFFER,0,Se)}finally{L.deleteBuffer(qe),L.deleteSync(dt)}return Se}}finally{const Ge=E!==null?le.get(E).__webglFramebuffer:null;$.bindFramebuffer(L.FRAMEBUFFER,Ge)}}},this.copyFramebufferToTexture=function(C,W=null,ne=0){C.isTexture!==!0&&(console.warn("WebGLRenderer: copyFramebufferToTexture function signature has changed."),W=arguments[0]||null,C=arguments[1]);const re=Math.pow(2,-ne),Z=Math.floor(C.image.width*re),Se=Math.floor(C.image.height*re),Le=W!==null?W.x:0,Oe=W!==null?W.y:0;k.setTexture2D(C,0),L.copyTexSubImage2D(L.TEXTURE_2D,ne,0,0,Le,Oe,Z,Se),$.unbindTexture()},this.copyTextureToTexture=function(C,W,ne=null,re=null,Z=0){C.isTexture!==!0&&(console.warn("WebGLRenderer: copyTextureToTexture function signature has changed."),re=arguments[0]||null,C=arguments[1],W=arguments[2],Z=arguments[3]||0,ne=null);let Se,Le,Oe,Ge,Ke,je;ne!==null?(Se=ne.max.x-ne.min.x,Le=ne.max.y-ne.min.y,Oe=ne.min.x,Ge=ne.min.y):(Se=C.image.width,Le=C.image.height,Oe=0,Ge=0),re!==null?(Ke=re.x,je=re.y):(Ke=0,je=0);const qe=Re.convert(W.format),dt=Re.convert(W.type);k.setTexture2D(W,0),L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,W.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,W.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,W.unpackAlignment);const At=L.getParameter(L.UNPACK_ROW_LENGTH),Tt=L.getParameter(L.UNPACK_IMAGE_HEIGHT),dn=L.getParameter(L.UNPACK_SKIP_PIXELS),mt=L.getParameter(L.UNPACK_SKIP_ROWS),We=L.getParameter(L.UNPACK_SKIP_IMAGES),jt=C.isCompressedTexture?C.mipmaps[Z]:C.image;L.pixelStorei(L.UNPACK_ROW_LENGTH,jt.width),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,jt.height),L.pixelStorei(L.UNPACK_SKIP_PIXELS,Oe),L.pixelStorei(L.UNPACK_SKIP_ROWS,Ge),C.isDataTexture?L.texSubImage2D(L.TEXTURE_2D,Z,Ke,je,Se,Le,qe,dt,jt.data):C.isCompressedTexture?L.compressedTexSubImage2D(L.TEXTURE_2D,Z,Ke,je,jt.width,jt.height,qe,jt.data):L.texSubImage2D(L.TEXTURE_2D,Z,Ke,je,qe,dt,jt),L.pixelStorei(L.UNPACK_ROW_LENGTH,At),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,Tt),L.pixelStorei(L.UNPACK_SKIP_PIXELS,dn),L.pixelStorei(L.UNPACK_SKIP_ROWS,mt),L.pixelStorei(L.UNPACK_SKIP_IMAGES,We),Z===0&&W.generateMipmaps&&L.generateMipmap(L.TEXTURE_2D),$.unbindTexture()},this.copyTextureToTexture3D=function(C,W,ne=null,re=null,Z=0){C.isTexture!==!0&&(console.warn("WebGLRenderer: copyTextureToTexture3D function signature has changed."),ne=arguments[0]||null,re=arguments[1]||null,C=arguments[2],W=arguments[3],Z=arguments[4]||0);let Se,Le,Oe,Ge,Ke,je,qe,dt,At;const Tt=C.isCompressedTexture?C.mipmaps[Z]:C.image;ne!==null?(Se=ne.max.x-ne.min.x,Le=ne.max.y-ne.min.y,Oe=ne.max.z-ne.min.z,Ge=ne.min.x,Ke=ne.min.y,je=ne.min.z):(Se=Tt.width,Le=Tt.height,Oe=Tt.depth,Ge=0,Ke=0,je=0),re!==null?(qe=re.x,dt=re.y,At=re.z):(qe=0,dt=0,At=0);const dn=Re.convert(W.format),mt=Re.convert(W.type);let We;if(W.isData3DTexture)k.setTexture3D(W,0),We=L.TEXTURE_3D;else if(W.isDataArrayTexture||W.isCompressedArrayTexture)k.setTexture2DArray(W,0),We=L.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL,W.flipY),L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL,W.premultiplyAlpha),L.pixelStorei(L.UNPACK_ALIGNMENT,W.unpackAlignment);const jt=L.getParameter(L.UNPACK_ROW_LENGTH),_t=L.getParameter(L.UNPACK_IMAGE_HEIGHT),qn=L.getParameter(L.UNPACK_SKIP_PIXELS),so=L.getParameter(L.UNPACK_SKIP_ROWS),Di=L.getParameter(L.UNPACK_SKIP_IMAGES);L.pixelStorei(L.UNPACK_ROW_LENGTH,Tt.width),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,Tt.height),L.pixelStorei(L.UNPACK_SKIP_PIXELS,Ge),L.pixelStorei(L.UNPACK_SKIP_ROWS,Ke),L.pixelStorei(L.UNPACK_SKIP_IMAGES,je),C.isDataTexture||C.isData3DTexture?L.texSubImage3D(We,Z,qe,dt,At,Se,Le,Oe,dn,mt,Tt.data):W.isCompressedArrayTexture?L.compressedTexSubImage3D(We,Z,qe,dt,At,Se,Le,Oe,dn,Tt.data):L.texSubImage3D(We,Z,qe,dt,At,Se,Le,Oe,dn,mt,Tt),L.pixelStorei(L.UNPACK_ROW_LENGTH,jt),L.pixelStorei(L.UNPACK_IMAGE_HEIGHT,_t),L.pixelStorei(L.UNPACK_SKIP_PIXELS,qn),L.pixelStorei(L.UNPACK_SKIP_ROWS,so),L.pixelStorei(L.UNPACK_SKIP_IMAGES,Di),Z===0&&W.generateMipmaps&&L.generateMipmap(We),$.unbindTexture()},this.initRenderTarget=function(C){le.get(C).__webglFramebuffer===void 0&&k.setupRenderTarget(C)},this.initTexture=function(C){C.isCubeTexture?k.setTextureCube(C,0):C.isData3DTexture?k.setTexture3D(C,0):C.isDataArrayTexture||C.isCompressedArrayTexture?k.setTexture2DArray(C,0):k.setTexture2D(C,0),$.unbindTexture()},this.resetState=function(){A=0,b=0,E=null,$.reset(),rt.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return zn}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===Ia?"display-p3":"srgb",t.unpackColorSpace=ht.workingColorSpace===$r?"display-p3":"srgb"}}class Oa{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new Pe(e),this.density=t}clone(){return new Oa(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class Fa{constructor(e,t=1,n=1e3){this.isFog=!0,this.name="",this.color=new Pe(e),this.near=t,this.far=n}clone(){return new Fa(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class ka extends ct{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new _n,this.environmentIntensity=1,this.environmentRotation=new _n,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class Ba{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=Pr,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.version=0,this.uuid=vn()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return gu("THREE.InterleavedBuffer: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,n){e*=this.stride,n*=t.stride;for(let i=0,r=this.stride;ie.far||t.push({distance:l,point:Qs.clone(),uv:mn.getInterpolation(Qs,Eo,tr,Co,Gh,Ul,Wh,new se),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function Po(s,e,t,n,i,r){Is.subVectors(s,t).addScalar(.5).multiply(n),i!==void 0?(er.x=r*Is.x-i*Is.y,er.y=i*Is.x+r*Is.y):er.copy(Is),s.copy(e),s.x+=er.x,s.y+=er.y,s.applyMatrix4(Lp)}const Ro=new N,$h=new N;class Dp extends ct{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let n=0,i=t.length;n0){let n,i;for(n=1,i=t.length;n0){Ro.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(Ro);this.getObjectForDistance(i).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){Ro.setFromMatrixPosition(e.matrixWorld),$h.setFromMatrixPosition(this.matrixWorld);const n=Ro.distanceTo($h)/e.zoom;t[0].object.visible=!0;let i,r;for(i=1,r=t.length;i=o)t[i-1].object.visible=!1,t[i].object.visible=!0;else break}for(this._currentLevel=i-1;i=n.length&&n.push({start:-1,count:-1,z:-1});const r=n[this.index];i.push(r),this.index++,r.start=e.start,r.count=e.count,r.z=t}reset(){this.list.length=0,this.index=0}}const Ns="batchId",xi=new Ye,kl=new Ye,CA=new Ye,PA=new Pe(1,1,1),ed=new Ye,Bl=new Yr,No=new sn,Vi=new Zt,sr=new N,td=new N,RA=new N,zl=new EA,Yt=new Nt,Do=[];function IA(s,e,t=0){const n=e.itemSize;if(s.isInterleavedBufferAttribute||s.array.constructor!==e.array.constructor){const i=s.count;for(let r=0;r65536?new Uint32Array(r):new Uint16Array(r);t.setIndex(new pt(a,1))}const o=i>65536?new Uint32Array(n):new Uint16Array(n);t.setAttribute(Ns,new pt(o,1)),this._geometryInitialized=!0}}_validateGeometry(e){if(e.getAttribute(Ns))throw new Error(`BatchedMesh: Geometry cannot use attribute "${Ns}"`);const t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw new Error('BatchedMesh: All geometries must consistently have "index".');for(const n in t.attributes){if(n===Ns)continue;if(!e.hasAttribute(n))throw new Error(`BatchedMesh: Added geometry missing "${n}". All geometries must have consistent attributes.`);const i=e.getAttribute(n),r=t.getAttribute(n);if(i.itemSize!==r.itemSize||i.normalized!==r.normalized)throw new Error("BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new sn);const e=this._geometryCount,t=this.boundingBox,n=this._active;t.makeEmpty();for(let i=0;i=this._maxGeometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");const i={vertexStart:-1,vertexCount:-1,indexStart:-1,indexCount:-1};let r=null;const o=this._reservedRanges,a=this._drawRanges,l=this._bounds;this._geometryCount!==0&&(r=o[o.length-1]),t===-1?i.vertexCount=e.getAttribute("position").count:i.vertexCount=t,r===null?i.vertexStart=0:i.vertexStart=r.vertexStart+r.vertexCount;const c=e.getIndex(),u=c!==null;if(u&&(n===-1?i.indexCount=c.count:i.indexCount=n,r===null?i.indexStart=0:i.indexStart=r.indexStart+r.indexCount),i.indexStart!==-1&&i.indexStart+i.indexCount>this._maxIndexCount||i.vertexStart+i.vertexCount>this._maxVertexCount)throw new Error("BatchedMesh: Reserved space request exceeds the maximum buffer size.");const h=this._visibility,d=this._active,f=this._matricesTexture,g=this._matricesTexture.image.data,v=this._colorsTexture;h.push(!0),d.push(!0);const p=this._geometryCount;this._geometryCount++,CA.toArray(g,p*16),f.needsUpdate=!0,v!==null&&(PA.toArray(v.image.data,p*4),v.needsUpdate=!0),o.push(i),a.push({start:u?i.indexStart:i.vertexStart,count:-1}),l.push({boxInitialized:!1,box:new sn,sphereInitialized:!1,sphere:new Zt});const m=this.geometry.getAttribute(Ns);for(let y=0;y=this._geometryCount)throw new Error("BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const n=this.geometry,i=n.getIndex()!==null,r=n.getIndex(),o=t.getIndex(),a=this._reservedRanges[e];if(i&&o.count>a.indexCount||t.attributes.position.count>a.vertexCount)throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");const l=a.vertexStart,c=a.vertexCount;for(const f in n.attributes){if(f===Ns)continue;const g=t.getAttribute(f),v=n.getAttribute(f);IA(g,v,l);const p=g.itemSize;for(let m=g.count,y=c;m=t.length||t[e]===!1?this:(t[e]=!1,this._visibilityChanged=!0,this)}getInstanceCountAt(e){return this._multiDrawInstances===null?null:this._multiDrawInstances[e]}setInstanceCountAt(e,t){return this._multiDrawInstances===null&&(this._multiDrawInstances=new Int32Array(this._maxGeometryCount).fill(1)),this._multiDrawInstances[e]=t,e}getBoundingBoxAt(e,t){if(this._active[e]===!1)return null;const i=this._bounds[e],r=i.box,o=this.geometry;if(i.boxInitialized===!1){r.makeEmpty();const a=o.index,l=o.attributes.position,c=this._drawRanges[e];for(let u=c.start,h=c.start+c.count;u=o||n[e]===!1?this:(t.toArray(r,e*16),i.needsUpdate=!0,this)}getMatrixAt(e,t){const n=this._active,i=this._matricesTexture.image.data,r=this._geometryCount;return e>=r||n[e]===!1?null:t.fromArray(i,e*16)}setColorAt(e,t){this._colorsTexture===null&&this._initColorsTexture();const n=this._active,i=this._colorsTexture,r=this._colorsTexture.image.data,o=this._geometryCount;return e>=o||n[e]===!1?this:(t.toArray(r,e*4),i.needsUpdate=!0,this)}getColorAt(e,t){const n=this._active,i=this._colorsTexture.image.data,r=this._geometryCount;return e>=r||n[e]===!1?null:t.fromArray(i,e*4)}setVisibleAt(e,t){const n=this._visibility,i=this._active,r=this._geometryCount;return e>=r||i[e]===!1||n[e]===t?this:(n[e]=t,this._visibilityChanged=!0,this)}getVisibleAt(e){const t=this._visibility,n=this._active,i=this._geometryCount;return e>=i||n[e]===!1?!1:t[e]}raycast(e,t){const n=this._visibility,i=this._active,r=this._drawRanges,o=this._geometryCount,a=this.matrixWorld,l=this.geometry;Yt.material=this.material,Yt.geometry.index=l.index,Yt.geometry.attributes=l.attributes,Yt.geometry.boundingBox===null&&(Yt.geometry.boundingBox=new sn),Yt.geometry.boundingSphere===null&&(Yt.geometry.boundingSphere=new Zt);for(let c=0;c({...t})),this._reservedRanges=e._reservedRanges.map(t=>({...t})),this._visibility=e._visibility.slice(),this._active=e._active.slice(),this._bounds=e._bounds.map(t=>({boxInitialized:t.boxInitialized,box:t.box.clone(),sphereInitialized:t.sphereInitialized,sphere:t.sphere.clone()})),this._maxGeometryCount=e._maxGeometryCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.slice(),this._colorsTexture!==null&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.slice()),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this._colorsTexture!==null&&(this._colorsTexture.dispose(),this._colorsTexture=null),this}onBeforeRender(e,t,n,i,r){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const o=i.getIndex(),a=o===null?1:o.array.BYTES_PER_ELEMENT,l=this._active,c=this._visibility,u=this._multiDrawStarts,h=this._multiDrawCounts,d=this._drawRanges,f=this.perObjectFrustumCulled;f&&(ed.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse).multiply(this.matrixWorld),Bl.setFromProjectionMatrix(ed,e.coordinateSystem));let g=0;if(this.sortObjects){kl.copy(this.matrixWorld).invert(),sr.setFromMatrixPosition(n.matrixWorld).applyMatrix4(kl),td.set(0,0,-1).transformDirection(n.matrixWorld).transformDirection(kl);for(let m=0,y=c.length;m0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;rn)return;Vl.applyMatrix4(s.matrixWorld);const l=e.ray.origin.distanceTo(Vl);if(!(le.far))return{distance:l,point:id.clone().applyMatrix4(s.matrixWorld),index:i,face:null,faceIndex:null,object:s}}const sd=new N,rd=new N;class Xn extends Ci{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,n=[];for(let i=0,r=t.count;i0){const i=t[n[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let r=0,o=i.length;ri.far)return;r.push({distance:c,distanceToRay:Math.sqrt(a),point:l,index:e,face:null,object:o})}}class LA extends Pt{constructor(e,t,n,i,r,o,a,l,c){super(e,t,n,i,r,o,a,l,c),this.isVideoTexture=!0,this.minFilter=o!==void 0?o:Ot,this.magFilter=r!==void 0?r:Ot,this.generateMipmaps=!1;const u=this;function h(){u.needsUpdate=!0,e.requestVideoFrameCallback(h)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(h)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class NA extends Pt{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=Ht,this.minFilter=Ht,this.generateMipmaps=!1,this.needsUpdate=!0}}class Va extends Pt{constructor(e,t,n,i,r,o,a,l,c,u,h,d){super(null,o,a,l,c,u,i,r,h,d),this.isCompressedTexture=!0,this.image={width:t,height:n},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class DA extends Va{constructor(e,t,n,i,r,o){super(e,t,n,r,o),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=Mn,this.layerUpdates=new Set}addLayerUpdates(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class UA extends Va{constructor(e,t,n){super(void 0,e[0].width,e[0].height,t,n,oi),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class OA extends Pt{constructor(e,t,n,i,r,o,a,l,c){super(e,t,n,i,r,o,a,l,c),this.isCanvasTexture=!0,this.needsUpdate=!0}}class Dn{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,i=this.getPoint(0),r=0;t.push(0);for(let o=1;o<=e;o++)n=this.getPoint(o/e),r+=n.distanceTo(i),t.push(r),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let i=0;const r=n.length;let o;t?o=t:o=e*n[r-1];let a=0,l=r-1,c;for(;a<=l;)if(i=Math.floor(a+(l-a)/2),c=n[i]-o,c<0)a=i+1;else if(c>0)l=i-1;else{l=i;break}if(i=l,n[i]===o)return i/(r-1);const u=n[i],d=n[i+1]-u,f=(o-u)/d;return(i+f)/(r-1)}getTangent(e,t){let i=e-1e-4,r=e+1e-4;i<0&&(i=0),r>1&&(r=1);const o=this.getPoint(i),a=this.getPoint(r),l=t||(o.isVector2?new se:new N);return l.copy(a).sub(o).normalize(),l}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new N,i=[],r=[],o=[],a=new N,l=new Ye;for(let f=0;f<=e;f++){const g=f/e;i[f]=this.getTangentAt(g,new N)}r[0]=new N,o[0]=new N;let c=Number.MAX_VALUE;const u=Math.abs(i[0].x),h=Math.abs(i[0].y),d=Math.abs(i[0].z);u<=c&&(c=u,n.set(1,0,0)),h<=c&&(c=h,n.set(0,1,0)),d<=c&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),o[0].crossVectors(i[0],r[0]);for(let f=1;f<=e;f++){if(r[f]=r[f-1].clone(),o[f]=o[f-1].clone(),a.crossVectors(i[f-1],i[f]),a.length()>Number.EPSILON){a.normalize();const g=Math.acos(Ct(i[f-1].dot(i[f]),-1,1));r[f].applyMatrix4(l.makeRotationAxis(a,g))}o[f].crossVectors(i[f],r[f])}if(t===!0){let f=Math.acos(Ct(r[0].dot(r[e]),-1,1));f/=e,i[0].dot(a.crossVectors(r[0],r[e]))>0&&(f=-f);for(let g=1;g<=e;g++)r[g].applyMatrix4(l.makeRotationAxis(i[g],f*g)),o[g].crossVectors(i[g],r[g])}return{tangents:i,normals:r,binormals:o}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Ha extends Dn{constructor(e=0,t=0,n=1,i=1,r=0,o=Math.PI*2,a=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a,this.aRotation=l}getPoint(e,t=new se){const n=t,i=Math.PI*2;let r=this.aEndAngle-this.aStartAngle;const o=Math.abs(r)i;)r-=i;r0?0:(Math.floor(Math.abs(a)/r)+1)*r:l===0&&a===r-1&&(a=r-2,l=1);let c,u;this.closed||a>0?c=i[(a-1)%r]:(Bo.subVectors(i[0],i[1]).add(i[0]),c=Bo);const h=i[a%r],d=i[(a+1)%r];if(this.closed||a+2i.length-2?i.length-1:o+1],h=i[o>i.length-3?i.length-1:o+2];return n.set(ld(a,l.x,c.x,u.x,h.x),ld(a,l.y,c.y,u.y,h.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t=n){const o=i[r]-n,a=this.curves[r],l=a.getLength(),c=l===0?0:1-o/l;return a.getPointAt(c,t)}r++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,i=this.curves.length;n1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t0){const h=c.getPoint(0);h.equals(this.currentPoint)||this.lineTo(h.x,h.y)}this.curves.push(c);const u=c.getPoint(1);return this.currentPoint.copy(u),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class Zr extends it{constructor(e=[new se(0,-.5),new se(.5,0),new se(0,.5)],t=12,n=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:n,phiLength:i},t=Math.floor(t),i=Ct(i,0,Math.PI*2);const r=[],o=[],a=[],l=[],c=[],u=1/t,h=new N,d=new se,f=new N,g=new N,v=new N;let p=0,m=0;for(let y=0;y<=e.length-1;y++)switch(y){case 0:p=e[y+1].x-e[y].x,m=e[y+1].y-e[y].y,f.x=m*1,f.y=-p,f.z=m*0,v.copy(f),f.normalize(),l.push(f.x,f.y,f.z);break;case e.length-1:l.push(v.x,v.y,v.z);break;default:p=e[y+1].x-e[y].x,m=e[y+1].y-e[y].y,f.x=m*1,f.y=-p,f.z=m*0,g.copy(f),f.x+=v.x,f.y+=v.y,f.z+=v.z,f.normalize(),l.push(f.x,f.y,f.z),v.copy(g)}for(let y=0;y<=t;y++){const _=n+y*u*i,x=Math.sin(_),A=Math.cos(_);for(let b=0;b<=e.length-1;b++){h.x=e[b].x*x,h.y=e[b].y,h.z=e[b].x*A,o.push(h.x,h.y,h.z),d.x=y/t,d.y=b/(e.length-1),a.push(d.x,d.y);const E=l[3*b+0]*x,I=l[3*b+1],w=l[3*b+0]*A;c.push(E,I,w)}}for(let y=0;y0&&_(!0),t>0&&_(!1)),this.setIndex(u),this.setAttribute("position",new Ne(h,3)),this.setAttribute("normal",new Ne(d,3)),this.setAttribute("uv",new Ne(f,2));function y(){const x=new N,A=new N;let b=0;const E=(t-e)/n;for(let I=0;I<=r;I++){const w=[],M=I/r,F=M*(t-e)+e;for(let z=0;z<=i;z++){const G=z/i,q=G*l+a,ae=Math.sin(q),j=Math.cos(q);A.x=F*ae,A.y=-M*n+p,A.z=F*j,h.push(A.x,A.y,A.z),x.set(ae,E,j).normalize(),d.push(x.x,x.y,x.z),f.push(G,1-M),w.push(g++)}v.push(w)}for(let I=0;I.9&&E<.1&&(_<.2&&(o[y+0]+=1),x<.2&&(o[y+2]+=1),A<.2&&(o[y+4]+=1))}}function d(y){r.push(y.x,y.y,y.z)}function f(y,_){const x=y*3;_.x=e[x+0],_.y=e[x+1],_.z=e[x+2]}function g(){const y=new N,_=new N,x=new N,A=new N,b=new se,E=new se,I=new se;for(let w=0,M=0;w80*t){a=c=s[0],l=u=s[1];for(let g=t;gc&&(c=h),d>u&&(u=d);f=Math.max(c-a,u-l),f=f!==0?32767/f:0}return Lr(r,o,t,a,l,f,0),o}};function Xp(s,e,t,n,i){let r,o;if(i===oT(s,e,t,n)>0)for(r=e;r=e;r-=n)o=cd(r,s[r],s[r+1],o);return o&&qa(o,o.next)&&(Dr(o),o=o.next),o}function ls(s,e){if(!s)return s;e||(e=s);let t=s,n;do if(n=!1,!t.steiner&&(qa(t,t.next)||St(t.prev,t,t.next)===0)){if(Dr(t),t=e=t.prev,t===t.next)break;n=!0}else t=t.next;while(n||t!==e);return e}function Lr(s,e,t,n,i,r,o){if(!s)return;!o&&r&&eT(s,n,i,r);let a=s,l,c;for(;s.prev!==s.next;){if(l=s.prev,c=s.next,r?XA(s,n,i,r):$A(s)){e.push(l.i/t|0),e.push(s.i/t|0),e.push(c.i/t|0),Dr(s),s=c.next,a=c.next;continue}if(s=c,s===a){o?o===1?(s=qA(ls(s),e,t),Lr(s,e,t,n,i,r,2)):o===2&&YA(s,e,t,n,i,r):Lr(ls(s),e,t,n,i,r,1);break}}}function $A(s){const e=s.prev,t=s,n=s.next;if(St(e,t,n)>=0)return!1;const i=e.x,r=t.x,o=n.x,a=e.y,l=t.y,c=n.y,u=ir?i>o?i:o:r>o?r:o,f=a>l?a>c?a:c:l>c?l:c;let g=n.next;for(;g!==e;){if(g.x>=u&&g.x<=d&&g.y>=h&&g.y<=f&&ks(i,a,r,l,o,c,g.x,g.y)&&St(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function XA(s,e,t,n){const i=s.prev,r=s,o=s.next;if(St(i,r,o)>=0)return!1;const a=i.x,l=r.x,c=o.x,u=i.y,h=r.y,d=o.y,f=al?a>c?a:c:l>c?l:c,p=u>h?u>d?u:d:h>d?h:d,m=Fc(f,g,e,t,n),y=Fc(v,p,e,t,n);let _=s.prevZ,x=s.nextZ;for(;_&&_.z>=m&&x&&x.z<=y;){if(_.x>=f&&_.x<=v&&_.y>=g&&_.y<=p&&_!==i&&_!==o&&ks(a,u,l,h,c,d,_.x,_.y)&&St(_.prev,_,_.next)>=0||(_=_.prevZ,x.x>=f&&x.x<=v&&x.y>=g&&x.y<=p&&x!==i&&x!==o&&ks(a,u,l,h,c,d,x.x,x.y)&&St(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;_&&_.z>=m;){if(_.x>=f&&_.x<=v&&_.y>=g&&_.y<=p&&_!==i&&_!==o&&ks(a,u,l,h,c,d,_.x,_.y)&&St(_.prev,_,_.next)>=0)return!1;_=_.prevZ}for(;x&&x.z<=y;){if(x.x>=f&&x.x<=v&&x.y>=g&&x.y<=p&&x!==i&&x!==o&&ks(a,u,l,h,c,d,x.x,x.y)&&St(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function qA(s,e,t){let n=s;do{const i=n.prev,r=n.next.next;!qa(i,r)&&qp(i,n,n.next,r)&&Nr(i,r)&&Nr(r,i)&&(e.push(i.i/t|0),e.push(n.i/t|0),e.push(r.i/t|0),Dr(n),Dr(n.next),n=s=r),n=n.next}while(n!==s);return ls(n)}function YA(s,e,t,n,i,r){let o=s;do{let a=o.next.next;for(;a!==o.prev;){if(o.i!==a.i&&iT(o,a)){let l=Yp(o,a);o=ls(o,o.next),l=ls(l,l.next),Lr(o,e,t,n,i,r,0),Lr(l,e,t,n,i,r,0);return}a=a.next}o=o.next}while(o!==s)}function ZA(s,e,t,n){const i=[];let r,o,a,l,c;for(r=0,o=e.length;r=t.next.y&&t.next.y!==t.y){const d=t.x+(o-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(d<=r&&d>n&&(n=d,i=t.x=t.x&&t.x>=l&&r!==t.x&&ks(oi.x||t.x===i.x&&QA(i,t)))&&(i=t,u=h)),t=t.next;while(t!==a);return i}function QA(s,e){return St(s.prev,s,e.prev)<0&&St(e.next,s,s.next)<0}function eT(s,e,t,n){let i=s;do i.z===0&&(i.z=Fc(i.x,i.y,e,t,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==s);i.prevZ.nextZ=null,i.prevZ=null,tT(i)}function tT(s){let e,t,n,i,r,o,a,l,c=1;do{for(t=s,s=null,r=null,o=0;t;){for(o++,n=t,a=0,e=0;e0||l>0&&n;)a!==0&&(l===0||!n||t.z<=n.z)?(i=t,t=t.nextZ,a--):(i=n,n=n.nextZ,l--),r?r.nextZ=i:s=i,i.prevZ=r,r=i;t=n}r.nextZ=null,c*=2}while(o>1);return s}function Fc(s,e,t,n,i){return s=(s-t)*i|0,e=(e-n)*i|0,s=(s|s<<8)&16711935,s=(s|s<<4)&252645135,s=(s|s<<2)&858993459,s=(s|s<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,s|e<<1}function nT(s){let e=s,t=s;do(e.x=(s-o)*(r-a)&&(s-o)*(n-a)>=(t-o)*(e-a)&&(t-o)*(r-a)>=(i-o)*(n-a)}function iT(s,e){return s.next.i!==e.i&&s.prev.i!==e.i&&!sT(s,e)&&(Nr(s,e)&&Nr(e,s)&&rT(s,e)&&(St(s.prev,s,e.prev)||St(s,e.prev,e))||qa(s,e)&&St(s.prev,s,s.next)>0&&St(e.prev,e,e.next)>0)}function St(s,e,t){return(e.y-s.y)*(t.x-e.x)-(e.x-s.x)*(t.y-e.y)}function qa(s,e){return s.x===e.x&&s.y===e.y}function qp(s,e,t,n){const i=Wo(St(s,e,t)),r=Wo(St(s,e,n)),o=Wo(St(t,n,s)),a=Wo(St(t,n,e));return!!(i!==r&&o!==a||i===0&&Go(s,t,e)||r===0&&Go(s,n,e)||o===0&&Go(t,s,n)||a===0&&Go(t,e,n))}function Go(s,e,t){return e.x<=Math.max(s.x,t.x)&&e.x>=Math.min(s.x,t.x)&&e.y<=Math.max(s.y,t.y)&&e.y>=Math.min(s.y,t.y)}function Wo(s){return s>0?1:s<0?-1:0}function sT(s,e){let t=s;do{if(t.i!==s.i&&t.next.i!==s.i&&t.i!==e.i&&t.next.i!==e.i&&qp(t,t.next,s,e))return!0;t=t.next}while(t!==s);return!1}function Nr(s,e){return St(s.prev,s,s.next)<0?St(s,e,s.next)>=0&&St(s,s.prev,e)>=0:St(s,e,s.prev)<0||St(s,s.next,e)<0}function rT(s,e){let t=s,n=!1;const i=(s.x+e.x)/2,r=(s.y+e.y)/2;do t.y>r!=t.next.y>r&&t.next.y!==t.y&&i<(t.next.x-t.x)*(r-t.y)/(t.next.y-t.y)+t.x&&(n=!n),t=t.next;while(t!==s);return n}function Yp(s,e){const t=new kc(s.i,s.x,s.y),n=new kc(e.i,e.x,e.y),i=s.next,r=e.prev;return s.next=e,e.prev=s,t.next=i,i.prev=t,n.next=t,t.prev=n,r.next=n,n.prev=r,n}function cd(s,e,t,n){const i=new kc(s,e,t);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Dr(s){s.next.prev=s.prev,s.prev.next=s.next,s.prevZ&&(s.prevZ.nextZ=s.nextZ),s.nextZ&&(s.nextZ.prevZ=s.prevZ)}function kc(s,e,t){this.i=s,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function oT(s,e,t,n){let i=0;for(let r=e,o=t-n;r2&&s[e-1].equals(s[0])&&s.pop()}function hd(s,e){for(let t=0;tNumber.EPSILON){const ce=Math.sqrt(Q),ve=Math.sqrt(P*P+S*S),He=K.x-O/ce,Ee=K.y+k/ce,Te=H.x-S/ve,Qe=H.y+P/ve,xe=((Te-He)*S-(Qe-Ee)*P)/(k*S-O*P);$=He+k*xe-X.x,te=Ee+O*xe-X.y;const Ue=$*$+te*te;if(Ue<=2)return new se($,te);le=Math.sqrt(Ue/2)}else{let ce=!1;k>Number.EPSILON?P>Number.EPSILON&&(ce=!0):k<-Number.EPSILON?P<-Number.EPSILON&&(ce=!0):Math.sign(O)===Math.sign(S)&&(ce=!0),ce?($=-O,te=k,le=Math.sqrt(Q)):($=k,te=O,le=Math.sqrt(Q/2))}return new se($/le,te/le)}const Me=[];for(let X=0,K=q.length,H=K-1,$=X+1;X=0;X--){const K=X/p,H=f*Math.cos(K*Math.PI/2),$=g*Math.sin(K*Math.PI/2)+v;for(let te=0,le=q.length;te=0;){const $=H;let te=H-1;te<0&&(te=X.length-1);for(let le=0,k=u+p*2;le0)&&f.push(_,x,b),(m!==n-1||l0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class Qp extends Kt{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Pe(16777215),this.specular=new Pe(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Pe(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ri,this.normalScale=new se(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new _n,this.combine=Gr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class em extends Kt{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Pe(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Pe(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ri,this.normalScale=new se(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class tm extends Kt{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ri,this.normalScale=new se(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class nm extends Kt{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Pe(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Pe(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ri,this.normalScale=new se(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new _n,this.combine=Gr,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class im extends Kt{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Pe(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ri,this.normalScale=new se(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class sm extends rn{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function Qi(s,e,t){return!s||!t&&s.constructor===e?s:typeof e.BYTES_PER_ELEMENT=="number"?new e(s):Array.prototype.slice.call(s)}function rm(s){return ArrayBuffer.isView(s)&&!(s instanceof DataView)}function om(s){function e(i,r){return s[i]-s[r]}const t=s.length,n=new Array(t);for(let i=0;i!==t;++i)n[i]=i;return n.sort(e),n}function Bc(s,e,t){const n=s.length,i=new s.constructor(n);for(let r=0,o=0;o!==n;++r){const a=t[r]*e;for(let l=0;l!==e;++l)i[o++]=s[a+l]}return i}function Du(s,e,t,n){let i=1,r=s[0];for(;r!==void 0&&r[n]===void 0;)r=s[i++];if(r===void 0)return;let o=r[n];if(o!==void 0)if(Array.isArray(o))do o=r[n],o!==void 0&&(e.push(r.time),t.push.apply(t,o)),r=s[i++];while(r!==void 0);else if(o.toArray!==void 0)do o=r[n],o!==void 0&&(e.push(r.time),o.toArray(t,t.length)),r=s[i++];while(r!==void 0);else do o=r[n],o!==void 0&&(e.push(r.time),t.push(o)),r=s[i++];while(r!==void 0)}function uT(s,e,t,n,i=30){const r=s.clone();r.name=e;const o=[];for(let l=0;l=n)){h.push(c.times[f]);for(let v=0;vr.tracks[l].times[0]&&(a=r.tracks[l].times[0]);for(let l=0;l=a.times[g]){const m=g*h+u,y=m+h-u;v=a.values.slice(m,y)}else{const m=a.createInterpolant(),y=u,_=h-u;m.evaluate(r),v=m.resultBuffer.slice(y,_)}l==="quaternion"&&new hn().fromArray(v).normalize().conjugate().toArray(v);const p=c.times.length;for(let m=0;m=r)){const a=t[1];e=r)break t}o=n,n=0;break n}break e}for(;n>>1;et;)--o;if(++o,r!==0||o!==i){r>=o&&(o=Math.max(o,1),r=o-1);const a=this.getValueSize();this.times=n.slice(r,o),this.values=this.values.slice(r*a,o*a)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),e=!1);const n=this.times,i=this.values,r=n.length;r===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),e=!1);let o=null;for(let a=0;a!==r;a++){const l=n[a];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,l),e=!1;break}if(o!==null&&o>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,l,o),e=!1;break}o=l}if(i!==void 0&&rm(i))for(let a=0,l=i.length;a!==l;++a){const c=i[a];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,c),e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),i=this.getInterpolation()===ca,r=e.length-1;let o=1;for(let a=1;a0){e[o]=e[r];for(let a=r*n,l=o*n,c=0;c!==n;++c)t[l+c]=t[a+c];++o}return o!==e.length?(this.times=e.slice(0,o),this.values=t.slice(0,o*n)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),n=this.constructor,i=new n(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}Un.prototype.TimeBufferType=Float32Array;Un.prototype.ValueBufferType=Float32Array;Un.prototype.DefaultInterpolation=ya;class us extends Un{constructor(e,t,n){super(e,t,n)}}us.prototype.ValueTypeName="bool";us.prototype.ValueBufferType=Array;us.prototype.DefaultInterpolation=wr;us.prototype.InterpolantFactoryMethodLinear=void 0;us.prototype.InterpolantFactoryMethodSmooth=void 0;class Ou extends Un{}Ou.prototype.ValueTypeName="color";class Ur extends Un{}Ur.prototype.ValueTypeName="number";class cm extends jr{constructor(e,t,n,i){super(e,t,n,i)}interpolate_(e,t,n,i){const r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,l=(n-t)/(i-t);let c=e*a;for(let u=c+a;c!==u;c+=4)hn.slerpFlat(r,0,o,c-a,o,c,l);return r}}class Qr extends Un{InterpolantFactoryMethodLinear(e){return new cm(this.times,this.values,this.getValueSize(),e)}}Qr.prototype.ValueTypeName="quaternion";Qr.prototype.InterpolantFactoryMethodSmooth=void 0;class hs extends Un{constructor(e,t,n){super(e,t,n)}}hs.prototype.ValueTypeName="string";hs.prototype.ValueBufferType=Array;hs.prototype.DefaultInterpolation=wr;hs.prototype.InterpolantFactoryMethodLinear=void 0;hs.prototype.InterpolantFactoryMethodSmooth=void 0;class Or extends Un{}Or.prototype.ValueTypeName="vector";class Fr{constructor(e="",t=-1,n=[],i=Ra){this.name=e,this.tracks=n,this.duration=t,this.blendMode=i,this.uuid=vn(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],n=e.tracks,i=1/(e.fps||1);for(let o=0,a=n.length;o!==a;++o)t.push(pT(n[o]).scale(i));const r=new this(e.name,e.duration,t,e.blendMode);return r.uuid=e.uuid,r}static toJSON(e){const t=[],n=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let r=0,o=n.length;r!==o;++r)t.push(Un.toJSON(n[r]));return i}static CreateFromMorphTargetSequence(e,t,n,i){const r=t.length,o=[];for(let a=0;a1){const h=u[1];let d=i[h];d||(i[h]=d=[]),d.push(c)}}const o=[];for(const a in i)o.push(this.CreateFromMorphTargetSequence(a,i[a],t,n));return o}static parseAnimation(e,t){if(!e)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(h,d,f,g,v){if(f.length!==0){const p=[],m=[];Du(f,p,m,g),p.length!==0&&v.push(new h(d,p,m))}},i=[],r=e.name||"default",o=e.fps||30,a=e.blendMode;let l=e.length||-1;const c=e.hierarchy||[];for(let h=0;h{t&&t(r),this.manager.itemEnd(e)},0),r;if(Qn[e]!==void 0){Qn[e].push({onLoad:t,onProgress:n,onError:i});return}Qn[e]=[],Qn[e].push({onLoad:t,onProgress:n,onError:i});const o=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,l=this.responseType;fetch(o).then(c=>{if(c.status===200||c.status===0){if(c.status===0&&console.warn("THREE.FileLoader: HTTP Status 0 received."),typeof ReadableStream>"u"||c.body===void 0||c.body.getReader===void 0)return c;const u=Qn[e],h=c.body.getReader(),d=c.headers.get("X-File-Size")||c.headers.get("Content-Length"),f=d?parseInt(d):0,g=f!==0;let v=0;const p=new ReadableStream({start(m){y();function y(){h.read().then(({done:_,value:x})=>{if(_)m.close();else{v+=x.byteLength;const A=new ProgressEvent("progress",{lengthComputable:g,loaded:v,total:f});for(let b=0,E=u.length;b{m.error(_)})}}});return new Response(p)}else throw new mT(`fetch for "${c.url}" responded with ${c.status}: ${c.statusText}`,c)}).then(c=>{switch(l){case"arraybuffer":return c.arrayBuffer();case"blob":return c.blob();case"document":return c.text().then(u=>new DOMParser().parseFromString(u,a));case"json":return c.json();default:if(a===void 0)return c.text();{const h=/charset="?([^;"\s]*)"?/i.exec(a),d=h&&h[1]?h[1].toLowerCase():void 0,f=new TextDecoder(d);return c.arrayBuffer().then(g=>f.decode(g))}}}).then(c=>{ni.add(e,c);const u=Qn[e];delete Qn[e];for(let h=0,d=u.length;h{const u=Qn[e];if(u===void 0)throw this.manager.itemError(e),c;delete Qn[e];for(let h=0,d=u.length;h{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class gT extends on{constructor(e){super(e)}load(e,t,n,i){const r=this,o=new Wn(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(a){try{t(r.parse(JSON.parse(a)))}catch(l){i?i(l):console.error(l),r.manager.itemError(e)}},n,i)}parse(e){const t=[];for(let n=0;n0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const r in e.uniforms){const o=e.uniforms[r];switch(i.uniforms[r]={},o.type){case"t":i.uniforms[r].value=n(o.value);break;case"c":i.uniforms[r].value=new Pe().setHex(o.value);break;case"v2":i.uniforms[r].value=new se().fromArray(o.value);break;case"v3":i.uniforms[r].value=new N().fromArray(o.value);break;case"v4":i.uniforms[r].value=new gt().fromArray(o.value);break;case"m3":i.uniforms[r].value=new Ze().fromArray(o.value);break;case"m4":i.uniforms[r].value=new Ye().fromArray(o.value);break;default:i.uniforms[r].value=o.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(i.glslVersion=e.glslVersion),e.extensions!==void 0)for(const r in e.extensions)i.extensions[r]=e.extensions[r];if(e.lights!==void 0&&(i.lights=e.lights),e.clipping!==void 0&&(i.clipping=e.clipping),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=n(e.map)),e.matcap!==void 0&&(i.matcap=n(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=n(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=n(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=n(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let r=e.normalScale;Array.isArray(r)===!1&&(r=[r,r]),i.normalScale=new se().fromArray(r)}return e.displacementMap!==void 0&&(i.displacementMap=n(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=n(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=n(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=n(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=n(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=n(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=n(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=n(e.envMap)),e.envMapRotation!==void 0&&i.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=n(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=n(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=n(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=n(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=n(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=n(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new se().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=n(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=n(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=n(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=n(e.thicknessMap)),e.anisotropyMap!==void 0&&(i.anisotropyMap=n(e.anisotropyMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=n(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=n(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}static createMaterialFromType(e){const t={ShadowMaterial:Jp,SpriteMaterial:wu,RawShaderMaterial:Kp,ShaderMaterial:Ln,PointsMaterial:Tu,MeshPhysicalMaterial:jp,MeshStandardMaterial:Nu,MeshPhongMaterial:Qp,MeshToonMaterial:em,MeshNormalMaterial:tm,MeshLambertMaterial:nm,MeshDepthMaterial:bu,MeshDistanceMaterial:Su,MeshBasicMaterial:hi,MeshMatcapMaterial:im,LineDashedMaterial:sm,LineBasicMaterial:rn,Material:Kt};return new t[e]}}class zc{static decodeText(e){if(console.warn("THREE.LoaderUtils: decodeText() has been deprecated with r165 and will be removed with r175. Use TextDecoder instead."),typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let n=0,i=e.length;n0){const l=new Fu(t);r=new kr(l),r.setCrossOrigin(this.crossOrigin);for(let c=0,u=e.length;c0){i=new kr(this.manager),i.setCrossOrigin(this.crossOrigin);for(let o=0,a=e.length;o{const p=new sn;p.min.fromArray(v.boxMin),p.max.fromArray(v.boxMax);const m=new Zt;return m.radius=v.sphereRadius,m.center.fromArray(v.sphereCenter),{boxInitialized:v.boxInitialized,box:p,sphereInitialized:v.sphereInitialized,sphere:m}}),o._maxGeometryCount=e.maxGeometryCount,o._maxVertexCount=e.maxVertexCount,o._maxIndexCount=e.maxIndexCount,o._geometryInitialized=e.geometryInitialized,o._geometryCount=e.geometryCount,o._matricesTexture=c(e.matricesTexture.uuid),e.colorsTexture!==void 0&&(o._colorsTexture=c(e.colorsTexture.uuid));break;case"LOD":o=new Dp;break;case"Line":o=new Ci(a(e.geometry),l(e.material));break;case"LineLoop":o=new kp(a(e.geometry),l(e.material));break;case"LineSegments":o=new Xn(a(e.geometry),l(e.material));break;case"PointCloud":case"Points":o=new Bp(a(e.geometry),l(e.material));break;case"Sprite":o=new Np(l(e.material));break;case"Group":o=new Fs;break;case"Bone":o=new Au;break;default:o=new ct}if(o.uuid=e.uuid,e.name!==void 0&&(o.name=e.name),e.matrix!==void 0?(o.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(o.matrixAutoUpdate=e.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(e.position!==void 0&&o.position.fromArray(e.position),e.rotation!==void 0&&o.rotation.fromArray(e.rotation),e.quaternion!==void 0&&o.quaternion.fromArray(e.quaternion),e.scale!==void 0&&o.scale.fromArray(e.scale)),e.up!==void 0&&o.up.fromArray(e.up),e.castShadow!==void 0&&(o.castShadow=e.castShadow),e.receiveShadow!==void 0&&(o.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.bias!==void 0&&(o.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(o.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(o.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&o.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(o.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(o.visible=e.visible),e.frustumCulled!==void 0&&(o.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(o.renderOrder=e.renderOrder),e.userData!==void 0&&(o.userData=e.userData),e.layers!==void 0&&(o.layers.mask=e.layers),e.children!==void 0){const d=e.children;for(let f=0;f"u"&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),typeof fetch>"u"&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,n,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const r=this,o=ni.get(e);if(o!==void 0){if(r.manager.itemStart(e),o.then){o.then(c=>{t&&t(c),r.manager.itemEnd(e)}).catch(c=>{i&&i(c)});return}return setTimeout(function(){t&&t(o),r.manager.itemEnd(e)},0),o}const a={};a.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",a.headers=this.requestHeader;const l=fetch(e,a).then(function(c){return c.blob()}).then(function(c){return createImageBitmap(c,Object.assign(r.options,{colorSpaceConversion:"none"}))}).then(function(c){return ni.add(e,c),t&&t(c),r.manager.itemEnd(e),c}).catch(function(c){i&&i(c),ni.remove(e),r.manager.itemError(e),r.manager.itemEnd(e)});ni.add(e,l),r.manager.itemStart(e)}}let $o;class Bu{static getContext(){return $o===void 0&&($o=new(window.AudioContext||window.webkitAudioContext)),$o}static setContext(e){$o=e}}class ET extends on{constructor(e){super(e)}load(e,t,n,i){const r=this,o=new Wn(this.manager);o.setResponseType("arraybuffer"),o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(l){try{const c=l.slice(0);Bu.getContext().decodeAudioData(c,function(h){t(h)}).catch(a)}catch(c){a(c)}},n,i);function a(l){i?i(l):console.error(l),r.manager.itemError(e)}}}const yd=new Ye,xd=new Ye,Hi=new Ye;class CT{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Ut,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Ut,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,Hi.copy(e.projectionMatrix);const i=t.eyeSep/2,r=i*t.near/t.focus,o=t.near*Math.tan(ns*t.fov*.5)/t.zoom;let a,l;xd.elements[12]=-i,yd.elements[12]=i,a=-o*t.aspect+r,l=o*t.aspect+r,Hi.elements[0]=2*t.near/(l-a),Hi.elements[8]=(l+a)/(l-a),this.cameraL.projectionMatrix.copy(Hi),a=-o*t.aspect-r,l=o*t.aspect-r,Hi.elements[0]=2*t.near/(l-a),Hi.elements[8]=(l+a)/(l-a),this.cameraR.projectionMatrix.copy(Hi)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(xd),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(yd)}}class il{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=Md(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=Md();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function Md(){return(typeof performance>"u"?Date:performance).now()}const Gi=new N,bd=new hn,PT=new N,Wi=new N;class RT extends ct{constructor(){super(),this.type="AudioListener",this.context=Bu.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new il}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,n=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Gi,bd,PT),Wi.set(0,0,-1).applyQuaternion(bd),t.positionX){const i=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(Gi.x,i),t.positionY.linearRampToValueAtTime(Gi.y,i),t.positionZ.linearRampToValueAtTime(Gi.z,i),t.forwardX.linearRampToValueAtTime(Wi.x,i),t.forwardY.linearRampToValueAtTime(Wi.y,i),t.forwardZ.linearRampToValueAtTime(Wi.z,i),t.upX.linearRampToValueAtTime(n.x,i),t.upY.linearRampToValueAtTime(n.y,i),t.upZ.linearRampToValueAtTime(n.z,i)}else t.setPosition(Gi.x,Gi.y,Gi.z),t.setOrientation(Wi.x,Wi.y,Wi.z,n.x,n.y,n.z)}}class Mm extends ct{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0){console.warn("THREE.Audio: Audio is already playing.");return}if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(){if(this.hasPlaybackControl===!1){console.warn("THREE.Audio: this Audio has no playback control.");return}return this._progress=0,this.source!==null&&(this.source.stop(),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e0&&this._mixBufferRegionAdditive(n,i,this._addIndex*t,1,t);for(let l=t,c=t+t;l!==c;++l)if(n[l]!==n[l+t]){a.setValue(n,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,n=this.valueSize,i=n*this._origIndex;e.getValue(t,i);for(let r=n,o=i;r!==o;++r)t[r]=t[i+r%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let n=e;n=.5)for(let o=0;o!==r;++o)e[t+o]=e[n+o]}_slerp(e,t,n,i){hn.slerpFlat(e,t,e,t,e,n,i)}_slerpAdditive(e,t,n,i,r){const o=this._workIndex*r;hn.multiplyQuaternionsFlat(e,o,e,t,e,n),hn.slerpFlat(e,t,e,t,e,o,i)}_lerp(e,t,n,i,r){const o=1-i;for(let a=0;a!==r;++a){const l=t+a;e[l]=e[l]*o+e[n+a]*i}}_lerpAdditive(e,t,n,i,r){for(let o=0;o!==r;++o){const a=t+o;e[a]=e[a]+e[n+o]*i}}}const zu="\\[\\]\\.:\\/",DT=new RegExp("["+zu+"]","g"),Vu="[^"+zu+"]",UT="[^"+zu.replace("\\.","")+"]",OT=/((?:WC+[\/:])*)/.source.replace("WC",Vu),FT=/(WCOD+)?/.source.replace("WCOD",UT),kT=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Vu),BT=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Vu),zT=new RegExp("^"+OT+FT+kT+BT+"$"),VT=["material","materials","bones","map"];class HT{constructor(e,t,n){const i=n||lt.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const n=this._targetGroup.nCachedObjects_,i=this._bindings[n];i!==void 0&&i.getValue(e,t)}setValue(e,t){const n=this._bindings;for(let i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}}class lt{constructor(e,t,n){this.path=t,this.parsedPath=n||lt.parseTrackName(t),this.node=lt.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,n){return e&&e.isAnimationObjectGroup?new lt.Composite(e,t,n):new lt(e,t,n)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(DT,"")}static parseTrackName(e){const t=zT.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const r=n.nodeName.substring(i+1);VT.indexOf(r)!==-1&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=r)}if(n.propertyName===null||n.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return n}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){const n=function(r){for(let o=0;o=r){const h=r++,d=e[h];t[d.uuid]=u,e[u]=d,t[c]=h,e[h]=l;for(let f=0,g=i;f!==g;++f){const v=n[f],p=v[h],m=v[u];v[u]=p,v[h]=m}}}this.nCachedObjects_=r}uncache(){const e=this._objects,t=this._indicesByUUID,n=this._bindings,i=n.length;let r=this.nCachedObjects_,o=e.length;for(let a=0,l=arguments.length;a!==l;++a){const c=arguments[a],u=c.uuid,h=t[u];if(h!==void 0)if(delete t[u],h0&&(t[f.uuid]=h),e[h]=f,e.pop();for(let g=0,v=i;g!==v;++g){const p=n[g];p[h]=p[d],p.pop()}}}this.nCachedObjects_=r}subscribe_(e,t){const n=this._bindingsIndicesByPath;let i=n[e];const r=this._bindings;if(i!==void 0)return r[i];const o=this._paths,a=this._parsedPaths,l=this._objects,c=l.length,u=this.nCachedObjects_,h=new Array(c);i=r.length,n[e]=i,o.push(e),a.push(t),r.push(h);for(let d=u,f=l.length;d!==f;++d){const g=l[d];h[d]=new lt(g,e,t)}return h}unsubscribe_(e){const t=this._bindingsIndicesByPath,n=t[e];if(n!==void 0){const i=this._paths,r=this._parsedPaths,o=this._bindings,a=o.length-1,l=o[a],c=e[a];t[c]=n,o[n]=l,o.pop(),r[n]=r[a],r.pop(),i[n]=i[a],i.pop()}}}class Sm{constructor(e,t,n=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=n,this.blendMode=i;const r=t.tracks,o=r.length,a=new Array(o),l={endingStart:Ji,endingEnd:Ji};for(let c=0;c!==o;++c){const u=r[c].createInterpolant(null);a[c]=u,u.settings=l}this._interpolantSettings=l,this._interpolants=a,this._propertyBindings=new Array(o),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=np,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,n){if(e.fadeOut(t),this.fadeIn(t),n){const i=this._clip.duration,r=e._clip.duration,o=r/i,a=i/r;e.warp(1,o,t),this.warp(a,1,t)}return this}crossFadeTo(e,t,n){return e.crossFadeFrom(this,t,n)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,n){const i=this._mixer,r=i.time,o=this.timeScale;let a=this._timeScaleInterpolant;a===null&&(a=i._lendControlInterpolant(),this._timeScaleInterpolant=a);const l=a.parameterPositions,c=a.sampleValues;return l[0]=r,l[1]=r+n,c[0]=e/o,c[1]=t/o,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,n,i){if(!this.enabled){this._updateWeight(e);return}const r=this._startTime;if(r!==null){const l=(e-r)*n;l<0||n===0?t=0:(this._startTime=null,t=n*l)}t*=this._updateTimeScale(e);const o=this._updateTime(t),a=this._updateWeight(e);if(a>0){const l=this._interpolants,c=this._propertyBindings;switch(this.blendMode){case fu:for(let u=0,h=l.length;u!==h;++u)l[u].evaluate(o),c[u].accumulateAdditive(a);break;case Ra:default:for(let u=0,h=l.length;u!==h;++u)l[u].evaluate(o),c[u].accumulate(i,a)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const n=this._weightInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const n=this._timeScaleInterpolant;if(n!==null){const i=n.evaluate(e)[0];t*=i,e>n.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,n=this.loop;let i=this.time+e,r=this._loopCount;const o=n===ip;if(e===0)return r===-1?i:o&&(r&1)===1?t-i:i;if(n===tp){r===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(r===-1&&(e>=0?(r=0,this._setEndings(!0,this.repetitions===0,o)):this._setEndings(this.repetitions===0,!0,o)),i>=t||i<0){const a=Math.floor(i/t);i-=t*a,r+=Math.abs(a);const l=this.repetitions-r;if(l<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(l===1){const c=e<0;this._setEndings(c,!c,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}else this.time=i;if(o&&(r&1)===1)return t-i}return i}_setEndings(e,t,n){const i=this._interpolantSettings;n?(i.endingStart=Ki,i.endingEnd=Ki):(e?i.endingStart=this.zeroSlopeAtStart?Ki:Ji:i.endingStart=Ar,t?i.endingEnd=this.zeroSlopeAtEnd?Ki:Ji:i.endingEnd=Ar)}_scheduleFading(e,t,n){const i=this._mixer,r=i.time;let o=this._weightInterpolant;o===null&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);const a=o.parameterPositions,l=o.sampleValues;return a[0]=r,l[0]=t,a[1]=r+e,l[1]=n,this}}const WT=new Float32Array(1);class $T extends ui{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const n=e._localRoot||this._root,i=e._clip.tracks,r=i.length,o=e._propertyBindings,a=e._interpolants,l=n.uuid,c=this._bindingsByRootAndName;let u=c[l];u===void 0&&(u={},c[l]=u);for(let h=0;h!==r;++h){const d=i[h],f=d.name;let g=u[f];if(g!==void 0)++g.referenceCount,o[h]=g;else{if(g=o[h],g!==void 0){g._cacheIndex===null&&(++g.referenceCount,this._addInactiveBinding(g,l,f));continue}const v=t&&t._propertyBindings[h].binding.parsedPath;g=new bm(lt.create(n,f,v),d.ValueTypeName,d.getValueSize()),++g.referenceCount,this._addInactiveBinding(g,l,f),o[h]=g}a[h].resultBuffer=g.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const n=(e._localRoot||this._root).uuid,i=e._clip.uuid,r=this._actionsByClip[i];this._bindAction(e,r&&r.knownActions[0]),this._addInactiveAction(e,i,n)}const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const r=t[n];r.useCount++===0&&(this._lendBinding(r),r.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let n=0,i=t.length;n!==i;++n){const r=t[n];--r.useCount===0&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return t!==null&&t=0;--n)e[n].stop();return this}update(e){e*=this.timeScale;const t=this._actions,n=this._nActiveActions,i=this.time+=e,r=Math.sign(e),o=this._accuIndex^=1;for(let c=0;c!==n;++c)t[c]._update(i,e,r,o);const a=this._bindings,l=this._nActiveBindings;for(let c=0;c!==l;++c)a[c].apply(o);return this}setTime(e){this.time=0;for(let t=0;tthis.max.x||e.ythis.max.y)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return!(e.max.xthis.max.x||e.max.ythis.max.y)}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Td).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Ed=new N,Xo=new N;class jT{constructor(e=new N,t=new N){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){Ed.subVectors(e,this.start),Xo.subVectors(this.end,this.start);const n=Xo.dot(Xo);let r=Xo.dot(Ed)/n;return t&&(r=Ct(r,0,1)),r}closestPointToPoint(e,t,n){const i=this.closestPointToPointParameter(e,t);return this.delta(n).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const Cd=new N;class QT extends ct{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const n=new it,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let o=0,a=1,l=32;o1)for(let h=0;h.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{Nd.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(Nd,t)}}setLength(e,t=e*.2,n=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(n,t,n),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class dE extends Xn{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new it;i.setAttribute("position",new Ne(t,3)),i.setAttribute("color",new Ne(n,3));const r=new rn({vertexColors:!0,toneMapped:!1});super(i,r),this.type="AxesHelper"}setColors(e,t,n){const i=new Pe,r=this.geometry.attributes.color.array;return i.set(e),i.toArray(r,0),i.toArray(r,3),i.set(t),i.toArray(r,6),i.toArray(r,9),i.set(n),i.toArray(r,12),i.toArray(r,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class bi{constructor(){this.type="ShapePath",this.color=new Pe,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Ai,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,i){return this.currentPath.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,r,o){return this.currentPath.bezierCurveTo(e,t,n,i,r,o),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(m){const y=[];for(let _=0,x=m.length;_Number.EPSILON){if(M<0&&(E=y[b],w=-w,I=y[A],M=-M),m.yI.y)continue;if(m.y===E.y){if(m.x===E.x)return!0}else{const F=M*(m.x-E.x)-w*(m.y-E.y);if(F===0)return!0;if(F<0)continue;x=!x}}else{if(m.y!==E.y)continue;if(I.x<=m.x&&m.x<=E.x||E.x<=m.x&&m.x<=I.x)return!0}}return x}const i=Pn.isClockWise,r=this.subPaths;if(r.length===0)return[];let o,a,l;const c=[];if(r.length===1)return a=r[0],l=new Ti,l.curves=a.curves,c.push(l),c;let u=!i(r[0].getPoints());u=e?!u:u;const h=[],d=[];let f=[],g=0,v;d[g]=void 0,f[g]=[];for(let m=0,y=r.length;m1){let m=!1,y=0;for(let _=0,x=d.length;_0&&m===!1&&(f=h)}let p;for(let m=0,y=d.length;m{s.delete(i)};return{on:i=>{s.add(i);const r=()=>e(i);return $n(r),{off:r}},off:e,trigger:(...i)=>Promise.all(Array.from(s).map(r=>r(...i)))}}function bt(s){return typeof s=="function"?s():ee(s)}const Hc=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mE=s=>s!=null,gE=Object.prototype.toString,vE=s=>gE.call(s)==="[object Object]",Gc=()=>{};function _E(s,e){function t(...n){return new Promise((i,r)=>{Promise.resolve(s(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(r)})}return t}function yE(s,e={}){let t,n,i=Gc;const r=a=>{clearTimeout(a),i(),i=Gc};return a=>{const l=bt(s),c=bt(e.maxWait);return t&&r(t),l<=0||c!==void 0&&c<=0?(n&&(r(n),n=null),Promise.resolve(a())):new Promise((u,h)=>{i=e.rejectOnCancel?h:u,c&&!n&&(n=setTimeout(()=>{t&&r(t),n=null,u(a())},c)),t=setTimeout(()=>{n&&r(n),n=null,u(a())},l)})}}function xE(s,e,t=!1){return e.reduce((n,i)=>(i in s&&(!t||s[i]!==void 0)&&(n[i]=s[i]),n),{})}function ME(s){return pa()}function bE(s,e=200,t={}){return _E(yE(e,t),s)}function Dd(s,e=200,t={}){const n=Fe(s.value),i=bE(()=>{n.value=s.value},e,t);return wt(s,()=>i()),n}function SE(s,e={}){if(!Jd(s))return eg(s);const t=Array.isArray(s.value)?Array.from({length:s.value.length}):{};for(const n in s.value)t[n]=tg(()=>({get(){return s.value[n]},set(i){var r;if((r=bt(e.replaceRef))!=null?r:!0)if(Array.isArray(s.value)){const a=[...s.value];a[n]=i,s.value=a}else{const a={...s.value,[n]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(s.value)),s.value=a}else s.value[n]=i}}));return t}function Gu(s,e=!0,t){ME()?Nn(s,t):e?s():Jc(s)}function wE(s,e=1e3,t={}){const{immediate:n=!0,immediateCallback:i=!1}=t;let r=null;const o=Fe(!1);function a(){r&&(clearInterval(r),r=null)}function l(){o.value=!1,a()}function c(){const u=bt(e);u<=0||(o.value=!0,i&&s(),a(),r=setInterval(s,u))}if(n&&Hc&&c(),Jd(e)||typeof e=="function"){const u=wt(e,()=>{o.value&&Hc&&c()});$n(u)}return $n(l),{isActive:o,pause:l,resume:c}}function Cn(s){var e;const t=bt(s);return(e=t==null?void 0:t.$el)!=null?e:t}const di=Hc?window:void 0;function Br(...s){let e,t,n,i;if(typeof s[0]=="string"||Array.isArray(s[0])?([t,n,i]=s,e=di):[e,t,n,i]=s,!e)return Gc;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},a=(u,h,d,f)=>(u.addEventListener(h,d,f),()=>u.removeEventListener(h,d,f)),l=wt(()=>[Cn(e),bt(i)],([u,h])=>{if(o(),!u)return;const d=vE(h)?{...h}:h;r.push(...t.flatMap(f=>n.map(g=>a(u,f,g,d))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return $n(c),c}function AE(){const s=Fe(!1),e=pa();return e&&Nn(()=>{s.value=!0},e),s}function sl(s){const e=AE();return Ve(()=>(e.value,!!s()))}function TE(s,e,t={}){const{window:n=di,...i}=t;let r;const o=sl(()=>n&&"MutationObserver"in n),a=()=>{r&&(r.disconnect(),r=void 0)},l=Ve(()=>{const d=bt(s),f=(Array.isArray(d)?d:[d]).map(Cn).filter(mE);return new Set(f)}),c=wt(()=>l.value,d=>{a(),o.value&&d.size&&(r=new MutationObserver(e),d.forEach(f=>r.observe(f,i)))},{immediate:!0,flush:"post"}),u=()=>r==null?void 0:r.takeRecords(),h=()=>{a(),c()};return $n(h),{isSupported:o,stop:h,takeRecords:u}}function Wu(s,e={}){const{immediate:t=!0,fpsLimit:n=void 0,window:i=di}=e,r=Fe(!1),o=n?1e3/n:null;let a=0,l=null;function c(d){if(!r.value||!i)return;a||(a=d);const f=d-a;if(o&&ft&&"matchMedia"in t&&typeof t.matchMedia=="function");let i;const r=Fe(!1),o=c=>{r.value=c.matches},a=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},l=Pi(()=>{n.value&&(a(),i=t.matchMedia(bt(s)),"addEventListener"in i?i.addEventListener("change",o):i.addListener(o),r.value=i.matches)});return $n(()=>{l(),a(),i=void 0}),r}function CE(s={}){const{window:e=di}=s,t=Fe(1);if(e){let n=function(){t.value=e.devicePixelRatio,i(),r=e.matchMedia(`(resolution: ${t.value}dppx)`),r.addEventListener("change",n,{once:!0})},i=function(){r==null||r.removeEventListener("change",n)},r;n(),$n(i)}return{pixelRatio:t}}function Em(s,e,t={}){const{window:n=di,...i}=t;let r;const o=sl(()=>n&&"ResizeObserver"in n),a=()=>{r&&(r.disconnect(),r=void 0)},l=Ve(()=>Array.isArray(s)?s.map(h=>Cn(h)):[Cn(s)]),c=wt(l,h=>{if(a(),o.value&&n){r=new ResizeObserver(e);for(const d of h)d&&r.observe(d,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return $n(u),{isSupported:o,stop:u}}function PE(s,e={}){const{reset:t=!0,windowResize:n=!0,windowScroll:i=!0,immediate:r=!0}=e,o=Fe(0),a=Fe(0),l=Fe(0),c=Fe(0),u=Fe(0),h=Fe(0),d=Fe(0),f=Fe(0);function g(){const v=Cn(s);if(!v){t&&(o.value=0,a.value=0,l.value=0,c.value=0,u.value=0,h.value=0,d.value=0,f.value=0);return}const p=v.getBoundingClientRect();o.value=p.height,a.value=p.bottom,l.value=p.left,c.value=p.right,u.value=p.top,h.value=p.width,d.value=p.x,f.value=p.y}return Em(s,g),wt(()=>Cn(s),v=>!v&&g()),TE(s,g,{attributeFilter:["style","class"]}),i&&Br("scroll",g,{capture:!0,passive:!0}),n&&Br("resize",g,{passive:!0}),Gu(()=>{r&&g()}),{height:o,bottom:a,left:l,right:c,top:u,width:h,x:d,y:f,update:g}}function RE(s,e={width:0,height:0},t={}){const{window:n=di,box:i="content-box"}=t,r=Ve(()=>{var h,d;return(d=(h=Cn(s))==null?void 0:h.namespaceURI)==null?void 0:d.includes("svg")}),o=Fe(e.width),a=Fe(e.height),{stop:l}=Em(s,([h])=>{const d=i==="border-box"?h.borderBoxSize:i==="content-box"?h.contentBoxSize:h.devicePixelContentBoxSize;if(n&&r.value){const f=Cn(s);if(f){const g=f.getBoundingClientRect();o.value=g.width,a.value=g.height}}else if(d){const f=Array.isArray(d)?d:[d];o.value=f.reduce((g,{inlineSize:v})=>g+v,0),a.value=f.reduce((g,{blockSize:v})=>g+v,0)}else o.value=h.contentRect.width,a.value=h.contentRect.height},t);Gu(()=>{const h=Cn(s);h&&(o.value="offsetWidth"in h?h.offsetWidth:e.width,a.value="offsetHeight"in h?h.offsetHeight:e.height)});const c=wt(()=>Cn(s),h=>{o.value=h?e.width:0,a.value=h?e.height:0});function u(){l(),c()}return{width:o,height:a,stop:u}}function IE(s){var e;const t=Fe(0);if(typeof performance>"u")return t;const n=(e=s==null?void 0:s.every)!=null?e:10;let i=performance.now(),r=0;return Wu(()=>{if(r+=1,r>=n){const o=performance.now(),a=o-i;t.value=Math.round(1e3/(a/r)),i=o,r=0}}),t}function LE(s={}){const e=Fe(),t=sl(()=>typeof performance<"u"&&"memory"in performance);if(t.value){const{interval:n=1e3}=s;wE(()=>{e.value=performance.memory},n,{immediate:s.immediate,immediateCallback:s.immediateCallback})}return{isSupported:t,memory:e}}const Cm={x:0,y:0,pointerId:0,pressure:0,tiltX:0,tiltY:0,width:0,height:0,twist:0,pointerType:null},NE=Object.keys(Cm);function DE(s={}){const{target:e=di}=s,t=Fe(!1),n=Fe(s.initialValue||{});Object.assign(n.value,Cm,n.value);const i=r=>{t.value=!0,!(s.pointerTypes&&!s.pointerTypes.includes(r.pointerType))&&(n.value=xE(r,NE,!1))};if(e){const r={passive:!0};Br(e,["pointerdown","pointermove","pointerup"],i,r),Br(e,"pointerleave",()=>t.value=!1,r)}return{...SE(n),isInside:t}}function UE(s={}){const{window:e=di,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0}=s,o=Fe(t),a=Fe(n),l=()=>{e&&(r?(o.value=e.innerWidth,a.value=e.innerHeight):(o.value=e.document.documentElement.clientWidth,a.value=e.document.documentElement.clientHeight))};if(l(),Gu(l),Br("resize",l,{passive:!0}),i){const c=EE("(orientation: portrait)");wt(c,()=>l())}return{width:o,height:a}}var OE=Object.defineProperty,FE=(s,e,t)=>e in s?OE(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,Ud=(s,e,t)=>(FE(s,typeof e!="symbol"?e+"":e,t),t);const kE="@tresjs/core",BE="module",zE="4.0.2",VE="pnpm@9.1.4",HE="Declarative ThreeJS using Vue Components",GE="Alvaro Saburido (https://github.com/alvarosabu/)",WE="MIT",$E=["vue","3d","threejs","three","threejs-vue"],XE=!1,qE={".":{types:"./dist/index.d.ts",import:"./dist/tres.js",require:"./dist/tres.umd.cjs"},"./components":{types:"./dist/src/components/index.d.ts"},"./composables":{types:"./dist/src/composables/index.d.ts"},"./types":{types:"./dist/src/types/index.d.ts"},"./utils":{types:"./dist/src/utils/index.d.ts"},"./*":"./*"},YE="./dist/tres.js",ZE="./dist/tres.js",JE="./dist/index.d.ts",KE=["*.d.ts","dist"],jE={access:"public"},QE={dev:"cd playground && npm run dev",build:"vite build",playground:"cd playground && npm run dev",test:"vitest","test:ci":"vitest run","test:ui":"vitest --ui --coverage.enabled=true",release:"release-it",coverage:"vitest run --coverage",lint:"eslint .","lint:fix":"eslint . --fix","docs:dev":"vitepress dev docs","docs:build":"vitepress build docs","docs:serve":"vitepress serve docs","docs:preview":"vitepress preview docs","docs:contributors":"esno scripts/update-contributors.ts",prepare:"node .husky/install.mjs"},eC={three:">=0.133",vue:">=3.4"},tC={"@alvarosabu/utils":"^3.2.0","@vue/devtools-api":"^6.6.2","@vueuse/core":"^10.10.0"},nC={"@release-it/conventional-changelog":"^8.0.1","@stackblitz/sdk":"^1.10.0","@tresjs/cientos":"3.9.0","@tresjs/eslint-config":"^1.1.0","@types/three":"^0.165.0","@typescript-eslint/eslint-plugin":"^7.11.0","@typescript-eslint/parser":"^7.11.0","@vitejs/plugin-vue":"^5.0.5","@vitest/coverage-c8":"^0.33.0","@vitest/coverage-v8":"^1.6.0","@vitest/ui":"^1.6.0","@vue/test-utils":"^2.4.6",eslint:"^9.4.0","eslint-plugin-vue":"^9.26.0",esno:"^4.7.0",gsap:"^3.12.5",husky:"^9.0.11",jsdom:"^24.1.0",kolorist:"^1.8.0",ohmyfetch:"^0.4.21",pathe:"^1.1.2","release-it":"^17.3.0","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-copy":"^3.5.0","rollup-plugin-visualizer":"^5.12.0",three:"^0.165.0",unocss:"^0.60.4",unplugin:"^1.10.1","unplugin-vue-components":"^0.27.0",vite:"^5.2.12","vite-plugin-banner":"^0.7.1","vite-plugin-dts":"3.9.1","vite-plugin-inspect":"^0.8.4","vite-plugin-require-transform":"^1.0.21","vite-svg-loader":"^5.1.0",vitepress:"1.2.2",vitest:"^1.6.0",vue:"^3.4.27","vue-demi":"^0.14.8"},iC={name:kE,type:BE,version:zE,packageManager:VE,description:HE,author:GE,license:WE,keywords:$E,sideEffects:XE,exports:qE,main:YE,module:ZE,types:JE,files:KE,publishConfig:jE,scripts:QE,peerDependencies:eC,dependencies:tC,devDependencies:nC},sC=({sizes:s})=>{const e=Fe([]),t=Ve(()=>e.value[0]),n=o=>{const a=o instanceof Xr?o:e.value.find(c=>c.uuid===o);if(!a)return;const l=e.value.filter(({uuid:c})=>c!==a.uuid);e.value=[a,...l]},i=(o,a=!1)=>{e.value.some(({uuid:l})=>l===o.uuid)||(a?n(o):e.value.push(o))},r=o=>{e.value=e.value.filter(({uuid:a})=>a!==o.uuid)};return Pi(()=>{s.aspectRatio.value&&e.value.forEach(o=>{!o.manual&&(o instanceof Ut||rC(o))&&(o instanceof Ut?o.aspect=s.aspectRatio.value:(o.left=s.width.value*-.5,o.right=s.width.value*.5,o.top=s.height.value*.5,o.bottom=s.height.value*-.5),o.updateProjectionMatrix())})}),Gn(()=>{e.value=[]}),{camera:t,cameras:e,registerCamera:i,deregisterCamera:r,setCameraActive:n}};function rC(s){return s.hasOwnProperty("isOrthographicCamera")&&s.isOrthographicCamera}const Pm=An(),Rm=An(),$u=An(),mr=new il;let da=0,fa=0;const{pause:oC,resume:Od,isActive:aC}=Wu(()=>{Pm.trigger({delta:da,elapsed:fa,clock:mr}),Rm.trigger({delta:da,elapsed:fa,clock:mr}),$u.trigger({delta:da,elapsed:fa,clock:mr})},{immediate:!1});$u.on(()=>{da=mr.getDelta(),fa=mr.getElapsedTime()});let Fd=!1;const lC=()=>(Fd||(Fd=!0,Od()),{onBeforeLoop:Pm.on,onLoop:Rm.on,onAfterLoop:$u.on,pause:oC,resume:Od,isActive:aC}),jo="[TresJS ▲ ■ ●] ";function eo(){function s(...n){typeof n[0]=="string"?n[0]=jo+n[0]:n.unshift(jo),console.error(...n)}function e(...n){typeof n[0]=="string"?n[0]=jo+n[0]:n.unshift(jo),console.warn(...n)}function t(n,i){}return{logError:s,logWarning:e,logMessage:t}}function cC(s){return s instanceof Pe?s:Array.isArray(s)?new Pe(...s):new Pe(s)}class uC extends Nt{constructor(...e){super(...e),Ud(this,"type","HightlightMesh"),Ud(this,"createTime"),this.createTime=Date.now()}onBeforeRender(){const e=(Date.now()-this.createTime)/1e3,t=1+.07*Math.sin(2.5*e);this.scale.set(t,t,t)}}const Im=(s,e)=>{for(const t of Object.keys(e))e[t]instanceof Object&&Object.assign(e[t],Im(s[t],e[t]));return Object.assign(s||{},e),s},hC="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",dC=mC(hC);function kd(s){return s&&s.nodeType===1}function Qo(s){return s.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}const fC=/\B([A-Z])/g;function pC(s){return s.replace(fC,"-$1").toLowerCase()}function mC(s,e){const t=Object.create(null),n=s.split(",");for(let i=0;i!!t[i]}const Bd=(s,e)=>{if(!e)return;const t=Array.isArray(e)?e:e.match(/([^[.\]])+/g);return t==null?void 0:t.reduce((n,i)=>n&&n[i],s)},gC=(s,e,t)=>{const n=Array.isArray(e)?e:e.match(/([^[.\]])+/g);n&&n.reduce((i,r,o)=>(i[r]===void 0&&(i[r]={}),o===n.length-1&&(i[r]=t),i[r]),s)};function Lm(s,e){if(kd(s)&&kd(e)){const i=s.attributes,r=e.attributes;return i.length!==r.length?!1:Array.from(i).every(({name:o,value:a})=>e.getAttribute(o)===a)}if(s===e)return!0;if(s===null||typeof s!="object"||e===null||typeof e!="object")return!1;const t=Object.keys(s),n=Object.keys(e);if(t.length!==n.length)return!1;for(const i of t)if(!n.includes(i)||!Lm(s[i],e[i]))return!1;return!0}function vC(s,e){if(!Array.isArray(s)||!Array.isArray(e)||s.length!==e.length)return!1;for(let t=0;t{if(l.uuid===e)return l;for(const c of l.children){const u=i(c);if(u)return u}},r=i(s);if(!r){console.warn("Object with UUID not found in the scene.");return}let o=r;for(let l=0;lXu(n)),!(s instanceof ka)){const n=s;s&&((t=s.dispose)==null||t.call(s)),n.geometry&&(n.geometry.dispose(),delete n.geometry),Array.isArray(n.material)?(n.material.forEach(i=>zd(i)),delete n.material):n.material&&(zd(n.material),delete n.material)}}const MC=Number.parseInt(Hr.replace("dev","")),ea={realistic:{shadows:!0,physicallyCorrectLights:!0,outputColorSpace:ln,toneMapping:Ca,toneMappingExposure:3,shadowMap:{enabled:!0,type:su}},flat:{toneMapping:Hn,toneMappingExposure:1}};function bC({canvas:s,options:e,contextParts:{sizes:t,render:n,invalidate:i,advance:r}}){const o=Ve(()=>({alpha:bt(e.alpha)??!0,depth:bt(e.depth),canvas:Cn(s),context:bt(e.context),stencil:bt(e.stencil),antialias:bt(e.antialias)??!0,precision:bt(e.precision),powerPreference:bt(e.powerPreference),premultipliedAlpha:bt(e.premultipliedAlpha),preserveDrawingBuffer:bt(e.preserveDrawingBuffer),logarithmicDepthBuffer:bt(e.logarithmicDepthBuffer),failIfMajorPerformanceCaveat:bt(e.failIfMajorPerformanceCaveat)})),a=Rn(new ha(o.value));function l(){e.renderMode==="on-demand"&&i()}wt(o,()=>{a.value.dispose(),a.value=new ha(o.value),l()}),wt([t.width,t.height],()=>{a.value.setSize(t.width.value,t.height.value),l()},{immediate:!0}),wt(()=>e.clearColor,l);const{pixelRatio:c}=CE();wt(c,()=>{a.value.setPixelRatio(c.value)});const{logError:u}=eo(),h=(()=>{const f=new ha,g={shadowMap:{enabled:f.shadowMap.enabled,type:f.shadowMap.type},toneMapping:f.toneMapping,toneMappingExposure:f.toneMappingExposure,outputColorSpace:f.outputColorSpace};return f.dispose(),g})(),d=bt(e.renderMode);return d==="on-demand"&&i(),d==="manual"&&setTimeout(()=>{r()},100),Pi(()=>{const f=bt(e.preset);f&&(f in ea||u(`Renderer Preset must be one of these: ${Object.keys(ea).join(", ")}`),Im(a.value,ea[f])),d==="always"&&(n.frames.value=Math.max(1,n.frames.value));const g=(m,y)=>{const _=bt(m),x=()=>{if(f)return Bd(ea[f],y)};if(_!==void 0)return _;const A=x();return A!==void 0?A:Bd(h,y)},v=(m,y)=>gC(a.value,y,g(m,y));v(e.shadows,"shadowMap.enabled"),v(e.toneMapping??Ca,"toneMapping"),v(e.shadowMapType,"shadowMap.type"),MC<150&&v(!e.useLegacyLights,"physicallyCorrectLights"),v(e.outputColorSpace,"outputColorSpace"),v(e.toneMappingExposure,"toneMappingExposure");const p=g(e.clearColor,"clearColor");p&&a.value.setClearColor(p?cC(p):new Pe(0))}),Gn(()=>{a.value.dispose(),a.value.forceContextLoss()}),{renderer:a}}const ta=s=>typeof s=="function",SC=s=>!!s&&s.constructor===Array;function wC(s){const e={nodes:{},materials:{}};return s&&s.traverse(t=>{t.name&&(e.nodes[t.name]=t),t.material&&!e.materials[t.material.name]&&(e.materials[t.material.name]=t.material)}),e}async function AC(s,e,t,n,i){const{logError:r}=eo(),o=new s,a=(Array.isArray(e)?e:[e]).map(l=>new Promise((c,u)=>{o.load(l,h=>{h.scene&&Object.assign(h,wC(h.scene)),c(h)},n,h=>u(r("[useLoader] - Failed to load resource",h)))}));return SC(e)?await Promise.all(a):await a[0]}const TC=(s,e)=>{const t=Ve(()=>e.renderer.value.domElement),n=Rn([]),{x:i,y:r}=DE({target:t}),o=Ve(()=>s.value.filter(ge=>{var ze;return((ze=ge.__tres)==null?void 0:ze.eventCount)>0}));let a=0;const{width:l,height:c,top:u,left:h}=PE(t),d=({x:ge,y:ze})=>{if(t.value)return{x:(ge-h.value)/l.value*2-1,y:-((ze-u.value)/c.value)*2+1}},f=({x:ge,y:ze})=>{if(e.camera.value)return e.raycaster.value.setFromCamera(new se(ge,ze),e.camera.value),n.value=e.raycaster.value.intersectObjects(o.value,!0),n.value},g=ge=>{const ze=d({x:(ge==null?void 0:ge.clientX)??i.value,y:(ge==null?void 0:ge.clientY)??r.value});return ze?f(ze)||[]:[]},v=An(),p=An(),m=An(),y=An(),_=An(),x=An(),A=An(),b=An();function E(ge){const ze={};for(const U in ge)typeof U!="function"&&(ze[U]=ge[U]);return ze}const I=(ge,ze)=>{var U,D,R;const T=E(ze),ie=new N(ze==null?void 0:ze.clientX,ze==null?void 0:ze.clientY,0).unproject((U=e.camera)==null?void 0:U.value);ge.trigger({...T,intersections:n.value,unprojectedPoint:ie,ray:(D=e.raycaster)==null?void 0:D.value.ray,camera:(R=e.camera)==null?void 0:R.value,sourceEvent:ze,delta:a,stopPropagating:!1})};let w;const M=ge=>{g(ge),I(m,ge),w=ge},F=()=>{w&&M(w)};let z,G,q;const ae=ge=>{var ze;z=(ze=n.value[0])==null?void 0:ze.object,a=0,G=new se((ge==null?void 0:ge.clientX)??i.value,(ge==null?void 0:ge.clientY)??r.value),I(_,ge)};let j,oe=!1;const B=ge=>{var ze,U,D;ge instanceof PointerEvent&&(n.value.length===0&&I(x,ge),z===((ze=n.value[0])==null?void 0:ze.object)&&(q=new se((ge==null?void 0:ge.clientX)??i.value,(ge==null?void 0:ge.clientY)??r.value),a=G==null?void 0:G.distanceTo(q),ge.button===0?(I(v,ge),j===((U=n.value[0])==null?void 0:U.object)?oe=!0:(j=(D=n.value[0])==null?void 0:D.object,oe=!1)):ge.button===2&&I(A,ge)),I(y,ge))},Me=ge=>{oe&&(I(p,ge),j=void 0,oe=!1)},be=ge=>I(m,ge),Ae=ge=>I(b,ge);return t.value.addEventListener("pointerup",B),t.value.addEventListener("pointerdown",ae),t.value.addEventListener("pointermove",M),t.value.addEventListener("pointerleave",be),t.value.addEventListener("dblclick",Me),t.value.addEventListener("wheel",Ae),Gn(()=>{t!=null&&t.value&&(t.value.removeEventListener("pointerup",B),t.value.removeEventListener("pointerdown",ae),t.value.removeEventListener("pointermove",M),t.value.removeEventListener("pointerleave",be),t.value.removeEventListener("dblclick",Me),t.value.removeEventListener("wheel",Ae))}),{intersects:n,onClick:ge=>v.on(ge).off,onDblClick:ge=>p.on(ge).off,onContextMenu:ge=>A.on(ge).off,onPointerMove:ge=>m.on(ge).off,onPointerUp:ge=>y.on(ge).off,onPointerDown:ge=>_.on(ge).off,onPointerMissed:ge=>x.on(ge).off,onWheel:ge=>b.on(ge).off,forceUpdate:F}};function qu(s){let e=0;return s.traverse(t=>{if(t.isMesh&&t.geometry){const n=t.geometry,i=n.attributes.position.count*3*Float32Array.BYTES_PER_ELEMENT,r=n.index?n.index.count*Uint32Array.BYTES_PER_ELEMENT:0,o=n.attributes.normal?n.attributes.normal.count*3*Float32Array.BYTES_PER_ELEMENT:0,a=n.attributes.uv?n.attributes.uv.count*2*Float32Array.BYTES_PER_ELEMENT:0,l=i+r+o+a;e+=l}}),e}function EC(s){return(s/1024).toFixed(2)}const Wc=Fe({}),$c=s=>Object.assign(Wc.value,s);function CC(s,e,t=10){const n=bt(s)?UE():RE(Ve(()=>bt(e).parentElement)),i=gr(Dd(n.width,t)),r=gr(Dd(n.height,t)),o=Ve(()=>i.value/r.value);return{height:r,width:i,aspectRatio:o}}function Jl(){const s=new Map,e=new Set;let t=0,n=!1;const i=()=>{const o=Array.from(s.entries()).sort((a,l)=>{const c=a[1].priority-l[1].priority;return c===0?a[1].addI-l[1].addI:c});e.clear(),o.forEach(a=>e.add(a[0]))},r=o=>{s.delete(o),e.delete(o)};return{on:(o,a=0)=>{s.set(o,{priority:a,addI:t++});const l=()=>r(o);return $n(l),n=!0,{off:l}},off:r,trigger:(...o)=>{n&&(i(),n=!1),e.forEach(a=>a(...o))},dispose:()=>{s.clear(),e.clear()},get count(){return s.size}}}function PC(){const s=new il(!1),e=Fe(!1),t=Fe(!1);let n;const i=pp.generateUUID();let r=null;const o=Jl(),a=Jl(),l=Jl();let c={};function u(_){c=_}function h(_,x,A=0){switch(x){case"before":return o.on(_,A);case"render":return r||(r=_),a.dispose(),a.on(_);case"after":return l.on(_,A)}}function d(){e.value||(s.start(),e.value=!0,y())}function f(){e.value&&(s.stop(),cancelAnimationFrame(n),e.value=!1)}function g(){s.stop(),e.value=!1}function v(){s.start(),e.value=!0}function p(){t.value=!0}function m(){t.value=!1}function y(){const _=s.getDelta(),x=s.getElapsedTime(),A={camera:ee(c.camera),scene:ee(c.scene),renderer:ee(c.renderer),raycaster:ee(c.raycaster),controls:ee(c.controls),invalidate:c.invalidate,advance:c.advance},b={delta:_,elapsed:x,clock:s,...A};e.value&&o.trigger(b),t.value||(a.count?a.trigger(b):r&&r(b)),e.value&&l.trigger(b),n=requestAnimationFrame(y)}return{loopId:i,register:(_,x,A)=>h(_,x,A),start:d,stop:f,pause:g,resume:v,pauseRender:p,resumeRender:m,isRenderPaused:t,isActive:e,setContext:u}}function RC({scene:s,canvas:e,windowSize:t,disableRender:n,rendererOptions:i,emit:r}){const{logWarning:o}=eo(),a=Rn(s),l=CC(t,e),{camera:c,cameras:u,registerCamera:h,deregisterCamera:d,setCameraActive:f}=sC({sizes:l,scene:s}),g={mode:Fe(i.renderMode||"always"),priority:Fe(0),frames:Fe(0),maxFrames:60,canBeInvalidated:Ve(()=>g.mode.value==="on-demand"&&g.frames.value===0)};function v(G=1){i.renderMode==="on-demand"?g.frames.value=Math.min(g.maxFrames,g.frames.value+G):o("`invalidate` can only be used when `renderMode` is set to `on-demand`")}function p(){i.renderMode==="manual"?g.frames.value=1:o("`advance` can only be used when `renderMode` is set to `manual`")}const{renderer:m}=bC({scene:s,canvas:e,options:i,emit:r,contextParts:{sizes:l,camera:c,render:g,invalidate:v,advance:p},disableRender:n}),y={sizes:l,scene:a,camera:c,cameras:gr(u),renderer:m,raycaster:Rn(new wm),controls:Fe(null),perf:{maxFrames:160,fps:{value:0,accumulator:[]},memory:{currentMem:0,allocatedMem:0,accumulator:[]}},render:g,advance:p,extend:$c,invalidate:v,registerCamera:h,setCameraActive:f,deregisterCamera:d,loop:PC()};vr("useTres",y),y.scene.value.__tres={root:y},y.loop.register(()=>{c.value&&g.frames.value>0&&(m.value.render(s,c.value),r("render",y.renderer.value)),g.priority.value=0,g.mode.value==="always"?g.frames.value=1:g.frames.value=Math.max(0,g.frames.value-1)},"render"),y.loop.start(),Gn(()=>{y.loop.stop()});const _=100,x=IE({every:_}),{isSupported:A,memory:b}=LE({interval:_}),E=160;let I=performance.now();const w=({timestamp:G})=>{y.scene.value&&(y.perf.memory.allocatedMem=qu(y.scene.value)),G-I>=_&&(I=G,y.perf.fps.accumulator.push(x.value),y.perf.fps.accumulator.length>E&&y.perf.fps.accumulator.shift(),y.perf.fps.value=x.value,A.value&&b.value&&(y.perf.memory.accumulator.push(b.value.usedJSHeapSize/1024/1024),y.perf.memory.accumulator.length>E&&y.perf.memory.accumulator.shift(),y.perf.memory.currentMem=y.perf.memory.accumulator.reduce((q,ae)=>q+ae,0)/y.perf.memory.accumulator.length))};let M=0;const F=1,{pause:z}=Wu(({delta:G})=>{window.__TRES__DEVTOOLS__&&(w({timestamp:performance.now()}),M+=G,M>=F&&(window.__TRES__DEVTOOLS__.cb(y),M=0))},{immediate:!0});return Gn(()=>{z()}),y}function IC(s,e,t){const n=Rn(),i=Rn();s&&(n.value=s),e&&(i.value=e);const r=Ve(()=>n.value?n.value.children:[]);function o(A,b){if(Array.isArray(A))for(const E of A)E(b);typeof A=="function"&&A(b)}function a(A,b){const E=[],I=()=>b.stopPropagating=!0;b.stopPropagation=I;for(const w of b==null?void 0:b.intersections){if(b.stopPropagating)return;b={...b,...w};const{object:M}=w;b.eventObject=M,o(M[A],b),E.push(M);let F=M.parent;for(;F!==null&&!b.stopPropagating&&!E.includes(F);)b.eventObject=F,o(F[A],b),E.push(F),F=F.parent;const z=pC(A.slice(2));t(z,{intersection:w,event:b})}}const{onClick:l,onDblClick:c,onContextMenu:u,onPointerMove:h,onPointerDown:d,onPointerUp:f,onPointerMissed:g,onWheel:v,forceUpdate:p}=TC(r,e);f(A=>a("onPointerUp",A)),d(A=>a("onPointerDown",A)),l(A=>a("onClick",A)),c(A=>a("onDoubleClick",A)),u(A=>a("onContextMenu",A)),v(A=>a("onWheel",A));let m=[];h(A=>{const b=A.intersections.map(({object:I})=>I),E=A.intersections;m.forEach(({object:I})=>{b.includes(I)||(A.intersections=m,a("onPointerLeave",A),a("onPointerOut",A))}),A.intersections=E,A.intersections.forEach(({object:I})=>{m.includes(I)||(a("onPointerEnter",A),a("onPointerOver",A))}),a("onPointerMove",A),m=A.intersections});const y=[];g(A=>{const b=()=>A.stopPropagating=!0;A.stopPropagation=b,y.forEach(E=>{A.stopPropagating||(A.eventObject=E,o(E.onPointerMissed,A))}),t("pointer-missed",{event:A})});function _(A){y.push(A)}function x(A){const b=y.indexOf(A);b>-1&&y.splice(b,1)}return e.eventManager={forceUpdate:p,registerPointerMissedObject:_,deregisterPointerMissedObject:x},{forceUpdate:p,registerPointerMissedObject:_,deregisterPointerMissedObject:x}}const{logError:Vd}=eo(),Hd=["onClick","onContextMenu","onPointerMove","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onDoubleClick","onPointerDown","onPointerUp","onPointerCancel","onPointerMissed","onLostPointerCapture","onWheel"];function Gd(s){var e;const t=(e=s==null?void 0:s.__tres)==null?void 0:e.root;t&&t.render&&t.render.canBeInvalidated.value&&t.invalidate()}const LC=()=>{let s=null;function e(l,c,u,h){if(h||(h={}),h.args||(h.args=[]),l==="template"||dC(l))return null;let d=l.replace("Tres",""),f;if(l==="primitive"){(h==null?void 0:h.object)===void 0&&Vd("Tres primitives need a prop 'object'");const g=h.object;d=g.type,f=Object.assign(g.clone(),{type:d})}else{const g=Wc.value[d];g||Vd(`${d} is not defined on the THREE namespace. Use extend to add it to the catalog.`),f=new g(...h.args)}return f?(f.isCamera&&(h!=null&&h.position||f.position.set(3,3,3),h!=null&&h.lookAt||f.lookAt(0,0,0)),(h==null?void 0:h.attach)===void 0&&(f.isMaterial?f.attach="material":f.isBufferGeometry&&(f.attach="geometry")),f.__tres={...f.__tres,type:d,memoizedProps:h,eventCount:0,disposable:!0,primitive:l==="primitive"},f.isObject3D&&f.__tres&&(h!=null&&h.material||h!=null&&h.geometry)&&(f.__tres.disposable=!1),f):null}function t(l,c){var u,h,d,f,g;if(!l)return;c&&c.isScene&&(s=c),s&&l.__tres&&(l.__tres.root=s.__tres.root);const v=c||s;if(l!=null&&l.isObject3D){const{registerCamera:p}=(u=l==null?void 0:l.__tres)==null?void 0:u.root;l!=null&&l.isCamera&&p(l),l.onPointerMissed&&(h=l==null?void 0:l.__tres)!=null&&h.root&&((g=(f=(d=l==null?void 0:l.__tres)==null?void 0:d.root)==null?void 0:f.eventManager)==null||g.registerPointerMissedObject(l))}l!=null&&l.isObject3D&&v!=null&&v.isObject3D?(v.add(l),l.dispatchEvent({type:"added"})):l!=null&&l.isFog?v.fog=l:typeof(l==null?void 0:l.attach)=="string"&&(l.__previousAttach=l[v==null?void 0:v.attach],v&&(v[l.attach]=l))}function n(l){var c,u,h,d;if(!l)return;const f=l.__tres;if(l.parent=l.parent||s,l.isObject3D){const g=v=>{var p,m;const y=(m=(p=l==null?void 0:l.__tres)==null?void 0:p.root)==null?void 0:m.deregisterCamera;v.isCamera&&(y==null||y(v))};(c=l.removeFromParent)==null||c.call(l),l.traverse(v=>{var p,m;g(v),v.onPointerMissed&&((m=(p=f==null?void 0:f.root)==null?void 0:p.eventManager)==null||m.deregisterPointerMissedObject(v))}),g(l),Gd(l),!((u=l.__tres)!=null&&u.primitive)&&(h=l.__tres)!=null&&h.disposable&&Xu(l),(d=l.dispose)==null||d.call(l)}}function i(l,c,u,h){var d,f;if(l){let g=l,v=c;if((d=l==null?void 0:l.__tres)!=null&&d.primitive&&v==="object"&&u!==null){const _=e("primitive",void 0,void 0,{object:h});for(const x in _){if(x==="uuid")continue;const A=l[x],b=_[x];!(A!=null&&A.set)&&!ta(A)?l[x]=b:A.constructor===b.constructor&&A!=null&&A.copy?A==null||A.copy(b):Array.isArray(b)?A.set(...b):!A.isColor&&A.setScalar?A.setScalar(b):A.set(b)}_!=null&&_.__tres&&(_.__tres.root=s==null?void 0:s.__tres.root),_!=null&&_.isGroup?(l.geometry=void 0,l.material=void 0):delete l.isGroup}if(l!=null&&l.isObject3D&&v==="blocks-pointer-events"){h||h===""?l[v]=h:delete l[v];return}Hd.includes(c)&&(l.__tres.eventCount+=1);let p=Qo(v),m=g==null?void 0:g[p];if(v==="args"){const _=l,x=u??[],A=h??[],b=((f=l==null?void 0:l.__tres)==null?void 0:f.type)||l.type;b&&x.length&&!vC(x,A)&&(g=Object.assign(_,new Wc.value[b](...h)));return}if(g.type==="BufferGeometry"){if(v==="args")return;g.setAttribute(Qo(v),new pt(...h));return}if(v.includes("-")&&m===void 0){const _=v.split("-");m=_.reduce((x,A)=>x[Qo(A)],g),v=_.pop(),p=v,m!=null&&m.set||(g=_.reduce((x,A)=>x[Qo(A)],g))}let y=h;if(y===""&&(y=!0),ta(m)){Hd.includes(c)||(Array.isArray(y)?l[p](...y):l[p](y)),p.startsWith("on")&&ta(y)&&(g[p]=y);return}!(m!=null&&m.set)&&!ta(m)?g[p]=y:m.constructor===y.constructor&&m!=null&&m.copy?m==null||m.copy(y):Array.isArray(y)?m.set(...y):!m.isColor&&m.setScalar?m.setScalar(y):m.set(y),Gd(l)}}function r(l){return(l==null?void 0:l.parent)||null}function o(l){const c=new ct;return c.name=l,c.__tres={type:"Comment"},c.__tres.root=s==null?void 0:s.__tres.root,c}function a(l){if(!l)return null;const c=l.parent||s,u=c.children.indexOf(l);return c.children[u+1]||null}return{insert:t,remove:n,createElement:e,patchProp:i,parentNode:r,createText:()=>{},createComment:o,setText:()=>{},setElementText:()=>{},nextSibling:a,querySelector:()=>{},setScopeId:()=>{},cloneNode:()=>{},insertStaticContent:()=>{}}};function NC(){return Nm().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Nm(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const DC=typeof Proxy=="function",UC="devtools-plugin:setup",OC="plugin:settings:set";let ar,Xc;function FC(){var s;return ar!==void 0||(typeof window<"u"&&window.performance?(ar=!0,Xc=window.performance):typeof globalThis<"u"&&!((s=globalThis.perf_hooks)===null||s===void 0)&&s.performance?(ar=!0,Xc=globalThis.perf_hooks.performance):ar=!1),ar}function kC(){return FC()?Xc.now():Date.now()}class BC{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const o in e.settings){const a=e.settings[o];n[o]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let r=Object.assign({},n);try{const o=localStorage.getItem(i),a=JSON.parse(o);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}r=o},now(){return kC()}},t&&t.on(OC,(o,a)=>{o===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(o,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function zC(s,e){const t=s,n=Nm(),i=NC(),r=DC&&t.enableEarlyProxy;if(i&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(UC,s,e);else{const o=r?new BC(t,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:t,setupFn:e,proxy:o}),o&&e(o.proxiedTarget)}}function VC(s,e){const t=`▲ ■ ●${s}`;typeof Wd=="function"?Wd(t,e):console.log(t)}function Wd(s,e){throw new Error(s+e)}const Dm=s=>{const e={id:s.uuid,label:s.type,children:[],tags:[]};s.name!==""&&e.tags.push({label:s.name,textColor:5750629,backgroundColor:15793395});const t=qu(s);return t>0&&e.tags.push({label:`${EC(t)} KB`,textColor:15707189,backgroundColor:16775644,tooltip:"Memory usage"}),s.type.includes("Light")&&(e.tags.push({label:`${s.intensity}`,textColor:9738662,backgroundColor:16316922,tooltip:"Intensity"}),e.tags.push({label:`#${s.color.getHexString()}`,textColor:9738662,backgroundColor:16316922,tooltip:"Color"})),s.type.includes("Camera")&&(e.tags.push({label:`${s.fov}°`,textColor:9738662,backgroundColor:16316922,tooltip:"Field of view"}),e.tags.push({label:`x: ${Math.round(s.position.x)} y: ${Math.round(s.position.y)} z: ${Math.round(s.position.z)}`,textColor:9738662,backgroundColor:16316922,tooltip:"Position"})),e};function Um(s,e,t=""){s.children.forEach(n=>{if(n.type==="HightlightMesh"||t&&!n.type.includes(t)&&!n.name.includes(t))return;const i=Dm(n);e.children.push(i),Um(n,i,t)})}const HC=[],lr="tres:inspector",GC=ng({sceneGraph:null});function WC(s,e){zC({id:"dev.esm.tres",label:"TresJS 🪐",logo:"https://raw.githubusercontent.com/Tresjs/tres/main/public/favicon.svg",packageName:"tresjs",homepage:"https://tresjs.org",componentStateTypes:HC,app:s},t=>{typeof t.now!="function"&&VC("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),t.addInspector({id:lr,label:"TresJS 🪐",icon:"account_tree",treeFilterPlaceholder:"Search instances"}),setInterval(()=>{t.sendInspectorTree(lr)},1e3),setInterval(()=>{t.notifyComponentUpdate()},5e3),t.on.getInspectorTree(r=>{if(r.inspectorId===lr){const o=Dm(e.scene.value);Um(e.scene.value,o,r.filter),GC.sceneGraph=o,r.rootNodes=[o]}});let n=null,i=null;t.on.getInspectorState(r=>{var o;if(r.inspectorId===lr){const[a]=e.scene.value.getObjectsByProperty("uuid",r.nodeId);if(!a)return;if(i&&n&&n.parent&&i.remove(n),a.isMesh){const l=yC(a);a.add(l),n=l,i=a}r.state={object:[{key:"uuid",editable:!0,value:a.uuid},{key:"name",editable:!0,value:a.name},{key:"type",editable:!0,value:a.type},{key:"position",editable:!0,value:a.position},{key:"rotation",editable:!0,value:a.rotation},{key:"scale",editable:!0,value:a.scale},{key:"geometry",value:a.geometry},{key:"material",value:a.material},{key:"color",editable:!0,value:a.color},{key:"intensity",editable:!0,value:a.intensity},{key:"castShadow",editable:!0,value:a.castShadow},{key:"receiveShadow",editable:!0,value:a.receiveShadow},{key:"frustumCulled",editable:!0,value:a.frustumCulled},{key:"matrixAutoUpdate",editable:!0,value:a.matrixAutoUpdate},{key:"matrixWorldNeedsUpdate",editable:!0,value:a.matrixWorldNeedsUpdate},{key:"matrixWorld",value:a.matrixWorld},{key:"visible",editable:!0,value:a.visible}]},a.isScene&&(r.state.info={memory:qu(a),objects:a.children.length,calls:e.renderer.value.info.render.calls,triangles:e.renderer.value.info.render.triangles,points:e.renderer.value.info.render.points,lines:e.renderer.value.info.render.lines},r.state.programs=((o=e.renderer.value.info.programs)==null?void 0:o.map(l=>({key:l.name,value:{...l,vertexShader:l.vertexShader,attributes:l.getAttributes(),uniforms:l.getUniforms()}})))||[])}}),t.on.editInspectorState(r=>{r.inspectorId===lr&&_C(e.scene.value,r.nodeId,r.path,r.state.value)})})}const $C=["data-scene","data-tres"],XC=Be({__name:"TresCanvas",props:{shadows:{type:Boolean,default:void 0},clearColor:{},toneMapping:{},shadowMapType:{},useLegacyLights:{type:Boolean,default:void 0},outputColorSpace:{},toneMappingExposure:{},renderMode:{default:"always"},camera:{},preset:{},windowSize:{type:Boolean,default:void 0},disableRender:{type:Boolean,default:void 0},context:{},precision:{},alpha:{type:Boolean,default:void 0},premultipliedAlpha:{type:Boolean},antialias:{type:Boolean,default:void 0},stencil:{type:Boolean,default:void 0},preserveDrawingBuffer:{type:Boolean,default:void 0},powerPreference:{},depth:{type:Boolean,default:void 0},logarithmicDepthBuffer:{type:Boolean,default:void 0},failIfMajorPerformanceCaveat:{type:Boolean,default:void 0}},emits:["render","click","double-click","context-menu","pointer-move","pointer-up","pointer-down","pointer-enter","pointer-leave","pointer-over","pointer-out","pointer-missed","wheel"],setup(s,{expose:e,emit:t}){var n;const i=s,r=t,o=Zd(),{logWarning:a}=eo(),l=Fe(),c=Rn(new ka),u=(n=pa())==null?void 0:n.appContext.app;$c(pE);const h=p=>Be({setup(){var m;const y=(m=pa())==null?void 0:m.appContext;return y&&(y.app=u),vr("useTres",p),vr("extend",$c),typeof window<"u"&&WC(y==null?void 0:y.app,p),()=>eh(yt,null,o!=null&&o.default?o.default():[])}}),d=p=>{const m=h(p),{render:y}=ig(LC());y(eh(m),c.value)},f=(p,m=!1)=>{Xu(p.scene.value),m&&(p.renderer.value.dispose(),p.renderer.value.renderLists.dispose(),p.renderer.value.forceContextLoss()),c.value.__tres={root:p},d(p)},g=Ve(()=>i.disableRender),v=Rn(null);return e({context:v,dispose:()=>f(v.value,!0)}),Nn(()=>{const p=l;v.value=RC({scene:c.value,canvas:p,windowSize:i.windowSize??!1,disableRender:g.value??!1,rendererOptions:i,emit:r}),IC(c.value,v.value,r);const{registerCamera:m,camera:y,cameras:_,deregisterCamera:x}=v.value;d(v.value);const A=()=>{const b=new Ut(45,window.innerWidth/window.innerHeight,.1,1e3);b.position.set(3,3,3),b.lookAt(0,0,0),m(b);const E=Pi(()=>{_.value.length>=2&&(b.removeFromParent(),x(b),E==null||E())})};wt(()=>i.camera,(b,E)=>{b&&m(b),E&&(E.removeFromParent(),x(E))},{immediate:!0}),y.value||(a("No camera found. Creating a default perspective camera. To have full control over a camera, please add one to the scene."),A())}),Gn(()=>{f(v.value)}),(p,m)=>(Y(),fe("canvas",{ref_key:"canvas",ref:l,"data-scene":c.value.uuid,class:xt(p.$attrs.class),"data-tres":`tresjs ${ee(iC).version}`,style:Zc({display:"block",width:"100%",height:"100%",position:p.windowSize?"fixed":"relative",top:0,left:0,pointerEvents:"auto",touchAction:"none",...p.$attrs.style})},null,14,$C))}}),qC=ln;class Sa extends on{constructor(e){super(e),this.defaultDPI=90,this.defaultUnit="px"}load(e,t,n,i){const r=this,o=new Wn(r.manager);o.setPath(r.path),o.setRequestHeader(r.requestHeader),o.setWithCredentials(r.withCredentials),o.load(e,function(a){try{t(r.parse(a))}catch(l){i?i(l):console.error(l),r.manager.itemError(e)}},n,i)}parse(e){const t=this;function n(U,D){if(U.nodeType!==1)return;const R=x(U);let T=!1,ie=null;switch(U.nodeName){case"svg":D=g(U,D);break;case"style":r(U);break;case"g":D=g(U,D);break;case"path":D=g(U,D),U.hasAttribute("d")&&(ie=i(U));break;case"rect":D=g(U,D),ie=l(U);break;case"polygon":D=g(U,D),ie=c(U);break;case"polyline":D=g(U,D),ie=u(U);break;case"circle":D=g(U,D),ie=h(U);break;case"ellipse":D=g(U,D),ie=d(U);break;case"line":D=g(U,D),ie=f(U);break;case"defs":T=!0;break;case"use":D=g(U,D);const L=(U.getAttributeNS("http://www.w3.org/1999/xlink","href")||"").substring(1),X=U.viewportElement.getElementById(L);X?n(X,D):console.warn("SVGLoader: 'use node' references non-existent node id: "+L);break}ie&&(D.fill!==void 0&&D.fill!=="none"&&ie.color.setStyle(D.fill,qC),b(ie,Ae),z.push(ie),ie.userData={node:U,style:D});const he=U.childNodes;for(let J=0;J0?Ae.copy(q[q.length-1]):Ae.identity())}function i(U){const D=new bi,R=new se,T=new se,ie=new se;let he=!0,J=!1;const L=U.getAttribute("d");if(L===""||L==="none")return null;const X=L.match(/[a-df-z][^a-df-z]*/ig);for(let K=0,H=X.length;K0&&(R.copy(ie),D.currentPath.currentPoint.copy(R),he=!0);break;default:console.warn($)}J=!1}return D}function r(U){if(!(!U.sheet||!U.sheet.cssRules||!U.sheet.cssRules.length))for(let D=0;Die.trim());for(let ie=0;ieJ!==""));G[T[ie]]=Object.assign(G[T[ie]]||{},he)}}}function o(U,D,R,T,ie,he,J,L){if(D==0||R==0){U.lineTo(L.x,L.y);return}T=T*Math.PI/180,D=Math.abs(D),R=Math.abs(R);const X=(J.x-L.x)/2,K=(J.y-L.y)/2,H=Math.cos(T)*X+Math.sin(T)*K,$=-Math.sin(T)*X+Math.cos(T)*K;let te=D*D,le=R*R;const k=H*H,O=$*$,P=k/te+O/le;if(P>1){const xe=Math.sqrt(P);D=xe*D,R=xe*R,te=D*D,le=R*R}const S=te*O+le*k,Q=(te*le-S)/S;let pe=Math.sqrt(Math.max(0,Q));ie===he&&(pe=-pe);const ce=pe*D*$/R,ve=-pe*R*H/D,He=Math.cos(T)*ce-Math.sin(T)*ve+(J.x+L.x)/2,Ee=Math.sin(T)*ce+Math.cos(T)*ve+(J.y+L.y)/2,Te=a(1,0,(H-ce)/D,($-ve)/R),Qe=a((H-ce)/D,($-ve)/R,(-H-ce)/D,(-$-ve)/R)%(Math.PI*2);U.currentPath.absellipse(He,Ee,D,R,Te,Te+Qe,he===0,T)}function a(U,D,R,T){const ie=U*R+D*T,he=Math.sqrt(U*U+D*D)*Math.sqrt(R*R+T*T);let J=Math.acos(Math.max(-1,Math.min(1,ie/he)));return U*T-D*R<0&&(J=-J),J}function l(U){const D=_(U.getAttribute("x")||0),R=_(U.getAttribute("y")||0),T=_(U.getAttribute("rx")||U.getAttribute("ry")||0),ie=_(U.getAttribute("ry")||U.getAttribute("rx")||0),he=_(U.getAttribute("width")),J=_(U.getAttribute("height")),L=1-.551915024494,X=new bi;return X.moveTo(D+T,R),X.lineTo(D+he-T,R),(T!==0||ie!==0)&&X.bezierCurveTo(D+he-T*L,R,D+he,R+ie*L,D+he,R+ie),X.lineTo(D+he,R+J-ie),(T!==0||ie!==0)&&X.bezierCurveTo(D+he,R+J-ie*L,D+he-T*L,R+J,D+he-T,R+J),X.lineTo(D+T,R+J),(T!==0||ie!==0)&&X.bezierCurveTo(D+T*L,R+J,D,R+J-ie*L,D,R+J-ie),X.lineTo(D,R+ie),(T!==0||ie!==0)&&X.bezierCurveTo(D,R+ie*L,D+T*L,R,D+T,R),X}function c(U){function D(he,J,L){const X=_(J),K=_(L);ie===0?T.moveTo(X,K):T.lineTo(X,K),ie++}const R=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,T=new bi;let ie=0;return U.getAttribute("points").replace(R,D),T.currentPath.autoClose=!0,T}function u(U){function D(he,J,L){const X=_(J),K=_(L);ie===0?T.moveTo(X,K):T.lineTo(X,K),ie++}const R=/([+-]?\d*\.?\d+(?:e[+-]?\d+)?)(?:,|\s)([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/g,T=new bi;let ie=0;return U.getAttribute("points").replace(R,D),T.currentPath.autoClose=!1,T}function h(U){const D=_(U.getAttribute("cx")||0),R=_(U.getAttribute("cy")||0),T=_(U.getAttribute("r")||0),ie=new Ai;ie.absarc(D,R,T,0,Math.PI*2);const he=new bi;return he.subPaths.push(ie),he}function d(U){const D=_(U.getAttribute("cx")||0),R=_(U.getAttribute("cy")||0),T=_(U.getAttribute("rx")||0),ie=_(U.getAttribute("ry")||0),he=new Ai;he.absellipse(D,R,T,ie,0,Math.PI*2);const J=new bi;return J.subPaths.push(he),J}function f(U){const D=_(U.getAttribute("x1")||0),R=_(U.getAttribute("y1")||0),T=_(U.getAttribute("x2")||0),ie=_(U.getAttribute("y2")||0),he=new bi;return he.moveTo(D,R),he.lineTo(T,ie),he.currentPath.autoClose=!1,he}function g(U,D){D=Object.assign({},D);let R={};if(U.hasAttribute("class")){const J=U.getAttribute("class").split(/\s/).filter(Boolean).map(L=>L.trim());for(let L=0;L0&&D.premultiply(q[q.length-1]),Ae.copy(D),q.push(D),D}function A(U){const D=new Ze,R=ae;if(U.nodeName==="use"&&(U.hasAttribute("x")||U.hasAttribute("y"))){const T=_(U.getAttribute("x")),ie=_(U.getAttribute("y"));D.translate(T,ie)}if(U.hasAttribute("transform")){const T=U.getAttribute("transform").split(")");for(let ie=T.length-1;ie>=0;ie--){const he=T[ie].trim();if(he==="")continue;const J=he.indexOf("("),L=he.length;if(J>0&&J=1){const H=K[0];let $=0;K.length>=2&&($=K[1]),R.translate(H,$)}break;case"rotate":if(K.length>=1){let H=0,$=0,te=0;H=K[0]*Math.PI/180,K.length>=3&&($=K[1],te=K[2]),j.makeTranslation(-$,-te),oe.makeRotation(H),B.multiplyMatrices(oe,j),j.makeTranslation($,te),R.multiplyMatrices(j,B)}break;case"scale":if(K.length>=1){const H=K[0];let $=H;K.length>=2&&($=K[1]),R.scale(H,$)}break;case"skewX":K.length===1&&R.set(1,Math.tan(K[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":K.length===1&&R.set(1,0,0,Math.tan(K[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":K.length===6&&R.set(K[0],K[2],K[4],K[1],K[3],K[5],0,0,1);break}}D.premultiply(R)}}return D}function b(U,D){function R(J){be.set(J.x,J.y,1).applyMatrix3(D),J.set(be.x,be.y)}function T(J){const L=J.xRadius,X=J.yRadius,K=Math.cos(J.aRotation),H=Math.sin(J.aRotation),$=new N(L*K,L*H,0),te=new N(-X*H,X*K,0),le=$.applyMatrix3(D),k=te.applyMatrix3(D),O=ae.set(le.x,k.x,0,le.y,k.y,0,0,0,1),P=j.copy(O).invert(),pe=oe.copy(P).transpose().multiply(P).elements,ce=F(pe[0],pe[1],pe[4]),ve=Math.sqrt(ce.rt1),He=Math.sqrt(ce.rt2);if(J.xRadius=1/ve,J.yRadius=1/He,J.aRotation=Math.atan2(ce.sn,ce.cs),!((J.aEndAngle-J.aStartAngle)%(2*Math.PI){const{x:Je,y:Re}=new N(Math.cos(st),Math.sin(st),0).applyMatrix3(xe);return Math.atan2(Re,Je)};J.aStartAngle=Ue(J.aStartAngle),J.aEndAngle=Ue(J.aEndAngle),E(D)&&(J.aClockwise=!J.aClockwise)}}function ie(J){const L=w(D),X=M(D);J.xRadius*=L,J.yRadius*=X;const K=L>Number.EPSILON?Math.atan2(D.elements[1],D.elements[0]):Math.atan2(-D.elements[3],D.elements[4]);J.aRotation+=K,E(D)&&(J.aStartAngle*=-1,J.aEndAngle*=-1,J.aClockwise=!J.aClockwise)}const he=U.subPaths;for(let J=0,L=he.length;JNumber.EPSILON}function w(U){const D=U.elements;return Math.sqrt(D[0]*D[0]+D[1]*D[1])}function M(U){const D=U.elements;return Math.sqrt(D[3]*D[3]+D[4]*D[4])}function F(U,D,R){let T,ie,he,J,L;const X=U+R,K=U-R,H=Math.sqrt(K*K+4*D*D);return X>0?(T=.5*(X+H),L=1/T,ie=U*L*R-D*L*D):X<0?ie=.5*(X-H):(T=.5*H,ie=-.5*H),K>0?he=K+H:he=K-H,Math.abs(he)>2*Math.abs(D)?(L=-2*D/he,J=1/Math.sqrt(1+L*L),he=L*J):Math.abs(D)===0?(he=1,J=0):(L=-.5*he/D,he=1/Math.sqrt(1+L*L),J=L*he),K>0&&(L=he,he=-J,J=L),{rt1:T,rt2:ie,cs:he,sn:J}}const z=[],G={},q=[],ae=new Ze,j=new Ze,oe=new Ze,B=new Ze,Me=new se,be=new N,Ae=new Ze,ge=new DOMParser().parseFromString(e,"image/svg+xml");return n(ge.documentElement,{fill:"#000",fillOpacity:1,strokeOpacity:1,strokeWidth:1,strokeLineJoin:"miter",strokeLineCap:"butt",strokeMiterLimit:4}),{paths:z,xml:ge.documentElement}}static createShapes(e){const n={ORIGIN:0,DESTINATION:1,BETWEEN:2,LEFT:3,RIGHT:4,BEHIND:5,BEYOND:6},i={loc:n.ORIGIN,t:0};function r(v,p,m,y){const _=v.x,x=p.x,A=m.x,b=y.x,E=v.y,I=p.y,w=m.y,M=y.y,F=(b-A)*(E-w)-(M-w)*(_-A),z=(x-_)*(E-w)-(I-E)*(_-A),G=(M-w)*(x-_)-(b-A)*(I-E),q=F/G,ae=z/G;if(G===0&&F!==0||q<=0||q>=1||ae<0||ae>1)return null;if(F===0&&G===0){for(let j=0;j<2;j++)if(o(j===0?m:y,v,p),i.loc==n.ORIGIN){const oe=j===0?m:y;return{x:oe.x,y:oe.y,t:i.t}}else if(i.loc==n.BETWEEN){const oe=+(_+i.t*(x-_)).toPrecision(10),B=+(E+i.t*(I-E)).toPrecision(10);return{x:oe,y:B,t:i.t}}return null}else{for(let B=0;B<2;B++)if(o(B===0?m:y,v,p),i.loc==n.ORIGIN){const Me=B===0?m:y;return{x:Me.x,y:Me.y,t:i.t}}const j=+(_+q*(x-_)).toPrecision(10),oe=+(E+q*(I-E)).toPrecision(10);return{x:j,y:oe,t:q}}}function o(v,p,m){const y=m.x-p.x,_=m.y-p.y,x=v.x-p.x,A=v.y-p.y,b=y*A-x*_;if(v.x===p.x&&v.y===p.y){i.loc=n.ORIGIN,i.t=0;return}if(v.x===m.x&&v.y===m.y){i.loc=n.DESTINATION,i.t=1;return}if(b<-Number.EPSILON){i.loc=n.LEFT;return}if(b>Number.EPSILON){i.loc=n.RIGHT;return}if(y*x<0||_*A<0){i.loc=n.BEHIND;return}if(Math.sqrt(y*y+_*_)M.t<=w.t+Number.EPSILON&&M.t>=w.t-Number.EPSILON)===void 0&&(m.push(w),y.push(new se(w.x,w.y)))}}return y}function l(v,p,m){const y=new se;p.getCenter(y);const _=[];return m.forEach(x=>{x.boundingBox.containsPoint(y)&&a(v,x.points).forEach(b=>{_.push({identifier:x.identifier,isCW:x.isCW,point:b})})}),_.sort((x,A)=>x.point.x-A.point.x),_}function c(v,p,m,y,_){(_==null||_==="")&&(_="nonzero");const x=new se;v.boundingBox.getCenter(x);const A=[new se(m,x.y),new se(y,x.y)],b=l(A,v.boundingBox,p);b.sort((z,G)=>z.point.x-G.point.x);const E=[],I=[];b.forEach(z=>{z.identifier===v.identifier?E.push(z):I.push(z)});const w=E[0].point.x,M=[];let F=0;for(;F0&&M[M.length-1]===I[F].identifier?M.pop():M.push(I[F].identifier),F++;if(M.push(v.identifier),_==="evenodd"){const z=M.length%2===0,G=M[M.length-2];return{identifier:v.identifier,isHole:z,for:G}}else if(_==="nonzero"){let z=!0,G=null,q=null;for(let ae=0;ae{const p=v.getPoints();let m=-999999999,y=999999999,_=-999999999,x=999999999;for(let A=0;Am&&(m=b.y),b.y_&&(_=b.x),b.x=x&&(u=x-1),{curves:v.curves,points:p,isCW:Pn.isClockWise(p),identifier:-1,boundingBox:new Am(new se(x,y),new se(_,m))}});d=d.filter(v=>v.points.length>1);for(let v=0;vc(v,d,u,h,e.userData?e.userData.style.fillRule:void 0)),g=[];return d.forEach(v=>{if(!f[v.identifier].isHole){const m=new Ti;m.curves=v.curves,f.filter(_=>_.isHole&&_.for===v.identifier).forEach(_=>{const x=d[_.identifier],A=new Ai;A.curves=x.curves,m.holes.push(A)}),g.push(m)}}),g}static getStrokeStyle(e,t,n,i,r){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",n=n!==void 0?n:"miter",i=i!==void 0?i:"butt",r=r!==void 0?r:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:n,strokeLineCap:i,strokeMiterLimit:r}}static pointsToStroke(e,t,n,i){const r=[],o=[],a=[];if(Sa.pointsToStrokeWithBuffers(e,t,n,i,r,o,a)===0)return null;const l=new it;return l.setAttribute("position",new Ne(r,3)),l.setAttribute("normal",new Ne(o,3)),l.setAttribute("uv",new Ne(a,2)),l}static pointsToStrokeWithBuffers(e,t,n,i,r,o,a,l){const c=new se,u=new se,h=new se,d=new se,f=new se,g=new se,v=new se,p=new se,m=new se,y=new se,_=new se,x=new se,A=new se,b=new se,E=new se,I=new se,w=new se;n=n!==void 0?n:12,i=i!==void 0?i:.001,l=l!==void 0?l:0,e=K(e);const M=e.length;if(M<2)return 0;const F=e[0].equals(e[M-1]);let z,G=e[0],q;const ae=t.strokeWidth/2,j=1/(M-1);let oe=0,B,Me,be,Ae,ge=!1,ze=0,U=l*3,D=l*2;R(e[0],e[1],c).multiplyScalar(ae),p.copy(e[0]).sub(c),m.copy(e[0]).add(c),y.copy(p),_.copy(m);for(let H=1;HNumber.EPSILON){const le=ae/te;h.multiplyScalar(-le),d.subVectors(z,G),f.copy(d).setLength(le).add(h),I.copy(f).negate();const k=f.length(),O=d.length();d.divideScalar(O),g.subVectors(q,z);const P=g.length();switch(g.divideScalar(P),d.dot(I)=i&&te.push(H[le]);return te.push(H[H.length-1]),te}}}const YC=`// // Description : Array and textureless GLSL 2D/3D/4D simplex // noise functions. // Author : Ian McEwan, Ashima Arts. @@ -3922,7 +3922,7 @@ float snoise(vec3 v) // fragColor.xyz = vec3(0.5 + 0.5 * vec3(n, n, n)); // } -`,rP={class:"background"},oP=` +`,ZC=` varying vec2 vUv; void main() { @@ -3931,7 +3931,7 @@ void main() { gl_Position = projectionMatrix * viewPosition; vUv = uv; } -`,aP=ke({__name:"Background",async setup(s){let e,t;const n=Ve(),{paths:i}=([e,t]=dg(()=>RC(Ia,"/circuit-board.svg")),e=await e,t(),e),r=i.map(y=>Ia.createShapes(y)).reduce((y,v)=>[...y,...v]),o=Ve(window.innerWidth),a=Ve(window.innerHeight),l=He(()=>Math.ceil(a.value/304)),c=He(()=>Math.ceil(o.value/304));function u(){o.value=window.innerWidth,a.value=window.innerHeight}wt([o,a,n],([y,v,x])=>{x&&(x.left=0,x.bottom=0,x.right=y,x.top=v,x.updateProjectionMatrix())});const h=Ve(new te(1/0,1/0));function d(y){h.value=new te(y.screenX,window.screen.availHeight-y.screenY),g.value&&g.value.children.forEach(v=>{v.material.uniforms.uMouse.value=h.value})}function f(y){y.relatedTarget||(h.value=new te(1/0,1/0),g.value&&g.value.children.forEach(v=>{v.material.uniforms.uMouse.value=h.value}))}Fn(()=>{window.addEventListener("resize",u),window.addEventListener("mousemove",d),window.addEventListener("mouseout",f)}),$n(()=>{window.removeEventListener("resize",u),window.removeEventListener("mousemove",d),window.removeEventListener("mouseout",f)});const g=Dn(null),_={uTime:{value:0},uMouse:{value:new te(1/0,1/0)}},p=sP+` +`,JC=Be({__name:"Background",async setup(s){let e,t;const n=Fe(),{paths:i}=([e,t]=sg(()=>AC(Sa,"/circuit-board.svg")),e=await e,t(),e),r=i.map(x=>Sa.createShapes(x)).reduce((x,A)=>[...x,...A]),o=Fe(0),a=Fe(0),l=Ve(()=>Math.ceil(a.value/304)),c=Ve(()=>Math.ceil(o.value/304)),u=new ResizeObserver(d),h=Fe(null);function d(){var A;const x=(A=h.value)==null?void 0:A.getBoundingClientRect();o.value=(x==null?void 0:x.width)??0,a.value=(x==null?void 0:x.height)??0}wt([o,a,n],([x,A,b])=>{b&&(b.left=0,b.bottom=0,b.right=x,b.top=A,b.updateProjectionMatrix())});const f=Fe(new se(1/0,1/0));function g(x){f.value=new se(x.screenX,window.screen.availHeight-x.screenY),p.value&&p.value.children.forEach(A=>{A.material.uniforms.uMouse.value=f.value})}function v(x){x.relatedTarget||(f.value=new se(1/0,1/0),p.value&&p.value.children.forEach(A=>{A.material.uniforms.uMouse.value=f.value}))}Nn(()=>{h.value!=null&&u.observe(h.value),window.addEventListener("mousemove",g),window.addEventListener("mouseout",v)}),Gn(()=>{window.removeEventListener("mousemove",g),window.removeEventListener("mouseout",v)});const p=Rn(null),m={uTime:{value:0},uMouse:{value:new se(1/0,1/0)}},y=YC+` precision mediump float; uniform float uTime; uniform vec2 uMouse; @@ -3943,4 +3943,4 @@ void main() { alpha += max(0., snoise(vec3(gl_FragCoord.xy / 304., uTime / 4.))); gl_FragColor = vec4(0, 0, 0, alpha); } -`,{onLoop:m}=fC();return m(({elapsed:y})=>{g.value&&g.value.children.forEach(v=>{v.material.uniforms.uTime.value=y})}),(y,v)=>{const x=rn("TresOrthographicCamera"),E=rn("TresShapeGeometry"),S=rn("TresShaderMaterial"),C=rn("TresMesh"),L=rn("TresGroup"),A=rn("TresAmbientLight");return Y(),ge("div",rP,[Ue(ee(jC),null,{default:xe(()=>[Ue(x,{ref_key:"camera",ref:n,position:[0,0,10]},null,512),Ue(L,{ref_key:"blobRef",ref:g},{default:xe(()=>[(Y(!0),ge(xt,null,Qt(l.value*c.value,b=>(Y(),Xe(C,{position:[(b%c.value-c.value/2)*304,(Math.floor((b-1)/c.value)-l.value/2)*304,0]},{default:xe(()=>[Ue(E,{args:[ee(r)]},null,8,["args"]),Ue(S,{vertexShader:oP,fragmentShader:p,uniforms:_,blending:ee(Sa)},null,8,["blending"])]),_:2},1032,["position"]))),256))]),_:1},512),Ue(A,{intensity:1}),Ue(iP)]),_:1})])}}}),lP=qe(aP,[["__scopeId","data-v-cef58a07"]]),lo=s=>($t("data-v-4638965c"),s=s(),Xt(),s),cP={class:"vp-doc"},uP=lo(()=>ve("a",{class:"h-card",rel:"me",href:"/about"},[ve("img",{src:pg,alt:""}),qt("The Paper Pilot")],-1)),hP=lo(()=>ve("a",{rel:"license",href:"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"CC BY-NC-SA 4.0",-1)),dP=lo(()=>ve("div",null,"Any and all opinions listed here are my own and not representative of my employers; future, past and present.",-1)),fP=lo(()=>ve("div",null,[ve("a",{href:"https://resume.incremental.social/thepaperpilot/thepaperpilot"},"Resume"),qt(" (not actively seeking new opportunities).")],-1)),pP=lo(()=>ve("div",null,[qt("Site built from "),ve("a",{href:"https://code.incremental.social/thepaperpilot/pages/commit/a4e47f244fde2f8726efac7d0dfb0b32c7b45465"},"this commit"),qt(" on "),ve("time",null,"Thursday, June 20, 2024 at 06:27:48"),qt(".")],-1)),mP=ke({__name:"Layout",setup(s){return(e,t)=>{const n=rn("ClientOnly");return Y(),Xe(ee(vf).Layout,null,{"layout-top":xe(()=>[Ue(ee(Ax)),Ue(n,null,{default:xe(()=>[(Y(),Xe(fg,null,{default:xe(()=>[Ue(lP)]),_:1}))]),_:1})]),"layout-bottom":xe(()=>[ve("footer",cP,[ve("div",null,[qt("CC "+pt(new Date().getFullYear())+" ",1),uP,qt(". "),hP,qt(".")]),dP,fP,pP])]),_:1})}}}),gP=qe(mP,[["__scopeId","data-v-4638965c"]]),yP={...vf,Layout:gP};export{yP as R,Q0 as c,lt as u}; +`,{onLoop:_}=lC();return _(({elapsed:x})=>{p.value&&p.value.children.forEach(A=>{A.material.uniforms.uTime.value=x})}),(x,A)=>{const b=cn("TresOrthographicCamera"),E=cn("TresShapeGeometry"),I=cn("TresShaderMaterial"),w=cn("TresMesh"),M=cn("TresGroup"),F=cn("TresAmbientLight");return Y(),fe(yt,null,[De(ee(XC),null,{default:ye(()=>[De(b,{ref_key:"camera",ref:n,position:[0,0,10]},null,512),De(M,{ref_key:"blobRef",ref:p},{default:ye(()=>[(Y(!0),fe(yt,null,Jt(l.value*c.value,z=>(Y(),$e(w,{position:[(z%c.value-c.value/2)*304,(Math.floor((z-1)/c.value)-l.value/2)*304,0]},{default:ye(()=>[De(E,{args:[ee(r)]},null,8,["args"]),De(I,{vertexShader:ZC,fragmentShader:y,uniforms:m,blending:ee(ga)},null,8,["blending"])]),_:2},1032,["position"]))),256))]),_:1},512),De(F,{intensity:1})]),_:1}),me("div",{ref_key:"resizeListener",ref:h,class:"resize-listener"},null,512)],64)}}}),KC=Xe(JC,[["__scopeId","data-v-7db9022d"]]),to=s=>(Gt("data-v-f89a273e"),s=s(),Wt(),s),jC={class:"background"},QC={class:"vp-doc"},eP=to(()=>me("a",{class:"h-card",rel:"me",href:"/about"},[me("img",{src:og,alt:""}),$t("The Paper Pilot")],-1)),tP=to(()=>me("a",{rel:"license",href:"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"CC BY-NC-SA 4.0",-1)),nP=to(()=>me("div",null,"Any and all opinions listed here are my own and not representative of my employers; future, past and present.",-1)),iP=to(()=>me("div",null,[me("a",{href:"https://resume.incremental.social/thepaperpilot/thepaperpilot"},"Resume"),$t(" (not actively seeking new opportunities).")],-1)),sP=to(()=>me("div",null,[$t("Site built from "),me("a",{href:"https://code.incremental.social/thepaperpilot/pages/commit/831060a57ea3b801f343d139ca89db3261d18cbf"},"this commit"),$t(" on "),me("time",null,"Thursday, June 20, 2024 at 07:37:29"),$t(".")],-1)),rP=Be({__name:"Layout",setup(s){return(e,t)=>{const n=cn("ClientOnly");return Y(),$e(ee(cf).Layout,null,{"layout-top":ye(()=>[De(ee(vx)),De(n,null,{default:ye(()=>[(Y(),$e(rg,null,{default:ye(()=>[me("div",jC,[De(KC)])]),_:1}))]),_:1})]),"layout-bottom":ye(()=>[me("footer",QC,[me("div",null,[$t("CC "+ft(new Date().getFullYear())+" ",1),eP,$t(". "),tP,$t(".")]),nP,iP,sP])]),_:1})}}}),oP=Xe(rP,[["__scopeId","data-v-f89a273e"]]),lP={...cf,Layout:oP};export{lP as R,$0 as c,ot as u}; diff --git a/assets/style.C6bSF-s6.css b/assets/style.WieSGy2g.css similarity index 96% rename from assets/style.C6bSF-s6.css rename to assets/style.WieSGy2g.css index 8ac872f5..695bd69d 100644 --- a/assets/style.C6bSF-s6.css +++ b/assets/style.WieSGy2g.css @@ -1 +1 @@ -:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;font-optical-sizing:auto}:root:where(:lang(zh)){--vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC", "Microsoft YaHei", "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{display:inline-block;margin:auto 2px -2px}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.vpi-social-discord{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z'/%3E%3C/svg%3E")}.vpi-social-facebook{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E")}.vpi-social-github{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")}.vpi-social-instagram{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.874 5.874 0 0 0-2.124 1.388 5.878 5.878 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076.008 8.354-.005 8.764.001 12.023c.007 3.259.021 3.667.083 4.947.061 1.277.264 2.149.563 2.911.308.789.72 1.457 1.388 2.123a5.872 5.872 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552 1.278.056 1.689.069 4.947.063 3.257-.007 3.668-.021 4.947-.082 1.28-.06 2.147-.265 2.91-.563a5.881 5.881 0 0 0 2.123-1.388 5.881 5.881 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912.056-1.28.07-1.69.063-4.948-.006-3.258-.02-3.667-.081-4.947-.06-1.28-.264-2.148-.564-2.911a5.892 5.892 0 0 0-1.387-2.123 5.857 5.857 0 0 0-2.128-1.38C19.074.322 18.202.12 16.924.066 15.647.009 15.236-.006 11.977 0 8.718.008 8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.736 3.736 0 0 1-1.382-.895 3.695 3.695 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228-.06-1.264-.072-1.644-.08-4.848-.006-3.204.006-3.583.061-4.848.05-1.169.246-1.805.408-2.228.216-.561.477-.96.895-1.382a3.705 3.705 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417 1.265-.06 1.644-.072 4.848-.08 3.203-.006 3.583.006 4.85.062 1.168.05 1.804.244 2.227.408.56.216.96.475 1.382.895.421.42.681.817.9 1.378.165.422.362 1.056.417 2.227.06 1.265.074 1.645.08 4.848.005 3.203-.006 3.583-.061 4.848-.051 1.17-.245 1.805-.408 2.23-.216.56-.477.96-.896 1.38a3.705 3.705 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418-1.266.06-1.645.072-4.85.079-3.204.007-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442 1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024 6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16 4 4 0 0 1 8 12.008'/%3E%3C/svg%3E")}.vpi-social-linkedin{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E")}.vpi-social-mastodon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z'/%3E%3C/svg%3E")}.vpi-social-npm{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z'/%3E%3C/svg%3E")}.vpi-social-slack{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 2.521a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.268 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zm-2.523 10.122a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.268a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z'/%3E%3C/svg%3E")}.vpi-social-twitter,.vpi-social-x{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E")}.vpi-social-youtube{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s}.vp-doc blockquote>p{margin:0;font-size:16px;color:var(--vp-c-text-2);transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-c79a1216]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-c79a1216],.VPBackdrop.fade-leave-to[data-v-c79a1216]{opacity:0}.VPBackdrop.fade-leave-active[data-v-c79a1216]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-c79a1216]{display:none}}.NotFound[data-v-d6be1790]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-d6be1790]{padding:96px 32px 168px}}.code[data-v-d6be1790]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-d6be1790]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-d6be1790]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-d6be1790]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-d6be1790]{padding-top:20px}.link[data-v-d6be1790]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-d6be1790]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-b933a997]{position:relative;z-index:1}.nested[data-v-b933a997]{padding-right:16px;padding-left:16px}.outline-link[data-v-b933a997]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-b933a997]:hover,.outline-link.active[data-v-b933a997]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-b933a997]{padding-left:13px}.VPDocAsideOutline[data-v-a5bbad30]{display:none}.VPDocAsideOutline.has-outline[data-v-a5bbad30]{display:block}.content[data-v-a5bbad30]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-a5bbad30]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-a5bbad30]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-3f215769]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-3f215769]{flex-grow:1}.VPDocAside[data-v-3f215769] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-3f215769] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-3f215769] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-7e05ebdb]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-7e05ebdb]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-d4a0bba5]{margin-top:64px}.edit-info[data-v-d4a0bba5]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-d4a0bba5]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-d4a0bba5]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-d4a0bba5]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-d4a0bba5]{margin-right:8px}.prev-next[data-v-d4a0bba5]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-d4a0bba5]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-d4a0bba5]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-d4a0bba5]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-d4a0bba5]{margin-left:auto;text-align:right}.desc[data-v-d4a0bba5]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-d4a0bba5]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-39a288b8]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-39a288b8]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-39a288b8]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-39a288b8]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-39a288b8]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-39a288b8]{display:flex;justify-content:center}.VPDoc .aside[data-v-39a288b8]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-39a288b8]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-39a288b8]{max-width:1104px}}.container[data-v-39a288b8]{margin:0 auto;width:100%}.aside[data-v-39a288b8]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-39a288b8]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-39a288b8]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-39a288b8]::-webkit-scrollbar{display:none}.aside-curtain[data-v-39a288b8]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-39a288b8]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-39a288b8]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-39a288b8]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-39a288b8]{order:1;margin:0;min-width:640px}}.content-container[data-v-39a288b8]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-39a288b8]{max-width:688px}.VPButton[data-v-cad61b99]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-cad61b99]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-cad61b99]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-cad61b99]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-cad61b99]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-cad61b99]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-cad61b99]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-cad61b99]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-cad61b99]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-cad61b99]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-cad61b99]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-cad61b99]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-cad61b99]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-8426fc1a]{display:none}.dark .VPImage.light[data-v-8426fc1a]{display:none}.VPHero[data-v-303bb580]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-303bb580]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-303bb580]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-303bb580]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-303bb580]{flex-direction:row}}.main[data-v-303bb580]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-303bb580]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-303bb580]{text-align:left}}@media (min-width: 960px){.main[data-v-303bb580]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-303bb580]{max-width:592px}}.name[data-v-303bb580],.text[data-v-303bb580]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-303bb580],.VPHero.has-image .text[data-v-303bb580]{margin:0 auto}.name[data-v-303bb580]{color:var(--vp-home-hero-name-color)}.clip[data-v-303bb580]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-303bb580],.text[data-v-303bb580]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-303bb580],.text[data-v-303bb580]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-303bb580],.VPHero.has-image .text[data-v-303bb580]{margin:0}}.tagline[data-v-303bb580]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-303bb580]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-303bb580]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-303bb580]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-303bb580]{margin:0}}.actions[data-v-303bb580]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-303bb580]{justify-content:center}@media (min-width: 640px){.actions[data-v-303bb580]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-303bb580]{justify-content:flex-start}}.action[data-v-303bb580]{flex-shrink:0;padding:6px}.image[data-v-303bb580]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-303bb580]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-303bb580]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-303bb580]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-303bb580]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-303bb580]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-303bb580]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-303bb580]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-303bb580]{width:320px;height:320px}}[data-v-303bb580] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-303bb580] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-303bb580] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-a3976bdc]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-a3976bdc]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-a3976bdc]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-a3976bdc]>.VPImage{margin-bottom:20px}.icon[data-v-a3976bdc]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-a3976bdc]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-a3976bdc]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-a3976bdc]{padding-top:8px}.link-text-value[data-v-a3976bdc]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-a3976bdc]{margin-left:6px}.VPFeatures[data-v-a6181336]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-a6181336]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-a6181336]{padding:0 64px}}.container[data-v-a6181336]{margin:0 auto;max-width:1152px}.items[data-v-a6181336]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-a6181336]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-a6181336],.item.grid-4[data-v-a6181336],.item.grid-6[data-v-a6181336]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-a6181336],.item.grid-4[data-v-a6181336]{width:50%}.item.grid-3[data-v-a6181336],.item.grid-6[data-v-a6181336]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-a6181336]{width:25%}}.container[data-v-8e2d4988]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-8e2d4988]{padding:0 48px}}@media (min-width: 960px){.container[data-v-8e2d4988]{width:100%;padding:0 64px}}.vp-doc[data-v-8e2d4988] .VPHomeSponsors,.vp-doc[data-v-8e2d4988] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-8e2d4988] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-8e2d4988] .VPHomeSponsors a,.vp-doc[data-v-8e2d4988] .VPTeamPage a{text-decoration:none}.VPHome[data-v-686f80a6]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-686f80a6]{margin-bottom:128px}}.VPContent[data-v-1428d186]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-1428d186]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-1428d186]{margin:0}@media (min-width: 960px){.VPContent[data-v-1428d186]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-1428d186]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-1428d186]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-e315a0ad]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-e315a0ad]{display:none}.VPFooter[data-v-e315a0ad] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-e315a0ad] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-e315a0ad]{padding:32px}}.container[data-v-e315a0ad]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-e315a0ad],.copyright[data-v-e315a0ad]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-17a5e62e]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-17a5e62e]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-17a5e62e]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-17a5e62e]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-17a5e62e]{color:var(--vp-c-text-1)}.icon[data-v-17a5e62e]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-17a5e62e]{font-size:14px}.icon[data-v-17a5e62e]{font-size:16px}}.open>.icon[data-v-17a5e62e]{transform:rotate(90deg)}.items[data-v-17a5e62e]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-17a5e62e]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-17a5e62e]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-17a5e62e]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-17a5e62e]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-17a5e62e]{transition:all .2s ease-out}.flyout-leave-active[data-v-17a5e62e]{transition:all .15s ease-in}.flyout-enter-from[data-v-17a5e62e],.flyout-leave-to[data-v-17a5e62e]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-a6f0e41e]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-a6f0e41e]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-a6f0e41e]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-a6f0e41e]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-a6f0e41e]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-a6f0e41e]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-a6f0e41e]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-a6f0e41e]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-a6f0e41e]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-a6f0e41e]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-a6f0e41e]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-a6f0e41e]{display:none}}.menu-icon[data-v-a6f0e41e]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-a6f0e41e]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-a6f0e41e]{padding:12px 32px 11px}}.VPSwitch[data-v-1d5665e3]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-1d5665e3]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-1d5665e3]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-1d5665e3]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-1d5665e3] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-1d5665e3] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-d1f28634]{opacity:1}.moon[data-v-d1f28634],.dark .sun[data-v-d1f28634]{opacity:0}.dark .moon[data-v-d1f28634]{opacity:1}.dark .VPSwitchAppearance[data-v-d1f28634] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-e6aabb21]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-e6aabb21]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-43f1e123]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-43f1e123]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-43f1e123]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-43f1e123]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-69e747b5]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-69e747b5]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-69e747b5]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-69e747b5]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-e7ea1737]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-e7ea1737] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-e7ea1737] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-e7ea1737] .group:last-child{padding-bottom:0}.VPMenu[data-v-e7ea1737] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-e7ea1737] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-e7ea1737] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-e7ea1737] .action{padding-left:24px}.VPFlyout[data-v-b6c34ac9]{position:relative}.VPFlyout[data-v-b6c34ac9]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-b6c34ac9]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-b6c34ac9]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-b6c34ac9]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-b6c34ac9]{color:var(--vp-c-brand-2)}.VPFlyout:hover .menu[data-v-b6c34ac9],.button[aria-expanded=true]+.menu[data-v-b6c34ac9]{opacity:1;visibility:visible;transform:translateY(0)}.button[aria-expanded=false]+.menu[data-v-b6c34ac9]{opacity:0;visibility:hidden;transform:translateY(0)}.button[data-v-b6c34ac9]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-b6c34ac9]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-b6c34ac9]{margin-right:0;font-size:16px}.text-icon[data-v-b6c34ac9]{margin-left:4px;font-size:14px}.icon[data-v-b6c34ac9]{font-size:20px;transition:fill .25s}.menu[data-v-b6c34ac9]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-eee4e7cb]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-eee4e7cb]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-eee4e7cb]>svg,.VPSocialLink[data-v-eee4e7cb]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-7bc22406]{display:flex;justify-content:center}.VPNavBarExtra[data-v-d0bd9dde]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-d0bd9dde]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-d0bd9dde]{display:none}}.trans-title[data-v-d0bd9dde]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-d0bd9dde],.item.social-links[data-v-d0bd9dde]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-d0bd9dde]{min-width:176px}.appearance-action[data-v-d0bd9dde]{margin-right:-2px}.social-links-list[data-v-d0bd9dde]{margin:-4px -8px}.VPNavBarHamburger[data-v-e5dd9c1c]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-e5dd9c1c]{display:none}}.container[data-v-e5dd9c1c]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-e5dd9c1c]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-e5dd9c1c]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-e5dd9c1c]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-e5dd9c1c]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-e5dd9c1c]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-e5dd9c1c]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-e5dd9c1c],.VPNavBarHamburger.active:hover .middle[data-v-e5dd9c1c],.VPNavBarHamburger.active:hover .bottom[data-v-e5dd9c1c]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-e5dd9c1c],.middle[data-v-e5dd9c1c],.bottom[data-v-e5dd9c1c]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-e5dd9c1c]{top:0;left:0;transform:translate(0)}.middle[data-v-e5dd9c1c]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-e5dd9c1c]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-9c663999]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-9c663999],.VPNavBarMenuLink[data-v-9c663999]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-7f418b0f]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-7f418b0f]{display:flex}}/*! @docsearch/css 3.6.0 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.30196078431372547);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}.DocSearch-Button-Key--pressed{transform:translate3d(0,1px,0);box-shadow:var(--docsearch-key-pressed-shadow)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button-Key--pressed{transform:none;box-shadow:none}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.DocSearch-Search-Icon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' d='m14.386 14.386 4.088 4.088-4.088-4.088A7.533 7.533 0 1 1 3.733 3.733a7.533 7.533 0 0 1 10.653 10.653z'/%3E%3C/svg%3E")}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-0394ad82]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-0394ad82]{display:flex;align-items:center}}.title[data-v-ab179fa1]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-ab179fa1]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-ab179fa1]{border-bottom-color:var(--vp-c-divider)}}[data-v-ab179fa1] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-88af2de4]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-88af2de4]{display:flex;align-items:center}}.title[data-v-88af2de4]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-ccf7ddec]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .5s}.VPNavBar[data-v-ccf7ddec]:not(.home){background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar[data-v-ccf7ddec]:not(.home){background-color:transparent}.VPNavBar[data-v-ccf7ddec]:not(.has-sidebar):not(.home.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-ccf7ddec]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-ccf7ddec]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-ccf7ddec]{padding:0}}.container[data-v-ccf7ddec]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-ccf7ddec],.container>.content[data-v-ccf7ddec]{pointer-events:none}.container[data-v-ccf7ddec] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-ccf7ddec]{max-width:100%}}.title[data-v-ccf7ddec]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-ccf7ddec]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-ccf7ddec]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-ccf7ddec]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-ccf7ddec]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-ccf7ddec]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-ccf7ddec]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.home.top) .content-body[data-v-ccf7ddec]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.home.top) .content-body[data-v-ccf7ddec]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-ccf7ddec]{column-gap:.5rem}}.menu+.translations[data-v-ccf7ddec]:before,.menu+.appearance[data-v-ccf7ddec]:before,.menu+.social-links[data-v-ccf7ddec]:before,.translations+.appearance[data-v-ccf7ddec]:before,.appearance+.social-links[data-v-ccf7ddec]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-ccf7ddec]:before,.translations+.appearance[data-v-ccf7ddec]:before{margin-right:16px}.appearance+.social-links[data-v-ccf7ddec]:before{margin-left:16px}.social-links[data-v-ccf7ddec]{margin-right:-8px}.divider[data-v-ccf7ddec]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-ccf7ddec]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-ccf7ddec]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-ccf7ddec]{width:100%;height:1px;transition:background-color .5s}.VPNavBar:not(.home) .divider-line[data-v-ccf7ddec]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.home.top) .divider-line[data-v-ccf7ddec]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.home.top) .divider[data-v-ccf7ddec]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-2d7af913]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-2d7af913]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-7f31e1f6]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-7f31e1f6]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-19976ae1]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-19976ae1]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-8133b170]{display:block}.title[data-v-8133b170]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-ff6087d4]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-ff6087d4]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-ff6087d4]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-ff6087d4]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-ff6087d4]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-ff6087d4]{transform:rotate(45deg)}.button[data-v-ff6087d4]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-ff6087d4]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-ff6087d4]{transition:transform .25s}.group[data-v-ff6087d4]:first-child{padding-top:0}.group+.group[data-v-ff6087d4],.group+.item[data-v-ff6087d4]{padding-top:4px}.VPNavScreenTranslations[data-v-858fe1a4]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-858fe1a4]{height:auto}.title[data-v-858fe1a4]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-858fe1a4]{font-size:16px}.icon.lang[data-v-858fe1a4]{margin-right:8px}.icon.chevron[data-v-858fe1a4]{margin-left:4px}.list[data-v-858fe1a4]{padding:4px 0 0 24px}.link[data-v-858fe1a4]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-cc5739dd]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 1px);right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .5s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-cc5739dd],.VPNavScreen.fade-leave-active[data-v-cc5739dd]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-cc5739dd],.VPNavScreen.fade-leave-active .container[data-v-cc5739dd]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-cc5739dd],.VPNavScreen.fade-leave-to[data-v-cc5739dd]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-cc5739dd],.VPNavScreen.fade-leave-to .container[data-v-cc5739dd]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-cc5739dd]{display:none}}.container[data-v-cc5739dd]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-cc5739dd],.menu+.appearance[data-v-cc5739dd],.translations+.appearance[data-v-cc5739dd]{margin-top:24px}.menu+.social-links[data-v-cc5739dd]{margin-top:16px}.appearance+.social-links[data-v-cc5739dd]{margin-top:16px}.VPNav[data-v-ae24b3ad]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-ae24b3ad]{position:fixed}}.VPSidebarItem.level-0[data-v-b8d55f3b]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-b8d55f3b]{padding-bottom:10px}.item[data-v-b8d55f3b]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-b8d55f3b]{cursor:pointer}.indicator[data-v-b8d55f3b]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-b8d55f3b],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-b8d55f3b],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-b8d55f3b],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-b8d55f3b]{background-color:var(--vp-c-brand-1)}.link[data-v-b8d55f3b]{display:flex;align-items:center;flex-grow:1}.text[data-v-b8d55f3b]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-b8d55f3b]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-b8d55f3b],.VPSidebarItem.level-2 .text[data-v-b8d55f3b],.VPSidebarItem.level-3 .text[data-v-b8d55f3b],.VPSidebarItem.level-4 .text[data-v-b8d55f3b],.VPSidebarItem.level-5 .text[data-v-b8d55f3b]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-b8d55f3b]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-1.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-2.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-3.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-4.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-5.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-b8d55f3b]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-b8d55f3b]{color:var(--vp-c-brand-1)}.caret[data-v-b8d55f3b]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-b8d55f3b]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-b8d55f3b]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-b8d55f3b]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-b8d55f3b]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-b8d55f3b],.VPSidebarItem.level-2 .items[data-v-b8d55f3b],.VPSidebarItem.level-3 .items[data-v-b8d55f3b],.VPSidebarItem.level-4 .items[data-v-b8d55f3b],.VPSidebarItem.level-5 .items[data-v-b8d55f3b]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-b8d55f3b]{display:none}.VPSidebar[data-v-575e6a36]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-575e6a36]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-575e6a36]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-575e6a36]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-575e6a36]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-575e6a36]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-575e6a36]{outline:0}.group+.group[data-v-575e6a36]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-575e6a36]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSkipLink[data-v-0f60ec36]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-0f60ec36]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-0f60ec36]{top:14px;left:16px}}.Layout[data-v-5d98c3a5]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-3d121b4a]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-3d121b4a]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-3d121b4a]{margin:128px 0}}.VPHomeSponsors[data-v-3d121b4a]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-3d121b4a]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-3d121b4a]{padding:0 64px}}.container[data-v-3d121b4a]{margin:0 auto;max-width:1152px}.love[data-v-3d121b4a]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-3d121b4a]{display:inline-block}.message[data-v-3d121b4a]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-3d121b4a]{padding-top:32px}.action[data-v-3d121b4a]{padding-top:40px;text-align:center}.VPTeamPage[data-v-7c57f839]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-7c57f839]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-7c57f839-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-7c57f839-s],.VPTeamMembers+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-7c57f839-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-7c57f839-s],.VPTeamMembers+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:96px}}.VPTeamMembers[data-v-7c57f839-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-7c57f839-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-7c57f839-s]{padding:0 64px}}.VPTeamPageTitle[data-v-bf2cbdac]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-bf2cbdac]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-bf2cbdac]{padding:80px 64px 48px}}.title[data-v-bf2cbdac]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-bf2cbdac]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-bf2cbdac]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-bf2cbdac]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-b1a88750]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-b1a88750]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-b1a88750]{padding:0 64px}}.title[data-v-b1a88750]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-b1a88750]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-b1a88750]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-b1a88750]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-b1a88750]{padding-top:40px}.VPTeamMembersItem[data-v-f3fa364a]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-f3fa364a]{padding:32px}.VPTeamMembersItem.small .data[data-v-f3fa364a]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-f3fa364a]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-f3fa364a]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-f3fa364a]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-f3fa364a]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-f3fa364a]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-f3fa364a]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-f3fa364a]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-f3fa364a]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-f3fa364a]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-f3fa364a]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-f3fa364a]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-f3fa364a]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-f3fa364a]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-f3fa364a]{text-align:center}.avatar[data-v-f3fa364a]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-f3fa364a]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-f3fa364a]{margin:0;font-weight:600}.affiliation[data-v-f3fa364a]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-f3fa364a]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-f3fa364a]:hover{color:var(--vp-c-brand-1)}.desc[data-v-f3fa364a]{margin:0 auto}.desc[data-v-f3fa364a] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-f3fa364a]{display:flex;justify-content:center;height:56px}.sp-link[data-v-f3fa364a]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-f3fa364a]:hover,.sp .sp-link.link[data-v-f3fa364a]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-f3fa364a]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-6cb0dbc4]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-6cb0dbc4]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-6cb0dbc4]{max-width:876px}.VPTeamMembers.medium .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-6cb0dbc4]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-6cb0dbc4]{max-width:760px}.container[data-v-6cb0dbc4]{display:grid;gap:24px;margin:0 auto;max-width:1152px}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic.C5lxZ8CY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek-ext.CqjqNYQ-.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek.BBVDIX6e.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-vietnamese.BjW4sHH5.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin-ext.4ZJIpNVo.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin.Di8DUHzh.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic-ext.r48I6akx.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic.By2_1cv3.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek-ext.1u6EdAuj.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek.DJ8dCoTZ.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-vietnamese.BSbpV94h.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin-ext.CN1xVJS-.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin.C2AdPX0b.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Punctuation SC;font-weight:400;src:local("PingFang SC Regular"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:500;src:local("PingFang SC Medium"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:600;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:700;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}:root{--vp-nolebase-highlight-targeted-heading-color: var(--vp-custom-block-tip-text);--vp-nolebase-highlight-targeted-heading-bg: var(--vp-custom-block-tip-bg)}@keyframes vp-nolebase-highlight-targeted-heading-animation{0%{background-color:transparent;box-shadow:0 0 0 8px transparent}10%,35%{color:var(--vp-nolebase-highlight-targeted-heading-color);border-color:transparent;border-radius:4px;background-color:var(--vp-nolebase-highlight-targeted-heading-bg);box-shadow:0 0 0 8px var(--vp-nolebase-highlight-targeted-heading-bg)}99%{background-color:transparent;border-radius:4px;box-shadow:0 0 0 8px transparent}to{border-radius:0;background-color:transparent;box-shadow:none}}.VPNolebaseHighlightTargetedHeadingAnimated{animation:vp-nolebase-highlight-targeted-heading-animation 1.5s ease-in-out}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpp_led7Q.woff2) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpn_led7Q.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpm_led7Q.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpo_lc.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWi6pgeL4.woff2) format("woff2");unicode-range:U+0E01-0E5B,U+200C-200D,U+25CC}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWkKpgeL4.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWkapgeL4.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWn6pg.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZurR_ibHw.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuiR_ibHw.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuqR_ibHw.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZulR_ibHw.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZvuR_ibHw.woff2) format("woff2");unicode-range:U+200C-200D,U+2010,U+25CC,U+A900-A92F}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZupR_ibHw.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuoR_ibHw.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZumR_g.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9X6VLKzA.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9e6VLKzA.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9b6VLKzA.woff2) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9W6VLKzA.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9Z6VLKzA.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9V6VLKzA.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9U6VLKzA.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9a6VI.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}html{overflow-x:hidden}:root{--vp-c-bg: #3B4252;--vp-c-bg-elv: #434C5E;--vp-font-family-base: Itim;--vp-font-family-mono: Roboto Mono;--vp-layout-max-width: 1080px;--vp-nav-height: 48px;--vp-local-search-bg: var(--vp-c-bg-alt)}footer{color:var(--vp-c-default-1)}footer a[href^=http]:after{color:var(--vp-c-border)!important}.title{justify-content:center;border:none!important;position:unset!important;padding:0!important;width:unset!important}.title span{font-size:x-large}.search{padding-left:0;display:flex;flex-grow:0!important;padding-left:unset!important}.DocSearch-Button{margin:auto;width:unset;border:none!important}.DocSearch-Button-Placeholder{margin-top:unset!important;padding:unset!important;font-size:unset!important;font-weight:unset!important;color:unset!important;margin-right:8px}.VPNavBarMenu{align-items:flex-end}.VPNavBarMenuLink{line-height:unset!important;font-size:unset!important;font-weight:unset!important;color:unset!important}ul>li>ul{position:relative}ul>li>ul:before{position:absolute;content:"";width:2px;background:var(--vp-c-text-1);opacity:.3;left:-16px;top:8px;bottom:8px}.aside{display:none!important}.img-container{padding:15px;position:relative;height:11lh;width:fit-content;margin:auto}.img-container img{clip-path:polygon(18px 0%,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0% 18px);height:100%;object-fit:contain;background:#fff}.img-container:after,.img-container:before{content:"";display:block;position:absolute;border:50px solid transparent;transform:rotate(135deg)}.img-container:after{bottom:-60px;right:-65px;box-shadow:0 7px 6px -9px #000}.img-container:before{top:-60px;left:-65px;box-shadow:0 -7px 6px -9px #000}.VPDoc{padding:0 32px!important}.vp-doc a{color:unset;text-decoration:unset;font-weight:unset;text-underline-offset:unset;margin:0 -.4em;padding:.1em .4em;border-radius:.8em .3em;background:transparent;background-image:linear-gradient(to right,#ffe1000d,#ffe10059 4%,#ffe10026);-webkit-box-decoration-break:clone;box-decoration-break:clone}.vp-doc a:hover{color:unset;background-image:linear-gradient(to right,#ffe1001a,#ffe100b3 4%,#ffe1004d)}.vp-doc a[href^=http]:after{content:"";display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.VPNav{left:96px!important;right:32px!important;width:unset!important;position:absolute!important;overflow:hidden}.wrapper{padding:0!important}.VPNavBar{background-color:unset!important}.VPNav .container{align-items:flex-end}.VPNav .content{padding:0!important}.VPNav .content-body{height:unset!important;align-items:flex-end!important;column-gap:unset!important}.VPNavBarHamburger{width:unset!important}.title{height:unset!important}a.title,.VPNavBarMenuLink,.VPNavBarSocialLinks a,.DocSearch-Button,.VPNav button{height:36px!important;border-radius:10px 10px 0 0;padding:8px 8px 16px!important;margin-bottom:-8px!important}.VPNav a:hover,.DocSearch-Button:hover,.VPNav button:hover{margin-bottom:unset!important}a.title{background-color:#0ff}.DocSearch-Button{background-color:#ff0!important}.VPNav .VPNavBarMenuLink[href="https://moddingtree.com"]{background-color:#0f0}.VPNav .VPNavBarMenuLink[href="https://incremental.social"]{background:#f0f}.VPNav button{background:red}.VPNav .VPNavBarSocialLinks [href="https://code.incremental.social/thepaperpilot"]{background:#f70}.VPNav .VPNavBarSocialLinks [href="https://matrix.to/#/@thepaperpilot:incremental.social"]{background:#3c9a3c}.VPNav .VPNavBarSocialLinks [href="https://incremental.social/u/thepaperpilot"]{background:#a75aff}.VPNav .divider{display:none!important}.VPSocialLinks{align-items:flex-end!important;margin-right:0!important}.VPSocialLinks:before{display:none}.VPNavBarExtra{display:none!important}.VPNavBarSocialLinks{display:flex!important}.VPNavScreenSocialLinks a,.VPNavScreenMenuLink,.VPNavScreenMenuLink:after{color:var(--vp-c-bg-alt)!important}@media (max-width: 500px){.VPNavBarSocialLinks{display:none!important}}@media (min-width: 501px){.VPNavScreenSocialLinks{display:none!important}}@media (max-width: 400px){.title span{width:60px}.title span:before{content:"Home ."}}.VPContent{padding-top:0!important;margin-top:var(--vp-nav-height)!important;padding-right:calc((100vw - var(--vp-layout-max-width)) / 2)!important;padding-left:calc((100vw - var(--vp-layout-max-width)) / 2)!important}@media (min-width: 960px){.VPNav{right:calc(max(0px,(100vw - var(--vp-layout-max-width)) / 2) + 32px)!important;left:calc(max(-15px,(100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)) + 32px)!important}.VPContent{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))!important}}.vp-doc .header-anchor{margin-left:calc(-1em - 23px)}.vp-doc :not(h1)>.header-anchor{top:24px}.VPSidebar{opacity:1!important;transition:.5s ease-out!important;box-shadow:0 0 10px 1px #0003!important}.VPLocalNav{position:fixed!important;border-bottom:none!important;background-color:unset!important;pointer-events:none}.VPLocalNav .container{align-items:flex-start!important;flex-direction:column!important}.VPLocalNav>.container>*{pointer-events:all}.VPLocalNav .menu{background:#7afcff;box-shadow:0 0 5px 1px #0003;margin-top:10px;height:30px;width:90px;padding:0 0 0 8px!important}.VPLocalNav button:not(.menu){background:#ff7eb9;padding:4px 30px 4px 8px;box-shadow:0 0 5px 1px #0003}.outline-marker{left:16px!important}.VPLocalNavOutlineDropdown{padding:0!important;margin-top:10px}.VPLocalNavOutlineDropdown button{padding:0!important;width:90px;height:30px}.curtain{display:none}@media (max-width: 840px){.DocSearch-Button-Keys{display:none!important}}@media (max-width: 959px){.VPSidebar{margin-left:-1000px!important;padding:30px 30px 30px 1030px!important;box-sizing:content-box;background:linear-gradient(to bottom,var(--vp-sidebar-bg-color) 29px,var(--vp-c-divider) 1px);background-size:100% 30px;line-height:30px;width:calc(100vw - 128px)}}.VPLocalNavOutlineDropdown .items{background:linear-gradient(to bottom,var(--vp-sidebar-bg-color) 29px,var(--vp-c-divider) 1px);background-size:100% 30px;top:85px;border-radius:0}.VPLocalNavOutlineDropdown ul>li>ul:before{left:0}.VPLocalNavOutlineDropdown .header,.VPLocalNavOutlineDropdown .outline{background:none!important;padding:0!important}.VPLocalNavOutlineDropdown .top-link,.VPLocalNavOutlineDropdown .outline-link{line-height:30px!important;font-size:unset!important;font-weight:unset!important}.aside-curtain{display:none!important}@media (min-width: 960px){.VPSidebar{transform:rotate(1.4deg)!important;top:1em!important;bottom:unset!important;--vp-sidebar-width: 250px !important;background:#feff9c!important;padding:30px!important;width:var(--vp-sidebar-width)!important;margin-left:max(-15px,calc((100% - (var(--vp-layout-max-width) - 60px)) / 2))!important;max-height:40vh;transition-duration:0s!important}.VPLocalNavOutlineDropdown{display:none}.VPDoc .aside{display:block!important;transform:rotate(1.4deg)!important;position:fixed;top:calc(40vh + 2em);left:0;--vp-sidebar-width: 250px !important;background:#feff9c!important;width:var(--vp-sidebar-width)!important;padding:0!important;margin-left:max(-15px,calc((100% - (var(--vp-layout-max-width) - 60px)) / 2))!important;max-height:40vh;overflow-y:auto}.VPDoc .aside-container{position:unset!important;height:unset!important;overflow:unset!important;padding-top:unset!important;width:unset!important}.VPDoc .aside-content{min-height:unset!important;padding:0!important}.VPDoc .aside-content .content{padding:30px!important}.outline-title{font-size:14px;font-weight:700!important;line-height:30px!important}.VPDoc .aside ul>li>ul:before{display:none}}.VPContent .container{background:linear-gradient(to bottom,var(--vp-sidebar-bg-color) 29px,var(--vp-c-divider) 1px);background-size:100% 30px;line-height:30px;box-shadow:0 0 10px 1px #0003!important}.VPContent .content{padding:0 30px!important}.content-container{border-left:double 7px var(--vp-c-divider);padding:30px 0 30px 8px;max-width:unset!important}article{padding-top:30px}.vp-doc .h-feed article{padding-top:0!important}.vp-doc h2+.e-content{margin-top:0!important}.VPDoc h1,.VPDoc h2,.VPDoc h3,.VPDoc h4,.VPDoc h5,.VPDoc h6{margin:0!important;padding:0!important;line-height:30px!important}.VPDoc h1+p{margin-top:0!important}.VPDoc h2,.VPDoc h3,.VPDoc h4,.VPDoc h5,.VPDoc h6{margin-top:-3px!important;padding-top:23px!important;border-top-style:solid!important;border-top-width:10px!important;border-image:url(/button.svg) 10 10 10 10 stretch stretch!important}ul{margin:0!important}li+li{margin:0!important}.VPDoc p{padding:0!important;margin:30px 0!important;line-height:30px!important}blockquote{margin:30px 0!important}blockquote:first-child,blockquote:first-child p{margin-top:0!important}.VPDoc :has(+hr),.VPDoc :has(+h2),.VPDoc :has(+h3),.VPDoc :has(+h4),.VPDoc :has(+h5),.VPDoc :has(+h6),.VPDoc :has(+ul){margin-bottom:0!important}hr{margin-top:-3px!important;margin-bottom:-7px!important;border-top-style:solid!important;border-top-width:10px!important;border-image:url(/button.svg) 10 10 10 10 stretch stretch!important;height:0px!important}.text{line-height:30px!important;padding:0!important;margin:0!important}.group{padding-top:0!important}.group+.group{border-top-style:solid!important;border-top-width:10px!important;border-image:url(/button.svg) 10 10 10 10 stretch stretch!important;padding-top:23px!important;margin-top:-3px!important}table{margin:30px 0!important}#app .vp-doc tr{background-color:var(--vp-c-gray-2)}#app .vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}#app .vp-doc th,#app .vp-doc td{font-size:unset!important;font-weight:unset!important;color:unset!important;padding:0 8px!important;line-height:29px}.VPSidebarItem{padding-bottom:0!important}p:last-child{margin-bottom:0!important}.hero{width:60%;margin:auto}footer img{height:1lh;display:inline;border-radius:50%;margin:0 .25em;vertical-align:bottom}@property --anim-bg{syntax: ""; initial-value: transparent; inherits: false;}@keyframes vp-nolebase-highlight-targeted-heading-animation{0%{--anim-bg: transparent}10%,35%{--anim-bg: var(--vp-c-brand-soft)}99%{--anim-bg: transparent}to{--anim-bg: transparent}}.VPNolebaseHighlightTargetedHeadingAnimated{animation:vp-nolebase-highlight-targeted-heading-animation 1.5s ease-in-out;background:linear-gradient(0deg,var(--anim-bg) 55%,transparent 45%) repeat-x}.title-icon{line-height:30px}.excerpt{margin:8px 0!important;background:var(--docsearch-searchbox-background)}.excerpt-gradient-top{background:var(--docsearch-searchbox-background)!important;opacity:.5;clip-path:polygon(0% 0%,5% 100%,10% 0%,15% 100%,20% 0%,25% 100%,30% 0%,35% 100%,40% 0%,45% 100%,50% 0%,55% 100%,60% 0%,65% 100%,70% 0%,75% 100%,80% 0%,85% 100%,90% 0%,95% 100%,100% 0%);transform:translateY(-7px) rotate(180deg)}.excerpt-gradient-bottom{background:var(--docsearch-searchbox-background)!important;opacity:.5;clip-path:polygon(0% 0%,5% 100%,10% 0%,15% 100%,20% 0%,25% 100%,30% 0%,35% 100%,40% 0%,45% 100%,50% 0%,55% 100%,60% 0%,65% 100%,70% 0%,75% 100%,80% 0%,85% 100%,90% 0%,95% 100%,100% 0%);transform:translateY(7px)}.selected .excerpt-gradient-top,.selected .excerpt-gradient-bottom{opacity:1}.background[data-v-50048212],.background[data-v-cef58a07]{position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;overflow:hidden}footer[data-v-4638965c]{padding:2em;z-index:26;position:relative;font-size:small;background:var(--vp-c-bg-elv)}.hero-wrapper[data-v-136be424]{height:16lh;position:relative}@media (max-width: 700px){.hero-wrapper[data-v-136be424]{height:12lh}}@media (max-width: 500px){.hero-wrapper[data-v-136be424]{height:10lh}}@media (max-width: 400px){.hero-wrapper[data-v-136be424]{height:9lh}}.hole[data-v-136be424]{height:80%;aspect-ratio:1;border:solid 10px lightgrey;border-radius:50%;background:#3b4252;position:absolute;left:33%;transform:translate(-50%);filter:url(#displacementFilter)}.hero[data-v-136be424]{height:80%;width:unset;margin:auto;position:absolute;right:50%;bottom:0;transform:translate(calc(50% + var(--x-offset)));animation:bob-136be424 5s ease-in-out infinite}svg[data-v-136be424]{display:none}@keyframes bob-136be424{0%{transform:translate(calc(50% + var(--x-offset)),-10%)}50%{transform:translate(calc(50% + var(--x-offset)),10%)}to{transform:translate(calc(50% + var(--x-offset)),-10%)}}.VPLocalSearchBox[data-v-639d7ab9]{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex}.backdrop[data-v-639d7ab9]{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-backdrop-bg-color);transition:opacity .5s}.shell[data-v-639d7ab9]{position:relative;padding:12px;margin:64px auto;display:flex;flex-direction:column;gap:16px;background:var(--vp-local-search-bg);width:min(100vw - 60px,900px);height:min-content;max-height:min(100vh - 128px,900px);border-radius:6px}@media (max-width: 767px){.shell[data-v-639d7ab9]{margin:0;width:100vw;height:100vh;max-height:none;border-radius:0}}.search-bar[data-v-639d7ab9]{border:1px solid var(--vp-c-divider);border-radius:4px;display:flex;align-items:center;padding:0 12px;cursor:text}@media (max-width: 767px){.search-bar[data-v-639d7ab9]{padding:0 8px}}.search-bar[data-v-639d7ab9]:focus-within{border-color:var(--vp-c-brand-1)}.local-search-icon[data-v-639d7ab9]{display:block;font-size:18px}.navigate-icon[data-v-639d7ab9]{display:block;font-size:14px}.search-icon[data-v-639d7ab9]{margin:8px}@media (max-width: 767px){.search-icon[data-v-639d7ab9]{display:none}}.search-input[data-v-639d7ab9]{padding:6px 12px;font-size:inherit;width:100%}@media (max-width: 767px){.search-input[data-v-639d7ab9]{padding:6px 4px}}.search-actions[data-v-639d7ab9]{display:flex;gap:4px}@media (any-pointer: coarse){.search-actions[data-v-639d7ab9]{gap:8px}}@media (min-width: 769px){.search-actions.before[data-v-639d7ab9]{display:none}}.search-actions button[data-v-639d7ab9]{padding:8px}.search-actions button[data-v-639d7ab9]:not([disabled]):hover,.toggle-layout-button.detailed-list[data-v-639d7ab9]{color:var(--vp-c-brand-1)}.search-actions button.clear-button[data-v-639d7ab9]:disabled{opacity:.37}.search-keyboard-shortcuts[data-v-639d7ab9]{font-size:.8rem;opacity:75%;display:flex;flex-wrap:wrap;gap:16px;line-height:14px}.search-keyboard-shortcuts span[data-v-639d7ab9]{display:flex;align-items:center;gap:4px}@media (max-width: 767px){.search-keyboard-shortcuts[data-v-639d7ab9]{display:none}}.search-keyboard-shortcuts kbd[data-v-639d7ab9]{background:#8080801a;border-radius:4px;padding:3px 6px;min-width:24px;display:inline-block;text-align:center;vertical-align:middle;border:1px solid rgba(128,128,128,.15);box-shadow:0 2px 2px #0000001a}.results[data-v-639d7ab9]{display:flex;flex-direction:column;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.result[data-v-639d7ab9]{display:flex;align-items:center;gap:8px;border-radius:4px;transition:none;line-height:1rem;border:solid 2px var(--vp-local-search-result-border);outline:none}.result>div[data-v-639d7ab9]{margin:12px;width:100%;overflow:hidden}@media (max-width: 767px){.result>div[data-v-639d7ab9]{margin:8px}}.titles[data-v-639d7ab9]{display:flex;flex-wrap:wrap;gap:4px;position:relative;z-index:1001;padding:2px 0}.title[data-v-639d7ab9]{display:flex;align-items:center;gap:4px}.title.main[data-v-639d7ab9]{font-weight:500}.title-icon[data-v-639d7ab9]{opacity:.5;font-weight:500;color:var(--vp-c-brand-1)}.title svg[data-v-639d7ab9]{opacity:.5}.result.selected[data-v-639d7ab9]{--vp-local-search-result-bg: var(--vp-local-search-result-selected-bg);border-color:var(--vp-local-search-result-selected-border)}.excerpt-wrapper[data-v-639d7ab9]{position:relative}.excerpt[data-v-639d7ab9]{opacity:75%;pointer-events:none;max-height:140px;overflow:hidden;position:relative;opacity:.5;margin-top:4px}.result.selected .excerpt[data-v-639d7ab9]{opacity:1}.excerpt[data-v-639d7ab9] *{font-size:.8rem!important;line-height:130%!important}.titles[data-v-639d7ab9] mark,.excerpt[data-v-639d7ab9] mark{background-color:var(--vp-local-search-highlight-bg);color:var(--vp-local-search-highlight-text);border-radius:2px;padding:0 2px}.excerpt[data-v-639d7ab9] .vp-code-group .tabs{display:none}.excerpt[data-v-639d7ab9] .vp-code-group div[class*=language-]{border-radius:8px!important}.excerpt-gradient-bottom[data-v-639d7ab9]{position:absolute;bottom:-1px;left:0;width:100%;height:8px;background:linear-gradient(transparent,var(--vp-local-search-result-bg));z-index:1000}.excerpt-gradient-top[data-v-639d7ab9]{position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vp-local-search-result-bg),transparent);z-index:1000}.result.selected .titles[data-v-639d7ab9],.result.selected .title-icon[data-v-639d7ab9]{color:var(--vp-c-brand-1)!important}.no-results[data-v-639d7ab9]{font-size:.9rem;text-align:center;padding:12px}svg[data-v-639d7ab9]{flex:none} +:root{--vp-c-white: #ffffff;--vp-c-black: #000000;--vp-c-neutral: var(--vp-c-black);--vp-c-neutral-inverse: var(--vp-c-white)}.dark{--vp-c-neutral: var(--vp-c-white);--vp-c-neutral-inverse: var(--vp-c-black)}:root{--vp-c-gray-1: #dddde3;--vp-c-gray-2: #e4e4e9;--vp-c-gray-3: #ebebef;--vp-c-gray-soft: rgba(142, 150, 170, .14);--vp-c-indigo-1: #3451b2;--vp-c-indigo-2: #3a5ccc;--vp-c-indigo-3: #5672cd;--vp-c-indigo-soft: rgba(100, 108, 255, .14);--vp-c-purple-1: #6f42c1;--vp-c-purple-2: #7e4cc9;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .14);--vp-c-green-1: #18794e;--vp-c-green-2: #299764;--vp-c-green-3: #30a46c;--vp-c-green-soft: rgba(16, 185, 129, .14);--vp-c-yellow-1: #915930;--vp-c-yellow-2: #946300;--vp-c-yellow-3: #9f6a00;--vp-c-yellow-soft: rgba(234, 179, 8, .14);--vp-c-red-1: #b8272c;--vp-c-red-2: #d5393e;--vp-c-red-3: #e0575b;--vp-c-red-soft: rgba(244, 63, 94, .14);--vp-c-sponsor: #db2777}.dark{--vp-c-gray-1: #515c67;--vp-c-gray-2: #414853;--vp-c-gray-3: #32363f;--vp-c-gray-soft: rgba(101, 117, 133, .16);--vp-c-indigo-1: #a8b1ff;--vp-c-indigo-2: #5c73e7;--vp-c-indigo-3: #3e63dd;--vp-c-indigo-soft: rgba(100, 108, 255, .16);--vp-c-purple-1: #c8abfa;--vp-c-purple-2: #a879e6;--vp-c-purple-3: #8e5cd9;--vp-c-purple-soft: rgba(159, 122, 234, .16);--vp-c-green-1: #3dd68c;--vp-c-green-2: #30a46c;--vp-c-green-3: #298459;--vp-c-green-soft: rgba(16, 185, 129, .16);--vp-c-yellow-1: #f9b44e;--vp-c-yellow-2: #da8b17;--vp-c-yellow-3: #a46a0a;--vp-c-yellow-soft: rgba(234, 179, 8, .16);--vp-c-red-1: #f66f81;--vp-c-red-2: #f14158;--vp-c-red-3: #b62a3c;--vp-c-red-soft: rgba(244, 63, 94, .16)}:root{--vp-c-bg: #ffffff;--vp-c-bg-alt: #f6f6f7;--vp-c-bg-elv: #ffffff;--vp-c-bg-soft: #f6f6f7}.dark{--vp-c-bg: #1b1b1f;--vp-c-bg-alt: #161618;--vp-c-bg-elv: #202127;--vp-c-bg-soft: #202127}:root{--vp-c-border: #c2c2c4;--vp-c-divider: #e2e2e3;--vp-c-gutter: #e2e2e3}.dark{--vp-c-border: #3c3f44;--vp-c-divider: #2e2e32;--vp-c-gutter: #000000}:root{--vp-c-text-1: rgba(60, 60, 67);--vp-c-text-2: rgba(60, 60, 67, .78);--vp-c-text-3: rgba(60, 60, 67, .56)}.dark{--vp-c-text-1: rgba(255, 255, 245, .86);--vp-c-text-2: rgba(235, 235, 245, .6);--vp-c-text-3: rgba(235, 235, 245, .38)}:root{--vp-c-default-1: var(--vp-c-gray-1);--vp-c-default-2: var(--vp-c-gray-2);--vp-c-default-3: var(--vp-c-gray-3);--vp-c-default-soft: var(--vp-c-gray-soft);--vp-c-brand-1: var(--vp-c-indigo-1);--vp-c-brand-2: var(--vp-c-indigo-2);--vp-c-brand-3: var(--vp-c-indigo-3);--vp-c-brand-soft: var(--vp-c-indigo-soft);--vp-c-brand: var(--vp-c-brand-1);--vp-c-tip-1: var(--vp-c-brand-1);--vp-c-tip-2: var(--vp-c-brand-2);--vp-c-tip-3: var(--vp-c-brand-3);--vp-c-tip-soft: var(--vp-c-brand-soft);--vp-c-note-1: var(--vp-c-brand-1);--vp-c-note-2: var(--vp-c-brand-2);--vp-c-note-3: var(--vp-c-brand-3);--vp-c-note-soft: var(--vp-c-brand-soft);--vp-c-success-1: var(--vp-c-green-1);--vp-c-success-2: var(--vp-c-green-2);--vp-c-success-3: var(--vp-c-green-3);--vp-c-success-soft: var(--vp-c-green-soft);--vp-c-important-1: var(--vp-c-purple-1);--vp-c-important-2: var(--vp-c-purple-2);--vp-c-important-3: var(--vp-c-purple-3);--vp-c-important-soft: var(--vp-c-purple-soft);--vp-c-warning-1: var(--vp-c-yellow-1);--vp-c-warning-2: var(--vp-c-yellow-2);--vp-c-warning-3: var(--vp-c-yellow-3);--vp-c-warning-soft: var(--vp-c-yellow-soft);--vp-c-danger-1: var(--vp-c-red-1);--vp-c-danger-2: var(--vp-c-red-2);--vp-c-danger-3: var(--vp-c-red-3);--vp-c-danger-soft: var(--vp-c-red-soft);--vp-c-caution-1: var(--vp-c-red-1);--vp-c-caution-2: var(--vp-c-red-2);--vp-c-caution-3: var(--vp-c-red-3);--vp-c-caution-soft: var(--vp-c-red-soft)}:root{--vp-font-family-base: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;font-optical-sizing:auto}:root:where(:lang(zh)){--vp-font-family-base: "Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC", "Microsoft YaHei", "DengXian", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"}:root{--vp-shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .06);--vp-shadow-2: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);--vp-shadow-3: 0 12px 32px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .08);--vp-shadow-4: 0 14px 44px rgba(0, 0, 0, .12), 0 3px 9px rgba(0, 0, 0, .12);--vp-shadow-5: 0 18px 56px rgba(0, 0, 0, .16), 0 4px 12px rgba(0, 0, 0, .16)}:root{--vp-z-index-footer: 10;--vp-z-index-local-nav: 20;--vp-z-index-nav: 30;--vp-z-index-layout-top: 40;--vp-z-index-backdrop: 50;--vp-z-index-sidebar: 60}@media (min-width: 960px){:root{--vp-z-index-sidebar: 25}}:root{--vp-layout-max-width: 1440px}:root{--vp-header-anchor-symbol: "#"}:root{--vp-code-line-height: 1.7;--vp-code-font-size: .875em;--vp-code-color: var(--vp-c-brand-1);--vp-code-link-color: var(--vp-c-brand-1);--vp-code-link-hover-color: var(--vp-c-brand-2);--vp-code-bg: var(--vp-c-default-soft);--vp-code-block-color: var(--vp-c-text-2);--vp-code-block-bg: var(--vp-c-bg-alt);--vp-code-block-divider-color: var(--vp-c-gutter);--vp-code-lang-color: var(--vp-c-text-3);--vp-code-line-highlight-color: var(--vp-c-default-soft);--vp-code-line-number-color: var(--vp-c-text-3);--vp-code-line-diff-add-color: var(--vp-c-success-soft);--vp-code-line-diff-add-symbol-color: var(--vp-c-success-1);--vp-code-line-diff-remove-color: var(--vp-c-danger-soft);--vp-code-line-diff-remove-symbol-color: var(--vp-c-danger-1);--vp-code-line-warning-color: var(--vp-c-warning-soft);--vp-code-line-error-color: var(--vp-c-danger-soft);--vp-code-copy-code-border-color: var(--vp-c-divider);--vp-code-copy-code-bg: var(--vp-c-bg-soft);--vp-code-copy-code-hover-border-color: var(--vp-c-divider);--vp-code-copy-code-hover-bg: var(--vp-c-bg);--vp-code-copy-code-active-text: var(--vp-c-text-2);--vp-code-copy-copied-text-content: "Copied";--vp-code-tab-divider: var(--vp-code-block-divider-color);--vp-code-tab-text-color: var(--vp-c-text-2);--vp-code-tab-bg: var(--vp-code-block-bg);--vp-code-tab-hover-text-color: var(--vp-c-text-1);--vp-code-tab-active-text-color: var(--vp-c-text-1);--vp-code-tab-active-bar-color: var(--vp-c-brand-1)}:root{--vp-button-brand-border: transparent;--vp-button-brand-text: var(--vp-c-white);--vp-button-brand-bg: var(--vp-c-brand-3);--vp-button-brand-hover-border: transparent;--vp-button-brand-hover-text: var(--vp-c-white);--vp-button-brand-hover-bg: var(--vp-c-brand-2);--vp-button-brand-active-border: transparent;--vp-button-brand-active-text: var(--vp-c-white);--vp-button-brand-active-bg: var(--vp-c-brand-1);--vp-button-alt-border: transparent;--vp-button-alt-text: var(--vp-c-text-1);--vp-button-alt-bg: var(--vp-c-default-3);--vp-button-alt-hover-border: transparent;--vp-button-alt-hover-text: var(--vp-c-text-1);--vp-button-alt-hover-bg: var(--vp-c-default-2);--vp-button-alt-active-border: transparent;--vp-button-alt-active-text: var(--vp-c-text-1);--vp-button-alt-active-bg: var(--vp-c-default-1);--vp-button-sponsor-border: var(--vp-c-text-2);--vp-button-sponsor-text: var(--vp-c-text-2);--vp-button-sponsor-bg: transparent;--vp-button-sponsor-hover-border: var(--vp-c-sponsor);--vp-button-sponsor-hover-text: var(--vp-c-sponsor);--vp-button-sponsor-hover-bg: transparent;--vp-button-sponsor-active-border: var(--vp-c-sponsor);--vp-button-sponsor-active-text: var(--vp-c-sponsor);--vp-button-sponsor-active-bg: transparent}:root{--vp-custom-block-font-size: 14px;--vp-custom-block-code-font-size: 13px;--vp-custom-block-info-border: transparent;--vp-custom-block-info-text: var(--vp-c-text-1);--vp-custom-block-info-bg: var(--vp-c-default-soft);--vp-custom-block-info-code-bg: var(--vp-c-default-soft);--vp-custom-block-note-border: transparent;--vp-custom-block-note-text: var(--vp-c-text-1);--vp-custom-block-note-bg: var(--vp-c-default-soft);--vp-custom-block-note-code-bg: var(--vp-c-default-soft);--vp-custom-block-tip-border: transparent;--vp-custom-block-tip-text: var(--vp-c-text-1);--vp-custom-block-tip-bg: var(--vp-c-tip-soft);--vp-custom-block-tip-code-bg: var(--vp-c-tip-soft);--vp-custom-block-important-border: transparent;--vp-custom-block-important-text: var(--vp-c-text-1);--vp-custom-block-important-bg: var(--vp-c-important-soft);--vp-custom-block-important-code-bg: var(--vp-c-important-soft);--vp-custom-block-warning-border: transparent;--vp-custom-block-warning-text: var(--vp-c-text-1);--vp-custom-block-warning-bg: var(--vp-c-warning-soft);--vp-custom-block-warning-code-bg: var(--vp-c-warning-soft);--vp-custom-block-danger-border: transparent;--vp-custom-block-danger-text: var(--vp-c-text-1);--vp-custom-block-danger-bg: var(--vp-c-danger-soft);--vp-custom-block-danger-code-bg: var(--vp-c-danger-soft);--vp-custom-block-caution-border: transparent;--vp-custom-block-caution-text: var(--vp-c-text-1);--vp-custom-block-caution-bg: var(--vp-c-caution-soft);--vp-custom-block-caution-code-bg: var(--vp-c-caution-soft);--vp-custom-block-details-border: var(--vp-custom-block-info-border);--vp-custom-block-details-text: var(--vp-custom-block-info-text);--vp-custom-block-details-bg: var(--vp-custom-block-info-bg);--vp-custom-block-details-code-bg: var(--vp-custom-block-info-code-bg)}:root{--vp-input-border-color: var(--vp-c-border);--vp-input-bg-color: var(--vp-c-bg-alt);--vp-input-switch-bg-color: var(--vp-c-default-soft)}:root{--vp-nav-height: 64px;--vp-nav-bg-color: var(--vp-c-bg);--vp-nav-screen-bg-color: var(--vp-c-bg);--vp-nav-logo-height: 24px}.hide-nav{--vp-nav-height: 0px}.hide-nav .VPSidebar{--vp-nav-height: 22px}:root{--vp-local-nav-bg-color: var(--vp-c-bg)}:root{--vp-sidebar-width: 272px;--vp-sidebar-bg-color: var(--vp-c-bg-alt)}:root{--vp-backdrop-bg-color: rgba(0, 0, 0, .6)}:root{--vp-home-hero-name-color: var(--vp-c-brand-1);--vp-home-hero-name-background: transparent;--vp-home-hero-image-background-image: none;--vp-home-hero-image-filter: none}:root{--vp-badge-info-border: transparent;--vp-badge-info-text: var(--vp-c-text-2);--vp-badge-info-bg: var(--vp-c-default-soft);--vp-badge-tip-border: transparent;--vp-badge-tip-text: var(--vp-c-tip-1);--vp-badge-tip-bg: var(--vp-c-tip-soft);--vp-badge-warning-border: transparent;--vp-badge-warning-text: var(--vp-c-warning-1);--vp-badge-warning-bg: var(--vp-c-warning-soft);--vp-badge-danger-border: transparent;--vp-badge-danger-text: var(--vp-c-danger-1);--vp-badge-danger-bg: var(--vp-c-danger-soft)}:root{--vp-carbon-ads-text-color: var(--vp-c-text-1);--vp-carbon-ads-poweredby-color: var(--vp-c-text-2);--vp-carbon-ads-bg-color: var(--vp-c-bg-soft);--vp-carbon-ads-hover-text-color: var(--vp-c-brand-1);--vp-carbon-ads-hover-poweredby-color: var(--vp-c-text-1)}:root{--vp-local-search-bg: var(--vp-c-bg);--vp-local-search-result-bg: var(--vp-c-bg);--vp-local-search-result-border: var(--vp-c-divider);--vp-local-search-result-selected-bg: var(--vp-c-bg);--vp-local-search-result-selected-border: var(--vp-c-brand-1);--vp-local-search-highlight-bg: var(--vp-c-brand-1);--vp-local-search-highlight-text: var(--vp-c-neutral-inverse)}@media (prefers-reduced-motion: reduce){*,:before,:after{animation-delay:-1ms!important;animation-duration:1ms!important;animation-iteration-count:1!important;background-attachment:initial!important;scroll-behavior:auto!important;transition-duration:0s!important;transition-delay:0s!important}}*,:before,:after{box-sizing:border-box}html{line-height:1.4;font-size:16px;-webkit-text-size-adjust:100%}html.dark{color-scheme:dark}body{margin:0;width:100%;min-width:320px;min-height:100vh;line-height:24px;font-family:var(--vp-font-family-base);font-size:16px;font-weight:400;color:var(--vp-c-text-1);background-color:var(--vp-c-bg);font-synthesis:style;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}main{display:block}h1,h2,h3,h4,h5,h6{margin:0;line-height:24px;font-size:16px;font-weight:400}p{margin:0}strong,b{font-weight:600}a,area,button,[role=button],input,label,select,summary,textarea{touch-action:manipulation}a{color:inherit;text-decoration:inherit}ol,ul{list-style:none;margin:0;padding:0}blockquote{margin:0}pre,code,kbd,samp{font-family:var(--vp-font-family-mono)}img,svg,video,canvas,audio,iframe,embed,object{display:block}figure{margin:0}img,video{max-width:100%;height:auto}button,input,optgroup,select,textarea{border:0;padding:0;line-height:inherit;color:inherit}button{padding:0;font-family:inherit;background-color:transparent;background-image:none}button:enabled,[role=button]:enabled{cursor:pointer}button:focus,button:focus-visible{outline:1px dotted;outline:4px auto -webkit-focus-ring-color}button:focus:not(:focus-visible){outline:none!important}input:focus,textarea:focus,select:focus{outline:none}table{border-collapse:collapse}input{background-color:transparent}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:var(--vp-c-text-3)}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:var(--vp-c-text-3)}input::placeholder,textarea::placeholder{color:var(--vp-c-text-3)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}textarea{resize:vertical}select{-webkit-appearance:none}fieldset{margin:0;padding:0}h1,h2,h3,h4,h5,h6,li,p{overflow-wrap:break-word}vite-error-overlay{z-index:9999}mjx-container{display:inline-block;margin:auto 2px -2px}mjx-container>svg{display:inline-block;margin:auto}[class^=vpi-],[class*=" vpi-"],.vp-icon{width:1em;height:1em}[class^=vpi-].bg,[class*=" vpi-"].bg,.vp-icon.bg{background-size:100% 100%;background-color:transparent}[class^=vpi-]:not(.bg),[class*=" vpi-"]:not(.bg),.vp-icon:not(.bg){-webkit-mask:var(--icon) no-repeat;mask:var(--icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit}.vpi-align-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E")}.vpi-arrow-right,.vpi-arrow-down,.vpi-arrow-left,.vpi-arrow-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E")}.vpi-chevron-right,.vpi-chevron-down,.vpi-chevron-left,.vpi-chevron-up{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E")}.vpi-chevron-down,.vpi-arrow-down{transform:rotate(90deg)}.vpi-chevron-left,.vpi-arrow-left{transform:rotate(180deg)}.vpi-chevron-up,.vpi-arrow-up{transform:rotate(-90deg)}.vpi-square-pen{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z'/%3E%3C/svg%3E")}.vpi-plus{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E")}.vpi-sun{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}.vpi-moon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")}.vpi-more-horizontal{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E")}.vpi-languages{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m5 8 6 6M4 14l6-6 2-3M2 5h12M7 2h1M22 22l-5-10-5 10M14 18h6'/%3E%3C/svg%3E")}.vpi-heart{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E")}.vpi-search{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E")}.vpi-layout-list{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3Cpath d='M14 4h7M14 9h7M14 15h7M14 20h7'/%3E%3C/svg%3E")}.vpi-delete{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M20 5H9l-7 7 7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2ZM18 9l-6 6M12 9l6 6'/%3E%3C/svg%3E")}.vpi-corner-down-left{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m9 10-5 5 5 5'/%3E%3Cpath d='M20 4v7a4 4 0 0 1-4 4H4'/%3E%3C/svg%3E")}:root{--vp-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E");--vp-icon-copied: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(128,128,128,1)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect width='8' height='4' x='8' y='2' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E")}.vpi-social-discord{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z'/%3E%3C/svg%3E")}.vpi-social-facebook{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z'/%3E%3C/svg%3E")}.vpi-social-github{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E")}.vpi-social-instagram{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.03.084c-1.277.06-2.149.264-2.91.563a5.874 5.874 0 0 0-2.124 1.388 5.878 5.878 0 0 0-1.38 2.127C.321 4.926.12 5.8.064 7.076.008 8.354-.005 8.764.001 12.023c.007 3.259.021 3.667.083 4.947.061 1.277.264 2.149.563 2.911.308.789.72 1.457 1.388 2.123a5.872 5.872 0 0 0 2.129 1.38c.763.295 1.636.496 2.913.552 1.278.056 1.689.069 4.947.063 3.257-.007 3.668-.021 4.947-.082 1.28-.06 2.147-.265 2.91-.563a5.881 5.881 0 0 0 2.123-1.388 5.881 5.881 0 0 0 1.38-2.129c.295-.763.496-1.636.551-2.912.056-1.28.07-1.69.063-4.948-.006-3.258-.02-3.667-.081-4.947-.06-1.28-.264-2.148-.564-2.911a5.892 5.892 0 0 0-1.387-2.123 5.857 5.857 0 0 0-2.128-1.38C19.074.322 18.202.12 16.924.066 15.647.009 15.236-.006 11.977 0 8.718.008 8.31.021 7.03.084m.14 21.693c-1.17-.05-1.805-.245-2.228-.408a3.736 3.736 0 0 1-1.382-.895 3.695 3.695 0 0 1-.9-1.378c-.165-.423-.363-1.058-.417-2.228-.06-1.264-.072-1.644-.08-4.848-.006-3.204.006-3.583.061-4.848.05-1.169.246-1.805.408-2.228.216-.561.477-.96.895-1.382a3.705 3.705 0 0 1 1.379-.9c.423-.165 1.057-.361 2.227-.417 1.265-.06 1.644-.072 4.848-.08 3.203-.006 3.583.006 4.85.062 1.168.05 1.804.244 2.227.408.56.216.96.475 1.382.895.421.42.681.817.9 1.378.165.422.362 1.056.417 2.227.06 1.265.074 1.645.08 4.848.005 3.203-.006 3.583-.061 4.848-.051 1.17-.245 1.805-.408 2.23-.216.56-.477.96-.896 1.38a3.705 3.705 0 0 1-1.378.9c-.422.165-1.058.362-2.226.418-1.266.06-1.645.072-4.85.079-3.204.007-3.582-.006-4.848-.06m9.783-16.192a1.44 1.44 0 1 0 1.437-1.442 1.44 1.44 0 0 0-1.437 1.442M5.839 12.012a6.161 6.161 0 1 0 12.323-.024 6.162 6.162 0 0 0-12.323.024M8 12.008A4 4 0 1 1 12.008 16 4 4 0 0 1 8 12.008'/%3E%3C/svg%3E")}.vpi-social-linkedin{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E")}.vpi-social-mastodon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z'/%3E%3C/svg%3E")}.vpi-social-npm{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z'/%3E%3C/svg%3E")}.vpi-social-slack{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zm1.271 0a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zm0 1.271a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zm10.122 2.521a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zm-1.268 0a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zm-2.523 10.122a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zm0-1.268a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z'/%3E%3C/svg%3E")}.vpi-social-twitter,.vpi-social-x{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E")}.vpi-social-youtube{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E")}.visually-hidden{position:absolute;width:1px;height:1px;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden}.custom-block{border:1px solid transparent;border-radius:8px;padding:16px 16px 8px;line-height:24px;font-size:var(--vp-custom-block-font-size);color:var(--vp-c-text-2)}.custom-block.info{border-color:var(--vp-custom-block-info-border);color:var(--vp-custom-block-info-text);background-color:var(--vp-custom-block-info-bg)}.custom-block.info a,.custom-block.info code{color:var(--vp-c-brand-1)}.custom-block.info a:hover,.custom-block.info a:hover>code{color:var(--vp-c-brand-2)}.custom-block.info code{background-color:var(--vp-custom-block-info-code-bg)}.custom-block.note{border-color:var(--vp-custom-block-note-border);color:var(--vp-custom-block-note-text);background-color:var(--vp-custom-block-note-bg)}.custom-block.note a,.custom-block.note code{color:var(--vp-c-brand-1)}.custom-block.note a:hover,.custom-block.note a:hover>code{color:var(--vp-c-brand-2)}.custom-block.note code{background-color:var(--vp-custom-block-note-code-bg)}.custom-block.tip{border-color:var(--vp-custom-block-tip-border);color:var(--vp-custom-block-tip-text);background-color:var(--vp-custom-block-tip-bg)}.custom-block.tip a,.custom-block.tip code{color:var(--vp-c-tip-1)}.custom-block.tip a:hover,.custom-block.tip a:hover>code{color:var(--vp-c-tip-2)}.custom-block.tip code{background-color:var(--vp-custom-block-tip-code-bg)}.custom-block.important{border-color:var(--vp-custom-block-important-border);color:var(--vp-custom-block-important-text);background-color:var(--vp-custom-block-important-bg)}.custom-block.important a,.custom-block.important code{color:var(--vp-c-important-1)}.custom-block.important a:hover,.custom-block.important a:hover>code{color:var(--vp-c-important-2)}.custom-block.important code{background-color:var(--vp-custom-block-important-code-bg)}.custom-block.warning{border-color:var(--vp-custom-block-warning-border);color:var(--vp-custom-block-warning-text);background-color:var(--vp-custom-block-warning-bg)}.custom-block.warning a,.custom-block.warning code{color:var(--vp-c-warning-1)}.custom-block.warning a:hover,.custom-block.warning a:hover>code{color:var(--vp-c-warning-2)}.custom-block.warning code{background-color:var(--vp-custom-block-warning-code-bg)}.custom-block.danger{border-color:var(--vp-custom-block-danger-border);color:var(--vp-custom-block-danger-text);background-color:var(--vp-custom-block-danger-bg)}.custom-block.danger a,.custom-block.danger code{color:var(--vp-c-danger-1)}.custom-block.danger a:hover,.custom-block.danger a:hover>code{color:var(--vp-c-danger-2)}.custom-block.danger code{background-color:var(--vp-custom-block-danger-code-bg)}.custom-block.caution{border-color:var(--vp-custom-block-caution-border);color:var(--vp-custom-block-caution-text);background-color:var(--vp-custom-block-caution-bg)}.custom-block.caution a,.custom-block.caution code{color:var(--vp-c-caution-1)}.custom-block.caution a:hover,.custom-block.caution a:hover>code{color:var(--vp-c-caution-2)}.custom-block.caution code{background-color:var(--vp-custom-block-caution-code-bg)}.custom-block.details{border-color:var(--vp-custom-block-details-border);color:var(--vp-custom-block-details-text);background-color:var(--vp-custom-block-details-bg)}.custom-block.details a{color:var(--vp-c-brand-1)}.custom-block.details a:hover,.custom-block.details a:hover>code{color:var(--vp-c-brand-2)}.custom-block.details code{background-color:var(--vp-custom-block-details-code-bg)}.custom-block-title{font-weight:600}.custom-block p+p{margin:8px 0}.custom-block.details summary{margin:0 0 8px;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none}.custom-block.details summary+p{margin:8px 0}.custom-block a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px;transition:opacity .25s}.custom-block a:hover{opacity:.75}.custom-block code{font-size:var(--vp-custom-block-code-font-size)}.custom-block.custom-block th,.custom-block.custom-block blockquote>p{font-size:var(--vp-custom-block-font-size);color:inherit}.dark .vp-code span{color:var(--shiki-dark, inherit)}html:not(.dark) .vp-code span{color:var(--shiki-light, inherit)}.vp-code-group{margin-top:16px}.vp-code-group .tabs{position:relative;display:flex;margin-right:-24px;margin-left:-24px;padding:0 12px;background-color:var(--vp-code-tab-bg);overflow-x:auto;overflow-y:hidden;box-shadow:inset 0 -1px var(--vp-code-tab-divider)}@media (min-width: 640px){.vp-code-group .tabs{margin-right:0;margin-left:0;border-radius:8px 8px 0 0}}.vp-code-group .tabs input{position:fixed;opacity:0;pointer-events:none}.vp-code-group .tabs label{position:relative;display:inline-block;border-bottom:1px solid transparent;padding:0 12px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-code-tab-text-color);white-space:nowrap;cursor:pointer;transition:color .25s}.vp-code-group .tabs label:after{position:absolute;right:8px;bottom:-1px;left:8px;z-index:1;height:2px;border-radius:2px;content:"";background-color:transparent;transition:background-color .25s}.vp-code-group label:hover{color:var(--vp-code-tab-hover-text-color)}.vp-code-group input:checked+label{color:var(--vp-code-tab-active-text-color)}.vp-code-group input:checked+label:after{background-color:var(--vp-code-tab-active-bar-color)}.vp-code-group div[class*=language-],.vp-block{display:none;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}.vp-code-group div[class*=language-].active,.vp-block.active{display:block}.vp-block{padding:20px 24px}.vp-doc h1,.vp-doc h2,.vp-doc h3,.vp-doc h4,.vp-doc h5,.vp-doc h6{position:relative;font-weight:600;outline:none}.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:28px}.vp-doc h2{margin:48px 0 16px;border-top:1px solid var(--vp-c-divider);padding-top:24px;letter-spacing:-.02em;line-height:32px;font-size:24px}.vp-doc h3{margin:32px 0 0;letter-spacing:-.01em;line-height:28px;font-size:20px}.vp-doc .header-anchor{position:absolute;top:0;left:0;margin-left:-.87em;font-weight:500;-webkit-user-select:none;user-select:none;opacity:0;text-decoration:none;transition:color .25s,opacity .25s}.vp-doc .header-anchor:before{content:var(--vp-header-anchor-symbol)}.vp-doc h1:hover .header-anchor,.vp-doc h1 .header-anchor:focus,.vp-doc h2:hover .header-anchor,.vp-doc h2 .header-anchor:focus,.vp-doc h3:hover .header-anchor,.vp-doc h3 .header-anchor:focus,.vp-doc h4:hover .header-anchor,.vp-doc h4 .header-anchor:focus,.vp-doc h5:hover .header-anchor,.vp-doc h5 .header-anchor:focus,.vp-doc h6:hover .header-anchor,.vp-doc h6 .header-anchor:focus{opacity:1}@media (min-width: 768px){.vp-doc h1{letter-spacing:-.02em;line-height:40px;font-size:32px}}.vp-doc h2 .header-anchor{top:24px}.vp-doc p,.vp-doc summary{margin:16px 0}.vp-doc p{line-height:28px}.vp-doc blockquote{margin:16px 0;border-left:2px solid var(--vp-c-divider);padding-left:16px;transition:border-color .5s}.vp-doc blockquote>p{margin:0;font-size:16px;color:var(--vp-c-text-2);transition:color .5s}.vp-doc a{font-weight:500;color:var(--vp-c-brand-1);text-decoration:underline;text-underline-offset:2px;transition:color .25s,opacity .25s}.vp-doc a:hover{color:var(--vp-c-brand-2)}.vp-doc strong{font-weight:600}.vp-doc ul,.vp-doc ol{padding-left:1.25rem;margin:16px 0}.vp-doc ul{list-style:disc}.vp-doc ol{list-style:decimal}.vp-doc li+li{margin-top:8px}.vp-doc li>ol,.vp-doc li>ul{margin:8px 0 0}.vp-doc table{display:block;border-collapse:collapse;margin:20px 0;overflow-x:auto}.vp-doc tr{background-color:var(--vp-c-bg);border-top:1px solid var(--vp-c-divider);transition:background-color .5s}.vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}.vp-doc th,.vp-doc td{border:1px solid var(--vp-c-divider);padding:8px 16px}.vp-doc th{text-align:left;font-size:14px;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-doc td{font-size:14px}.vp-doc hr{margin:16px 0;border:none;border-top:1px solid var(--vp-c-divider)}.vp-doc .custom-block{margin:16px 0}.vp-doc .custom-block p{margin:8px 0;line-height:24px}.vp-doc .custom-block p:first-child{margin:0}.vp-doc .custom-block div[class*=language-]{margin:8px 0;border-radius:8px}.vp-doc .custom-block div[class*=language-] code{font-weight:400;background-color:transparent}.vp-doc .custom-block .vp-code-group .tabs{margin:0;border-radius:8px 8px 0 0}.vp-doc :not(pre,h1,h2,h3,h4,h5,h6)>code{font-size:var(--vp-code-font-size);color:var(--vp-code-color)}.vp-doc :not(pre)>code{border-radius:4px;padding:3px 6px;background-color:var(--vp-code-bg);transition:color .25s,background-color .5s}.vp-doc a>code{color:var(--vp-code-link-color)}.vp-doc a:hover>code{color:var(--vp-code-link-hover-color)}.vp-doc h1>code,.vp-doc h2>code,.vp-doc h3>code{font-size:.9em}.vp-doc div[class*=language-],.vp-block{position:relative;margin:16px -24px;background-color:var(--vp-code-block-bg);overflow-x:auto;transition:background-color .5s}@media (min-width: 640px){.vp-doc div[class*=language-],.vp-block{border-radius:8px;margin:16px 0}}@media (max-width: 639px){.vp-doc li div[class*=language-]{border-radius:8px 0 0 8px}}.vp-doc div[class*=language-]+div[class*=language-],.vp-doc div[class$=-api]+div[class*=language-],.vp-doc div[class*=language-]+div[class$=-api]>div[class*=language-]{margin-top:-8px}.vp-doc [class*=language-] pre,.vp-doc [class*=language-] code{direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.vp-doc [class*=language-] pre{position:relative;z-index:1;margin:0;padding:20px 0;background:transparent;overflow-x:auto}.vp-doc [class*=language-] code{display:block;padding:0 24px;width:fit-content;min-width:100%;line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-block-color);transition:color .5s}.vp-doc [class*=language-] code .highlighted{background-color:var(--vp-code-line-highlight-color);transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .highlighted.error{background-color:var(--vp-code-line-error-color)}.vp-doc [class*=language-] code .highlighted.warning{background-color:var(--vp-code-line-warning-color)}.vp-doc [class*=language-] code .diff{transition:background-color .5s;margin:0 -24px;padding:0 24px;width:calc(100% + 48px);display:inline-block}.vp-doc [class*=language-] code .diff:before{position:absolute;left:10px}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){filter:blur(.095rem);opacity:.4;transition:filter .35s,opacity .35s}.vp-doc [class*=language-] .has-focused-lines .line:not(.has-focus){opacity:.7;transition:filter .35s,opacity .35s}.vp-doc [class*=language-]:hover .has-focused-lines .line:not(.has-focus){filter:blur(0);opacity:1}.vp-doc [class*=language-] code .diff.remove{background-color:var(--vp-code-line-diff-remove-color);opacity:.7}.vp-doc [class*=language-] code .diff.remove:before{content:"-";color:var(--vp-code-line-diff-remove-symbol-color)}.vp-doc [class*=language-] code .diff.add{background-color:var(--vp-code-line-diff-add-color)}.vp-doc [class*=language-] code .diff.add:before{content:"+";color:var(--vp-code-line-diff-add-symbol-color)}.vp-doc div[class*=language-].line-numbers-mode{padding-left:32px}.vp-doc .line-numbers-wrapper{position:absolute;top:0;bottom:0;left:0;z-index:3;border-right:1px solid var(--vp-code-block-divider-color);padding-top:20px;width:32px;text-align:center;font-family:var(--vp-font-family-mono);line-height:var(--vp-code-line-height);font-size:var(--vp-code-font-size);color:var(--vp-code-line-number-color);transition:border-color .5s,color .5s}.vp-doc [class*=language-]>button.copy{direction:ltr;position:absolute;top:12px;right:12px;z-index:3;border:1px solid var(--vp-code-copy-code-border-color);border-radius:4px;width:40px;height:40px;background-color:var(--vp-code-copy-code-bg);opacity:0;cursor:pointer;background-image:var(--vp-icon-copy);background-position:50%;background-size:20px;background-repeat:no-repeat;transition:border-color .25s,background-color .25s,opacity .25s}.vp-doc [class*=language-]:hover>button.copy,.vp-doc [class*=language-]>button.copy:focus{opacity:1}.vp-doc [class*=language-]>button.copy:hover,.vp-doc [class*=language-]>button.copy.copied{border-color:var(--vp-code-copy-code-hover-border-color);background-color:var(--vp-code-copy-code-hover-bg)}.vp-doc [class*=language-]>button.copy.copied,.vp-doc [class*=language-]>button.copy:hover.copied{border-radius:0 4px 4px 0;background-color:var(--vp-code-copy-code-hover-bg);background-image:var(--vp-icon-copied)}.vp-doc [class*=language-]>button.copy.copied:before,.vp-doc [class*=language-]>button.copy:hover.copied:before{position:relative;top:-1px;transform:translate(calc(-100% - 1px));display:flex;justify-content:center;align-items:center;border:1px solid var(--vp-code-copy-code-hover-border-color);border-right:0;border-radius:4px 0 0 4px;padding:0 10px;width:fit-content;height:40px;text-align:center;font-size:12px;font-weight:500;color:var(--vp-code-copy-code-active-text);background-color:var(--vp-code-copy-code-hover-bg);white-space:nowrap;content:var(--vp-code-copy-copied-text-content)}.vp-doc [class*=language-]>span.lang{position:absolute;top:2px;right:8px;z-index:2;font-size:12px;font-weight:500;color:var(--vp-code-lang-color);transition:color .4s,opacity .4s}.vp-doc [class*=language-]:hover>button.copy+span.lang,.vp-doc [class*=language-]>button.copy:focus+span.lang{opacity:0}.vp-doc .VPTeamMembers{margin-top:24px}.vp-doc .VPTeamMembers.small.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}.vp-doc .VPTeamMembers.small.count-2 .container,.vp-doc .VPTeamMembers.small.count-3 .container{max-width:100%!important}.vp-doc .VPTeamMembers.medium.count-1 .container{margin:0!important;max-width:calc((100% - 24px)/2)!important}:is(.vp-external-link-icon,.vp-doc a[href*="://"],.vp-doc a[target=_blank]):not(.no-icon):after{display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.vp-external-link-icon:after{content:""}.external-link-icon-enabled :is(.vp-doc a[href*="://"],.vp-doc a[target=_blank]):after{content:"";color:currentColor}.vp-sponsor{border-radius:16px;overflow:hidden}.vp-sponsor.aside{border-radius:12px}.vp-sponsor-section+.vp-sponsor-section{margin-top:4px}.vp-sponsor-tier{margin:0 0 4px!important;text-align:center;letter-spacing:1px!important;line-height:24px;width:100%;font-weight:600;color:var(--vp-c-text-2);background-color:var(--vp-c-bg-soft)}.vp-sponsor.normal .vp-sponsor-tier{padding:13px 0 11px;font-size:14px}.vp-sponsor.aside .vp-sponsor-tier{padding:9px 0 7px;font-size:12px}.vp-sponsor-grid+.vp-sponsor-tier{margin-top:4px}.vp-sponsor-grid{display:flex;flex-wrap:wrap;gap:4px}.vp-sponsor-grid.xmini .vp-sponsor-grid-link{height:64px}.vp-sponsor-grid.xmini .vp-sponsor-grid-image{max-width:64px;max-height:22px}.vp-sponsor-grid.mini .vp-sponsor-grid-link{height:72px}.vp-sponsor-grid.mini .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.small .vp-sponsor-grid-link{height:96px}.vp-sponsor-grid.small .vp-sponsor-grid-image{max-width:96px;max-height:24px}.vp-sponsor-grid.medium .vp-sponsor-grid-link{height:112px}.vp-sponsor-grid.medium .vp-sponsor-grid-image{max-width:120px;max-height:36px}.vp-sponsor-grid.big .vp-sponsor-grid-link{height:184px}.vp-sponsor-grid.big .vp-sponsor-grid-image{max-width:192px;max-height:56px}.vp-sponsor-grid[data-vp-grid="2"] .vp-sponsor-grid-item{width:calc((100% - 4px)/2)}.vp-sponsor-grid[data-vp-grid="3"] .vp-sponsor-grid-item{width:calc((100% - 4px * 2) / 3)}.vp-sponsor-grid[data-vp-grid="4"] .vp-sponsor-grid-item{width:calc((100% - 12px)/4)}.vp-sponsor-grid[data-vp-grid="5"] .vp-sponsor-grid-item{width:calc((100% - 16px)/5)}.vp-sponsor-grid[data-vp-grid="6"] .vp-sponsor-grid-item{width:calc((100% - 4px * 5) / 6)}.vp-sponsor-grid-item{flex-shrink:0;width:100%;background-color:var(--vp-c-bg-soft);transition:background-color .25s}.vp-sponsor-grid-item:hover{background-color:var(--vp-c-default-soft)}.vp-sponsor-grid-item:hover .vp-sponsor-grid-image{filter:grayscale(0) invert(0)}.vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.dark .vp-sponsor-grid-item:hover{background-color:var(--vp-c-white)}.dark .vp-sponsor-grid-item.empty:hover{background-color:var(--vp-c-bg-soft)}.vp-sponsor-grid-link{display:flex}.vp-sponsor-grid-box{display:flex;justify-content:center;align-items:center;width:100%}.vp-sponsor-grid-image{max-width:100%;filter:grayscale(1);transition:filter .25s}.dark .vp-sponsor-grid-image{filter:grayscale(1) invert(1)}.VPBadge{display:inline-block;margin-left:2px;border:1px solid transparent;border-radius:12px;padding:0 10px;line-height:22px;font-size:12px;font-weight:500;transform:translateY(-2px)}.VPBadge.small{padding:0 6px;line-height:18px;font-size:10px;transform:translateY(-8px)}.VPDocFooter .VPBadge{display:none}.vp-doc h1>.VPBadge{margin-top:4px;vertical-align:top}.vp-doc h2>.VPBadge{margin-top:3px;padding:0 8px;vertical-align:top}.vp-doc h3>.VPBadge{vertical-align:middle}.vp-doc h4>.VPBadge,.vp-doc h5>.VPBadge,.vp-doc h6>.VPBadge{vertical-align:middle;line-height:18px}.VPBadge.info{border-color:var(--vp-badge-info-border);color:var(--vp-badge-info-text);background-color:var(--vp-badge-info-bg)}.VPBadge.tip{border-color:var(--vp-badge-tip-border);color:var(--vp-badge-tip-text);background-color:var(--vp-badge-tip-bg)}.VPBadge.warning{border-color:var(--vp-badge-warning-border);color:var(--vp-badge-warning-text);background-color:var(--vp-badge-warning-bg)}.VPBadge.danger{border-color:var(--vp-badge-danger-border);color:var(--vp-badge-danger-text);background-color:var(--vp-badge-danger-bg)}.VPBackdrop[data-v-c79a1216]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--vp-z-index-backdrop);background:var(--vp-backdrop-bg-color);transition:opacity .5s}.VPBackdrop.fade-enter-from[data-v-c79a1216],.VPBackdrop.fade-leave-to[data-v-c79a1216]{opacity:0}.VPBackdrop.fade-leave-active[data-v-c79a1216]{transition-duration:.25s}@media (min-width: 1280px){.VPBackdrop[data-v-c79a1216]{display:none}}.NotFound[data-v-d6be1790]{padding:64px 24px 96px;text-align:center}@media (min-width: 768px){.NotFound[data-v-d6be1790]{padding:96px 32px 168px}}.code[data-v-d6be1790]{line-height:64px;font-size:64px;font-weight:600}.title[data-v-d6be1790]{padding-top:12px;letter-spacing:2px;line-height:20px;font-size:20px;font-weight:700}.divider[data-v-d6be1790]{margin:24px auto 18px;width:64px;height:1px;background-color:var(--vp-c-divider)}.quote[data-v-d6be1790]{margin:0 auto;max-width:256px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.action[data-v-d6be1790]{padding-top:20px}.link[data-v-d6be1790]{display:inline-block;border:1px solid var(--vp-c-brand-1);border-radius:16px;padding:3px 16px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:border-color .25s,color .25s}.link[data-v-d6be1790]:hover{border-color:var(--vp-c-brand-2);color:var(--vp-c-brand-2)}.root[data-v-b933a997]{position:relative;z-index:1}.nested[data-v-b933a997]{padding-right:16px;padding-left:16px}.outline-link[data-v-b933a997]{display:block;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .5s}.outline-link[data-v-b933a997]:hover,.outline-link.active[data-v-b933a997]{color:var(--vp-c-text-1);transition:color .25s}.outline-link.nested[data-v-b933a997]{padding-left:13px}.VPDocAsideOutline[data-v-a5bbad30]{display:none}.VPDocAsideOutline.has-outline[data-v-a5bbad30]{display:block}.content[data-v-a5bbad30]{position:relative;border-left:1px solid var(--vp-c-divider);padding-left:16px;font-size:13px;font-weight:500}.outline-marker[data-v-a5bbad30]{position:absolute;top:32px;left:-1px;z-index:0;opacity:0;width:2px;border-radius:2px;height:18px;background-color:var(--vp-c-brand-1);transition:top .25s cubic-bezier(0,1,.5,1),background-color .5s,opacity .25s}.outline-title[data-v-a5bbad30]{line-height:32px;font-size:14px;font-weight:600}.VPDocAside[data-v-3f215769]{display:flex;flex-direction:column;flex-grow:1}.spacer[data-v-3f215769]{flex-grow:1}.VPDocAside[data-v-3f215769] .spacer+.VPDocAsideSponsors,.VPDocAside[data-v-3f215769] .spacer+.VPDocAsideCarbonAds{margin-top:24px}.VPDocAside[data-v-3f215769] .VPDocAsideSponsors+.VPDocAsideCarbonAds{margin-top:16px}.VPLastUpdated[data-v-7e05ebdb]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 640px){.VPLastUpdated[data-v-7e05ebdb]{line-height:32px;font-size:14px;font-weight:500}}.VPDocFooter[data-v-d4a0bba5]{margin-top:64px}.edit-info[data-v-d4a0bba5]{padding-bottom:18px}@media (min-width: 640px){.edit-info[data-v-d4a0bba5]{display:flex;justify-content:space-between;align-items:center;padding-bottom:14px}}.edit-link-button[data-v-d4a0bba5]{display:flex;align-items:center;border:0;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.edit-link-button[data-v-d4a0bba5]:hover{color:var(--vp-c-brand-2)}.edit-link-icon[data-v-d4a0bba5]{margin-right:8px}.prev-next[data-v-d4a0bba5]{border-top:1px solid var(--vp-c-divider);padding-top:24px;display:grid;grid-row-gap:8px}@media (min-width: 640px){.prev-next[data-v-d4a0bba5]{grid-template-columns:repeat(2,1fr);grid-column-gap:16px}}.pager-link[data-v-d4a0bba5]{display:block;border:1px solid var(--vp-c-divider);border-radius:8px;padding:11px 16px 13px;width:100%;height:100%;transition:border-color .25s}.pager-link[data-v-d4a0bba5]:hover{border-color:var(--vp-c-brand-1)}.pager-link.next[data-v-d4a0bba5]{margin-left:auto;text-align:right}.desc[data-v-d4a0bba5]{display:block;line-height:20px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.title[data-v-d4a0bba5]{display:block;line-height:20px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1);transition:color .25s}.VPDoc[data-v-39a288b8]{padding:32px 24px 96px;width:100%}@media (min-width: 768px){.VPDoc[data-v-39a288b8]{padding:48px 32px 128px}}@media (min-width: 960px){.VPDoc[data-v-39a288b8]{padding:48px 32px 0}.VPDoc:not(.has-sidebar) .container[data-v-39a288b8]{display:flex;justify-content:center;max-width:992px}.VPDoc:not(.has-sidebar) .content[data-v-39a288b8]{max-width:752px}}@media (min-width: 1280px){.VPDoc .container[data-v-39a288b8]{display:flex;justify-content:center}.VPDoc .aside[data-v-39a288b8]{display:block}}@media (min-width: 1440px){.VPDoc:not(.has-sidebar) .content[data-v-39a288b8]{max-width:784px}.VPDoc:not(.has-sidebar) .container[data-v-39a288b8]{max-width:1104px}}.container[data-v-39a288b8]{margin:0 auto;width:100%}.aside[data-v-39a288b8]{position:relative;display:none;order:2;flex-grow:1;padding-left:32px;width:100%;max-width:256px}.left-aside[data-v-39a288b8]{order:1;padding-left:unset;padding-right:32px}.aside-container[data-v-39a288b8]{position:fixed;top:0;padding-top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 48px);width:224px;height:100vh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}.aside-container[data-v-39a288b8]::-webkit-scrollbar{display:none}.aside-curtain[data-v-39a288b8]{position:fixed;bottom:0;z-index:10;width:224px;height:32px;background:linear-gradient(transparent,var(--vp-c-bg) 70%)}.aside-content[data-v-39a288b8]{display:flex;flex-direction:column;min-height:calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px));padding-bottom:32px}.content[data-v-39a288b8]{position:relative;margin:0 auto;width:100%}@media (min-width: 960px){.content[data-v-39a288b8]{padding:0 32px 128px}}@media (min-width: 1280px){.content[data-v-39a288b8]{order:1;margin:0;min-width:640px}}.content-container[data-v-39a288b8]{margin:0 auto}.VPDoc.has-aside .content-container[data-v-39a288b8]{max-width:688px}.VPButton[data-v-cad61b99]{display:inline-block;border:1px solid transparent;text-align:center;font-weight:600;white-space:nowrap;transition:color .25s,border-color .25s,background-color .25s}.VPButton[data-v-cad61b99]:active{transition:color .1s,border-color .1s,background-color .1s}.VPButton.medium[data-v-cad61b99]{border-radius:20px;padding:0 20px;line-height:38px;font-size:14px}.VPButton.big[data-v-cad61b99]{border-radius:24px;padding:0 24px;line-height:46px;font-size:16px}.VPButton.brand[data-v-cad61b99]{border-color:var(--vp-button-brand-border);color:var(--vp-button-brand-text);background-color:var(--vp-button-brand-bg)}.VPButton.brand[data-v-cad61b99]:hover{border-color:var(--vp-button-brand-hover-border);color:var(--vp-button-brand-hover-text);background-color:var(--vp-button-brand-hover-bg)}.VPButton.brand[data-v-cad61b99]:active{border-color:var(--vp-button-brand-active-border);color:var(--vp-button-brand-active-text);background-color:var(--vp-button-brand-active-bg)}.VPButton.alt[data-v-cad61b99]{border-color:var(--vp-button-alt-border);color:var(--vp-button-alt-text);background-color:var(--vp-button-alt-bg)}.VPButton.alt[data-v-cad61b99]:hover{border-color:var(--vp-button-alt-hover-border);color:var(--vp-button-alt-hover-text);background-color:var(--vp-button-alt-hover-bg)}.VPButton.alt[data-v-cad61b99]:active{border-color:var(--vp-button-alt-active-border);color:var(--vp-button-alt-active-text);background-color:var(--vp-button-alt-active-bg)}.VPButton.sponsor[data-v-cad61b99]{border-color:var(--vp-button-sponsor-border);color:var(--vp-button-sponsor-text);background-color:var(--vp-button-sponsor-bg)}.VPButton.sponsor[data-v-cad61b99]:hover{border-color:var(--vp-button-sponsor-hover-border);color:var(--vp-button-sponsor-hover-text);background-color:var(--vp-button-sponsor-hover-bg)}.VPButton.sponsor[data-v-cad61b99]:active{border-color:var(--vp-button-sponsor-active-border);color:var(--vp-button-sponsor-active-text);background-color:var(--vp-button-sponsor-active-bg)}html:not(.dark) .VPImage.dark[data-v-8426fc1a]{display:none}.dark .VPImage.light[data-v-8426fc1a]{display:none}.VPHero[data-v-303bb580]{margin-top:calc((var(--vp-nav-height) + var(--vp-layout-top-height, 0px)) * -1);padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px}@media (min-width: 640px){.VPHero[data-v-303bb580]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px}}@media (min-width: 960px){.VPHero[data-v-303bb580]{padding:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px}}.container[data-v-303bb580]{display:flex;flex-direction:column;margin:0 auto;max-width:1152px}@media (min-width: 960px){.container[data-v-303bb580]{flex-direction:row}}.main[data-v-303bb580]{position:relative;z-index:10;order:2;flex-grow:1;flex-shrink:0}.VPHero.has-image .container[data-v-303bb580]{text-align:center}@media (min-width: 960px){.VPHero.has-image .container[data-v-303bb580]{text-align:left}}@media (min-width: 960px){.main[data-v-303bb580]{order:1;width:calc((100% / 3) * 2)}.VPHero.has-image .main[data-v-303bb580]{max-width:592px}}.name[data-v-303bb580],.text[data-v-303bb580]{max-width:392px;letter-spacing:-.4px;line-height:40px;font-size:32px;font-weight:700;white-space:pre-wrap}.VPHero.has-image .name[data-v-303bb580],.VPHero.has-image .text[data-v-303bb580]{margin:0 auto}.name[data-v-303bb580]{color:var(--vp-home-hero-name-color)}.clip[data-v-303bb580]{background:var(--vp-home-hero-name-background);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--vp-home-hero-name-color)}@media (min-width: 640px){.name[data-v-303bb580],.text[data-v-303bb580]{max-width:576px;line-height:56px;font-size:48px}}@media (min-width: 960px){.name[data-v-303bb580],.text[data-v-303bb580]{line-height:64px;font-size:56px}.VPHero.has-image .name[data-v-303bb580],.VPHero.has-image .text[data-v-303bb580]{margin:0}}.tagline[data-v-303bb580]{padding-top:8px;max-width:392px;line-height:28px;font-size:18px;font-weight:500;white-space:pre-wrap;color:var(--vp-c-text-2)}.VPHero.has-image .tagline[data-v-303bb580]{margin:0 auto}@media (min-width: 640px){.tagline[data-v-303bb580]{padding-top:12px;max-width:576px;line-height:32px;font-size:20px}}@media (min-width: 960px){.tagline[data-v-303bb580]{line-height:36px;font-size:24px}.VPHero.has-image .tagline[data-v-303bb580]{margin:0}}.actions[data-v-303bb580]{display:flex;flex-wrap:wrap;margin:-6px;padding-top:24px}.VPHero.has-image .actions[data-v-303bb580]{justify-content:center}@media (min-width: 640px){.actions[data-v-303bb580]{padding-top:32px}}@media (min-width: 960px){.VPHero.has-image .actions[data-v-303bb580]{justify-content:flex-start}}.action[data-v-303bb580]{flex-shrink:0;padding:6px}.image[data-v-303bb580]{order:1;margin:-76px -24px -48px}@media (min-width: 640px){.image[data-v-303bb580]{margin:-108px -24px -48px}}@media (min-width: 960px){.image[data-v-303bb580]{flex-grow:1;order:2;margin:0;min-height:100%}}.image-container[data-v-303bb580]{position:relative;margin:0 auto;width:320px;height:320px}@media (min-width: 640px){.image-container[data-v-303bb580]{width:392px;height:392px}}@media (min-width: 960px){.image-container[data-v-303bb580]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;transform:translate(-32px,-32px)}}.image-bg[data-v-303bb580]{position:absolute;top:50%;left:50%;border-radius:50%;width:192px;height:192px;background-image:var(--vp-home-hero-image-background-image);filter:var(--vp-home-hero-image-filter);transform:translate(-50%,-50%)}@media (min-width: 640px){.image-bg[data-v-303bb580]{width:256px;height:256px}}@media (min-width: 960px){.image-bg[data-v-303bb580]{width:320px;height:320px}}[data-v-303bb580] .image-src{position:absolute;top:50%;left:50%;max-width:192px;max-height:192px;transform:translate(-50%,-50%)}@media (min-width: 640px){[data-v-303bb580] .image-src{max-width:256px;max-height:256px}}@media (min-width: 960px){[data-v-303bb580] .image-src{max-width:320px;max-height:320px}}.VPFeature[data-v-a3976bdc]{display:block;border:1px solid var(--vp-c-bg-soft);border-radius:12px;height:100%;background-color:var(--vp-c-bg-soft);transition:border-color .25s,background-color .25s}.VPFeature.link[data-v-a3976bdc]:hover{border-color:var(--vp-c-brand-1)}.box[data-v-a3976bdc]{display:flex;flex-direction:column;padding:24px;height:100%}.box[data-v-a3976bdc]>.VPImage{margin-bottom:20px}.icon[data-v-a3976bdc]{display:flex;justify-content:center;align-items:center;margin-bottom:20px;border-radius:6px;background-color:var(--vp-c-default-soft);width:48px;height:48px;font-size:24px;transition:background-color .25s}.title[data-v-a3976bdc]{line-height:24px;font-size:16px;font-weight:600}.details[data-v-a3976bdc]{flex-grow:1;padding-top:8px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.link-text[data-v-a3976bdc]{padding-top:8px}.link-text-value[data-v-a3976bdc]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.link-text-icon[data-v-a3976bdc]{margin-left:6px}.VPFeatures[data-v-a6181336]{position:relative;padding:0 24px}@media (min-width: 640px){.VPFeatures[data-v-a6181336]{padding:0 48px}}@media (min-width: 960px){.VPFeatures[data-v-a6181336]{padding:0 64px}}.container[data-v-a6181336]{margin:0 auto;max-width:1152px}.items[data-v-a6181336]{display:flex;flex-wrap:wrap;margin:-8px}.item[data-v-a6181336]{padding:8px;width:100%}@media (min-width: 640px){.item.grid-2[data-v-a6181336],.item.grid-4[data-v-a6181336],.item.grid-6[data-v-a6181336]{width:50%}}@media (min-width: 768px){.item.grid-2[data-v-a6181336],.item.grid-4[data-v-a6181336]{width:50%}.item.grid-3[data-v-a6181336],.item.grid-6[data-v-a6181336]{width:calc(100% / 3)}}@media (min-width: 960px){.item.grid-4[data-v-a6181336]{width:25%}}.container[data-v-8e2d4988]{margin:auto;width:100%;max-width:1280px;padding:0 24px}@media (min-width: 640px){.container[data-v-8e2d4988]{padding:0 48px}}@media (min-width: 960px){.container[data-v-8e2d4988]{width:100%;padding:0 64px}}.vp-doc[data-v-8e2d4988] .VPHomeSponsors,.vp-doc[data-v-8e2d4988] .VPTeamPage{margin-left:var(--vp-offset, calc(50% - 50vw) );margin-right:var(--vp-offset, calc(50% - 50vw) )}.vp-doc[data-v-8e2d4988] .VPHomeSponsors h2{border-top:none;letter-spacing:normal}.vp-doc[data-v-8e2d4988] .VPHomeSponsors a,.vp-doc[data-v-8e2d4988] .VPTeamPage a{text-decoration:none}.VPHome[data-v-686f80a6]{margin-bottom:96px}@media (min-width: 768px){.VPHome[data-v-686f80a6]{margin-bottom:128px}}.VPContent[data-v-1428d186]{flex-grow:1;flex-shrink:0;margin:var(--vp-layout-top-height, 0px) auto 0;width:100%}.VPContent.is-home[data-v-1428d186]{width:100%;max-width:100%}.VPContent.has-sidebar[data-v-1428d186]{margin:0}@media (min-width: 960px){.VPContent[data-v-1428d186]{padding-top:var(--vp-nav-height)}.VPContent.has-sidebar[data-v-1428d186]{margin:var(--vp-layout-top-height, 0px) 0 0;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPContent.has-sidebar[data-v-1428d186]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.VPFooter[data-v-e315a0ad]{position:relative;z-index:var(--vp-z-index-footer);border-top:1px solid var(--vp-c-gutter);padding:32px 24px;background-color:var(--vp-c-bg)}.VPFooter.has-sidebar[data-v-e315a0ad]{display:none}.VPFooter[data-v-e315a0ad] a{text-decoration-line:underline;text-underline-offset:2px;transition:color .25s}.VPFooter[data-v-e315a0ad] a:hover{color:var(--vp-c-text-1)}@media (min-width: 768px){.VPFooter[data-v-e315a0ad]{padding:32px}}.container[data-v-e315a0ad]{margin:0 auto;max-width:var(--vp-layout-max-width);text-align:center}.message[data-v-e315a0ad],.copyright[data-v-e315a0ad]{line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-2)}.VPLocalNavOutlineDropdown[data-v-17a5e62e]{padding:12px 20px 11px}@media (min-width: 960px){.VPLocalNavOutlineDropdown[data-v-17a5e62e]{padding:12px 36px 11px}}.VPLocalNavOutlineDropdown button[data-v-17a5e62e]{display:block;font-size:12px;font-weight:500;line-height:24px;color:var(--vp-c-text-2);transition:color .5s;position:relative}.VPLocalNavOutlineDropdown button[data-v-17a5e62e]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPLocalNavOutlineDropdown button.open[data-v-17a5e62e]{color:var(--vp-c-text-1)}.icon[data-v-17a5e62e]{display:inline-block;vertical-align:middle;margin-left:2px;font-size:14px;transform:rotate(0);transition:transform .25s}@media (min-width: 960px){.VPLocalNavOutlineDropdown button[data-v-17a5e62e]{font-size:14px}.icon[data-v-17a5e62e]{font-size:16px}}.open>.icon[data-v-17a5e62e]{transform:rotate(90deg)}.items[data-v-17a5e62e]{position:absolute;top:40px;right:16px;left:16px;display:grid;gap:1px;border:1px solid var(--vp-c-border);border-radius:8px;background-color:var(--vp-c-gutter);max-height:calc(var(--vp-vh, 100vh) - 86px);overflow:hidden auto;box-shadow:var(--vp-shadow-3)}@media (min-width: 960px){.items[data-v-17a5e62e]{right:auto;left:calc(var(--vp-sidebar-width) + 32px);width:320px}}.header[data-v-17a5e62e]{background-color:var(--vp-c-bg-soft)}.top-link[data-v-17a5e62e]{display:block;padding:0 16px;line-height:48px;font-size:14px;font-weight:500;color:var(--vp-c-brand-1)}.outline[data-v-17a5e62e]{padding:8px 0;background-color:var(--vp-c-bg-soft)}.flyout-enter-active[data-v-17a5e62e]{transition:all .2s ease-out}.flyout-leave-active[data-v-17a5e62e]{transition:all .15s ease-in}.flyout-enter-from[data-v-17a5e62e],.flyout-leave-to[data-v-17a5e62e]{opacity:0;transform:translateY(-16px)}.VPLocalNav[data-v-a6f0e41e]{position:sticky;top:0;left:0;z-index:var(--vp-z-index-local-nav);border-bottom:1px solid var(--vp-c-gutter);padding-top:var(--vp-layout-top-height, 0px);width:100%;background-color:var(--vp-local-nav-bg-color)}.VPLocalNav.fixed[data-v-a6f0e41e]{position:fixed}@media (min-width: 960px){.VPLocalNav[data-v-a6f0e41e]{top:var(--vp-nav-height)}.VPLocalNav.has-sidebar[data-v-a6f0e41e]{padding-left:var(--vp-sidebar-width)}.VPLocalNav.empty[data-v-a6f0e41e]{display:none}}@media (min-width: 1280px){.VPLocalNav[data-v-a6f0e41e]{display:none}}@media (min-width: 1440px){.VPLocalNav.has-sidebar[data-v-a6f0e41e]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.container[data-v-a6f0e41e]{display:flex;justify-content:space-between;align-items:center}.menu[data-v-a6f0e41e]{display:flex;align-items:center;padding:12px 24px 11px;line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.menu[data-v-a6f0e41e]:hover{color:var(--vp-c-text-1);transition:color .25s}@media (min-width: 768px){.menu[data-v-a6f0e41e]{padding:0 32px}}@media (min-width: 960px){.menu[data-v-a6f0e41e]{display:none}}.menu-icon[data-v-a6f0e41e]{margin-right:8px;font-size:14px}.VPOutlineDropdown[data-v-a6f0e41e]{padding:12px 24px 11px}@media (min-width: 768px){.VPOutlineDropdown[data-v-a6f0e41e]{padding:12px 32px 11px}}.VPSwitch[data-v-1d5665e3]{position:relative;border-radius:11px;display:block;width:40px;height:22px;flex-shrink:0;border:1px solid var(--vp-input-border-color);background-color:var(--vp-input-switch-bg-color);transition:border-color .25s!important}.VPSwitch[data-v-1d5665e3]:hover{border-color:var(--vp-c-brand-1)}.check[data-v-1d5665e3]{position:absolute;top:1px;left:1px;width:18px;height:18px;border-radius:50%;background-color:var(--vp-c-neutral-inverse);box-shadow:var(--vp-shadow-1);transition:transform .25s!important}.icon[data-v-1d5665e3]{position:relative;display:block;width:18px;height:18px;border-radius:50%;overflow:hidden}.icon[data-v-1d5665e3] [class^=vpi-]{position:absolute;top:3px;left:3px;width:12px;height:12px;color:var(--vp-c-text-2)}.dark .icon[data-v-1d5665e3] [class^=vpi-]{color:var(--vp-c-text-1);transition:opacity .25s!important}.sun[data-v-d1f28634]{opacity:1}.moon[data-v-d1f28634],.dark .sun[data-v-d1f28634]{opacity:0}.dark .moon[data-v-d1f28634]{opacity:1}.dark .VPSwitchAppearance[data-v-d1f28634] .check{transform:translate(18px)}.VPNavBarAppearance[data-v-e6aabb21]{display:none}@media (min-width: 1280px){.VPNavBarAppearance[data-v-e6aabb21]{display:flex;align-items:center}}.VPMenuGroup+.VPMenuLink[data-v-43f1e123]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.link[data-v-43f1e123]{display:block;border-radius:6px;padding:0 12px;line-height:32px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);white-space:nowrap;transition:background-color .25s,color .25s}.link[data-v-43f1e123]:hover{color:var(--vp-c-brand-1);background-color:var(--vp-c-default-soft)}.link.active[data-v-43f1e123]{color:var(--vp-c-brand-1)}.VPMenuGroup[data-v-69e747b5]{margin:12px -12px 0;border-top:1px solid var(--vp-c-divider);padding:12px 12px 0}.VPMenuGroup[data-v-69e747b5]:first-child{margin-top:0;border-top:0;padding-top:0}.VPMenuGroup+.VPMenuGroup[data-v-69e747b5]{margin-top:12px;border-top:1px solid var(--vp-c-divider)}.title[data-v-69e747b5]{padding:0 12px;line-height:32px;font-size:14px;font-weight:600;color:var(--vp-c-text-2);white-space:nowrap;transition:color .25s}.VPMenu[data-v-e7ea1737]{border-radius:12px;padding:12px;min-width:128px;border:1px solid var(--vp-c-divider);background-color:var(--vp-c-bg-elv);box-shadow:var(--vp-shadow-3);transition:background-color .5s;max-height:calc(100vh - var(--vp-nav-height));overflow-y:auto}.VPMenu[data-v-e7ea1737] .group{margin:0 -12px;padding:0 12px 12px}.VPMenu[data-v-e7ea1737] .group+.group{border-top:1px solid var(--vp-c-divider);padding:11px 12px 12px}.VPMenu[data-v-e7ea1737] .group:last-child{padding-bottom:0}.VPMenu[data-v-e7ea1737] .group+.item{border-top:1px solid var(--vp-c-divider);padding:11px 16px 0}.VPMenu[data-v-e7ea1737] .item{padding:0 16px;white-space:nowrap}.VPMenu[data-v-e7ea1737] .label{flex-grow:1;line-height:28px;font-size:12px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.VPMenu[data-v-e7ea1737] .action{padding-left:24px}.VPFlyout[data-v-b6c34ac9]{position:relative}.VPFlyout[data-v-b6c34ac9]:hover{color:var(--vp-c-brand-1);transition:color .25s}.VPFlyout:hover .text[data-v-b6c34ac9]{color:var(--vp-c-text-2)}.VPFlyout:hover .icon[data-v-b6c34ac9]{fill:var(--vp-c-text-2)}.VPFlyout.active .text[data-v-b6c34ac9]{color:var(--vp-c-brand-1)}.VPFlyout.active:hover .text[data-v-b6c34ac9]{color:var(--vp-c-brand-2)}.VPFlyout:hover .menu[data-v-b6c34ac9],.button[aria-expanded=true]+.menu[data-v-b6c34ac9]{opacity:1;visibility:visible;transform:translateY(0)}.button[aria-expanded=false]+.menu[data-v-b6c34ac9]{opacity:0;visibility:hidden;transform:translateY(0)}.button[data-v-b6c34ac9]{display:flex;align-items:center;padding:0 12px;height:var(--vp-nav-height);color:var(--vp-c-text-1);transition:color .5s}.text[data-v-b6c34ac9]{display:flex;align-items:center;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.option-icon[data-v-b6c34ac9]{margin-right:0;font-size:16px}.text-icon[data-v-b6c34ac9]{margin-left:4px;font-size:14px}.icon[data-v-b6c34ac9]{font-size:20px;transition:fill .25s}.menu[data-v-b6c34ac9]{position:absolute;top:calc(var(--vp-nav-height) / 2 + 20px);right:0;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s,transform .25s}.VPSocialLink[data-v-eee4e7cb]{display:flex;justify-content:center;align-items:center;width:36px;height:36px;color:var(--vp-c-text-2);transition:color .5s}.VPSocialLink[data-v-eee4e7cb]:hover{color:var(--vp-c-text-1);transition:color .25s}.VPSocialLink[data-v-eee4e7cb]>svg,.VPSocialLink[data-v-eee4e7cb]>[class^=vpi-social-]{width:20px;height:20px;fill:currentColor}.VPSocialLinks[data-v-7bc22406]{display:flex;justify-content:center}.VPNavBarExtra[data-v-d0bd9dde]{display:none;margin-right:-12px}@media (min-width: 768px){.VPNavBarExtra[data-v-d0bd9dde]{display:block}}@media (min-width: 1280px){.VPNavBarExtra[data-v-d0bd9dde]{display:none}}.trans-title[data-v-d0bd9dde]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.item.appearance[data-v-d0bd9dde],.item.social-links[data-v-d0bd9dde]{display:flex;align-items:center;padding:0 12px}.item.appearance[data-v-d0bd9dde]{min-width:176px}.appearance-action[data-v-d0bd9dde]{margin-right:-2px}.social-links-list[data-v-d0bd9dde]{margin:-4px -8px}.VPNavBarHamburger[data-v-e5dd9c1c]{display:flex;justify-content:center;align-items:center;width:48px;height:var(--vp-nav-height)}@media (min-width: 768px){.VPNavBarHamburger[data-v-e5dd9c1c]{display:none}}.container[data-v-e5dd9c1c]{position:relative;width:16px;height:14px;overflow:hidden}.VPNavBarHamburger:hover .top[data-v-e5dd9c1c]{top:0;left:0;transform:translate(4px)}.VPNavBarHamburger:hover .middle[data-v-e5dd9c1c]{top:6px;left:0;transform:translate(0)}.VPNavBarHamburger:hover .bottom[data-v-e5dd9c1c]{top:12px;left:0;transform:translate(8px)}.VPNavBarHamburger.active .top[data-v-e5dd9c1c]{top:6px;transform:translate(0) rotate(225deg)}.VPNavBarHamburger.active .middle[data-v-e5dd9c1c]{top:6px;transform:translate(16px)}.VPNavBarHamburger.active .bottom[data-v-e5dd9c1c]{top:6px;transform:translate(0) rotate(135deg)}.VPNavBarHamburger.active:hover .top[data-v-e5dd9c1c],.VPNavBarHamburger.active:hover .middle[data-v-e5dd9c1c],.VPNavBarHamburger.active:hover .bottom[data-v-e5dd9c1c]{background-color:var(--vp-c-text-2);transition:top .25s,background-color .25s,transform .25s}.top[data-v-e5dd9c1c],.middle[data-v-e5dd9c1c],.bottom[data-v-e5dd9c1c]{position:absolute;width:16px;height:2px;background-color:var(--vp-c-text-1);transition:top .25s,background-color .5s,transform .25s}.top[data-v-e5dd9c1c]{top:0;left:0;transform:translate(0)}.middle[data-v-e5dd9c1c]{top:6px;left:0;transform:translate(8px)}.bottom[data-v-e5dd9c1c]{top:12px;left:0;transform:translate(4px)}.VPNavBarMenuLink[data-v-9c663999]{display:flex;align-items:center;padding:0 12px;line-height:var(--vp-nav-height);font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.VPNavBarMenuLink.active[data-v-9c663999],.VPNavBarMenuLink[data-v-9c663999]:hover{color:var(--vp-c-brand-1)}.VPNavBarMenu[data-v-7f418b0f]{display:none}@media (min-width: 768px){.VPNavBarMenu[data-v-7f418b0f]{display:flex}}/*! @docsearch/css 3.6.0 | MIT License | © Algolia, Inc. and contributors | https://docsearch.algolia.com */:root{--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:rgba(101,108,133,.8);--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 hsla(0,0%,100%,.5),0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,.4);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 rgba(30,35,90,.4);--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 rgba(69,98,155,.12)}html[data-theme=dark]{--docsearch-text-color:#f5f6f7;--docsearch-container-background:rgba(9,10,17,.8);--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 rgba(3,4,9,.3);--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.30196078431372547);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 rgba(73,76,106,.5),0 -4px 8px 0 rgba(0,0,0,.2);--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;margin:0 0 0 16px;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:none}.DocSearch-Button-Container{align-items:center;display:flex}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;height:18px;justify-content:center;margin-right:.4em;position:relative;padding:0 0 2px;border:0;top:-1px;width:20px}.DocSearch-Button-Key--pressed{transform:translate3d(0,1px,0);box-shadow:var(--docsearch-key-pressed-shadow)}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder{display:none}}.DocSearch--active{overflow:hidden!important}.DocSearch-Container,.DocSearch-Container *{box-sizing:border-box}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Container a{text-decoration:none}.DocSearch-Link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:none;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator{display:none}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}}.DocSearch-Reset{animation:fade-in .1s ease-in forwards;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Cancel{display:none}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:transparent}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{color:var(--docsearch-muted-color);display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--deleting{transition:none}}.DocSearch-Hit--deleting{opacity:0;transition:all .25s linear}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit--favoriting{transition:none}}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:all .25s linear;transition-delay:.25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;stroke-width:var(--docsearch-icon-stroke-width);width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit[aria-selected=true] mark{text-decoration:underline}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color);stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{transition:none}}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;text-overflow:ellipsis;white-space:nowrap;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:none;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li{align-items:center;display:flex}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{align-items:center;background:var(--docsearch-key-gradient);border-radius:2px;box-shadow:var(--docsearch-key-shadow);display:flex;height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;color:var(--docsearch-muted-color);border:0;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@media (max-width:768px){:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh, 1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Dropdown{max-height:calc(var(--docsearch-vh, 1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Cancel{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:none;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}[class*=DocSearch]{--docsearch-primary-color: var(--vp-c-brand-1);--docsearch-highlight-color: var(--docsearch-primary-color);--docsearch-text-color: var(--vp-c-text-1);--docsearch-muted-color: var(--vp-c-text-2);--docsearch-searchbox-shadow: none;--docsearch-searchbox-background: transparent;--docsearch-searchbox-focus-background: transparent;--docsearch-key-gradient: transparent;--docsearch-key-shadow: none;--docsearch-modal-background: var(--vp-c-bg-soft);--docsearch-footer-background: var(--vp-c-bg)}.dark [class*=DocSearch]{--docsearch-modal-shadow: none;--docsearch-footer-shadow: none;--docsearch-logo-color: var(--vp-c-text-2);--docsearch-hit-background: var(--vp-c-default-soft);--docsearch-hit-color: var(--vp-c-text-2);--docsearch-hit-shadow: none}.DocSearch-Button{display:flex;justify-content:center;align-items:center;margin:0;padding:0;width:48px;height:55px;background:transparent;transition:border-color .25s}.DocSearch-Button:hover{background:transparent}.DocSearch-Button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.DocSearch-Button-Key--pressed{transform:none;box-shadow:none}.DocSearch-Button:focus:not(:focus-visible){outline:none!important}@media (min-width: 768px){.DocSearch-Button{justify-content:flex-start;border:1px solid transparent;border-radius:8px;padding:0 10px 0 12px;width:100%;height:40px;background-color:var(--vp-c-bg-alt)}.DocSearch-Button:hover{border-color:var(--vp-c-brand-1);background:var(--vp-c-bg-alt)}}.DocSearch-Button .DocSearch-Button-Container{display:flex;align-items:center}.DocSearch-Button .DocSearch-Search-Icon{position:relative;width:16px;height:16px;color:var(--vp-c-text-1);fill:currentColor;transition:color .5s}.DocSearch-Button:hover .DocSearch-Search-Icon{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Search-Icon{top:1px;margin-right:8px;width:14px;height:14px;color:var(--vp-c-text-2)}}.DocSearch-Button .DocSearch-Button-Placeholder{display:none;margin-top:2px;padding:0 16px 0 0;font-size:13px;font-weight:500;color:var(--vp-c-text-2);transition:color .5s}.DocSearch-Button:hover .DocSearch-Button-Placeholder{color:var(--vp-c-text-1)}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Placeholder{display:inline-block}}.DocSearch-Button .DocSearch-Button-Keys{direction:ltr;display:none;min-width:auto}@media (min-width: 768px){.DocSearch-Button .DocSearch-Button-Keys{display:flex;align-items:center}}.DocSearch-Button .DocSearch-Button-Key{display:block;margin:2px 0 0;border:1px solid var(--vp-c-divider);border-right:none;border-radius:4px 0 0 4px;padding-left:6px;min-width:0;width:auto;height:22px;line-height:22px;font-family:var(--vp-font-family-base);font-size:12px;font-weight:500;transition:color .5s,border-color .5s}.DocSearch-Button .DocSearch-Button-Key+.DocSearch-Button-Key{border-right:1px solid var(--vp-c-divider);border-left:none;border-radius:0 4px 4px 0;padding-left:2px;padding-right:6px}.DocSearch-Button .DocSearch-Button-Key:first-child{font-size:0!important}.DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"Ctrl";font-size:12px;letter-spacing:normal;color:var(--docsearch-muted-color)}.mac .DocSearch-Button .DocSearch-Button-Key:first-child:after{content:"⌘"}.DocSearch-Button .DocSearch-Button-Key:first-child>*{display:none}.DocSearch-Search-Icon{--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke-width='1.6' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' d='m14.386 14.386 4.088 4.088-4.088-4.088A7.533 7.533 0 1 1 3.733 3.733a7.533 7.533 0 0 1 10.653 10.653z'/%3E%3C/svg%3E")}.VPNavBarSearch{display:flex;align-items:center}@media (min-width: 768px){.VPNavBarSearch{flex-grow:1;padding-left:24px}}@media (min-width: 960px){.VPNavBarSearch{padding-left:32px}}.dark .DocSearch-Footer{border-top:1px solid var(--vp-c-divider)}.DocSearch-Form{border:1px solid var(--vp-c-brand-1);background-color:var(--vp-c-white)}.dark .DocSearch-Form{background-color:var(--vp-c-default-soft)}.DocSearch-Screen-Icon>svg{margin:auto}.VPNavBarSocialLinks[data-v-0394ad82]{display:none}@media (min-width: 1280px){.VPNavBarSocialLinks[data-v-0394ad82]{display:flex;align-items:center}}.title[data-v-ab179fa1]{display:flex;align-items:center;border-bottom:1px solid transparent;width:100%;height:var(--vp-nav-height);font-size:16px;font-weight:600;color:var(--vp-c-text-1);transition:opacity .25s}@media (min-width: 960px){.title[data-v-ab179fa1]{flex-shrink:0}.VPNavBarTitle.has-sidebar .title[data-v-ab179fa1]{border-bottom-color:var(--vp-c-divider)}}[data-v-ab179fa1] .logo{margin-right:8px;height:var(--vp-nav-logo-height)}.VPNavBarTranslations[data-v-88af2de4]{display:none}@media (min-width: 1280px){.VPNavBarTranslations[data-v-88af2de4]{display:flex;align-items:center}}.title[data-v-88af2de4]{padding:0 24px 0 12px;line-height:32px;font-size:14px;font-weight:700;color:var(--vp-c-text-1)}.VPNavBar[data-v-ccf7ddec]{position:relative;height:var(--vp-nav-height);pointer-events:none;white-space:nowrap;transition:background-color .5s}.VPNavBar[data-v-ccf7ddec]:not(.home){background-color:var(--vp-nav-bg-color)}@media (min-width: 960px){.VPNavBar[data-v-ccf7ddec]:not(.home){background-color:transparent}.VPNavBar[data-v-ccf7ddec]:not(.has-sidebar):not(.home.top){background-color:var(--vp-nav-bg-color)}}.wrapper[data-v-ccf7ddec]{padding:0 8px 0 24px}@media (min-width: 768px){.wrapper[data-v-ccf7ddec]{padding:0 32px}}@media (min-width: 960px){.VPNavBar.has-sidebar .wrapper[data-v-ccf7ddec]{padding:0}}.container[data-v-ccf7ddec]{display:flex;justify-content:space-between;margin:0 auto;max-width:calc(var(--vp-layout-max-width) - 64px);height:var(--vp-nav-height);pointer-events:none}.container>.title[data-v-ccf7ddec],.container>.content[data-v-ccf7ddec]{pointer-events:none}.container[data-v-ccf7ddec] *{pointer-events:auto}@media (min-width: 960px){.VPNavBar.has-sidebar .container[data-v-ccf7ddec]{max-width:100%}}.title[data-v-ccf7ddec]{flex-shrink:0;height:calc(var(--vp-nav-height) - 1px);transition:background-color .5s}@media (min-width: 960px){.VPNavBar.has-sidebar .title[data-v-ccf7ddec]{position:absolute;top:0;left:0;z-index:2;padding:0 32px;width:var(--vp-sidebar-width);height:var(--vp-nav-height);background-color:transparent}}@media (min-width: 1440px){.VPNavBar.has-sidebar .title[data-v-ccf7ddec]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}.content[data-v-ccf7ddec]{flex-grow:1}@media (min-width: 960px){.VPNavBar.has-sidebar .content[data-v-ccf7ddec]{position:relative;z-index:1;padding-right:32px;padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .content[data-v-ccf7ddec]{padding-right:calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.content-body[data-v-ccf7ddec]{display:flex;justify-content:flex-end;align-items:center;height:var(--vp-nav-height);transition:background-color .5s}@media (min-width: 960px){.VPNavBar:not(.home.top) .content-body[data-v-ccf7ddec]{position:relative;background-color:var(--vp-nav-bg-color)}.VPNavBar:not(.has-sidebar):not(.home.top) .content-body[data-v-ccf7ddec]{background-color:transparent}}@media (max-width: 767px){.content-body[data-v-ccf7ddec]{column-gap:.5rem}}.menu+.translations[data-v-ccf7ddec]:before,.menu+.appearance[data-v-ccf7ddec]:before,.menu+.social-links[data-v-ccf7ddec]:before,.translations+.appearance[data-v-ccf7ddec]:before,.appearance+.social-links[data-v-ccf7ddec]:before{margin-right:8px;margin-left:8px;width:1px;height:24px;background-color:var(--vp-c-divider);content:""}.menu+.appearance[data-v-ccf7ddec]:before,.translations+.appearance[data-v-ccf7ddec]:before{margin-right:16px}.appearance+.social-links[data-v-ccf7ddec]:before{margin-left:16px}.social-links[data-v-ccf7ddec]{margin-right:-8px}.divider[data-v-ccf7ddec]{width:100%;height:1px}@media (min-width: 960px){.VPNavBar.has-sidebar .divider[data-v-ccf7ddec]{padding-left:var(--vp-sidebar-width)}}@media (min-width: 1440px){.VPNavBar.has-sidebar .divider[data-v-ccf7ddec]{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))}}.divider-line[data-v-ccf7ddec]{width:100%;height:1px;transition:background-color .5s}.VPNavBar:not(.home) .divider-line[data-v-ccf7ddec]{background-color:var(--vp-c-gutter)}@media (min-width: 960px){.VPNavBar:not(.home.top) .divider-line[data-v-ccf7ddec]{background-color:var(--vp-c-gutter)}.VPNavBar:not(.has-sidebar):not(.home.top) .divider[data-v-ccf7ddec]{background-color:var(--vp-c-gutter)}}.VPNavScreenAppearance[data-v-2d7af913]{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:12px 14px 12px 16px;background-color:var(--vp-c-bg-soft)}.text[data-v-2d7af913]{line-height:24px;font-size:12px;font-weight:500;color:var(--vp-c-text-2)}.VPNavScreenMenuLink[data-v-7f31e1f6]{display:block;border-bottom:1px solid var(--vp-c-divider);padding:12px 0 11px;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:border-color .25s,color .25s}.VPNavScreenMenuLink[data-v-7f31e1f6]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupLink[data-v-19976ae1]{display:block;margin-left:12px;line-height:32px;font-size:14px;font-weight:400;color:var(--vp-c-text-1);transition:color .25s}.VPNavScreenMenuGroupLink[data-v-19976ae1]:hover{color:var(--vp-c-brand-1)}.VPNavScreenMenuGroupSection[data-v-8133b170]{display:block}.title[data-v-8133b170]{line-height:32px;font-size:13px;font-weight:700;color:var(--vp-c-text-2);transition:color .25s}.VPNavScreenMenuGroup[data-v-ff6087d4]{border-bottom:1px solid var(--vp-c-divider);height:48px;overflow:hidden;transition:border-color .5s}.VPNavScreenMenuGroup .items[data-v-ff6087d4]{visibility:hidden}.VPNavScreenMenuGroup.open .items[data-v-ff6087d4]{visibility:visible}.VPNavScreenMenuGroup.open[data-v-ff6087d4]{padding-bottom:10px;height:auto}.VPNavScreenMenuGroup.open .button[data-v-ff6087d4]{padding-bottom:6px;color:var(--vp-c-brand-1)}.VPNavScreenMenuGroup.open .button-icon[data-v-ff6087d4]{transform:rotate(45deg)}.button[data-v-ff6087d4]{display:flex;justify-content:space-between;align-items:center;padding:12px 4px 11px 0;width:100%;line-height:24px;font-size:14px;font-weight:500;color:var(--vp-c-text-1);transition:color .25s}.button[data-v-ff6087d4]:hover{color:var(--vp-c-brand-1)}.button-icon[data-v-ff6087d4]{transition:transform .25s}.group[data-v-ff6087d4]:first-child{padding-top:0}.group+.group[data-v-ff6087d4],.group+.item[data-v-ff6087d4]{padding-top:4px}.VPNavScreenTranslations[data-v-858fe1a4]{height:24px;overflow:hidden}.VPNavScreenTranslations.open[data-v-858fe1a4]{height:auto}.title[data-v-858fe1a4]{display:flex;align-items:center;font-size:14px;font-weight:500;color:var(--vp-c-text-1)}.icon[data-v-858fe1a4]{font-size:16px}.icon.lang[data-v-858fe1a4]{margin-right:8px}.icon.chevron[data-v-858fe1a4]{margin-left:4px}.list[data-v-858fe1a4]{padding:4px 0 0 24px}.link[data-v-858fe1a4]{line-height:32px;font-size:13px;color:var(--vp-c-text-1)}.VPNavScreen[data-v-cc5739dd]{position:fixed;top:calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 1px);right:0;bottom:0;left:0;padding:0 32px;width:100%;background-color:var(--vp-nav-screen-bg-color);overflow-y:auto;transition:background-color .5s;pointer-events:auto}.VPNavScreen.fade-enter-active[data-v-cc5739dd],.VPNavScreen.fade-leave-active[data-v-cc5739dd]{transition:opacity .25s}.VPNavScreen.fade-enter-active .container[data-v-cc5739dd],.VPNavScreen.fade-leave-active .container[data-v-cc5739dd]{transition:transform .25s ease}.VPNavScreen.fade-enter-from[data-v-cc5739dd],.VPNavScreen.fade-leave-to[data-v-cc5739dd]{opacity:0}.VPNavScreen.fade-enter-from .container[data-v-cc5739dd],.VPNavScreen.fade-leave-to .container[data-v-cc5739dd]{transform:translateY(-8px)}@media (min-width: 768px){.VPNavScreen[data-v-cc5739dd]{display:none}}.container[data-v-cc5739dd]{margin:0 auto;padding:24px 0 96px;max-width:288px}.menu+.translations[data-v-cc5739dd],.menu+.appearance[data-v-cc5739dd],.translations+.appearance[data-v-cc5739dd]{margin-top:24px}.menu+.social-links[data-v-cc5739dd]{margin-top:16px}.appearance+.social-links[data-v-cc5739dd]{margin-top:16px}.VPNav[data-v-ae24b3ad]{position:relative;top:var(--vp-layout-top-height, 0px);left:0;z-index:var(--vp-z-index-nav);width:100%;pointer-events:none;transition:background-color .5s}@media (min-width: 960px){.VPNav[data-v-ae24b3ad]{position:fixed}}.VPSidebarItem.level-0[data-v-b8d55f3b]{padding-bottom:24px}.VPSidebarItem.collapsed.level-0[data-v-b8d55f3b]{padding-bottom:10px}.item[data-v-b8d55f3b]{position:relative;display:flex;width:100%}.VPSidebarItem.collapsible>.item[data-v-b8d55f3b]{cursor:pointer}.indicator[data-v-b8d55f3b]{position:absolute;top:6px;bottom:6px;left:-17px;width:2px;border-radius:2px;transition:background-color .25s}.VPSidebarItem.level-2.is-active>.item>.indicator[data-v-b8d55f3b],.VPSidebarItem.level-3.is-active>.item>.indicator[data-v-b8d55f3b],.VPSidebarItem.level-4.is-active>.item>.indicator[data-v-b8d55f3b],.VPSidebarItem.level-5.is-active>.item>.indicator[data-v-b8d55f3b]{background-color:var(--vp-c-brand-1)}.link[data-v-b8d55f3b]{display:flex;align-items:center;flex-grow:1}.text[data-v-b8d55f3b]{flex-grow:1;padding:4px 0;line-height:24px;font-size:14px;transition:color .25s}.VPSidebarItem.level-0 .text[data-v-b8d55f3b]{font-weight:700;color:var(--vp-c-text-1)}.VPSidebarItem.level-1 .text[data-v-b8d55f3b],.VPSidebarItem.level-2 .text[data-v-b8d55f3b],.VPSidebarItem.level-3 .text[data-v-b8d55f3b],.VPSidebarItem.level-4 .text[data-v-b8d55f3b],.VPSidebarItem.level-5 .text[data-v-b8d55f3b]{font-weight:500;color:var(--vp-c-text-2)}.VPSidebarItem.level-0.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-1.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-2.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-3.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-4.is-link>.item>.link:hover .text[data-v-b8d55f3b],.VPSidebarItem.level-5.is-link>.item>.link:hover .text[data-v-b8d55f3b]{color:var(--vp-c-brand-1)}.VPSidebarItem.level-0.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-1.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-2.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-3.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-4.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-5.has-active>.item>.text[data-v-b8d55f3b],.VPSidebarItem.level-0.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-1.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-2.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-3.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-4.has-active>.item>.link>.text[data-v-b8d55f3b],.VPSidebarItem.level-5.has-active>.item>.link>.text[data-v-b8d55f3b]{color:var(--vp-c-text-1)}.VPSidebarItem.level-0.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-1.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-2.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-3.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-4.is-active>.item .link>.text[data-v-b8d55f3b],.VPSidebarItem.level-5.is-active>.item .link>.text[data-v-b8d55f3b]{color:var(--vp-c-brand-1)}.caret[data-v-b8d55f3b]{display:flex;justify-content:center;align-items:center;margin-right:-7px;width:32px;height:32px;color:var(--vp-c-text-3);cursor:pointer;transition:color .25s;flex-shrink:0}.item:hover .caret[data-v-b8d55f3b]{color:var(--vp-c-text-2)}.item:hover .caret[data-v-b8d55f3b]:hover{color:var(--vp-c-text-1)}.caret-icon[data-v-b8d55f3b]{font-size:18px;transform:rotate(90deg);transition:transform .25s}.VPSidebarItem.collapsed .caret-icon[data-v-b8d55f3b]{transform:rotate(0)}.VPSidebarItem.level-1 .items[data-v-b8d55f3b],.VPSidebarItem.level-2 .items[data-v-b8d55f3b],.VPSidebarItem.level-3 .items[data-v-b8d55f3b],.VPSidebarItem.level-4 .items[data-v-b8d55f3b],.VPSidebarItem.level-5 .items[data-v-b8d55f3b]{border-left:1px solid var(--vp-c-divider);padding-left:16px}.VPSidebarItem.collapsed .items[data-v-b8d55f3b]{display:none}.VPSidebar[data-v-575e6a36]{position:fixed;top:var(--vp-layout-top-height, 0px);bottom:0;left:0;z-index:var(--vp-z-index-sidebar);padding:32px 32px 96px;width:calc(100vw - 64px);max-width:320px;background-color:var(--vp-sidebar-bg-color);opacity:0;box-shadow:var(--vp-c-shadow-3);overflow-x:hidden;overflow-y:auto;transform:translate(-100%);transition:opacity .5s,transform .25s ease;overscroll-behavior:contain}.VPSidebar.open[data-v-575e6a36]{opacity:1;visibility:visible;transform:translate(0);transition:opacity .25s,transform .5s cubic-bezier(.19,1,.22,1)}.dark .VPSidebar[data-v-575e6a36]{box-shadow:var(--vp-shadow-1)}@media (min-width: 960px){.VPSidebar[data-v-575e6a36]{padding-top:var(--vp-nav-height);width:var(--vp-sidebar-width);max-width:100%;background-color:var(--vp-sidebar-bg-color);opacity:1;visibility:visible;box-shadow:none;transform:translate(0)}}@media (min-width: 1440px){.VPSidebar[data-v-575e6a36]{padding-left:max(32px,calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));width:calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px)}}@media (min-width: 960px){.curtain[data-v-575e6a36]{position:sticky;top:-64px;left:0;z-index:1;margin-top:calc(var(--vp-nav-height) * -1);margin-right:-32px;margin-left:-32px;height:var(--vp-nav-height);background-color:var(--vp-sidebar-bg-color)}}.nav[data-v-575e6a36]{outline:0}.group+.group[data-v-575e6a36]{border-top:1px solid var(--vp-c-divider);padding-top:10px}@media (min-width: 960px){.group[data-v-575e6a36]{padding-top:10px;width:calc(var(--vp-sidebar-width) - 64px)}}.VPSkipLink[data-v-0f60ec36]{top:8px;left:8px;padding:8px 16px;z-index:999;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none;color:var(--vp-c-brand-1);box-shadow:var(--vp-shadow-3);background-color:var(--vp-c-bg)}.VPSkipLink[data-v-0f60ec36]:focus{height:auto;width:auto;clip:auto;clip-path:none}@media (min-width: 1280px){.VPSkipLink[data-v-0f60ec36]{top:14px;left:16px}}.Layout[data-v-5d98c3a5]{display:flex;flex-direction:column;min-height:100vh}.VPHomeSponsors[data-v-3d121b4a]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPHomeSponsors[data-v-3d121b4a]{margin:96px 0}@media (min-width: 768px){.VPHomeSponsors[data-v-3d121b4a]{margin:128px 0}}.VPHomeSponsors[data-v-3d121b4a]{padding:0 24px}@media (min-width: 768px){.VPHomeSponsors[data-v-3d121b4a]{padding:0 48px}}@media (min-width: 960px){.VPHomeSponsors[data-v-3d121b4a]{padding:0 64px}}.container[data-v-3d121b4a]{margin:0 auto;max-width:1152px}.love[data-v-3d121b4a]{margin:0 auto;width:fit-content;font-size:28px;color:var(--vp-c-text-3)}.icon[data-v-3d121b4a]{display:inline-block}.message[data-v-3d121b4a]{margin:0 auto;padding-top:10px;max-width:320px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.sponsors[data-v-3d121b4a]{padding-top:32px}.action[data-v-3d121b4a]{padding-top:40px;text-align:center}.VPTeamPage[data-v-7c57f839]{margin:96px 0}@media (min-width: 768px){.VPTeamPage[data-v-7c57f839]{margin:128px 0}}.VPHome .VPTeamPageTitle[data-v-7c57f839-s]{border-top:1px solid var(--vp-c-gutter);padding-top:88px!important}.VPTeamPageSection+.VPTeamPageSection[data-v-7c57f839-s],.VPTeamMembers+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:64px}.VPTeamMembers+.VPTeamMembers[data-v-7c57f839-s]{margin-top:24px}@media (min-width: 768px){.VPTeamPageTitle+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:16px}.VPTeamPageSection+.VPTeamPageSection[data-v-7c57f839-s],.VPTeamMembers+.VPTeamPageSection[data-v-7c57f839-s]{margin-top:96px}}.VPTeamMembers[data-v-7c57f839-s]{padding:0 24px}@media (min-width: 768px){.VPTeamMembers[data-v-7c57f839-s]{padding:0 48px}}@media (min-width: 960px){.VPTeamMembers[data-v-7c57f839-s]{padding:0 64px}}.VPTeamPageTitle[data-v-bf2cbdac]{padding:48px 32px;text-align:center}@media (min-width: 768px){.VPTeamPageTitle[data-v-bf2cbdac]{padding:64px 48px 48px}}@media (min-width: 960px){.VPTeamPageTitle[data-v-bf2cbdac]{padding:80px 64px 48px}}.title[data-v-bf2cbdac]{letter-spacing:0;line-height:44px;font-size:36px;font-weight:500}@media (min-width: 768px){.title[data-v-bf2cbdac]{letter-spacing:-.5px;line-height:56px;font-size:48px}}.lead[data-v-bf2cbdac]{margin:0 auto;max-width:512px;padding-top:12px;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}@media (min-width: 768px){.lead[data-v-bf2cbdac]{max-width:592px;letter-spacing:.15px;line-height:28px;font-size:20px}}.VPTeamPageSection[data-v-b1a88750]{padding:0 32px}@media (min-width: 768px){.VPTeamPageSection[data-v-b1a88750]{padding:0 48px}}@media (min-width: 960px){.VPTeamPageSection[data-v-b1a88750]{padding:0 64px}}.title[data-v-b1a88750]{position:relative;margin:0 auto;max-width:1152px;text-align:center;color:var(--vp-c-text-2)}.title-line[data-v-b1a88750]{position:absolute;top:16px;left:0;width:100%;height:1px;background-color:var(--vp-c-divider)}.title-text[data-v-b1a88750]{position:relative;display:inline-block;padding:0 24px;letter-spacing:0;line-height:32px;font-size:20px;font-weight:500;background-color:var(--vp-c-bg)}.lead[data-v-b1a88750]{margin:0 auto;max-width:480px;padding-top:12px;text-align:center;line-height:24px;font-size:16px;font-weight:500;color:var(--vp-c-text-2)}.members[data-v-b1a88750]{padding-top:40px}.VPTeamMembersItem[data-v-f3fa364a]{display:flex;flex-direction:column;gap:2px;border-radius:12px;width:100%;height:100%;overflow:hidden}.VPTeamMembersItem.small .profile[data-v-f3fa364a]{padding:32px}.VPTeamMembersItem.small .data[data-v-f3fa364a]{padding-top:20px}.VPTeamMembersItem.small .avatar[data-v-f3fa364a]{width:64px;height:64px}.VPTeamMembersItem.small .name[data-v-f3fa364a]{line-height:24px;font-size:16px}.VPTeamMembersItem.small .affiliation[data-v-f3fa364a]{padding-top:4px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .desc[data-v-f3fa364a]{padding-top:12px;line-height:20px;font-size:14px}.VPTeamMembersItem.small .links[data-v-f3fa364a]{margin:0 -16px -20px;padding:10px 0 0}.VPTeamMembersItem.medium .profile[data-v-f3fa364a]{padding:48px 32px}.VPTeamMembersItem.medium .data[data-v-f3fa364a]{padding-top:24px;text-align:center}.VPTeamMembersItem.medium .avatar[data-v-f3fa364a]{width:96px;height:96px}.VPTeamMembersItem.medium .name[data-v-f3fa364a]{letter-spacing:.15px;line-height:28px;font-size:20px}.VPTeamMembersItem.medium .affiliation[data-v-f3fa364a]{padding-top:4px;font-size:16px}.VPTeamMembersItem.medium .desc[data-v-f3fa364a]{padding-top:16px;max-width:288px;font-size:16px}.VPTeamMembersItem.medium .links[data-v-f3fa364a]{margin:0 -16px -12px;padding:16px 12px 0}.profile[data-v-f3fa364a]{flex-grow:1;background-color:var(--vp-c-bg-soft)}.data[data-v-f3fa364a]{text-align:center}.avatar[data-v-f3fa364a]{position:relative;flex-shrink:0;margin:0 auto;border-radius:50%;box-shadow:var(--vp-shadow-3)}.avatar-img[data-v-f3fa364a]{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:50%;object-fit:cover}.name[data-v-f3fa364a]{margin:0;font-weight:600}.affiliation[data-v-f3fa364a]{margin:0;font-weight:500;color:var(--vp-c-text-2)}.org.link[data-v-f3fa364a]{color:var(--vp-c-text-2);transition:color .25s}.org.link[data-v-f3fa364a]:hover{color:var(--vp-c-brand-1)}.desc[data-v-f3fa364a]{margin:0 auto}.desc[data-v-f3fa364a] a{font-weight:500;color:var(--vp-c-brand-1);text-decoration-style:dotted;transition:color .25s}.links[data-v-f3fa364a]{display:flex;justify-content:center;height:56px}.sp-link[data-v-f3fa364a]{display:flex;justify-content:center;align-items:center;text-align:center;padding:16px;font-size:14px;font-weight:500;color:var(--vp-c-sponsor);background-color:var(--vp-c-bg-soft);transition:color .25s,background-color .25s}.sp .sp-link.link[data-v-f3fa364a]:hover,.sp .sp-link.link[data-v-f3fa364a]:focus{outline:none;color:var(--vp-c-white);background-color:var(--vp-c-sponsor)}.sp-icon[data-v-f3fa364a]{margin-right:8px;font-size:16px}.VPTeamMembers.small .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(224px,1fr))}.VPTeamMembers.small.count-1 .container[data-v-6cb0dbc4]{max-width:276px}.VPTeamMembers.small.count-2 .container[data-v-6cb0dbc4]{max-width:576px}.VPTeamMembers.small.count-3 .container[data-v-6cb0dbc4]{max-width:876px}.VPTeamMembers.medium .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(256px,1fr))}@media (min-width: 375px){.VPTeamMembers.medium .container[data-v-6cb0dbc4]{grid-template-columns:repeat(auto-fit,minmax(288px,1fr))}}.VPTeamMembers.medium.count-1 .container[data-v-6cb0dbc4]{max-width:368px}.VPTeamMembers.medium.count-2 .container[data-v-6cb0dbc4]{max-width:760px}.container[data-v-6cb0dbc4]{display:grid;gap:24px;margin:0 auto;max-width:1152px}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic-ext.BBPuwvHQ.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-cyrillic.C5lxZ8CY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek-ext.CqjqNYQ-.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-greek.BBVDIX6e.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-vietnamese.BjW4sHH5.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin-ext.4ZJIpNVo.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/inter-roman-latin.Di8DUHzh.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic-ext.r48I6akx.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-cyrillic.By2_1cv3.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek-ext.1u6EdAuj.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-greek.DJ8dCoTZ.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-vietnamese.BSbpV94h.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin-ext.CN1xVJS-.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:italic;font-weight:100 900;font-display:swap;src:url(/assets/inter-italic-latin.C2AdPX0b.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Punctuation SC;font-weight:400;src:local("PingFang SC Regular"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:500;src:local("PingFang SC Medium"),local("Noto Sans CJK SC"),local("Microsoft YaHei");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:600;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}@font-face{font-family:Punctuation SC;font-weight:700;src:local("PingFang SC Semibold"),local("Noto Sans CJK SC Bold"),local("Microsoft YaHei Bold");unicode-range:U+201C,U+201D,U+2018,U+2019,U+2E3A,U+2014,U+2013,U+2026,U+00B7,U+007E,U+002F}:root{--vp-nolebase-highlight-targeted-heading-color: var(--vp-custom-block-tip-text);--vp-nolebase-highlight-targeted-heading-bg: var(--vp-custom-block-tip-bg)}@keyframes vp-nolebase-highlight-targeted-heading-animation{0%{background-color:transparent;box-shadow:0 0 0 8px transparent}10%,35%{color:var(--vp-nolebase-highlight-targeted-heading-color);border-color:transparent;border-radius:4px;background-color:var(--vp-nolebase-highlight-targeted-heading-bg);box-shadow:0 0 0 8px var(--vp-nolebase-highlight-targeted-heading-bg)}99%{background-color:transparent;border-radius:4px;box-shadow:0 0 0 8px transparent}to{border-radius:0;background-color:transparent;box-shadow:none}}.VPNolebaseHighlightTargetedHeadingAnimated{animation:vp-nolebase-highlight-targeted-heading-animation 1.5s ease-in-out}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpp_led7Q.woff2) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpn_led7Q.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpm_led7Q.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Baloo 2";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/baloo2/v21/wXK0E3kTposypRydzVT08TS3JnAmtdgazZpo_lc.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWi6pgeL4.woff2) format("woff2");unicode-range:U+0E01-0E5B,U+200C-200D,U+25CC}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWkKpgeL4.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWkapgeL4.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Chakra Petch;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/chakrapetch/v11/cIf6MapbsEk7TDLdtEz1BwkWn6pg.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZurR_ibHw.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuiR_ibHw.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuqR_ibHw.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZulR_ibHw.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZvuR_ibHw.woff2) format("woff2");unicode-range:U+200C-200D,U+2010,U+25CC,U+A900-A92F}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZupR_ibHw.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZuoR_ibHw.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Jura;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/jura/v31/z7NOdRfiaC4Vd8hhoPzfb5vBTP1d7ZumR_g.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9X6VLKzA.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9e6VLKzA.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9b6VLKzA.woff2) format("woff2");unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+20F0,U+25CC,U+A830-A839,U+A8E0-A8FF,U+11B00-11B09}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9W6VLKzA.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9Z6VLKzA.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9V6VLKzA.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9U6VLKzA.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Noto Sans;font-style:normal;font-weight:400;font-stretch:normal;font-display:swap;src:url(https://fonts.gstatic.com/s/notosans/v36/o-0mIpQlx3QUlC5A4PNB6Ryti20_6n1iPHjcz6L1SoM-jCpoiyD9A-9a6VI.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format("woff2");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format("woff2");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}html{overflow-x:hidden}:root{--vp-c-bg: #3B4252;--vp-c-bg-elv: #434C5E;--vp-font-family-base: Itim;--vp-font-family-mono: Roboto Mono;--vp-layout-max-width: 1080px;--vp-nav-height: 48px;--vp-local-search-bg: var(--vp-c-bg-alt)}footer{color:var(--vp-c-default-1)}footer a[href^=http]:after{color:var(--vp-c-border)!important}.title{justify-content:center;border:none!important;position:unset!important;padding:0!important;width:unset!important}.title span{font-size:x-large}.search{padding-left:0;display:flex;flex-grow:0!important;padding-left:unset!important}.DocSearch-Button{margin:auto;width:unset;border:none!important}.DocSearch-Button-Placeholder{margin-top:unset!important;padding:unset!important;font-size:unset!important;font-weight:unset!important;color:unset!important;margin-right:8px}.VPNavBarMenu{align-items:flex-end}.VPNavBarMenuLink{line-height:unset!important;font-size:unset!important;font-weight:unset!important;color:unset!important}ul>li>ul{position:relative}ul>li>ul:before{position:absolute;content:"";width:2px;background:var(--vp-c-text-1);opacity:.3;left:-16px;top:8px;bottom:8px}.aside{display:none!important}.img-container{padding:15px;position:relative;height:11lh;width:fit-content;margin:auto}.img-container img{clip-path:polygon(18px 0%,100% 0,100% calc(100% - 18px),calc(100% - 18px) 100%,0 100%,0% 18px);height:100%;object-fit:contain;background:#fff}.img-container:after,.img-container:before{content:"";display:block;position:absolute;border:50px solid transparent;transform:rotate(135deg)}.img-container:after{bottom:-60px;right:-65px;box-shadow:0 7px 6px -9px #000}.img-container:before{top:-60px;left:-65px;box-shadow:0 -7px 6px -9px #000}.VPDoc{padding:0 32px!important}.vp-doc a{color:unset;text-decoration:unset;font-weight:unset;text-underline-offset:unset;margin:0 -.4em;padding:.1em .4em;border-radius:.8em .3em;background:transparent;background-image:linear-gradient(to right,#ffe1000d,#ffe10059 4%,#ffe10026);-webkit-box-decoration-break:clone;box-decoration-break:clone}.vp-doc a:hover{color:unset;background-image:linear-gradient(to right,#ffe1001a,#ffe100b3 4%,#ffe1004d)}.vp-doc a[href^=http]:after{content:"";display:inline-block;margin-top:-1px;margin-left:4px;width:11px;height:11px;background:currentColor;color:var(--vp-c-text-3);flex-shrink:0;--icon: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M0 0h24v24H0V0z' fill='none' /%3E%3Cpath d='M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z' /%3E%3C/svg%3E");-webkit-mask-image:var(--icon);mask-image:var(--icon)}.VPNav{left:96px!important;right:32px!important;width:unset!important;position:absolute!important;overflow:hidden}.wrapper{padding:0!important}.VPNavBar{background-color:unset!important}.VPNav .container{align-items:flex-end}.VPNav .content{padding:0!important}.VPNav .content-body{height:unset!important;align-items:flex-end!important;column-gap:unset!important}.VPNavBarHamburger{width:unset!important}.title{height:unset!important}a.title,.VPNavBarMenuLink,.VPNavBarSocialLinks a,.DocSearch-Button,.VPNav button{height:36px!important;border-radius:10px 10px 0 0;padding:8px 8px 16px!important;margin-bottom:-8px!important}.VPNav a:hover,.DocSearch-Button:hover,.VPNav button:hover{margin-bottom:unset!important}a.title{background-color:#0ff}.DocSearch-Button{background-color:#ff0!important}.VPNav .VPNavBarMenuLink[href="https://moddingtree.com"]{background-color:#0f0}.VPNav .VPNavBarMenuLink[href="https://incremental.social"]{background:#f0f}.VPNav button{background:red}.VPNav .VPNavBarSocialLinks [href="https://code.incremental.social/thepaperpilot"]{background:#f70}.VPNav .VPNavBarSocialLinks [href="https://matrix.to/#/@thepaperpilot:incremental.social"]{background:#3c9a3c}.VPNav .VPNavBarSocialLinks [href="https://incremental.social/u/thepaperpilot"]{background:#a75aff}.VPNav .divider{display:none!important}.VPSocialLinks{align-items:flex-end!important;margin-right:0!important}.VPSocialLinks:before{display:none}.VPNavBarExtra{display:none!important}.VPNavBarSocialLinks{display:flex!important}.VPNavScreenSocialLinks a,.VPNavScreenMenuLink,.VPNavScreenMenuLink:after{color:var(--vp-c-bg-alt)!important}@media (max-width: 500px){.VPNavBarSocialLinks{display:none!important}}@media (min-width: 501px){.VPNavScreenSocialLinks{display:none!important}}@media (max-width: 400px){.title span{width:60px}.title span:before{content:"Home ."}}.VPContent{padding-top:0!important;margin-top:var(--vp-nav-height)!important;padding-right:calc((100vw - var(--vp-layout-max-width)) / 2)!important;padding-left:calc((100vw - var(--vp-layout-max-width)) / 2)!important}@media (min-width: 960px){.VPNav{right:calc(max(0px,(100vw - var(--vp-layout-max-width)) / 2) + 32px)!important;left:calc(max(-15px,(100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width)) + 32px)!important}.VPContent{padding-left:calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width))!important}}.vp-doc .header-anchor{margin-left:calc(-1em - 23px)}.vp-doc :not(h1)>.header-anchor{top:24px}.VPSidebar{opacity:1!important;transition:.5s ease-out!important;box-shadow:0 0 10px 1px #0003!important}.VPLocalNav{position:fixed!important;border-bottom:none!important;background-color:unset!important;pointer-events:none}.VPLocalNav .container{align-items:flex-start!important;flex-direction:column!important}.VPLocalNav>.container>*{pointer-events:all}.VPLocalNav .menu{background:#7afcff;box-shadow:0 0 5px 1px #0003;margin-top:10px;height:30px;width:90px;padding:0 0 0 8px!important}.VPLocalNav button:not(.menu){background:#ff7eb9;padding:4px 30px 4px 8px;box-shadow:0 0 5px 1px #0003}.outline-marker{left:16px!important}.VPLocalNavOutlineDropdown{padding:0!important;margin-top:10px}.VPLocalNavOutlineDropdown button{padding:0!important;width:90px;height:30px}.curtain{display:none}@media (max-width: 840px){.DocSearch-Button-Keys{display:none!important}}@media (max-width: 959px){.VPSidebar{margin-left:-1000px!important;padding:30px 30px 30px 1030px!important;box-sizing:content-box;background:linear-gradient(to bottom,var(--vp-sidebar-bg-color) 29px,var(--vp-c-divider) 1px);background-size:100% 30px;line-height:30px;width:calc(100vw - 128px)}}.VPLocalNavOutlineDropdown .items{background:linear-gradient(to bottom,var(--vp-sidebar-bg-color) 29px,var(--vp-c-divider) 1px);background-size:100% 30px;top:85px;border-radius:0}.VPLocalNavOutlineDropdown ul>li>ul:before{left:0}.VPLocalNavOutlineDropdown .header,.VPLocalNavOutlineDropdown .outline{background:none!important;padding:0!important}.VPLocalNavOutlineDropdown .top-link,.VPLocalNavOutlineDropdown .outline-link{line-height:30px!important;font-size:unset!important;font-weight:unset!important}.aside-curtain{display:none!important}@media (min-width: 960px){.VPSidebar{transform:rotate(1.4deg)!important;top:1em!important;bottom:unset!important;--vp-sidebar-width: 250px !important;background:#feff9c!important;padding:30px!important;width:var(--vp-sidebar-width)!important;margin-left:max(-15px,calc((100% - (var(--vp-layout-max-width) - 60px)) / 2))!important;max-height:40vh;transition-duration:0s!important}.VPLocalNavOutlineDropdown{display:none}.VPDoc .aside{display:block!important;transform:rotate(1.4deg)!important;position:fixed;top:calc(40vh + 2em);left:0;--vp-sidebar-width: 250px !important;background:#feff9c!important;width:var(--vp-sidebar-width)!important;padding:0!important;margin-left:max(-15px,calc((100% - (var(--vp-layout-max-width) - 60px)) / 2))!important;max-height:40vh;overflow-y:auto}.VPDoc .aside-container{position:unset!important;height:unset!important;overflow:unset!important;padding-top:unset!important;width:unset!important}.VPDoc .aside-content{min-height:unset!important;padding:0!important}.VPDoc .aside-content .content{padding:30px!important}.outline-title{font-size:14px;font-weight:700!important;line-height:30px!important}.VPDoc .aside ul>li>ul:before{display:none}}.VPContent .container{background:linear-gradient(to bottom,var(--vp-sidebar-bg-color) 29px,var(--vp-c-divider) 1px);background-size:100% 30px;line-height:30px;box-shadow:0 0 10px 1px #0003!important}.VPContent .content{padding:0 30px!important}.content-container{border-left:double 7px var(--vp-c-divider);padding:30px 0 30px 8px;max-width:unset!important}article{padding-top:30px}.vp-doc .h-feed article{padding-top:0!important}.vp-doc h2+.e-content{margin-top:0!important}.VPDoc h1,.VPDoc h2,.VPDoc h3,.VPDoc h4,.VPDoc h5,.VPDoc h6{margin:0!important;padding:0!important;line-height:30px!important}.VPDoc h1+p{margin-top:0!important}.VPDoc h2,.VPDoc h3,.VPDoc h4,.VPDoc h5,.VPDoc h6{margin-top:-3px!important;padding-top:23px!important;border-top-style:solid!important;border-top-width:10px!important;border-image:url(/button.svg) 10 10 10 10 stretch stretch!important}ul{margin:0!important}li+li{margin:0!important}.VPDoc p{padding:0!important;margin:30px 0!important;line-height:30px!important}blockquote{margin:30px 0!important}blockquote:first-child,blockquote:first-child p{margin-top:0!important}.VPDoc :has(+hr),.VPDoc :has(+h2),.VPDoc :has(+h3),.VPDoc :has(+h4),.VPDoc :has(+h5),.VPDoc :has(+h6),.VPDoc :has(+ul){margin-bottom:0!important}hr{margin-top:-3px!important;margin-bottom:-7px!important;border-top-style:solid!important;border-top-width:10px!important;border-image:url(/button.svg) 10 10 10 10 stretch stretch!important;height:0px!important}.text{line-height:30px!important;padding:0!important;margin:0!important}.group{padding-top:0!important}.group+.group{border-top-style:solid!important;border-top-width:10px!important;border-image:url(/button.svg) 10 10 10 10 stretch stretch!important;padding-top:23px!important;margin-top:-3px!important}table{margin:30px 0!important}#app .vp-doc tr{background-color:var(--vp-c-gray-2)}#app .vp-doc tr:nth-child(2n){background-color:var(--vp-c-bg-soft)}#app .vp-doc th,#app .vp-doc td{font-size:unset!important;font-weight:unset!important;color:unset!important;padding:0 8px!important;line-height:29px}.VPSidebarItem{padding-bottom:0!important}p:last-child{margin-bottom:0!important}.hero{width:60%;margin:auto}footer img{height:1lh;display:inline;border-radius:50%;margin:0 .25em;vertical-align:bottom}@property --anim-bg{syntax: ""; initial-value: transparent; inherits: false;}@keyframes vp-nolebase-highlight-targeted-heading-animation{0%{--anim-bg: transparent}10%,35%{--anim-bg: var(--vp-c-brand-soft)}99%{--anim-bg: transparent}to{--anim-bg: transparent}}.VPNolebaseHighlightTargetedHeadingAnimated{animation:vp-nolebase-highlight-targeted-heading-animation 1.5s ease-in-out;background:linear-gradient(0deg,var(--anim-bg) 55%,transparent 45%) repeat-x}.title-icon{line-height:30px}.excerpt{margin:8px 0!important;background:var(--docsearch-searchbox-background)}.excerpt-gradient-top{background:var(--docsearch-searchbox-background)!important;opacity:.5;clip-path:polygon(0% 0%,5% 100%,10% 0%,15% 100%,20% 0%,25% 100%,30% 0%,35% 100%,40% 0%,45% 100%,50% 0%,55% 100%,60% 0%,65% 100%,70% 0%,75% 100%,80% 0%,85% 100%,90% 0%,95% 100%,100% 0%);transform:translateY(-7px) rotate(180deg)}.excerpt-gradient-bottom{background:var(--docsearch-searchbox-background)!important;opacity:.5;clip-path:polygon(0% 0%,5% 100%,10% 0%,15% 100%,20% 0%,25% 100%,30% 0%,35% 100%,40% 0%,45% 100%,50% 0%,55% 100%,60% 0%,65% 100%,70% 0%,75% 100%,80% 0%,85% 100%,90% 0%,95% 100%,100% 0%);transform:translateY(7px)}.selected .excerpt-gradient-top,.selected .excerpt-gradient-bottom{opacity:1}.resize-listener[data-v-7db9022d]{position:absolute;top:0;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.background[data-v-f89a273e]{position:fixed;top:0;left:0;right:0;bottom:0;z-index:-1;overflow:hidden}footer[data-v-f89a273e]{padding:2em;z-index:26;position:relative;font-size:small;background:var(--vp-c-bg-elv)}.hero-wrapper[data-v-136be424]{height:16lh;position:relative}@media (max-width: 700px){.hero-wrapper[data-v-136be424]{height:12lh}}@media (max-width: 500px){.hero-wrapper[data-v-136be424]{height:10lh}}@media (max-width: 400px){.hero-wrapper[data-v-136be424]{height:9lh}}.hole[data-v-136be424]{height:80%;aspect-ratio:1;border:solid 10px lightgrey;border-radius:50%;background:#3b4252;position:absolute;left:33%;transform:translate(-50%);filter:url(#displacementFilter)}.hero[data-v-136be424]{height:80%;width:unset;margin:auto;position:absolute;right:50%;bottom:0;transform:translate(calc(50% + var(--x-offset)));animation:bob-136be424 5s ease-in-out infinite}svg[data-v-136be424]{display:none}@keyframes bob-136be424{0%{transform:translate(calc(50% + var(--x-offset)),-10%)}50%{transform:translate(calc(50% + var(--x-offset)),10%)}to{transform:translate(calc(50% + var(--x-offset)),-10%)}}.VPLocalSearchBox[data-v-639d7ab9]{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex}.backdrop[data-v-639d7ab9]{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--vp-backdrop-bg-color);transition:opacity .5s}.shell[data-v-639d7ab9]{position:relative;padding:12px;margin:64px auto;display:flex;flex-direction:column;gap:16px;background:var(--vp-local-search-bg);width:min(100vw - 60px,900px);height:min-content;max-height:min(100vh - 128px,900px);border-radius:6px}@media (max-width: 767px){.shell[data-v-639d7ab9]{margin:0;width:100vw;height:100vh;max-height:none;border-radius:0}}.search-bar[data-v-639d7ab9]{border:1px solid var(--vp-c-divider);border-radius:4px;display:flex;align-items:center;padding:0 12px;cursor:text}@media (max-width: 767px){.search-bar[data-v-639d7ab9]{padding:0 8px}}.search-bar[data-v-639d7ab9]:focus-within{border-color:var(--vp-c-brand-1)}.local-search-icon[data-v-639d7ab9]{display:block;font-size:18px}.navigate-icon[data-v-639d7ab9]{display:block;font-size:14px}.search-icon[data-v-639d7ab9]{margin:8px}@media (max-width: 767px){.search-icon[data-v-639d7ab9]{display:none}}.search-input[data-v-639d7ab9]{padding:6px 12px;font-size:inherit;width:100%}@media (max-width: 767px){.search-input[data-v-639d7ab9]{padding:6px 4px}}.search-actions[data-v-639d7ab9]{display:flex;gap:4px}@media (any-pointer: coarse){.search-actions[data-v-639d7ab9]{gap:8px}}@media (min-width: 769px){.search-actions.before[data-v-639d7ab9]{display:none}}.search-actions button[data-v-639d7ab9]{padding:8px}.search-actions button[data-v-639d7ab9]:not([disabled]):hover,.toggle-layout-button.detailed-list[data-v-639d7ab9]{color:var(--vp-c-brand-1)}.search-actions button.clear-button[data-v-639d7ab9]:disabled{opacity:.37}.search-keyboard-shortcuts[data-v-639d7ab9]{font-size:.8rem;opacity:75%;display:flex;flex-wrap:wrap;gap:16px;line-height:14px}.search-keyboard-shortcuts span[data-v-639d7ab9]{display:flex;align-items:center;gap:4px}@media (max-width: 767px){.search-keyboard-shortcuts[data-v-639d7ab9]{display:none}}.search-keyboard-shortcuts kbd[data-v-639d7ab9]{background:#8080801a;border-radius:4px;padding:3px 6px;min-width:24px;display:inline-block;text-align:center;vertical-align:middle;border:1px solid rgba(128,128,128,.15);box-shadow:0 2px 2px #0000001a}.results[data-v-639d7ab9]{display:flex;flex-direction:column;gap:6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.result[data-v-639d7ab9]{display:flex;align-items:center;gap:8px;border-radius:4px;transition:none;line-height:1rem;border:solid 2px var(--vp-local-search-result-border);outline:none}.result>div[data-v-639d7ab9]{margin:12px;width:100%;overflow:hidden}@media (max-width: 767px){.result>div[data-v-639d7ab9]{margin:8px}}.titles[data-v-639d7ab9]{display:flex;flex-wrap:wrap;gap:4px;position:relative;z-index:1001;padding:2px 0}.title[data-v-639d7ab9]{display:flex;align-items:center;gap:4px}.title.main[data-v-639d7ab9]{font-weight:500}.title-icon[data-v-639d7ab9]{opacity:.5;font-weight:500;color:var(--vp-c-brand-1)}.title svg[data-v-639d7ab9]{opacity:.5}.result.selected[data-v-639d7ab9]{--vp-local-search-result-bg: var(--vp-local-search-result-selected-bg);border-color:var(--vp-local-search-result-selected-border)}.excerpt-wrapper[data-v-639d7ab9]{position:relative}.excerpt[data-v-639d7ab9]{opacity:75%;pointer-events:none;max-height:140px;overflow:hidden;position:relative;opacity:.5;margin-top:4px}.result.selected .excerpt[data-v-639d7ab9]{opacity:1}.excerpt[data-v-639d7ab9] *{font-size:.8rem!important;line-height:130%!important}.titles[data-v-639d7ab9] mark,.excerpt[data-v-639d7ab9] mark{background-color:var(--vp-local-search-highlight-bg);color:var(--vp-local-search-highlight-text);border-radius:2px;padding:0 2px}.excerpt[data-v-639d7ab9] .vp-code-group .tabs{display:none}.excerpt[data-v-639d7ab9] .vp-code-group div[class*=language-]{border-radius:8px!important}.excerpt-gradient-bottom[data-v-639d7ab9]{position:absolute;bottom:-1px;left:0;width:100%;height:8px;background:linear-gradient(transparent,var(--vp-local-search-result-bg));z-index:1000}.excerpt-gradient-top[data-v-639d7ab9]{position:absolute;top:-1px;left:0;width:100%;height:8px;background:linear-gradient(var(--vp-local-search-result-bg),transparent);z-index:1000}.result.selected .titles[data-v-639d7ab9],.result.selected .title-icon[data-v-639d7ab9]{color:var(--vp-c-brand-1)!important}.no-results[data-v-639d7ab9]{font-size:.9rem;text-align:center;padding:12px}svg[data-v-639d7ab9]{flex:none} diff --git a/changelog/atom b/changelog/atom index b53b3c48..9b3d59a7 100644 --- a/changelog/atom +++ b/changelog/atom @@ -2,7 +2,7 @@ https://www.thepaperpilot.org/changelog/ The Paper Pilot's Digital Garden Changelog - 2024-06-20T11:29:13.837Z + 2024-06-20T12:38:15.555Z https://github.com/jpmonette/feed The Paper Pilot @@ -13,49 +13,6 @@ A feed of updates made to my digital garden! All rights reserved 2024, The Paper Pilot - - <![CDATA[ 7 files changed, 21 insertions(+), 21 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c - - 2024-06-18T00:00:00.000Z - - - - -Page -Changes - - - -guide-to-incrementals/appeal-to-developers6 +++--- -guide-to-incrementals/appeal-to-players6 +++--- -guide-to-incrementals/defining-the-genre6 +++--- -guide-to-incrementals/navigating-criticism6 +++--- -guide-to-incrementals/what-is-content6 +++--- -the-indieweb/amplification6 +++--- -the-indieweb/signature-blocks6 +++--- - -]]> - - - <![CDATA[ 2 files changed, 8 insertions(+), 4 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5 - - 2024-06-16T00:00:00.000Z - - - - -Page -Changes - - - -the-small-web10 ++++++---- -this-knowledge-hub2 ++ - -]]> - <![CDATA[ 6 files changed, 4 insertions(+), 8 deletions(-)]]> https://code.incremental.social/thepaperpilot/pages/commit/dda6a24ea0446bddebb1da8d636c876340bea20e @@ -77,26 +34,6 @@ my-personal-website2 +- my-projects2 -- -]]> - - - <![CDATA[ 3 files changed, 3 insertions(+), 3 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a - - 2024-06-15T00:00:00.000Z - - - - -Page -Changes - - - -commune2 +- -incremental-social2 +- -the-small-web2 +- - ]]> @@ -116,43 +53,6 @@ life-is-strange2 ++ my-personal-website2 +- -]]> - - - <![CDATA[ 20 files changed, 274 insertions(+), 16 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573 - - 2024-06-13T00:00:00.000Z - - - - -Page -Changes - - - -artificial-intelligence28 ++++++++++++++++ -command-palettes25 ++++++++++++++ -fedi-v215 +++++---- -fediverse2 +- -guide-to-incrementals2 ++ -incremental-social2 +- -life-is-strange60 ++++++++++++++++++++++++++++++++++ -logseq2 +- -mtx13 ++++++++ -my-personal-website2 +- -my-projects2 ++ -pre-order-bonuses28 ++++++++++++++++ -premium-currency19 +++++++++++ -social-media2 +- -the-beginner-s-guide2 +- -the-indieweb/amplification14 ++++++++ -the-indieweb/signature-blocks10 ++++++ -the-small-web8 +++-- -video-game-monetization43 ++++++++++++++++++++++++ -weird11 +++++-- - ]]> @@ -212,6 +112,82 @@ fedi-v23 +- the-small-web81 +++++++++++++++++++++++++++--------------------- +]]> + + + <![CDATA[ 3 files changed, 3 insertions(+), 3 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a + + 2024-06-15T00:00:00.000Z + + + + +Page +Changes + + + +commune2 +- +incremental-social2 +- +the-small-web2 +- + +]]> + + + <![CDATA[ 2 files changed, 8 insertions(+), 4 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5 + + 2024-06-16T00:00:00.000Z + + + + +Page +Changes + + + +the-small-web10 ++++++---- +this-knowledge-hub2 ++ + +]]> + + + <![CDATA[ 20 files changed, 274 insertions(+), 16 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573 + + 2024-06-13T00:00:00.000Z + + + + +Page +Changes + + + +artificial-intelligence28 ++++++++++++++++ +command-palettes25 ++++++++++++++ +fedi-v215 +++++---- +fediverse2 +- +guide-to-incrementals2 ++ +incremental-social2 +- +life-is-strange60 ++++++++++++++++++++++++++++++++++ +logseq2 +- +mtx13 ++++++++ +my-personal-website2 +- +my-projects2 ++ +pre-order-bonuses28 ++++++++++++++++ +premium-currency19 +++++++++++ +social-media2 +- +the-beginner-s-guide2 +- +the-indieweb/amplification14 ++++++++ +the-indieweb/signature-blocks10 ++++++ +the-small-web8 +++-- +video-game-monetization43 ++++++++++++++++++++++++ +weird11 +++++-- + ]]> @@ -308,70 +284,6 @@ digital-gardens4 ++-- the-small-web4 ++-- -]]> - - - <![CDATA[ 47 files changed, 1226 insertions(+)]]> - https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c - - 2024-06-03T00:00:00.000Z - - - - -Page -Changes - - - -activitypub13 ++ -advent-incremental21 +++ -atproto18 +++ -babble-buds22 ++++ -capture-the-citadel15 +++ -chat-glue12 ++ -chronological21 +++ -cinny10 ++ -commune33 +++++ -decentralized28 ++++ -dice-armor55 ++++++++ -digital-gardens20 +++ -federated-identity23 ++++ -fedi-v295 ++++++++++++++ -fediverse21 +++ -forgejo10 ++ -freeform-vs-chronological-dichotomy10 ++ -freeform17 +++ -game-dev-tree17 +++ -garden-rss22 ++++ -.../appeal-to-developers30 +++++ -guide-to-incrementals/appeal-to-players60 +++++++++ -guide-to-incrementals/defining-the-genre141 +++++++++++++++++++++ -guide-to-incrementals27 ++++ -.../navigating-criticism26 ++++ -guide-to-incrementals/what-is-content52 ++++++++ -incremental-social16 +++ -kronos18 +++ -logseq10 ++ -matrix10 ++ -mbin12 ++ -my-personal-website10 ++ -my-projects27 ++++ -nostr13 ++ -open-source12 ++ -opti-speech37 ++++++ -planar-pioneers15 +++ -profectus24 ++++ -social-media25 ++++ -synapse10 ++ -the-cozy-web16 +++ -the-small-web58 +++++++++ -this-knowledge-hub22 ++++ -v-ecs25 ++++ -vitepress10 ++ -webrings25 ++++ -weird12 ++ - ]]> @@ -436,6 +348,94 @@ webrings2 ++ weird2 ++ +]]> + + + <![CDATA[ 7 files changed, 21 insertions(+), 21 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c + + 2024-06-18T00:00:00.000Z + + + + +Page +Changes + + + +guide-to-incrementals/appeal-to-developers6 +++--- +guide-to-incrementals/appeal-to-players6 +++--- +guide-to-incrementals/defining-the-genre6 +++--- +guide-to-incrementals/navigating-criticism6 +++--- +guide-to-incrementals/what-is-content6 +++--- +the-indieweb/amplification6 +++--- +the-indieweb/signature-blocks6 +++--- + +]]> + + + <![CDATA[ 47 files changed, 1226 insertions(+)]]> + https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c + + 2024-06-03T00:00:00.000Z + + + + +Page +Changes + + + +activitypub13 ++ +advent-incremental21 +++ +atproto18 +++ +babble-buds22 ++++ +capture-the-citadel15 +++ +chat-glue12 ++ +chronological21 +++ +cinny10 ++ +commune33 +++++ +decentralized28 ++++ +dice-armor55 ++++++++ +digital-gardens20 +++ +federated-identity23 ++++ +fedi-v295 ++++++++++++++ +fediverse21 +++ +forgejo10 ++ +freeform-vs-chronological-dichotomy10 ++ +freeform17 +++ +game-dev-tree17 +++ +garden-rss22 ++++ +.../appeal-to-developers30 +++++ +guide-to-incrementals/appeal-to-players60 +++++++++ +guide-to-incrementals/defining-the-genre141 +++++++++++++++++++++ +guide-to-incrementals27 ++++ +.../navigating-criticism26 ++++ +guide-to-incrementals/what-is-content52 ++++++++ +incremental-social16 +++ +kronos18 +++ +logseq10 ++ +matrix10 ++ +mbin12 ++ +my-personal-website10 ++ +my-projects27 ++++ +nostr13 ++ +open-source12 ++ +opti-speech37 ++++++ +planar-pioneers15 +++ +profectus24 ++++ +social-media25 ++++ +synapse10 ++ +the-cozy-web16 +++ +the-small-web58 +++++++++ +this-knowledge-hub22 ++++ +v-ecs25 ++++ +vitepress10 ++ +webrings25 ++++ +weird12 ++ + ]]> \ No newline at end of file diff --git a/changelog/index.html b/changelog/index.html index cbe3a4cc..669fdc6b 100644 --- a/changelog/index.html +++ b/changelog/index.html @@ -6,12 +6,12 @@ Site Changelog | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

Site Changelog

This feed starts when I formatted the site to be a Digital Garden. If you'd like to look further into this site's history, check here!

60 files changed, 513 insertions(+), 93 deletions(-)

Pushed on
PageChanges
activitypub9 +++++++-
advent-incremental9 +++++++-
artificial-intelligence9 +++++++-
atproto9 +++++++-
babble-buds9 +++++++-
capture-the-citadel11 +++++++--
chat-glue9 +++++++-
chronological9 +++++++-
cinny9 +++++++-
command-palettes9 +++++++-
commune9 +++++++-
davey-wreden9 +++++++-
decentralized9 +++++++-
dice-armor27 ++++++++++++++--------
digital-gardens9 +++++++-
federated-identity9 +++++++-
fedi-v29 +++++++-
fediverse9 +++++++-
forgejo9 +++++++-
freeform-vs-chronological-dichotomy9 +++++++-
freeform9 +++++++-
game-dev-tree9 +++++++-
garden-rss9 +++++++-
.../appeal-to-developers13 ++++++++---
guide-to-incrementals/appeal-to-players13 ++++++++---
guide-to-incrementals/defining-the-genre13 ++++++++---
guide-to-incrementals9 +++++++-
.../navigating-criticism13 ++++++++---
guide-to-incrementals/what-is-content13 ++++++++---
incremental-social9 +++++++-
ivy-road9 +++++++-
kronos9 +++++++-
life-is-strange13 ++++++++---
logseq9 +++++++-
matrix9 +++++++-
mbin9 +++++++-
mtx9 +++++++-
my-personal-website9 +++++++-
my-projects9 +++++++-
nostr9 +++++++-
open-source9 +++++++-
opti-speech17 ++++++++++----
planar-pioneers9 +++++++-
pre-order-bonuses9 +++++++-
premium-currency9 +++++++-
profectus9 +++++++-
social-media9 +++++++-
synapse9 +++++++-
the-beginner-s-guide9 +++++++-
the-cozy-web9 +++++++-
the-indieweb/amplification13 ++++++++---
the-indieweb/signature-blocks13 ++++++++---
the-small-web9 +++++++-
this-knowledge-hub9 +++++++-
v-ecs15 ++++++++----
video-game-monetization9 +++++++-
vitepress9 +++++++-
wanderstop9 +++++++-
webrings9 +++++++-
weird9 +++++++-

20 files changed, 274 insertions(+), 16 deletions(-)

Pushed on
PageChanges
artificial-intelligence28 ++++++++++++++++
command-palettes25 ++++++++++++++
fedi-v215 +++++----
fediverse2 +-
guide-to-incrementals2 ++
incremental-social2 +-
life-is-strange60 ++++++++++++++++++++++++++++++++++
logseq2 +-
mtx13 ++++++++
my-personal-website2 +-
my-projects2 ++
pre-order-bonuses28 ++++++++++++++++
premium-currency19 +++++++++++
social-media2 +-
the-beginner-s-guide2 +-
the-indieweb/amplification14 ++++++++
the-indieweb/signature-blocks10 ++++++
the-small-web8 +++--
video-game-monetization43 ++++++++++++++++++++++++
weird11 +++++--

47 files changed, 124 insertions(+), 13 deletions(-)

47 files changed, 1226 insertions(+)

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

Site Changelog

This feed starts when I formatted the site to be a Digital Garden. If you'd like to look further into this site's history, check here!

60 files changed, 513 insertions(+), 93 deletions(-)

Pushed on
PageChanges
activitypub9 +++++++-
advent-incremental9 +++++++-
artificial-intelligence9 +++++++-
atproto9 +++++++-
babble-buds9 +++++++-
capture-the-citadel11 +++++++--
chat-glue9 +++++++-
chronological9 +++++++-
cinny9 +++++++-
command-palettes9 +++++++-
commune9 +++++++-
davey-wreden9 +++++++-
decentralized9 +++++++-
dice-armor27 ++++++++++++++--------
digital-gardens9 +++++++-
federated-identity9 +++++++-
fedi-v29 +++++++-
fediverse9 +++++++-
forgejo9 +++++++-
freeform-vs-chronological-dichotomy9 +++++++-
freeform9 +++++++-
game-dev-tree9 +++++++-
garden-rss9 +++++++-
.../appeal-to-developers13 ++++++++---
guide-to-incrementals/appeal-to-players13 ++++++++---
guide-to-incrementals/defining-the-genre13 ++++++++---
guide-to-incrementals9 +++++++-
.../navigating-criticism13 ++++++++---
guide-to-incrementals/what-is-content13 ++++++++---
incremental-social9 +++++++-
ivy-road9 +++++++-
kronos9 +++++++-
life-is-strange13 ++++++++---
logseq9 +++++++-
matrix9 +++++++-
mbin9 +++++++-
mtx9 +++++++-
my-personal-website9 +++++++-
my-projects9 +++++++-
nostr9 +++++++-
open-source9 +++++++-
opti-speech17 ++++++++++----
planar-pioneers9 +++++++-
pre-order-bonuses9 +++++++-
premium-currency9 +++++++-
profectus9 +++++++-
social-media9 +++++++-
synapse9 +++++++-
the-beginner-s-guide9 +++++++-
the-cozy-web9 +++++++-
the-indieweb/amplification13 ++++++++---
the-indieweb/signature-blocks13 ++++++++---
the-small-web9 +++++++-
this-knowledge-hub9 +++++++-
v-ecs15 ++++++++----
video-game-monetization9 +++++++-
vitepress9 +++++++-
wanderstop9 +++++++-
webrings9 +++++++-
weird9 +++++++-

20 files changed, 274 insertions(+), 16 deletions(-)

Pushed on
PageChanges
artificial-intelligence28 ++++++++++++++++
command-palettes25 ++++++++++++++
fedi-v215 +++++----
fediverse2 +-
guide-to-incrementals2 ++
incremental-social2 +-
life-is-strange60 ++++++++++++++++++++++++++++++++++
logseq2 +-
mtx13 ++++++++
my-personal-website2 +-
my-projects2 ++
pre-order-bonuses28 ++++++++++++++++
premium-currency19 +++++++++++
social-media2 +-
the-beginner-s-guide2 +-
the-indieweb/amplification14 ++++++++
the-indieweb/signature-blocks10 ++++++
the-small-web8 +++--
video-game-monetization43 ++++++++++++++++++++++++
weird11 +++++--

47 files changed, 124 insertions(+), 13 deletions(-)

47 files changed, 1226 insertions(+)

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/changelog/json b/changelog/json index 8f3e71b4..c79e530b 100644 --- a/changelog/json +++ b/changelog/json @@ -9,22 +9,6 @@ "url": "https://www.thepaperpilot.org/" }, "items": [ - { - "id": "https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c", - "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
guide-to-incrementals/appeal-to-developers6 +++---
guide-to-incrementals/appeal-to-players6 +++---
guide-to-incrementals/defining-the-genre6 +++---
guide-to-incrementals/navigating-criticism6 +++---
guide-to-incrementals/what-is-content6 +++---
the-indieweb/amplification6 +++---
the-indieweb/signature-blocks6 +++---
", - "url": "https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c", - "title": " 7 files changed, 21 insertions(+), 21 deletions(-)", - "summary": " 7 files changed, 21 insertions(+), 21 deletions(-)", - "date_modified": "2024-06-18T00:00:00.000Z" - }, - { - "id": "https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5", - "content_html": "\n\n\n\n\n\n\n\n\n\n\n
PageChanges
the-small-web10 ++++++----
this-knowledge-hub2 ++
", - "url": "https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5", - "title": " 2 files changed, 8 insertions(+), 4 deletions(-)", - "summary": " 2 files changed, 8 insertions(+), 4 deletions(-)", - "date_modified": "2024-06-16T00:00:00.000Z" - }, { "id": "https://code.incremental.social/thepaperpilot/pages/commit/dda6a24ea0446bddebb1da8d636c876340bea20e", "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
chat-glue2 +-
commune2 +-
fedi-v22 +-
guide-to-incrementals2 --
my-personal-website2 +-
my-projects2 --
", @@ -33,14 +17,6 @@ "summary": " 6 files changed, 4 insertions(+), 8 deletions(-)", "date_modified": "2024-06-15T00:00:00.000Z" }, - { - "id": "https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a", - "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
commune2 +-
incremental-social2 +-
the-small-web2 +-
", - "url": "https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a", - "title": " 3 files changed, 3 insertions(+), 3 deletions(-)", - "summary": " 3 files changed, 3 insertions(+), 3 deletions(-)", - "date_modified": "2024-06-15T00:00:00.000Z" - }, { "id": "https://code.incremental.social/thepaperpilot/pages/commit/67a9853718f59a427ae2df3b26b7058ebab1adb1", "content_html": "\n\n\n\n\n\n\n\n\n\n\n
PageChanges
life-is-strange2 ++
my-personal-website2 +-
", @@ -49,14 +25,6 @@ "summary": " 2 files changed, 3 insertions(+), 1 deletion(-)", "date_modified": "2024-06-14T00:00:00.000Z" }, - { - "id": "https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573", - "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
artificial-intelligence28 ++++++++++++++++
command-palettes25 ++++++++++++++
fedi-v215 +++++----
fediverse2 +-
guide-to-incrementals2 ++
incremental-social2 +-
life-is-strange60 ++++++++++++++++++++++++++++++++++
logseq2 +-
mtx13 ++++++++
my-personal-website2 +-
my-projects2 ++
pre-order-bonuses28 ++++++++++++++++
premium-currency19 +++++++++++
social-media2 +-
the-beginner-s-guide2 +-
the-indieweb/amplification14 ++++++++
the-indieweb/signature-blocks10 ++++++
the-small-web8 +++--
video-game-monetization43 ++++++++++++++++++++++++
weird11 +++++--
", - "url": "https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573", - "title": " 20 files changed, 274 insertions(+), 16 deletions(-)", - "summary": " 20 files changed, 274 insertions(+), 16 deletions(-)", - "date_modified": "2024-06-13T00:00:00.000Z" - }, { "id": "https://code.incremental.social/thepaperpilot/pages/commit/de7fbf829b37d635a3f143abffcc3597135a445a", "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
davey-wreden22 ++++++++++++++++++++++
ivy-road15 +++++++++++++++
the-beginner-s-guide22 ++++++++++++++++++++++
wanderstop13 +++++++++++++
", @@ -81,6 +49,30 @@ "summary": " 3 files changed, 48 insertions(+), 38 deletions(-)", "date_modified": "2024-06-06T00:00:00.000Z" }, + { + "id": "https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a", + "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
commune2 +-
incremental-social2 +-
the-small-web2 +-
", + "url": "https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a", + "title": " 3 files changed, 3 insertions(+), 3 deletions(-)", + "summary": " 3 files changed, 3 insertions(+), 3 deletions(-)", + "date_modified": "2024-06-15T00:00:00.000Z" + }, + { + "id": "https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5", + "content_html": "\n\n\n\n\n\n\n\n\n\n\n
PageChanges
the-small-web10 ++++++----
this-knowledge-hub2 ++
", + "url": "https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5", + "title": " 2 files changed, 8 insertions(+), 4 deletions(-)", + "summary": " 2 files changed, 8 insertions(+), 4 deletions(-)", + "date_modified": "2024-06-16T00:00:00.000Z" + }, + { + "id": "https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573", + "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
artificial-intelligence28 ++++++++++++++++
command-palettes25 ++++++++++++++
fedi-v215 +++++----
fediverse2 +-
guide-to-incrementals2 ++
incremental-social2 +-
life-is-strange60 ++++++++++++++++++++++++++++++++++
logseq2 +-
mtx13 ++++++++
my-personal-website2 +-
my-projects2 ++
pre-order-bonuses28 ++++++++++++++++
premium-currency19 +++++++++++
social-media2 +-
the-beginner-s-guide2 +-
the-indieweb/amplification14 ++++++++
the-indieweb/signature-blocks10 ++++++
the-small-web8 +++--
video-game-monetization43 ++++++++++++++++++++++++
weird11 +++++--
", + "url": "https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573", + "title": " 20 files changed, 274 insertions(+), 16 deletions(-)", + "summary": " 20 files changed, 274 insertions(+), 16 deletions(-)", + "date_modified": "2024-06-13T00:00:00.000Z" + }, { "id": "https://code.incremental.social/thepaperpilot/pages/commit/14a570c17b9fb881c611ae5e1aad8e4200ca8b30", "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
activitypub9 +++++++-
advent-incremental9 +++++++-
artificial-intelligence9 +++++++-
atproto9 +++++++-
babble-buds9 +++++++-
capture-the-citadel11 +++++++--
chat-glue9 +++++++-
chronological9 +++++++-
cinny9 +++++++-
command-palettes9 +++++++-
commune9 +++++++-
davey-wreden9 +++++++-
decentralized9 +++++++-
dice-armor27 ++++++++++++++--------
digital-gardens9 +++++++-
federated-identity9 +++++++-
fedi-v29 +++++++-
fediverse9 +++++++-
forgejo9 +++++++-
freeform-vs-chronological-dichotomy9 +++++++-
freeform9 +++++++-
game-dev-tree9 +++++++-
garden-rss9 +++++++-
.../appeal-to-developers13 ++++++++---
guide-to-incrementals/appeal-to-players13 ++++++++---
guide-to-incrementals/defining-the-genre13 ++++++++---
guide-to-incrementals9 +++++++-
.../navigating-criticism13 ++++++++---
guide-to-incrementals/what-is-content13 ++++++++---
incremental-social9 +++++++-
ivy-road9 +++++++-
kronos9 +++++++-
life-is-strange13 ++++++++---
logseq9 +++++++-
matrix9 +++++++-
mbin9 +++++++-
mtx9 +++++++-
my-personal-website9 +++++++-
my-projects9 +++++++-
nostr9 +++++++-
open-source9 +++++++-
opti-speech17 ++++++++++----
planar-pioneers9 +++++++-
pre-order-bonuses9 +++++++-
premium-currency9 +++++++-
profectus9 +++++++-
social-media9 +++++++-
synapse9 +++++++-
the-beginner-s-guide9 +++++++-
the-cozy-web9 +++++++-
the-indieweb/amplification13 ++++++++---
the-indieweb/signature-blocks13 ++++++++---
the-small-web9 +++++++-
this-knowledge-hub9 +++++++-
v-ecs15 ++++++++----
video-game-monetization9 +++++++-
vitepress9 +++++++-
wanderstop9 +++++++-
webrings9 +++++++-
weird9 +++++++-
", @@ -97,14 +89,6 @@ "summary": " 2 files changed, 4 insertions(+), 4 deletions(-)", "date_modified": "2024-06-18T00:00:00.000Z" }, - { - "id": "https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c", - "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
activitypub13 ++
advent-incremental21 +++
atproto18 +++
babble-buds22 ++++
capture-the-citadel15 +++
chat-glue12 ++
chronological21 +++
cinny10 ++
commune33 +++++
decentralized28 ++++
dice-armor55 ++++++++
digital-gardens20 +++
federated-identity23 ++++
fedi-v295 ++++++++++++++
fediverse21 +++
forgejo10 ++
freeform-vs-chronological-dichotomy10 ++
freeform17 +++
game-dev-tree17 +++
garden-rss22 ++++
.../appeal-to-developers30 +++++
guide-to-incrementals/appeal-to-players60 +++++++++
guide-to-incrementals/defining-the-genre141 +++++++++++++++++++++
guide-to-incrementals27 ++++
.../navigating-criticism26 ++++
guide-to-incrementals/what-is-content52 ++++++++
incremental-social16 +++
kronos18 +++
logseq10 ++
matrix10 ++
mbin12 ++
my-personal-website10 ++
my-projects27 ++++
nostr13 ++
open-source12 ++
opti-speech37 ++++++
planar-pioneers15 +++
profectus24 ++++
social-media25 ++++
synapse10 ++
the-cozy-web16 +++
the-small-web58 +++++++++
this-knowledge-hub22 ++++
v-ecs25 ++++
vitepress10 ++
webrings25 ++++
weird12 ++
", - "url": "https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c", - "title": " 47 files changed, 1226 insertions(+)", - "summary": " 47 files changed, 1226 insertions(+)", - "date_modified": "2024-06-03T00:00:00.000Z" - }, { "id": "https://code.incremental.social/thepaperpilot/pages/commit/91e757f7ccbeb570d900aaa5b49e6e4874d19b2f", "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
activitypub2 ++
advent-incremental2 ++
atproto2 ++
babble-buds2 ++
capture-the-citadel2 ++
chat-glue2 ++
chronological2 ++
cinny2 ++
commune2 ++
decentralized2 ++
dice-armor2 ++
digital-gardens2 ++
federated-identity2 ++
fedi-v230 +++++++++++++++++-----
fediverse2 ++
forgejo2 ++
freeform-vs-chronological-dichotomy2 ++
freeform2 ++
game-dev-tree2 ++
garden-rss4 ++-
.../appeal-to-developers2 ++
guide-to-incrementals/appeal-to-players6 +++--
guide-to-incrementals/defining-the-genre6 +++--
guide-to-incrementals2 ++
.../navigating-criticism2 ++
guide-to-incrementals/what-is-content4 ++-
incremental-social2 ++
kronos2 ++
logseq2 ++
matrix2 ++
mbin2 ++
my-personal-website2 ++
my-projects2 ++
nostr2 ++
open-source2 ++
opti-speech2 ++
planar-pioneers2 ++
profectus4 ++-
social-media2 ++
synapse2 ++
the-cozy-web2 ++
the-small-web2 ++
this-knowledge-hub3 +++
v-ecs2 ++
vitepress2 ++
webrings2 ++
weird2 ++
", @@ -112,6 +96,22 @@ "title": " 47 files changed, 124 insertions(+), 13 deletions(-)", "summary": " 47 files changed, 124 insertions(+), 13 deletions(-)", "date_modified": "2024-06-05T00:00:00.000Z" + }, + { + "id": "https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c", + "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
guide-to-incrementals/appeal-to-developers6 +++---
guide-to-incrementals/appeal-to-players6 +++---
guide-to-incrementals/defining-the-genre6 +++---
guide-to-incrementals/navigating-criticism6 +++---
guide-to-incrementals/what-is-content6 +++---
the-indieweb/amplification6 +++---
the-indieweb/signature-blocks6 +++---
", + "url": "https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c", + "title": " 7 files changed, 21 insertions(+), 21 deletions(-)", + "summary": " 7 files changed, 21 insertions(+), 21 deletions(-)", + "date_modified": "2024-06-18T00:00:00.000Z" + }, + { + "id": "https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c", + "content_html": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
PageChanges
activitypub13 ++
advent-incremental21 +++
atproto18 +++
babble-buds22 ++++
capture-the-citadel15 +++
chat-glue12 ++
chronological21 +++
cinny10 ++
commune33 +++++
decentralized28 ++++
dice-armor55 ++++++++
digital-gardens20 +++
federated-identity23 ++++
fedi-v295 ++++++++++++++
fediverse21 +++
forgejo10 ++
freeform-vs-chronological-dichotomy10 ++
freeform17 +++
game-dev-tree17 +++
garden-rss22 ++++
.../appeal-to-developers30 +++++
guide-to-incrementals/appeal-to-players60 +++++++++
guide-to-incrementals/defining-the-genre141 +++++++++++++++++++++
guide-to-incrementals27 ++++
.../navigating-criticism26 ++++
guide-to-incrementals/what-is-content52 ++++++++
incremental-social16 +++
kronos18 +++
logseq10 ++
matrix10 ++
mbin12 ++
my-personal-website10 ++
my-projects27 ++++
nostr13 ++
open-source12 ++
opti-speech37 ++++++
planar-pioneers15 +++
profectus24 ++++
social-media25 ++++
synapse10 ++
the-cozy-web16 +++
the-small-web58 +++++++++
this-knowledge-hub22 ++++
v-ecs25 ++++
vitepress10 ++
webrings25 ++++
weird12 ++
", + "url": "https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c", + "title": " 47 files changed, 1226 insertions(+)", + "summary": " 47 files changed, 1226 insertions(+)", + "date_modified": "2024-06-03T00:00:00.000Z" } ] } \ No newline at end of file diff --git a/changelog/rss b/changelog/rss index 9856ec73..fb1b000d 100644 --- a/changelog/rss +++ b/changelog/rss @@ -4,55 +4,12 @@ The Paper Pilot's Digital Garden Changelog https://www.thepaperpilot.org/changelog/ A feed of updates made to my digital garden! - Thu, 20 Jun 2024 11:29:13 GMT + Thu, 20 Jun 2024 12:38:15 GMT https://validator.w3.org/feed/docs/rss2.html https://github.com/jpmonette/feed en All rights reserved 2024, The Paper Pilot - - <![CDATA[ 7 files changed, 21 insertions(+), 21 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c - https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c - Tue, 18 Jun 2024 00:00:00 GMT - - - - -Page -Changes - - - -guide-to-incrementals/appeal-to-developers6 +++--- -guide-to-incrementals/appeal-to-players6 +++--- -guide-to-incrementals/defining-the-genre6 +++--- -guide-to-incrementals/navigating-criticism6 +++--- -guide-to-incrementals/what-is-content6 +++--- -the-indieweb/amplification6 +++--- -the-indieweb/signature-blocks6 +++--- - -]]> - - - <![CDATA[ 2 files changed, 8 insertions(+), 4 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5 - https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5 - Sun, 16 Jun 2024 00:00:00 GMT - - - - -Page -Changes - - - -the-small-web10 ++++++---- -this-knowledge-hub2 ++ - -]]> - <![CDATA[ 6 files changed, 4 insertions(+), 8 deletions(-)]]> https://code.incremental.social/thepaperpilot/pages/commit/dda6a24ea0446bddebb1da8d636c876340bea20e @@ -74,26 +31,6 @@ my-personal-website2 +- my-projects2 -- -]]> - - - <![CDATA[ 3 files changed, 3 insertions(+), 3 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a - https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a - Sat, 15 Jun 2024 00:00:00 GMT - - - - -Page -Changes - - - -commune2 +- -incremental-social2 +- -the-small-web2 +- - ]]> @@ -113,43 +50,6 @@ life-is-strange2 ++ my-personal-website2 +- -]]> - - - <![CDATA[ 20 files changed, 274 insertions(+), 16 deletions(-)]]> - https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573 - https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573 - Thu, 13 Jun 2024 00:00:00 GMT - - - - -Page -Changes - - - -artificial-intelligence28 ++++++++++++++++ -command-palettes25 ++++++++++++++ -fedi-v215 +++++---- -fediverse2 +- -guide-to-incrementals2 ++ -incremental-social2 +- -life-is-strange60 ++++++++++++++++++++++++++++++++++ -logseq2 +- -mtx13 ++++++++ -my-personal-website2 +- -my-projects2 ++ -pre-order-bonuses28 ++++++++++++++++ -premium-currency19 +++++++++++ -social-media2 +- -the-beginner-s-guide2 +- -the-indieweb/amplification14 ++++++++ -the-indieweb/signature-blocks10 ++++++ -the-small-web8 +++-- -video-game-monetization43 ++++++++++++++++++++++++ -weird11 +++++-- - ]]> @@ -209,6 +109,82 @@ fedi-v23 +- the-small-web81 +++++++++++++++++++++++++++--------------------- +]]> + + + <![CDATA[ 3 files changed, 3 insertions(+), 3 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a + https://code.incremental.social/thepaperpilot/pages/commit/88d9da0f061ce585f0e40438d4f8f6b955c0bb1a + Sat, 15 Jun 2024 00:00:00 GMT + + + + +Page +Changes + + + +commune2 +- +incremental-social2 +- +the-small-web2 +- + +]]> + + + <![CDATA[ 2 files changed, 8 insertions(+), 4 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5 + https://code.incremental.social/thepaperpilot/pages/commit/b18e47a2eff9b8710f5538734b0863be16425aa5 + Sun, 16 Jun 2024 00:00:00 GMT + + + + +Page +Changes + + + +the-small-web10 ++++++---- +this-knowledge-hub2 ++ + +]]> + + + <![CDATA[ 20 files changed, 274 insertions(+), 16 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573 + https://code.incremental.social/thepaperpilot/pages/commit/34f8298829d6d9ddc73eae8c01c1147ba1ad2573 + Thu, 13 Jun 2024 00:00:00 GMT + + + + +Page +Changes + + + +artificial-intelligence28 ++++++++++++++++ +command-palettes25 ++++++++++++++ +fedi-v215 +++++---- +fediverse2 +- +guide-to-incrementals2 ++ +incremental-social2 +- +life-is-strange60 ++++++++++++++++++++++++++++++++++ +logseq2 +- +mtx13 ++++++++ +my-personal-website2 +- +my-projects2 ++ +pre-order-bonuses28 ++++++++++++++++ +premium-currency19 +++++++++++ +social-media2 +- +the-beginner-s-guide2 +- +the-indieweb/amplification14 ++++++++ +the-indieweb/signature-blocks10 ++++++ +the-small-web8 +++-- +video-game-monetization43 ++++++++++++++++++++++++ +weird11 +++++-- + ]]> @@ -305,70 +281,6 @@ digital-gardens4 ++-- the-small-web4 ++-- -]]> - - - <![CDATA[ 47 files changed, 1226 insertions(+)]]> - https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c - https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c - Mon, 03 Jun 2024 00:00:00 GMT - - - - -Page -Changes - - - -activitypub13 ++ -advent-incremental21 +++ -atproto18 +++ -babble-buds22 ++++ -capture-the-citadel15 +++ -chat-glue12 ++ -chronological21 +++ -cinny10 ++ -commune33 +++++ -decentralized28 ++++ -dice-armor55 ++++++++ -digital-gardens20 +++ -federated-identity23 ++++ -fedi-v295 ++++++++++++++ -fediverse21 +++ -forgejo10 ++ -freeform-vs-chronological-dichotomy10 ++ -freeform17 +++ -game-dev-tree17 +++ -garden-rss22 ++++ -.../appeal-to-developers30 +++++ -guide-to-incrementals/appeal-to-players60 +++++++++ -guide-to-incrementals/defining-the-genre141 +++++++++++++++++++++ -guide-to-incrementals27 ++++ -.../navigating-criticism26 ++++ -guide-to-incrementals/what-is-content52 ++++++++ -incremental-social16 +++ -kronos18 +++ -logseq10 ++ -matrix10 ++ -mbin12 ++ -my-personal-website10 ++ -my-projects27 ++++ -nostr13 ++ -open-source12 ++ -opti-speech37 ++++++ -planar-pioneers15 +++ -profectus24 ++++ -social-media25 ++++ -synapse10 ++ -the-cozy-web16 +++ -the-small-web58 +++++++++ -this-knowledge-hub22 ++++ -v-ecs25 ++++ -vitepress10 ++ -webrings25 ++++ -weird12 ++ - ]]> @@ -433,6 +345,94 @@ webrings2 ++ weird2 ++ +]]> + + + <![CDATA[ 7 files changed, 21 insertions(+), 21 deletions(-)]]> + https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c + https://code.incremental.social/thepaperpilot/pages/commit/411de1d59fe75b3e56de49dd5209b0b0b9a8616c + Tue, 18 Jun 2024 00:00:00 GMT + + + + +Page +Changes + + + +guide-to-incrementals/appeal-to-developers6 +++--- +guide-to-incrementals/appeal-to-players6 +++--- +guide-to-incrementals/defining-the-genre6 +++--- +guide-to-incrementals/navigating-criticism6 +++--- +guide-to-incrementals/what-is-content6 +++--- +the-indieweb/amplification6 +++--- +the-indieweb/signature-blocks6 +++--- + +]]> + + + <![CDATA[ 47 files changed, 1226 insertions(+)]]> + https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c + https://code.incremental.social/thepaperpilot/pages/commit/fe175090d3fc0cfa81754ec5b19a184005e31d8c + Mon, 03 Jun 2024 00:00:00 GMT + + + + +Page +Changes + + + +activitypub13 ++ +advent-incremental21 +++ +atproto18 +++ +babble-buds22 ++++ +capture-the-citadel15 +++ +chat-glue12 ++ +chronological21 +++ +cinny10 ++ +commune33 +++++ +decentralized28 ++++ +dice-armor55 ++++++++ +digital-gardens20 +++ +federated-identity23 ++++ +fedi-v295 ++++++++++++++ +fediverse21 +++ +forgejo10 ++ +freeform-vs-chronological-dichotomy10 ++ +freeform17 +++ +game-dev-tree17 +++ +garden-rss22 ++++ +.../appeal-to-developers30 +++++ +guide-to-incrementals/appeal-to-players60 +++++++++ +guide-to-incrementals/defining-the-genre141 +++++++++++++++++++++ +guide-to-incrementals27 ++++ +.../navigating-criticism26 ++++ +guide-to-incrementals/what-is-content52 ++++++++ +incremental-social16 +++ +kronos18 +++ +logseq10 ++ +matrix10 ++ +mbin12 ++ +my-personal-website10 ++ +my-projects27 ++++ +nostr13 ++ +open-source12 ++ +opti-speech37 ++++++ +planar-pioneers15 +++ +profectus24 ++++ +social-media25 ++++ +synapse10 ++ +the-cozy-web16 +++ +the-small-web58 +++++++++ +this-knowledge-hub22 ++++ +v-ecs25 ++++ +vitepress10 ++ +webrings25 ++++ +weird12 ++ + ]]> diff --git a/garden/activitypub/index.html b/garden/activitypub/index.html index 95cda331..a150165a 100644 --- a/garden/activitypub/index.html +++ b/garden/activitypub/index.html @@ -6,12 +6,12 @@ ActivityPub | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

ActivityPub

8 words, ~0 minute read. Planted +

Skip to content

ActivityPub

8 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Fediverse

Tags: Decentralized

ActivityPub is a protocol for Federated Social Media

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Fediverse

Tags: Decentralized

ActivityPub is a protocol for Federated Social Media

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/advent-incremental/index.html b/garden/advent-incremental/index.html index a7afa93e..b55b10ba 100644 --- a/garden/advent-incremental/index.html +++ b/garden/advent-incremental/index.html @@ -6,12 +6,12 @@ Advent Incremental | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Advent Incremental

104 words, ~1 minute read. Planted +

Skip to content

Advent Incremental

104 words, ~1 minute read. Planted . Last tended to -.


Tags: My Projects, Profectus

Play it here!

An Open Source game made in Profectus over the course of 1 month by myself and other devs I know in the Incremental Games community!

I had the idea of an advent-style game that unlocked new pieces of content every real-life day a couple days before December started.

This was one of the most hectic months of my life!

I'm super happy with how it turned out. It ended up being way more ambitious than I anticipated but the end result is super large and awesome!

The TV Tropes page on this game mentions some of the cool things about this game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: My Projects, Profectus

Play it here!

An Open Source game made in Profectus over the course of 1 month by myself and other devs I know in the Incremental Games community!

I had the idea of an advent-style game that unlocked new pieces of content every real-life day a couple days before December started.

This was one of the most hectic months of my life!

I'm super happy with how it turned out. It ended up being way more ambitious than I anticipated but the end result is super large and awesome!

The TV Tropes page on this game mentions some of the cool things about this game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/artificial-intelligence/index.html b/garden/artificial-intelligence/index.html index 3b1b3778..c144dbeb 100644 --- a/garden/artificial-intelligence/index.html +++ b/garden/artificial-intelligence/index.html @@ -6,12 +6,12 @@ Artificial Intelligence | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Artificial Intelligence

101 words, ~1 minute read. Planted +

Skip to content

Artificial Intelligence

101 words, ~1 minute read. Planted . Last tended to -.


Referenced by: Command Palettes

Catch all term that refers to many different things

Generative AI

  • Models trained on large amounts of existing human made content in order to produce more of that content
  • Copyright concerns over how training data is obtained
  • Common Examples

Human + AI cooperation

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Command Palettes

Catch all term that refers to many different things

Generative AI

  • Models trained on large amounts of existing human made content in order to produce more of that content
  • Copyright concerns over how training data is obtained
  • Common Examples

Human + AI cooperation

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/atproto/index.html b/garden/atproto/index.html index 733656b3..fd767ef8 100644 --- a/garden/atproto/index.html +++ b/garden/atproto/index.html @@ -6,12 +6,12 @@ ATProto | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

ATProto

31 words, ~0 minute read. Planted +

Skip to content

ATProto

31 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Fediverse

Tags: Decentralized

The AT Protocol is a protocol for Federated Social Media

Currently only used by Bluesky

In comparison to other Fediverse protocols, ATProto is designed for a small number of large instances

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Fediverse

Tags: Decentralized

The AT Protocol is a protocol for Federated Social Media

Currently only used by Bluesky

In comparison to other Fediverse protocols, ATProto is designed for a small number of large instances

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/babble-buds/index.html b/garden/babble-buds/index.html index 24e85962..d111de4a 100644 --- a/garden/babble-buds/index.html +++ b/garden/babble-buds/index.html @@ -6,12 +6,12 @@ Babble Buds | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Babble Buds

113 words, ~1 minute read. Planted +

Skip to content

Babble Buds

113 words, ~1 minute read. Planted . Last tended to -.


Tags: My Projects

Babble Buds is a tool for creating puppets and interacting with puppets controlled by others on a shared stage

Note: I need to move the website off replit because of their monetization strategy changing. In the meantime, you can check it out from its github repository

Inspired by Puppet Pals by Robert Moran

Intended for use in RPG Campaigns

The renderer was separated into its own project, babble.js, so it could be used for stuff like cutscenes

I ported the engine to C# and used it for the cutscenes in Dice Armor

  • I don't believe I ever separated it out into its own project, but you can find the code here
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: My Projects

Babble Buds is a tool for creating puppets and interacting with puppets controlled by others on a shared stage

Note: I need to move the website off replit because of their monetization strategy changing. In the meantime, you can check it out from its github repository

Inspired by Puppet Pals by Robert Moran

Intended for use in RPG Campaigns

The renderer was separated into its own project, babble.js, so it could be used for stuff like cutscenes

I ported the engine to C# and used it for the cutscenes in Dice Armor

  • I don't believe I ever separated it out into its own project, but you can find the code here
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/capture-the-citadel/index.html b/garden/capture-the-citadel/index.html index ab45a40e..f238d5f2 100644 --- a/garden/capture-the-citadel/index.html +++ b/garden/capture-the-citadel/index.html @@ -6,12 +6,12 @@ Capture the Citadel | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Capture the Citadel

39 words, ~0 minute read. Planted +

Skip to content

Capture the Citadel

39 words, ~0 minute read. Planted . Last tended to -.


Tags: My Projects

A 3D VR re-envisioning of a Slay the Spire-style game by Anthony Lawn and Grant Barbee for their VR class in college's final project.

For more details, visit Grant's page on the game.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: My Projects

A 3D VR re-envisioning of a Slay the Spire-style game by Anthony Lawn and Grant Barbee for their VR class in college's final project.

For more details, visit Grant's page on the game.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/chat-glue/index.html b/garden/chat-glue/index.html index 696f6eed..981fd209 100644 --- a/garden/chat-glue/index.html +++ b/garden/chat-glue/index.html @@ -6,12 +6,12 @@ Chat Glue | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Chat Glue

23 words, ~0 minute read. Planted +

Skip to content

Chat Glue

23 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Commune, The Small Web

A theoretical chat system designed to solve the problems of transcribing branching conversations into linear timelines.

Defined by the Chatting with Glue comic.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Commune, The Small Web

A theoretical chat system designed to solve the problems of transcribing branching conversations into linear timelines.

Defined by the Chatting with Glue comic.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/chronological/index.html b/garden/chronological/index.html index bafe83b6..3d1286a8 100644 --- a/garden/chronological/index.html +++ b/garden/chronological/index.html @@ -6,12 +6,12 @@ Chronological | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Chronological

73 words, ~0 minute read. Planted +

Skip to content

Chronological

73 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Digital Gardens, Freeform vs Chronological Dichotomy, The Small Web

A collection of information that is tied to its creation or edit date

Part of the Freeform vs Chronological Dichotomy

Anything with a "timeline" or "feed" is considered chronological

  • Even if there's algorithmic sortings that take things other than creation or edit date into account!

Chronological displays are less suitable as stores of knowledge (Digital Gardens)

Social media overuses timelines and feeds

RSS feeds work really well with this form of content

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Digital Gardens, Freeform vs Chronological Dichotomy, The Small Web

A collection of information that is tied to its creation or edit date

Part of the Freeform vs Chronological Dichotomy

Anything with a "timeline" or "feed" is considered chronological

  • Even if there's algorithmic sortings that take things other than creation or edit date into account!

Chronological displays are less suitable as stores of knowledge (Digital Gardens)

Social media overuses timelines and feeds

RSS feeds work really well with this form of content

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/cinny/index.html b/garden/cinny/index.html index f6f918ff..a7f88502 100644 --- a/garden/cinny/index.html +++ b/garden/cinny/index.html @@ -6,12 +6,12 @@ Cinny | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Cinny

3 words, ~0 minute read. Planted +

Skip to content

Cinny

3 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Incremental Social

Cinny is an Open Source web client for the Matrix messaging protocol

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Incremental Social

Cinny is an Open Source web client for the Matrix messaging protocol

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/command-palettes/index.html b/garden/command-palettes/index.html index aa09cfc5..eb240de4 100644 --- a/garden/command-palettes/index.html +++ b/garden/command-palettes/index.html @@ -6,12 +6,12 @@ Command Palettes | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Command Palettes

117 words, ~1 minute read. Planted +

Skip to content

Command Palettes

117 words, ~1 minute read. Planted . Last tended to -.


Command palettes are a design pattern where apps expose functionality through a search bar

Typing what you want is almost certainly easier and faster than finding the action in some submenu or remembering an arcane hotkey

  • Especially with fuzzy search that also looks through descriptions of actions
  • Command palettes scale very well with large amounts of actions

Artificial Intelligence will make command palettes increasingly powerful

  • Eventually these may become conversational interfaces

Maggie Appleton discusses this pattern in her article on Command K Bars

  • The name comes from the fact many apps use the ctrl/cmd k shortcut to open the command palette

Many softwares I use have some form of command palette

  • Linear
  • Logseq
  • Visual Studio Code
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Command palettes are a design pattern where apps expose functionality through a search bar

Typing what you want is almost certainly easier and faster than finding the action in some submenu or remembering an arcane hotkey

  • Especially with fuzzy search that also looks through descriptions of actions
  • Command palettes scale very well with large amounts of actions

Artificial Intelligence will make command palettes increasingly powerful

  • Eventually these may become conversational interfaces

Maggie Appleton discusses this pattern in her article on Command K Bars

  • The name comes from the fact many apps use the ctrl/cmd k shortcut to open the command palette

Many softwares I use have some form of command palette

  • Linear
  • Logseq
  • Visual Studio Code
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/commune/index.html b/garden/commune/index.html index fa37541f..eaefa23a 100644 --- a/garden/commune/index.html +++ b/garden/commune/index.html @@ -6,12 +6,12 @@ Commune | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Commune

144 words, ~1 minute read. Planted +

Skip to content

Commune

144 words, ~1 minute read. Planted . Last tended to -.


Referenced by: Federated Identity, Fedi v2, /now, Webrings, Weird

An Open Source Matrix web client built to be better for communities than anything else out there

  • Currently in development
  • Exposes certain channels such that they are web indexable
  • Will include features like Chat Glue and communal Digital Gardens

Created by Erlend Sogge Heggen, a ex-employee from Discourse

  • Maintains the Commune Blog with great write ups on the issues of the modern web, social media, etc. and how they can be improved (by Commune or related projects)
  • Also maintains a Personal Blog about similar topics

The Commune community is very interested in various topics and how they can relate together:

Related projects:

  • @laxla@tech.lgbt is creating Gimli, a federated discord alternative
    • Built on ActivityPub
    • "Guild-based" in ways matrix is not?
    • Will integrate with F3 as well
    • Wants to handle blogging as well
    • Certainly seems similar to Commune's message gardening concept
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Federated Identity, Fedi v2, /now, Webrings, Weird

An Open Source Matrix web client built to be better for communities than anything else out there

  • Currently in development
  • Exposes certain channels such that they are web indexable
  • Will include features like Chat Glue and communal Digital Gardens

Created by Erlend Sogge Heggen, a ex-employee from Discourse

  • Maintains the Commune Blog with great write ups on the issues of the modern web, social media, etc. and how they can be improved (by Commune or related projects)
  • Also maintains a Personal Blog about similar topics

The Commune community is very interested in various topics and how they can relate together:

Related projects:

  • @laxla@tech.lgbt is creating Gimli, a federated discord alternative
    • Built on ActivityPub
    • "Guild-based" in ways matrix is not?
    • Will integrate with F3 as well
    • Wants to handle blogging as well
    • Certainly seems similar to Commune's message gardening concept
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/davey-wreden/index.html b/garden/davey-wreden/index.html index 6518f253..9ab8ab47 100644 --- a/garden/davey-wreden/index.html +++ b/garden/davey-wreden/index.html @@ -6,12 +6,12 @@ Davey Wreden | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Davey Wreden

37 words, ~0 minute read. Planted +

Skip to content
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Ivy Road, The Beginner's Guide

Tagged by: Ivy Road, The Beginner's Guide, Wanderstop

Projects:

Talks and Interviews:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/decentralized/index.html b/garden/decentralized/index.html index 4164a2ca..1c38ad4a 100644 --- a/garden/decentralized/index.html +++ b/garden/decentralized/index.html @@ -6,12 +6,12 @@ Decentralized | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Decentralized

80 words, ~0 minute read. Planted +

Skip to content

Decentralized

80 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Commune, Fedi v2, Matrix, Social Media

Tagged by: ATProto, ActivityPub, Federated Identity, Fediverse, Nostr

Something with no central source of authority

Common examples:

In practice, the "pick a server" problem causes email and the fediverse to trend towards a handful of large servers that still suffer from some of the issues of centralization

Advantages over centralization:

  • Data ownership
  • Increased privacy
  • No rules to follow
  • Can fully customize your experience
  • No single entity can make the experience worse for everyone
  • Anyone and everyone can try their hand at improving the ecosystem
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Commune, Fedi v2, Matrix, Social Media

Tagged by: ATProto, ActivityPub, Federated Identity, Fediverse, Nostr

Something with no central source of authority

Common examples:

In practice, the "pick a server" problem causes email and the fediverse to trend towards a handful of large servers that still suffer from some of the issues of centralization

Advantages over centralization:

  • Data ownership
  • Increased privacy
  • No rules to follow
  • Can fully customize your experience
  • No single entity can make the experience worse for everyone
  • Anyone and everyone can try their hand at improving the ecosystem
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/dice-armor/index.html b/garden/dice-armor/index.html index 467390d7..7771274c 100644 --- a/garden/dice-armor/index.html +++ b/garden/dice-armor/index.html @@ -6,12 +6,12 @@ Dice Armor | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Dice Armor

963 words, ~5 minute read. Planted +

Skip to content

Dice Armor

963 words, ~5 minute read. Planted . Last tended to -.


Referenced by: Babble Buds

Tags: My Projects

Download it here

Dice Armor is a game that started development as a semester-long project by a team of nine: a producer, a creative director, a narrative writer, an artist, two programmers, and 3 game designers. The information here is about my contributions as the lead programmer over the semester because I can show off stuff like the editor scripts I wrote. I was doing everything from interface coding, editor scripts, integrating Babble Buds, and of course, everything related to the gameplay itself. To date I'm still the lead programmer for the game; for more up-to-date information on the current state of the game please visit the official site.

The build available here was created for showing off at the end of the semester, and as such has some buttons present to make the game easier to skip parts of the game to see all the content: You start with all the dice in the game already in the shop, there's a button to give yourself free money to buy these dice with, and in the duel, there are buttons to force a win or a loss, which can be used to skip the tutorial (not recommended for first-time players).

Dice Armor is a dice dueling game. Players can use abilities, flip dice, and attack each other to win in a dice game that puts chance into the hands of the players. This is what the dueling scene looks like, with a tutorial cutscene happening on top to guide the player through the basics. Also, all the dice are constructed dynamically, using quaternion math to figure out the placement of each component relative to the face it is going on. The die in the middle has one of the player' and opponents' portraits on each of its sides.

For many of the objects I've created, I've made scriptable objects so that game designers can add and modify them easily. Additionally, I would create custom inspectors for the objects to help make them as easy to understand and edit as possible. The opponent's artificial intelligence is made up of many strategies, in a prioritized list. When it is the opponents' turn they go through each strategy and check if they can be run, and if so then the opponent performs the strategy and starts back over at the top of the list of strategies. The + sign under the list of strategies opens an organized dropdown of all the various strategies.

In addition to custom inspector code, I've created new tools for the editor for our game designers to use. This is a duel simulator that will take two opponents and simulate an arbitrary number of duels between them, and output the results and summarize them for you, much much quicker than manually going through the duels, even with an absurdly high timeScale. This will become incredibly useful in making balance changes and testing new dice against existing sets. This is a screenshot of it in edit mode, but in play mode it removes the "Dueling Managers" field and will use whatever the current duel balance settings are, allowing for the GDs to test freely in play mode without worrying about undoing all their changes afterward.

I created the Babble Buds puppet editor and ported the rendering library I wrote for it to C# so it could be used in Unity. Dice Armor has a full campaign using cutscenes made using the Babble Buds cutscene editor, taking advantage of its support for custom commands and fields to control things like talking, giving the player dice and money, starting duels, and controlling player progression through the story.

When a cutscene ends, its final command is to either start a duel or set the next cutscene in the story. In the latter case, there is an additional field for what to call the next cutscene, and what location it takes place. The cutscene is then added to the player's save file, and when they visit the city locations are greyed out until they have at least one action to do there. Each location has a dynamically populated action wheel with a custom range of acceptable angles.

The dice shop is dynamically populated by a list of dice available to the player, which can be changed during cutscenes, and is checked against the dice owned by the player to generate sold-out indicators. On the left, the player can choose to filter the options down to a single dice effect, which also updates the "Buy All" button to buy only all the dice in the current filter.

The inventory works most the same as the shop, but for equipping dice. It also allows you to drag individual dice or entire sets to the equipped dice glyph. While dragging it will highlight all the slots the new dice will be equipped into.

The dice rolling uses the physics engine and detects once the dice have stopped moving, then determines which side is face up based on which of the normals is closest to straight up. It flags the die as cocked if that smallest angle is above a threshold. The dice sink into the table when not rolling to not interfere with any dice that are rolling.

During certain events like winning the game or having the face of a die broken, the players' portraits will flash an emotion for a second. After winning, a random living die from the winning player is chosen to play their "finisher move", a flashy and dramatic effect to end the game. Shown is the arcane mechana's finisher, "Missile Storm".

After development stopped, the project became Open Source - check it out here

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Babble Buds

Tags: My Projects

Download it here

Dice Armor is a game that started development as a semester-long project by a team of nine: a producer, a creative director, a narrative writer, an artist, two programmers, and 3 game designers. The information here is about my contributions as the lead programmer over the semester because I can show off stuff like the editor scripts I wrote. I was doing everything from interface coding, editor scripts, integrating Babble Buds, and of course, everything related to the gameplay itself. To date I'm still the lead programmer for the game; for more up-to-date information on the current state of the game please visit the official site.

The build available here was created for showing off at the end of the semester, and as such has some buttons present to make the game easier to skip parts of the game to see all the content: You start with all the dice in the game already in the shop, there's a button to give yourself free money to buy these dice with, and in the duel, there are buttons to force a win or a loss, which can be used to skip the tutorial (not recommended for first-time players).

Dice Armor is a dice dueling game. Players can use abilities, flip dice, and attack each other to win in a dice game that puts chance into the hands of the players. This is what the dueling scene looks like, with a tutorial cutscene happening on top to guide the player through the basics. Also, all the dice are constructed dynamically, using quaternion math to figure out the placement of each component relative to the face it is going on. The die in the middle has one of the player' and opponents' portraits on each of its sides.

For many of the objects I've created, I've made scriptable objects so that game designers can add and modify them easily. Additionally, I would create custom inspectors for the objects to help make them as easy to understand and edit as possible. The opponent's artificial intelligence is made up of many strategies, in a prioritized list. When it is the opponents' turn they go through each strategy and check if they can be run, and if so then the opponent performs the strategy and starts back over at the top of the list of strategies. The + sign under the list of strategies opens an organized dropdown of all the various strategies.

In addition to custom inspector code, I've created new tools for the editor for our game designers to use. This is a duel simulator that will take two opponents and simulate an arbitrary number of duels between them, and output the results and summarize them for you, much much quicker than manually going through the duels, even with an absurdly high timeScale. This will become incredibly useful in making balance changes and testing new dice against existing sets. This is a screenshot of it in edit mode, but in play mode it removes the "Dueling Managers" field and will use whatever the current duel balance settings are, allowing for the GDs to test freely in play mode without worrying about undoing all their changes afterward.

I created the Babble Buds puppet editor and ported the rendering library I wrote for it to C# so it could be used in Unity. Dice Armor has a full campaign using cutscenes made using the Babble Buds cutscene editor, taking advantage of its support for custom commands and fields to control things like talking, giving the player dice and money, starting duels, and controlling player progression through the story.

When a cutscene ends, its final command is to either start a duel or set the next cutscene in the story. In the latter case, there is an additional field for what to call the next cutscene, and what location it takes place. The cutscene is then added to the player's save file, and when they visit the city locations are greyed out until they have at least one action to do there. Each location has a dynamically populated action wheel with a custom range of acceptable angles.

The dice shop is dynamically populated by a list of dice available to the player, which can be changed during cutscenes, and is checked against the dice owned by the player to generate sold-out indicators. On the left, the player can choose to filter the options down to a single dice effect, which also updates the "Buy All" button to buy only all the dice in the current filter.

The inventory works most the same as the shop, but for equipping dice. It also allows you to drag individual dice or entire sets to the equipped dice glyph. While dragging it will highlight all the slots the new dice will be equipped into.

The dice rolling uses the physics engine and detects once the dice have stopped moving, then determines which side is face up based on which of the normals is closest to straight up. It flags the die as cocked if that smallest angle is above a threshold. The dice sink into the table when not rolling to not interfere with any dice that are rolling.

During certain events like winning the game or having the face of a die broken, the players' portraits will flash an emotion for a second. After winning, a random living die from the winning player is chosen to play their "finisher move", a flashy and dramatic effect to end the game. Shown is the arcane mechana's finisher, "Missile Storm".

After development stopped, the project became Open Source - check it out here

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/digital-gardens/index.html b/garden/digital-gardens/index.html index fe3eedeb..8b0b87d1 100644 --- a/garden/digital-gardens/index.html +++ b/garden/digital-gardens/index.html @@ -6,12 +6,12 @@ Digital Gardens | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Digital Gardens

67 words, ~0 minute read. Planted +

Skip to content

Digital Gardens

67 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Chronological, Commune, Garden-RSS, The Cozy Web, The Small Web

Digital Gardens are Freeform collections of information made by an individual or community

This Knowledge Hub is a digital garden

Collections of digital gardens and resources for creating them:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Chronological, Commune, Garden-RSS, The Cozy Web, The Small Web

Digital Gardens are Freeform collections of information made by an individual or community

This Knowledge Hub is a digital garden

Collections of digital gardens and resources for creating them:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/federated-identity/index.html b/garden/federated-identity/index.html index 4ccac539..7426b6a9 100644 --- a/garden/federated-identity/index.html +++ b/garden/federated-identity/index.html @@ -6,12 +6,12 @@ Federated Identity | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Federated Identity

68 words, ~0 minute read. Planted +

Skip to content

Federated Identity

68 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Commune, Fedi v2, Weird

Tags: Decentralized

Allow for validating one's identity without relying on a specific centralized server

Implementations:

Self hosted identity providers are NOT enough to be considered federated identity

  • OIDC and OAuth require the service owner to have pre-configured with explicitly allowed identity providers

Incremental Social uses Zitadel which does NOT support IndieAuth and probably won't

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Commune, Fedi v2, Weird

Tags: Decentralized

Allow for validating one's identity without relying on a specific centralized server

Implementations:

Self hosted identity providers are NOT enough to be considered federated identity

  • OIDC and OAuth require the service owner to have pre-configured with explicitly allowed identity providers

Incremental Social uses Zitadel which does NOT support IndieAuth and probably won't

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/fedi-v2/index.html b/garden/fedi-v2/index.html index a059bef8..05ac6361 100644 --- a/garden/fedi-v2/index.html +++ b/garden/fedi-v2/index.html @@ -6,12 +6,12 @@ Fedi v2 | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Fedi v2

1274 words, ~7 minute read. Planted +

Skip to content

Fedi v2

1274 words, ~7 minute read. Planted . Last tended to -.


Referenced by: Social Media, Weird

A placeholder name for a theoretical new federated network that is client-centric, in contrast to the server-centric Fediverse

There are further discussions about actually implementing all this within the Weird community

Inspiration

  • A Plan for Social Media - Rethinking Federation
    • This article doesn't address many implementation details:
      • If the server is a relay, can content not be viewed anonymously?
      • How to handle storing large amounts of data on every client?
      • Don't you still need to associate with a server for people to direct their messages to?
  • Single-user Mastodon Instance is a Bad Idea
    • Focuses on the non-feasibility of self hosting, contributing to Federated Social Media not actually having all the upsides it should theoretically have by virtue of being Decentralized
  • The Commune community
  • Existing protocols:
    • Nostr
      • Currently suffers a culture problem by being associated with alt right and crypto users, making broad adoption more difficult
    • ATProto
      • Focused on a few large instances, to be run by large corporations. Still requires associating your identity with a server you don't own
  • A lot of these ideas are learned lessons from the usenet days

Identity

  • Federated Identity
  • Private and public keys anyone can create and store how they want
    • Fully free to create and store with no server dependencies
  • Profile information
    • Sent as a signed message through all the relays
    • How would you trust a username?
      • Petnames could be used to display human readable names via contacts or decentralized "naming hubs"
      • In most conversations online, you can trust their display name and add them as a contact as that display name
        • You only need to verify they are the same person you interacted with previously
        • You only need to trust people you want to send money to or otherwise "important identities"
        • For important identities, you can trust your contacts forming a chain of trust, or a authoritative naming hub
          • E.g. a white house ran naming hub that verifies the identities of the president and people of Congress
          • People typically wouldn't reach out to a naming hub, as it's not typically necessary
        • Contacts supercede naming hubs, so if a naming hub is breached, anyone I've previously added as a contact is still the source of truth
          • This only fails if the private key itself was breached
        • I'm just thepaperpilot, my display name. For most online communication, this is sufficient
          • My website can have a nameserver saying this publickey is the same as the site owner
          • If I write a paper at a scientific journal, they can say the author of x paper is my publickey
  • How to handle losing your private key
    • If you do have a naming hub you can verify with, they can say the identity has a new publickey
    • Contacts can "vouch" for a identity having a new publickey
    • Clients can decide to trust the new publickey based on contacts and naming hubs saying to
    • Also applies to stolen or compromised keys

Servers

  • Act as relays, merely storing messages and sending them to any clients or servers that have subscribed
  • May decide to publicly display messages its received
    • These servers are how discovery would work
    • Different servers may offer unique displays, filters, etc.
  • Users can send their content to any server - no authentication or account required, as the identity suffices
    • Even replies can work this way - no need to know from where a given message originated
  • Private servers could require some password when sending messages or subscribing to things
    • Useful for a school or other entity that wants an internal social network
  • Different ways to subscribe to a server's messages
    • All messages the relay hears about (new relays essentially subscribe like this to some existing relay)
    • All messages from a specific poster ID
    • Any replies to a message created with a specific poster ID
    • Shallow subscriptions, to lighten the load when subscribing to communities

Content

  • Protocol should dictate how to convey text, image, audio, video, and binary content
  • Protocol should include reacting to content with arbitrary text, including a URL
    • Upvotes and downvotes are implemented with this system
  • Each message contains fields for the poster's ID (public key) and a signature that verifies the content was made by that poster
    • That signature serves as an ID for the message itself
      • Anything can be replied to using the ID as the "parent" property in a new post
  • Edits are handled as replies with some flag to indicate it's updating the parent messages' content
    • Naturally, this reply would only be respected if it matches the same creator ID
    • Servers should replace the original message entirely with this one and indicate its an edited message
      • Some servers will inevitably keep a full history though
  • Groups/communities are just specially flagged messages
    • Posting to a community is just replying to that message
    • Subscribing to a community is just subscribing to that message
    • The original message creator effectively owns the group
  • IndieWeb pages could publish these messages as well, effectively serving as clients within the network
    • Perhaps use a bit to actually send those messages to other relays within the network

Moderation

  • In general, edits and delete requests are made by replying with a specially flagged message
  • Edit and deletion messages are ignored unless they have the correct public key and signature
    • Parent messages form a hierarchy of permission - if someone replies to your message, you can send a delete request for that message
    • Relay owners cannot fully delete messages, but can choose to stop relaying replies etc. of messages as the server owner wishes
  • Posts can be publicly reported with a specially flagged reply
    • How to make anonymous reports?
  • Users can send deletion or edit messages even without a matching public key, and clients (or relays) can choose to respect those messages if that public key is whitelisted as a moderator
    • Messages (and by extension, groups) can have replies granting or removing permission to other public IDs at that hierarchy level
    • People can setup accounts with their desired heuristic for sending delete messages, such as looking at public reports or analyzing the content with AI
      • This way clients can effectively customize their preferred moderation
  • Clients can also choose to add additional rules for hiding content, such as any reports by followed users
  • Perhaps delete messages pull double duty as public reports in and of themselves?

Problems to solve

  • No anonymity
    • All upvotes, downvotes, etc. are linked to your public key
    • Perhaps a client could generate new keypairs for every action for anonymity, but then it'd be hard to determine if such an account and action was a genuine user or a bot
  • Servers could probably determine the identity of clients sending their messages to them
    • A client that only ever sends messages with a specific public key is unlikely to be a server
    • A client that doesn't subscribe to all messages is unlikely to be a server
    • Perhaps clients and servers can be identified as such, and subscribing to new messages is something you only do to servers, not clients
  • Illegal material will likely be placed on the hard drive at least temporarily
    • Messages will be downloaded and, even if you follow a moderator bot that looks for illegal material, there's likely to be a delay between receiving the initial message and receiving the bots delete message
  • You have to download all spam messages
    • For redundancy, you'd likely subscribe to multiple relay servers
    • You cannot trust several relay servers to have identical rules on not relaying messages that don't pass whatever moderation heuristic
    • Therefore, the filtering out of spam has to be done by the client, after downloading it all
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Social Media, Weird

A placeholder name for a theoretical new federated network that is client-centric, in contrast to the server-centric Fediverse

There are further discussions about actually implementing all this within the Weird community

Inspiration

  • A Plan for Social Media - Rethinking Federation
    • This article doesn't address many implementation details:
      • If the server is a relay, can content not be viewed anonymously?
      • How to handle storing large amounts of data on every client?
      • Don't you still need to associate with a server for people to direct their messages to?
  • Single-user Mastodon Instance is a Bad Idea
    • Focuses on the non-feasibility of self hosting, contributing to Federated Social Media not actually having all the upsides it should theoretically have by virtue of being Decentralized
  • The Commune community
  • Existing protocols:
    • Nostr
      • Currently suffers a culture problem by being associated with alt right and crypto users, making broad adoption more difficult
    • ATProto
      • Focused on a few large instances, to be run by large corporations. Still requires associating your identity with a server you don't own
  • A lot of these ideas are learned lessons from the usenet days

Identity

  • Federated Identity
  • Private and public keys anyone can create and store how they want
    • Fully free to create and store with no server dependencies
  • Profile information
    • Sent as a signed message through all the relays
    • How would you trust a username?
      • Petnames could be used to display human readable names via contacts or decentralized "naming hubs"
      • In most conversations online, you can trust their display name and add them as a contact as that display name
        • You only need to verify they are the same person you interacted with previously
        • You only need to trust people you want to send money to or otherwise "important identities"
        • For important identities, you can trust your contacts forming a chain of trust, or a authoritative naming hub
          • E.g. a white house ran naming hub that verifies the identities of the president and people of Congress
          • People typically wouldn't reach out to a naming hub, as it's not typically necessary
        • Contacts supercede naming hubs, so if a naming hub is breached, anyone I've previously added as a contact is still the source of truth
          • This only fails if the private key itself was breached
        • I'm just thepaperpilot, my display name. For most online communication, this is sufficient
          • My website can have a nameserver saying this publickey is the same as the site owner
          • If I write a paper at a scientific journal, they can say the author of x paper is my publickey
  • How to handle losing your private key
    • If you do have a naming hub you can verify with, they can say the identity has a new publickey
    • Contacts can "vouch" for a identity having a new publickey
    • Clients can decide to trust the new publickey based on contacts and naming hubs saying to
    • Also applies to stolen or compromised keys

Servers

  • Act as relays, merely storing messages and sending them to any clients or servers that have subscribed
  • May decide to publicly display messages its received
    • These servers are how discovery would work
    • Different servers may offer unique displays, filters, etc.
  • Users can send their content to any server - no authentication or account required, as the identity suffices
    • Even replies can work this way - no need to know from where a given message originated
  • Private servers could require some password when sending messages or subscribing to things
    • Useful for a school or other entity that wants an internal social network
  • Different ways to subscribe to a server's messages
    • All messages the relay hears about (new relays essentially subscribe like this to some existing relay)
    • All messages from a specific poster ID
    • Any replies to a message created with a specific poster ID
    • Shallow subscriptions, to lighten the load when subscribing to communities

Content

  • Protocol should dictate how to convey text, image, audio, video, and binary content
  • Protocol should include reacting to content with arbitrary text, including a URL
    • Upvotes and downvotes are implemented with this system
  • Each message contains fields for the poster's ID (public key) and a signature that verifies the content was made by that poster
    • That signature serves as an ID for the message itself
      • Anything can be replied to using the ID as the "parent" property in a new post
  • Edits are handled as replies with some flag to indicate it's updating the parent messages' content
    • Naturally, this reply would only be respected if it matches the same creator ID
    • Servers should replace the original message entirely with this one and indicate its an edited message
      • Some servers will inevitably keep a full history though
  • Groups/communities are just specially flagged messages
    • Posting to a community is just replying to that message
    • Subscribing to a community is just subscribing to that message
    • The original message creator effectively owns the group
  • IndieWeb pages could publish these messages as well, effectively serving as clients within the network
    • Perhaps use a bit to actually send those messages to other relays within the network

Moderation

  • In general, edits and delete requests are made by replying with a specially flagged message
  • Edit and deletion messages are ignored unless they have the correct public key and signature
    • Parent messages form a hierarchy of permission - if someone replies to your message, you can send a delete request for that message
    • Relay owners cannot fully delete messages, but can choose to stop relaying replies etc. of messages as the server owner wishes
  • Posts can be publicly reported with a specially flagged reply
    • How to make anonymous reports?
  • Users can send deletion or edit messages even without a matching public key, and clients (or relays) can choose to respect those messages if that public key is whitelisted as a moderator
    • Messages (and by extension, groups) can have replies granting or removing permission to other public IDs at that hierarchy level
    • People can setup accounts with their desired heuristic for sending delete messages, such as looking at public reports or analyzing the content with AI
      • This way clients can effectively customize their preferred moderation
  • Clients can also choose to add additional rules for hiding content, such as any reports by followed users
  • Perhaps delete messages pull double duty as public reports in and of themselves?

Problems to solve

  • No anonymity
    • All upvotes, downvotes, etc. are linked to your public key
    • Perhaps a client could generate new keypairs for every action for anonymity, but then it'd be hard to determine if such an account and action was a genuine user or a bot
  • Servers could probably determine the identity of clients sending their messages to them
    • A client that only ever sends messages with a specific public key is unlikely to be a server
    • A client that doesn't subscribe to all messages is unlikely to be a server
    • Perhaps clients and servers can be identified as such, and subscribing to new messages is something you only do to servers, not clients
  • Illegal material will likely be placed on the hard drive at least temporarily
    • Messages will be downloaded and, even if you follow a moderator bot that looks for illegal material, there's likely to be a delay between receiving the initial message and receiving the bots delete message
  • You have to download all spam messages
    • For redundancy, you'd likely subscribe to multiple relay servers
    • You cannot trust several relay servers to have identical rules on not relaying messages that don't pass whatever moderation heuristic
    • Therefore, the filtering out of spam has to be done by the client, after downloading it all
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/fediverse/index.html b/garden/fediverse/index.html index ecb8f050..a12bbe5b 100644 --- a/garden/fediverse/index.html +++ b/garden/fediverse/index.html @@ -6,12 +6,12 @@ Fediverse | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Fediverse

29 words, ~0 minute read. Planted +

Skip to content

Fediverse

29 words, ~0 minute read. Planted . Last tended to -.


Referenced by: ATProto, Decentralized, Fedi v2, Incremental Social, Mbin, Weird

Tags: Decentralized

A collection of Social Media websites that can all talk to each other by virtue of a shared protocol

Typically refers to sites implementing ActivityPub

Implementations:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: ATProto, Decentralized, Fedi v2, Incremental Social, Mbin, Weird

Tags: Decentralized

A collection of Social Media websites that can all talk to each other by virtue of a shared protocol

Typically refers to sites implementing ActivityPub

Implementations:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/forgejo/index.html b/garden/forgejo/index.html index d476af23..93f5e470 100644 --- a/garden/forgejo/index.html +++ b/garden/forgejo/index.html @@ -6,12 +6,12 @@ Forgejo | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Forgejo

5 words, ~0 minute read. Planted +

Skip to content

Forgejo

5 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Incremental Social

Forgejo is an Open Source code repository hosting software

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Incremental Social

Forgejo is an Open Source code repository hosting software

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/freeform-vs-chronological-dichotomy/index.html b/garden/freeform-vs-chronological-dichotomy/index.html index 63d99235..26bed54d 100644 --- a/garden/freeform-vs-chronological-dichotomy/index.html +++ b/garden/freeform-vs-chronological-dichotomy/index.html @@ -6,12 +6,12 @@ Freeform vs Chronological Dichotomy | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Freeform vs Chronological Dichotomy

10 words, ~0 minute read. Planted +

Skip to content

Freeform vs Chronological Dichotomy

10 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Chronological, Freeform

Describes a dichotomy between displaying information in a Freeform vs Chronological manner

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Chronological, Freeform

Describes a dichotomy between displaying information in a Freeform vs Chronological manner

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/freeform/index.html b/garden/freeform/index.html index 6b66c6a8..31faf6e2 100644 --- a/garden/freeform/index.html +++ b/garden/freeform/index.html @@ -6,12 +6,12 @@ Freeform | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Freeform

46 words, ~0 minute read. Planted +

Skip to content

Freeform

46 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Commune, Digital Gardens, Freeform vs Chronological Dichotomy, Garden-RSS, The Small Web

A collection of information that is not tied to when it was created or edited

Part of the Freeform vs Chronological Dichotomy

Anything wiki-style is considered freeform

  • A collection of living documents

Garden-RSS, a theoretical alternative to RSS that's better for freeform content

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Commune, Digital Gardens, Freeform vs Chronological Dichotomy, Garden-RSS, The Small Web

A collection of information that is not tied to when it was created or edited

Part of the Freeform vs Chronological Dichotomy

Anything wiki-style is considered freeform

  • A collection of living documents

Garden-RSS, a theoretical alternative to RSS that's better for freeform content

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/game-dev-tree/index.html b/garden/game-dev-tree/index.html index 5a30501b..50d595dd 100644 --- a/garden/game-dev-tree/index.html +++ b/garden/game-dev-tree/index.html @@ -6,12 +6,12 @@ Game Dev Tree | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Game Dev Tree

34 words, ~0 minute read. Planted +

Skip to content

Game Dev Tree

34 words, ~0 minute read. Planted . Last tended to -.


Tags: My Projects

Play it here!

My first (good) incremental game! (My actual first was Shape Tycoon - I don't recommend it!)

It's Open Source!

The TV Tropes page on this game mentions some of the cool things about this game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: My Projects

Play it here!

My first (good) incremental game! (My actual first was Shape Tycoon - I don't recommend it!)

It's Open Source!

The TV Tropes page on this game mentions some of the cool things about this game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/garden-rss/index.html b/garden/garden-rss/index.html index 3a94ad0c..89bf9b38 100644 --- a/garden/garden-rss/index.html +++ b/garden/garden-rss/index.html @@ -6,12 +6,12 @@ Garden-RSS | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Garden-RSS

59 words, ~0 minute read. Planted +

Skip to content

Garden-RSS

59 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Freeform, The Small Web, This Knowledge Hub

A theoretical alternative to RSS that's better for Freeform websites (and Digital Gardens specifically )

Why is it useful?

How should it work?

  • Could display changes similar to git diffs

Existing Work

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Freeform, The Small Web, This Knowledge Hub

A theoretical alternative to RSS that's better for Freeform websites (and Digital Gardens specifically )

Why is it useful?

How should it work?

  • Could display changes similar to git diffs

Existing Work

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/guide-to-incrementals/appeal-to-developers/index.html b/garden/guide-to-incrementals/appeal-to-developers/index.html index e061dec7..f7f44c7f 100644 --- a/garden/guide-to-incrementals/appeal-to-developers/index.html +++ b/garden/guide-to-incrementals/appeal-to-developers/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Appeal to Developers | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Appeal to Developers

636 words, ~3 minute read. Planted +

Skip to content

Guide to Incrementals/Appeal to Developers

636 words, ~3 minute read. Planted . Last tended to -.


There are a lot of developers in the incremental games community - the genre seems to draw them in, and convert a lot of players into developers. Let's explore the reasons why this genre appeals to developers.

Incrementals are Easy to Make

Compared to other genres, incrementals have quite low expectations. You don't need to make fancy art, or music, or lay things out nicely. If you can make a button and learn the few lines of code necessary to make a number go up, you can make an incremental. This low threshold makes the genre perfect for those who are actively learning to code and haven't developed any gamedev-related skills yet.

Additionally, unlike other genres incrementals are uniquely easy to implement in a normal web page - no need to worry about rendering sprites, moving them around, implementing physics, etc. New developers can just use HTML to add a button, and the game is now available in your browser. You don't need to choose an engine, have admin privileges, or hell for the dedicated you don't even need a computer - there are tools for web development that run in the browser itself, so you can technically use your phone if that's all you have.

Javascript is a perfectly viable language for making web games, whereas other genres are typically going to require using other more difficult languages to learn. There are countless javascript tutorials that start from 0 knowledge of programming, making it incredibly accessible to beginners.

Players are Easy to Find

Once you've finished your game and uploaded it on github pages or itch or just copied the link if you're using glitch or replit (all of which are easy to do), anyone can now play the game in their browser. This low barrier to entry has shown tremendous success in getting completely unknown developers to have thousands of plays.

The incremental games community, which mostly centers around r/incremental_games, is always looking for new games and tends to flood any new ones posted with initial players.

Having your games be played can be incredibly motivating, and the community makes it quite clear that you can expect players to play your game. These communities - both for incremental games in general as well as game-specific communities - tend to be very developer friendly as well. A lot of the developers know each other, and welcome new developers with open arms, often with dedicated channels for programming help and discussions.

Monetization

I'd like to clarify that everything I've said above mainly applies to web-based incrementals. Incremental games are also incredibly popular on mobile, but with a much different culture and community. Many mobile gamers will still participate in the web-focused community for the culture. This web-focused community has a culture that has been criticized for being "anti-monetization". Ads, IAPs, and similar forms of monetization are often criticized, mainly due to the abundance of completely non-monetized games available from hobbyist developers. There are exceptions, like paid games often being considered fine, like Increlution or Stuck in Time, or donation ware games like kittens game, but even popular games that have IAP see some level of regular criticism, like NGU Idle, Idle Skilling, or Idle Pins. A large part of this can be explained by the community being hyper-aware of the addictive) nature of this genre and its susceptibility to exploiting players.

On mobile, however, monetization is the norm and expected. If an incremental game is available on mobile, it almost certainly will be monetized, and mobile players are aware and accepting of that. Mobile incremental games, due to their addictive nature, tend to make a lot of money. It's very lucrative, and therefore these games are quite abundant on mobile storefronts.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


There are a lot of developers in the incremental games community - the genre seems to draw them in, and convert a lot of players into developers. Let's explore the reasons why this genre appeals to developers.

Incrementals are Easy to Make

Compared to other genres, incrementals have quite low expectations. You don't need to make fancy art, or music, or lay things out nicely. If you can make a button and learn the few lines of code necessary to make a number go up, you can make an incremental. This low threshold makes the genre perfect for those who are actively learning to code and haven't developed any gamedev-related skills yet.

Additionally, unlike other genres incrementals are uniquely easy to implement in a normal web page - no need to worry about rendering sprites, moving them around, implementing physics, etc. New developers can just use HTML to add a button, and the game is now available in your browser. You don't need to choose an engine, have admin privileges, or hell for the dedicated you don't even need a computer - there are tools for web development that run in the browser itself, so you can technically use your phone if that's all you have.

Javascript is a perfectly viable language for making web games, whereas other genres are typically going to require using other more difficult languages to learn. There are countless javascript tutorials that start from 0 knowledge of programming, making it incredibly accessible to beginners.

Players are Easy to Find

Once you've finished your game and uploaded it on github pages or itch or just copied the link if you're using glitch or replit (all of which are easy to do), anyone can now play the game in their browser. This low barrier to entry has shown tremendous success in getting completely unknown developers to have thousands of plays.

The incremental games community, which mostly centers around r/incremental_games, is always looking for new games and tends to flood any new ones posted with initial players.

Having your games be played can be incredibly motivating, and the community makes it quite clear that you can expect players to play your game. These communities - both for incremental games in general as well as game-specific communities - tend to be very developer friendly as well. A lot of the developers know each other, and welcome new developers with open arms, often with dedicated channels for programming help and discussions.

Monetization

I'd like to clarify that everything I've said above mainly applies to web-based incrementals. Incremental games are also incredibly popular on mobile, but with a much different culture and community. Many mobile gamers will still participate in the web-focused community for the culture. This web-focused community has a culture that has been criticized for being "anti-monetization". Ads, IAPs, and similar forms of monetization are often criticized, mainly due to the abundance of completely non-monetized games available from hobbyist developers. There are exceptions, like paid games often being considered fine, like Increlution or Stuck in Time, or donation ware games like kittens game, but even popular games that have IAP see some level of regular criticism, like NGU Idle, Idle Skilling, or Idle Pins. A large part of this can be explained by the community being hyper-aware of the addictive) nature of this genre and its susceptibility to exploiting players.

On mobile, however, monetization is the norm and expected. If an incremental game is available on mobile, it almost certainly will be monetized, and mobile players are aware and accepting of that. Mobile incremental games, due to their addictive nature, tend to make a lot of money. It's very lucrative, and therefore these games are quite abundant on mobile storefronts.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/guide-to-incrementals/appeal-to-players/index.html b/garden/guide-to-incrementals/appeal-to-players/index.html index cc8d542f..249a9582 100644 --- a/garden/guide-to-incrementals/appeal-to-players/index.html +++ b/garden/guide-to-incrementals/appeal-to-players/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Appeal to Players | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Appeal to Players

2400 words, ~13 minute read. Planted +

Skip to content

Guide to Incrementals/Appeal to Players

2400 words, ~13 minute read. Planted . Last tended to -.


This is something that has been discussed and analyzed by many people, and to some extent, I feel like everything that can be said on the topic already has. However, a lot of these analyses are from the perspective of those with not as much experience and involvement within the genre as I'd argue would be necessary for a fully contextualized answer. I recently watched a video about Vampire Survivors, which has since been taken down due to drawing negative attention, which made me think about some interesting arguments about what games are, and what makes them good. The video's argument that "Vampire Survivors is not a video game" mirrors a claim by the developer of Cookie Clicker that his games are "non-games". Using Vampire Survivors and the video made on it as a framework, I'll be answering why incremental games appeal to players. Since the video has been taken down, I'll do my best to contextualize and generalize the arguments of the video without requiring the reader to watch it. For what it's worth, while I disagreed with the video I actually liked a lot of the way it went about thinking about games, and I consider this a continuation of that discussion.

Numbers Going Up

This is a very common response to why people enjoy incremental games, although it's not one I find compels me personally, and I suspect it might be a stand-in for progression) or Guide to Incrementals/What is Content?. But reportedly, some people do just like seeing big numbers. I must reiterate I suspect the actual cause is seeing big numbers in context though - if you start at 1e1000 of a currency and get to 1e1001, that isn't going to feel as satisfying as going from 1e10 to 1e100, and in any case, I don't think a button that just adds a zero to your number will feel quite satisfying - I believe its the sense of having made progress, and comparing where you are to where you started and feeling like you've earned your way here that is enjoyable.

Progression

Vampire Survivors can be argued to have a comparatively low depth to its combat compared to many other games. I'd argue it has sufficient depth and more than someone might expect who has only played the game for a short while, but it still definitely gets beat out by many other combat-focused games. Instead, a lot of the progression in Vampire Survivors comes from a meta-progression system by which base stats are increased by spending a currency that persists between runs. While it is technically possible to win without this meta-progression system, and indeed in many roguelikes players like to challenge themselves by beating the game without any meta-progression, the criticism can be made that meta-progression de-emphasizes player skill by making it less important to have to beat the game. Certainly, in incremental games, it is often literally impossible to complete a game without taking advantage of the meta-progression systems. I'd argue this does not detract from the game, however, and is actually a part of what makes incremental games, and roguelikes, enjoyable to many players: meta-progression augments the increases in skill the player is naturally gaining as they play. In effect, it's not replacing the skill increase, but exaggerating it to make it feel more real to the player.

Note: There is also a lot of progression from exploring the mechanics and discovering synergies, unlocking new weapons or playable characters, etc. That just isn't as relevant to this discussion, but it does make up a lot of the appeal of the game.

Effortlessness

Incremental games are so easy, a lot of them even have you progress while you're not playing! Part of the appeal is being able to feel like you're making progress while doing something actually productive - multitasking, in a way. In this sense, the game is more of a fidget toy - not something to think hard about and play actively, but something to click a few buttons every so often while you're paying attention to a lecture or studying or working. Of course, not all incremental games lend themselves to being played this way - it's specifically "idle" games that work like this. These are games that take an incredibly long amount of time to see all the content, stretching it as thin as possible, but they aren't expecting you to be sitting at your device playing it the entire time. They expect you to leave and come back later to make a bit of progress and repeat the cycle.

If you look at the higher-level play of most games, you'll see them perform difficult feats with ease and speed. They'll achieve a "flow state" that takes all their knowledge and experience of the game and uses it to play the game as instinctively as possible. It's incredible to watch things like Slay the Spire speed runs or competitive DDR-likes. I'd argue the goal of a lot of games with a competitive scene is to get so good that the game becomes effortless. In that sense, a game that allows you to reach that point earlier isn't any less legitimate, but rather lowers the barrier to entry by allowing more people to get "really good" at the game. And to be clear, Vampire Survivors and (most) incremental games aren't trivially easy - they, and to an extent, every game will have some level of learning and improvement over time.

Addiction

A lot of these reasons for why incremental games appeal may have reminded you of why gambling appeals to people, particularly those prone to addiction. Indeed, incremental games are quite often criticized for their similarity to a skinner box. Some have gone as far as to say incremental games as a genre are commenting that all games are skinner boxes). The argument goes that some games are not fun, but rather condition players into continuing to play without actually getting anything from the experience. When tied to real-world money this is seen as predatory, and to a lesser extent, even free games may be feeding the addictive sides of people and making them more prone to seek out gambling or micro-transaction heavy games.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

Since incremental games are often built on extrinsic motivations in the form of progression systems, it's hard to argue whether players continue to play because they are enjoying the gameplay, or if they are just conditioned to keep doing it because the game keeps rewarding them. Unfortunately, it can often feel like it's the latter, as there isn't typically anything compelling about the "gameplay" of clicking a button and waiting. There may be a significant overlap between those who enjoy incremental games and those who are most prone to addiction, and there are often posts on r/incremental_games about someone either struggling with or overcoming video game addiction.

Strategy

Incremental games could be considered a subset of strategy games), and inherit the appeals of strategy games. This includes the appeal of feeling like you've found a good solution to a puzzle, or that you're learning more about the game and are improving at making decisions within it. This applies to Vampire Survivors specifically, where you're learning about evolutions and synergies and what kinds of enemies can spawn under what conditions, and how best to handle them.

Note that strategy games are not all the same difficulty, as well. Vampire Survivors is still easier to play than Starcraft 2, and Cookie Clicker is probably somewhere in between (once you progress sufficiently). Vampire Survivors being so successful may indicate that "easier" strategies may have their separate appeal to harder strategy games - players like to feel smart and that they figured the game out and have optimized or mastered it, and the game being easier doesn't detract from that sense of accomplishment as much as it allows more and more users to be able to reach the point where they gain that sense.

Avoiding Staleness

Incremental games tend to have "paradigm shifts", where the gameplay changes in a meaningful way at various times throughout the progression of the game. These upset and change the gameplay loop, which helps keep them from stagnating. This constant "freshness" to the gameplay can keep players engaged for longer, compared to a game with a repetitive and static gameplay loop.

Good Game Design

Incremental games tend to show their game design "plainly", so it's more readily apparent if a game has good game design while playing, even if you're not looking for it. While different players have different preferences and might enjoy different types of games more than others, there are underlying good and bad game design principles that players will notice the effects of. To be clear, this isn't talking about stuff like big numbers being enjoyable, where I can comfortably agree to disagree with other players. They don't intrinsically make my experience better, but I'm aware of those for whom it does and I won't argue against their feelings. However, the game designer in me does feel like there are some extremely clear-cut examples of good and bad game design philosophies.

Let's start by giving an example of a mechanic I think can be easily and strongly argued is good game design. There are of course many examples, but a personal favorite of mine is how DOOM encourages aggressive gameplay by linking health drops to melee attacks. It has an intended experience it's trying to give the player - immersing themselves as DOOM guy, who would not hide behind cover when low on health - and this mechanic does a great job at encouraging and effectively teaching players to behave properly. This is in sharp contrast to shooters like Call of Duty, which have you regen health passively, encouraging players to hide behind cover and wait after getting hit. Note that I'm not arguing CoD is poorly designed, as the games have different intended experiences. I'm specifically praising DOOM for having a mechanic that does a good job at ensuring the player has that intended experience.

To contrast with an example I think is bad game design, let's talk about shields in souls-likes. This is a bit of a famous example, and I highly recommend this video essay which spends quite a good bit of time on this topic. Essentially, the argument boils down to players of earlier games in the souls games using shields too much - playing slowly, conservatively, and ultimately having less fun. Players wanted to feel safe, so they ended up playing in a way that ruined the experience for them. The developers solved this by removing shields, apart from an intentionally bad one effectively mocking the playstyle, and it did its job at getting players to play more aggressively, and often have more fun.

To bring the conversation back to incrementals, I'm incredibly opinionated on what makes a good incremental game, which I'll discuss in the game design section. Suffice it to say, incremental games rely more on good game design than other genres, due to not having much to distract from bad game design. This helps (although imperfectly - gamers are a bit too tolerant of bad game design!) well-designed games rise to the top within the genre.

Artistic Merit

The Vampire Survivors video made me think back to the old arguments about whether games are art, and whether they ought to be. The video seems preoccupied with attaching value to games solely based on their mechanics and the depth thereof, to the point of arguing Vampire Survivors is a waste of time due to its lack of depth. However, even setting aside the fact that if players are having fun then it's not time wasted, I think games can have artistic merit that supersedes the necessity of having (any / engaging / "deep") gameplay. I think the consensus online is that games are definitively art, although I could see the argument that some genres, like incremental games, might be a bit in a grey area. Let's talk about Vampire Survivors first though - It has a story to tell, with lore and many characters, that drive the player and encourage them to continue exploring the game and discovering things within it. Like any walking simulator, it is no less legitimate of a game or the "art" label because of any lack perceived lack of depth. For what it's worth, most art can be consumed with more ease than VS - any painting, movie, sculpture, etc.

A lot of incrementals have a narrative context that can similarly qualify them as art. Cookie Clicker is, as has been pointed out numerous times before, commenting on excess and increasing production beyond any reasonable limits - devolving into increasing production for its own sake. Indeed, a lot of incremental games are written to comment upon various concepts like capitalism or tropes in games, as discussed when defining Incrementals). However, I'd like to argue most incremental games are still art, even without any narrative context. "Art" as a concept is pretty nebulous already, but I personally like those who define it as an act of expression more than any physical result. The creator and the context within which they created the art, and any meaning they put into it, are all relevant and a part of the art itself. Most incremental games have artistic merit from things like why the creator made it, why they chose to make it an incremental game, and why they made any particular design decision. Hell, even if you play through an entire incremental game without a single thought or feeling, that very fact it elicited nothing can itself be artistic merit!

I'm not an art major, and I may be taking a somewhat extreme take on what is art and what has artistic merit, but I'd argue the overall point stands that games, and incremental games specifically, can have artistic merit, which appeals to many gamers.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


This is something that has been discussed and analyzed by many people, and to some extent, I feel like everything that can be said on the topic already has. However, a lot of these analyses are from the perspective of those with not as much experience and involvement within the genre as I'd argue would be necessary for a fully contextualized answer. I recently watched a video about Vampire Survivors, which has since been taken down due to drawing negative attention, which made me think about some interesting arguments about what games are, and what makes them good. The video's argument that "Vampire Survivors is not a video game" mirrors a claim by the developer of Cookie Clicker that his games are "non-games". Using Vampire Survivors and the video made on it as a framework, I'll be answering why incremental games appeal to players. Since the video has been taken down, I'll do my best to contextualize and generalize the arguments of the video without requiring the reader to watch it. For what it's worth, while I disagreed with the video I actually liked a lot of the way it went about thinking about games, and I consider this a continuation of that discussion.

Numbers Going Up

This is a very common response to why people enjoy incremental games, although it's not one I find compels me personally, and I suspect it might be a stand-in for progression) or Guide to Incrementals/What is Content?. But reportedly, some people do just like seeing big numbers. I must reiterate I suspect the actual cause is seeing big numbers in context though - if you start at 1e1000 of a currency and get to 1e1001, that isn't going to feel as satisfying as going from 1e10 to 1e100, and in any case, I don't think a button that just adds a zero to your number will feel quite satisfying - I believe its the sense of having made progress, and comparing where you are to where you started and feeling like you've earned your way here that is enjoyable.

Progression

Vampire Survivors can be argued to have a comparatively low depth to its combat compared to many other games. I'd argue it has sufficient depth and more than someone might expect who has only played the game for a short while, but it still definitely gets beat out by many other combat-focused games. Instead, a lot of the progression in Vampire Survivors comes from a meta-progression system by which base stats are increased by spending a currency that persists between runs. While it is technically possible to win without this meta-progression system, and indeed in many roguelikes players like to challenge themselves by beating the game without any meta-progression, the criticism can be made that meta-progression de-emphasizes player skill by making it less important to have to beat the game. Certainly, in incremental games, it is often literally impossible to complete a game without taking advantage of the meta-progression systems. I'd argue this does not detract from the game, however, and is actually a part of what makes incremental games, and roguelikes, enjoyable to many players: meta-progression augments the increases in skill the player is naturally gaining as they play. In effect, it's not replacing the skill increase, but exaggerating it to make it feel more real to the player.

Note: There is also a lot of progression from exploring the mechanics and discovering synergies, unlocking new weapons or playable characters, etc. That just isn't as relevant to this discussion, but it does make up a lot of the appeal of the game.

Effortlessness

Incremental games are so easy, a lot of them even have you progress while you're not playing! Part of the appeal is being able to feel like you're making progress while doing something actually productive - multitasking, in a way. In this sense, the game is more of a fidget toy - not something to think hard about and play actively, but something to click a few buttons every so often while you're paying attention to a lecture or studying or working. Of course, not all incremental games lend themselves to being played this way - it's specifically "idle" games that work like this. These are games that take an incredibly long amount of time to see all the content, stretching it as thin as possible, but they aren't expecting you to be sitting at your device playing it the entire time. They expect you to leave and come back later to make a bit of progress and repeat the cycle.

If you look at the higher-level play of most games, you'll see them perform difficult feats with ease and speed. They'll achieve a "flow state" that takes all their knowledge and experience of the game and uses it to play the game as instinctively as possible. It's incredible to watch things like Slay the Spire speed runs or competitive DDR-likes. I'd argue the goal of a lot of games with a competitive scene is to get so good that the game becomes effortless. In that sense, a game that allows you to reach that point earlier isn't any less legitimate, but rather lowers the barrier to entry by allowing more people to get "really good" at the game. And to be clear, Vampire Survivors and (most) incremental games aren't trivially easy - they, and to an extent, every game will have some level of learning and improvement over time.

Addiction

A lot of these reasons for why incremental games appeal may have reminded you of why gambling appeals to people, particularly those prone to addiction. Indeed, incremental games are quite often criticized for their similarity to a skinner box. Some have gone as far as to say incremental games as a genre are commenting that all games are skinner boxes). The argument goes that some games are not fun, but rather condition players into continuing to play without actually getting anything from the experience. When tied to real-world money this is seen as predatory, and to a lesser extent, even free games may be feeding the addictive sides of people and making them more prone to seek out gambling or micro-transaction heavy games.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

Since incremental games are often built on extrinsic motivations in the form of progression systems, it's hard to argue whether players continue to play because they are enjoying the gameplay, or if they are just conditioned to keep doing it because the game keeps rewarding them. Unfortunately, it can often feel like it's the latter, as there isn't typically anything compelling about the "gameplay" of clicking a button and waiting. There may be a significant overlap between those who enjoy incremental games and those who are most prone to addiction, and there are often posts on r/incremental_games about someone either struggling with or overcoming video game addiction.

Strategy

Incremental games could be considered a subset of strategy games), and inherit the appeals of strategy games. This includes the appeal of feeling like you've found a good solution to a puzzle, or that you're learning more about the game and are improving at making decisions within it. This applies to Vampire Survivors specifically, where you're learning about evolutions and synergies and what kinds of enemies can spawn under what conditions, and how best to handle them.

Note that strategy games are not all the same difficulty, as well. Vampire Survivors is still easier to play than Starcraft 2, and Cookie Clicker is probably somewhere in between (once you progress sufficiently). Vampire Survivors being so successful may indicate that "easier" strategies may have their separate appeal to harder strategy games - players like to feel smart and that they figured the game out and have optimized or mastered it, and the game being easier doesn't detract from that sense of accomplishment as much as it allows more and more users to be able to reach the point where they gain that sense.

Avoiding Staleness

Incremental games tend to have "paradigm shifts", where the gameplay changes in a meaningful way at various times throughout the progression of the game. These upset and change the gameplay loop, which helps keep them from stagnating. This constant "freshness" to the gameplay can keep players engaged for longer, compared to a game with a repetitive and static gameplay loop.

Good Game Design

Incremental games tend to show their game design "plainly", so it's more readily apparent if a game has good game design while playing, even if you're not looking for it. While different players have different preferences and might enjoy different types of games more than others, there are underlying good and bad game design principles that players will notice the effects of. To be clear, this isn't talking about stuff like big numbers being enjoyable, where I can comfortably agree to disagree with other players. They don't intrinsically make my experience better, but I'm aware of those for whom it does and I won't argue against their feelings. However, the game designer in me does feel like there are some extremely clear-cut examples of good and bad game design philosophies.

Let's start by giving an example of a mechanic I think can be easily and strongly argued is good game design. There are of course many examples, but a personal favorite of mine is how DOOM encourages aggressive gameplay by linking health drops to melee attacks. It has an intended experience it's trying to give the player - immersing themselves as DOOM guy, who would not hide behind cover when low on health - and this mechanic does a great job at encouraging and effectively teaching players to behave properly. This is in sharp contrast to shooters like Call of Duty, which have you regen health passively, encouraging players to hide behind cover and wait after getting hit. Note that I'm not arguing CoD is poorly designed, as the games have different intended experiences. I'm specifically praising DOOM for having a mechanic that does a good job at ensuring the player has that intended experience.

To contrast with an example I think is bad game design, let's talk about shields in souls-likes. This is a bit of a famous example, and I highly recommend this video essay which spends quite a good bit of time on this topic. Essentially, the argument boils down to players of earlier games in the souls games using shields too much - playing slowly, conservatively, and ultimately having less fun. Players wanted to feel safe, so they ended up playing in a way that ruined the experience for them. The developers solved this by removing shields, apart from an intentionally bad one effectively mocking the playstyle, and it did its job at getting players to play more aggressively, and often have more fun.

To bring the conversation back to incrementals, I'm incredibly opinionated on what makes a good incremental game, which I'll discuss in the game design section. Suffice it to say, incremental games rely more on good game design than other genres, due to not having much to distract from bad game design. This helps (although imperfectly - gamers are a bit too tolerant of bad game design!) well-designed games rise to the top within the genre.

Artistic Merit

The Vampire Survivors video made me think back to the old arguments about whether games are art, and whether they ought to be. The video seems preoccupied with attaching value to games solely based on their mechanics and the depth thereof, to the point of arguing Vampire Survivors is a waste of time due to its lack of depth. However, even setting aside the fact that if players are having fun then it's not time wasted, I think games can have artistic merit that supersedes the necessity of having (any / engaging / "deep") gameplay. I think the consensus online is that games are definitively art, although I could see the argument that some genres, like incremental games, might be a bit in a grey area. Let's talk about Vampire Survivors first though - It has a story to tell, with lore and many characters, that drive the player and encourage them to continue exploring the game and discovering things within it. Like any walking simulator, it is no less legitimate of a game or the "art" label because of any lack perceived lack of depth. For what it's worth, most art can be consumed with more ease than VS - any painting, movie, sculpture, etc.

A lot of incrementals have a narrative context that can similarly qualify them as art. Cookie Clicker is, as has been pointed out numerous times before, commenting on excess and increasing production beyond any reasonable limits - devolving into increasing production for its own sake. Indeed, a lot of incremental games are written to comment upon various concepts like capitalism or tropes in games, as discussed when defining Incrementals). However, I'd like to argue most incremental games are still art, even without any narrative context. "Art" as a concept is pretty nebulous already, but I personally like those who define it as an act of expression more than any physical result. The creator and the context within which they created the art, and any meaning they put into it, are all relevant and a part of the art itself. Most incremental games have artistic merit from things like why the creator made it, why they chose to make it an incremental game, and why they made any particular design decision. Hell, even if you play through an entire incremental game without a single thought or feeling, that very fact it elicited nothing can itself be artistic merit!

I'm not an art major, and I may be taking a somewhat extreme take on what is art and what has artistic merit, but I'd argue the overall point stands that games, and incremental games specifically, can have artistic merit, which appeals to many gamers.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/guide-to-incrementals/defining-the-genre/index.html b/garden/guide-to-incrementals/defining-the-genre/index.html index d0514c9f..447e68c7 100644 --- a/garden/guide-to-incrementals/defining-the-genre/index.html +++ b/garden/guide-to-incrementals/defining-the-genre/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Defining the Genre | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Defining the Genre

3429 words, ~19 minute read. Planted +

Skip to content

Guide to Incrementals/Defining the Genre

3429 words, ~19 minute read. Planted . Last tended to -.


Video games are placed into genres for a variety of reasons. They can give a mental shorthand to set the player's expectations up, they can help a game market itself by its similarities to other, already popular games, and honestly, people just love categorization for its own sake. For this guide, it's important to define the genre so it is clear what games it's even talking about.

This poses a problem. "Incremental" is a horribly vague way to define games. Most games have numbers going up in some form or another. We need a more specific definition - similar to how "strategy" can't just mean any game with any amount of strategy because that would be most games. What specifically differentiates incremental games from the rest?

"Incremental" implies it's a genre defined by a game mechanic, but all those game mechanics it could imply exist in many other games. Having a skill tree or upgrades doesn't make you incremental, and if a reset mechanic is all it takes then every roguelite would be an incremental as well. So clearly there's more to it than that - what makes an incremental an incremental?

I'd like to go over a couple of popular suggestions I've seen on defining the genre here. I have my personal preferences and will state them here, but I don't think there's a truly perfect answer here.

Disclaimer: I mostly play incremental games on my computer, and my definitions will be heavily biased towards the games I'm familiar with.

Incrementals vs Idlers vs Clickers

Oftentimes people refer to this genre as idle games and/or clicker games. You'll even find a trend of oxymoronic game titles that contain both terms. "Incremental games" is the umbrella term both those terms fall under. However, I'd like to argue that not only is it better to just use the term "incremental games", but calling them "idle games" or "clicker games" is wrong. Almost universally, these terms are used interchangeably to refer to the same kind of game, where you start the game click spamming and eventually automate the process. Frankly, that kind of game deserves neither title, and the genre of incremental games has trended away from ever requiring click spamming, as it's a bad mechanic, anyways.

While these games do span a spectrum of how active it requires you to be, and sorting games by that metric can be useful for those looking for a particular experience, the borders of when an incremental game counts as an "idler" is too blurry for the term to be useful. "Incremental games" may not be a great descriptive term for the genre (hence this many thousands of words long page on defining what the genre even is), but it's strictly better than calling them "idler" or "clicker" games. This guide will always use the term "incremental games" unless quoting someone else, as it is the term you typically see on all modern games in the genre.

Incrementals as Parodies

Let's start with one of the most interesting definitions of incremental games. Incremental games appear to be distilled versions of games or genres, "revealing" the naked game design at the core of these games or genres not unlike how parodies comment upon their source material.

To understand what that means, think of how a casino uses skinner boxes to emotionally manipulate its customers to keep playing, but "dressing" up the skinner box with tons of stimuli to hide that ultimately the goal is to condition you into coming back compulsively. The idea that incremental games are parodies means taking the stance that at some level all games are similarly manipulating you, giving dopamine rewards in a way that manipulates you to keep playing while not necessarily giving you any value or fulfillment. Incremental games, then, are any games that plainly display the skinner box, and the manipulative core of the game, at the forefront of the experience.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

This "undressing" tends to go hand in hand with a reduced focus on aesthetics, often just printing the game state directly to the screen as text. This makes incremental games much easier to develop, particularly for those with programming skills but not art skills, but that's a tangent for why Incremental Games Guide to Incrementals/Appeal to Developers.

Before I continue, I'd like to make my stance clear that I love games and incremental games, and do not think they should be considered inherently bad or manipulative with the above logic. Skinner boxes are just a way of manipulating behavior via rewards. The games are still fun - that's the reward! I'd believe the real criticism here is that it is "empty fun", or "empty dopamine", that doesn't offer any additional value or sense of fulfillment. I don't think that's inherently bad in moderation, although it can become a problem if the game is manipulating you for profit-seeking, or if you play the game to the detriment of the other parts of your life.

Another interpretation of incremental games as parodies comes from several mainstream incremental games that are also parodies of capitalism, such as cookie clicker and adventure capitalist. It's a very common framework for incremental games to portray the ever-increasing numbers as an insatiable hunger for resources, like the ones observed within capitalism. Therefore, these games are used as evidence that the genre as a whole is about parody and commentary.

Popular videos on incremental games that portray the genre as parodies are Why Idle games make good satire, and how it was ruined. and Bad Game Design - Clicker Games. You may also be interested in this response to the latter video from a fan of incremental games: BadGood Game Design - Clicker Games.

I think that this definition ultimately ascribes a motive to the genre as a whole that only happens to apply to some of the more mainstream titles. There certainly are incremental games commenting on different things, including the genre itself as in the case of The Prestige Tree Classic, The Ascension Tree, or Omega Layers, but certainly not all. And of course, not all games that comment on something or parody something are incremental games! Additionally, a very large majority of incremental games are mobile games using these manipulative strategies to get players to spend as much money as possible - hell, Adventure Capitalist is ostensibly a critique on capitalism but features microtransactions and gameplay that manipulates you into buying them! These profit-seeking incremental games certainly belong within the genre but are hardly parodies when they too use manipulation to serve their interests. Also, from my own anecdotal experience, those who use this definition seem to do so from a fairly surface-level familiarity with the genre, and often in the context of criticizing the genre or the fans thereof.

Incrementals as NGU

Another broad definition often used is that incremental games are games where the focus of the game is "numbers going up". This definition proposes that other genres simply use increasing numbers as a means to an end, but incremental games uniquely only care about the numbers themselves going up. Put another way, it implies there should be no narrative justification for the numbers going up other than "why shouldn't they be going up?"

While this definition is common because it feels easy to understand, it is difficult to formally define. Often phrases are used to describe games using this framework, such as having an "exaggerated sense of progression" or "big" numbers. These terms are vague and don't demonstrate an actual threshold between non-incrementals and incrementals. Most games have a sense of progression, so when is it "exaggerated"? How big are "big" numbers? Most notably, RPGs that are typically not considered incrementals will often pass this definition.

Additionally, a lot of incrementals tend to have some theme guiding the gameplay, or at least the names of mechanics. This makes the line blurred between when numbers are going up for their own sake versus for a contextual reason. I believe this point is best illustrated that, while most RPGs are not considered incremental games, there is a sub-genre of "incremental RPGs" that typically relates to RPGs that perform combat automatically. This definition of incremental games does not support RPGs and "incremental RPGs" being on distinct sides of the line if the only difference between them is manual vs automatic combat.

Incrementals as Strategies

This is a rarer interpretation, but there are similarities between incremental games and strategy games, implying incrementals might just be a sub-genre of strategy games. By this approach, incremental games would be defined by their relation to strategy games, and how they involve player strategy. Incremental games are often large optimization problems - above all else, the actual gameplay the player is performing is deciding what to do next. The consequences of wrong decisions are typically more lenient in incremental games - such as just not making optimal progress - but they certainly get complex.

So if we accept the premise that incrementals could fall under strategy, we still need to define what makes a strategy game an incremental versus some other strategy sub-genre. This is a bit tricky due to one particular sub-genre of strategy games: Factory Builders.

Factory builders, such as Factorio or Satisfactory, are games about gaining ever increasing resources, optimizing production, and expanding more and more. That... sounds pretty similar, doesn't it? In fact, there's been some debate on whether factory builders would fall under the "incremental" umbrella. I think it's safe to say the two are certainly related, and probably have quite a bit of overlap in playerbase.

Roguelites as Incrementals?

Earlier on, I mentioned reset mechanics shouldn't be used in the definition because that could make all roguelites incrementals... But what if it does? A lot of incrementals can be described as games with a strong sense of progression, often with layers of meta-progression. Roguelites fit that bill to a T. What would make roguelites not incremental? I honestly don't think there's a good explanation here, but many fans of incremental games will state they do believe the two genres to be unrelated, even if there's a significant overlap between their player bases due to having similar appealing traits.

At this point, it'd be appropriate to consider what part of the definition of roguelites precludes them from also being incrementals, but that reveals a new problem: What are roguelites? They're usually defined as rogue_likes with meta-progression, but that just pushes the problem back a step: Incrementals aren't the only genre to have difficulties defining themselves, it seems! Roguelikes are another genre where the community argues over the formal definition of their genre, although that means we can borrow from their process of coming to a consensus, and maybe come across a viable definition for incremental games.

The Berlin Interpretation

By far the most popular way of defining roguelikes is the "Berlin Interpretation", which acknowledged the diversity of games within the genre and argued the definition should not be based on any ideals about what the genre ought to be, but rather defined by "its canon". They argued there are a handful of games that can be used to define the canon for roguelikes, and from those games, a list of factors can be derived to determine a game's "roguelikeness". The more factors a game has, the more of a roguelike it is. This strategy is very lenient, allowing a game to not present any specific factor so long as it shows enough, and accounts for the blurriness of any genre definition by not explicitly stating how many factors a game must have to qualify as a definite roguelike.

I believe this strategy for defining genres can be applied to other genres as well. A handful of games can be argued to be the incremental games canon, and a list of factors derived from them can be used to judge any game based on its "incrementalness". I'll propose such a canon and list of factors here, but by no means should it be considered the end-all-be-all.

Note: The "Temple of the roguelike", an authority within the genre, has since replaced the Berlin Interpretation with a new set of factors here: https://blog.roguetemple.com/what-is-a-traditional-roguelike/

The Incremental Games Canon

Alright, time to get controversial. Up til now, I've been trying my best to stay objective and analytical, but now it's time to start making some opinionated decisions. Here is a list of games I think could justifiably make up an Incremental Games Canon:

I chose a variety of games here, biasing towards newer games, purposefully to avoid making a narrow or "traditional" definition. The genre is growing and shouldn't be constrained by the traits of the early popular titles. A lot of these could easily be replaced with other games that are mechanically congruent, so ultimately I'm sure if you asked 10 people for their canon list you'd just get 10 different answers, but I think this should sufficiently allow us to determine what factors make a game have higher "incrementalness".

The Paradigm Shift

The Paradigm Shift is probably the highest possible value factor for an incremental. It's so common that for a while people referred to incrementals that exhibit this trait as "unfolding" games, to the point of trying to replace the term incremental due to their popularity. Paradigm shifts refer to when the gameplay significantly changes. There are too many examples to list here, but notably, every single reset mechanic is typically going to be a paradigm shift. Examples of games with paradigm shifts that aren't tied to reset mechanics include Universal Paperclips and A Dark Room.

There are many reasons for the appeal of paradigm shifts. Oftentimes each mechanic builds on top of the existing mechanics, increasing the complexity of the game in steps so the player can follow along. They provide a sense of mystery, with the player anticipating what will happen next. They shake up the gameplay before it gets too stale - allowing the game to entertain for longer before the sense of Guide to Incrementals/What is Content? dissipates. Of the canon games selected above, I would argue every single one contains a paradigm shift (although I could see someone disagreeing with that statement wrt Increlution).

I should take a moment to say that while I'm hyping up this specific factor, we cannot just reduce the genre definition to "does it have paradigm shifts". Many games have paradigm shifts that are not incremental, so it's just an indicator of incrementalness. Additionally, it can become quite hard to determine how large of a shift is a "paradigm" shift. Take, for example, any game with a skill tree. In some games, each skill node might have a large impact on how you play with the game, and qualify as a paradigm shift for some players. In other games, each skill node might just be a small percentage modifier on some stat that doesn't really impact much more than a slight bias towards an already established mechanic that's newly buffed. Every single canon game may show that it's common amongst incremental games, but could just as easily indicate that they're common in games in general.

High-Value Factors

I won't take as long to discuss the high and low-value factors, as you've already seen most of them brought up earlier on this page. As a reminder, a game does NOT need all of these to be an incremental game, but these are factors that each indicate a strong possibility the game is an incremental, so having several of these means they probably are. These factors apply to most of the canon incremental games.

"Pure UI" Display. Incrementals typically have a textual presentation of the game state - there isn't a visual representation of the entities within the game. The interface is closer to what would be just the UI of a game in another genre or the control panel of a plane. If there is a visual representation, the player is often still interacting with non-diegetic game elements.

Reduced Consequences. Incrementals tend to have reduced repurcussions for misplaying. They very rarely have fail states, where often the largest consequence is simply not progressing - never losing progress.

Optimization Problems. The predominant gameplay of incrementals is typically solving optimization problems, from deciding which purchase to save up for to reasoning and deciding between different mutually exclusive options the game presents.

Resource Management. Incrementals tend to have a lot of resources within the game to keep track of.

Low-Value Factors

These are low-value factors, meaning they aren't as strongly correlated with incremental games. Incremental games may have none of these, and non-incrementals may have several of these - if a game only has low-value factors, they're probably not an incremental.

Fast Numeric Growth. Numbers in incremental games tend to grow faster than in other genres. There are more instances of superlinear growth. The larger the numbers get, the stronger of a signal this factor is.

Automation. As an incremental game progresses, the player often no longer has to deal with earlier mechanics, by having them either happen automatically or otherwise be replaced with an alternative that requires less player interaction.

Goal-Oriented. Incrementals are often heavily reliant on extrinsic motivation to guide the player. Typically this is through some sort of in-game goal to work towards, such as a certain amount of a resource being required to unlock or purchase something new.

Waiting is a Mechanic. In incremental games, the player may come across times where there is no action they can take, and the game will progress automatically instead. The player must wait for some amount of this automatic progress to occur before they can resume interaction with the game.

Are Roguelites Incrementals?

Having made our variation of the Berlin Interpretation for incremental games, we can compare it to the Berlin Interpretation to determine if there's enough overlap that any game that "passes" the Berlin Interpretation would also pass the incremental variant. That is to say, whether any roguelite would also be considered an incremental game.

The meta-progression of an incremental game could arguably be considered a paradigm shift, and certainly adds some resource management. Goal-oriented would probably also apply. I think anything other than those would be a stretch, and in my opinion that just isn't enough to qualify. To be totally honest, I was never expecting to conclude otherwise though 😉

Sub-Genres

There are some trends in incremental games that go beyond just being a commonly used mechanic, such that they deeply affect the rest of the game design. These trends can be used to determine sub-genres within the incremental games umbrella:

Loops games are a sub-genre defined by having a core mechanic related to a loop, where the player is deciding the actions taken per loop. Notable examples include Idle Loops, Stuck in Time, Cavernous II, and Increlution. You may also argue Groundhog Life and Progress Knight fall into this sub-genre.

ITRTG-like games are a sub-genre defined by having a core mechanic based on clearing increasingly difficult battles and often tend to have a lot of different mechanics to become progressively stronger. Notable examples include Idling to Rule the Gods, NGU Idle, and Wizard and Minion Idle.

Polynomial Growth games are a sub-genre defined by having a core mechanic related to a higher degree polynomial. Notable examples include the base layer of Antimatter Dimensions and Swarm Simulator.

Upgrades Games is a category popular on flash games websites that featured games focused on buying upgrades that would allow you to attain more currency in some sort of minigame that would earn you more money to buy more upgrades, which I'd argue now belong under the fold of incremental games. Notable examples include the Learn to Fly series and Upgrade Complete.

Cultivation RPGs are a genre of games, books, and anime popular in China that center around being in a fantasy world with characters getting stronger over time. While few of them get translated into English, a fan of incremental games may find the available games interesting.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Video games are placed into genres for a variety of reasons. They can give a mental shorthand to set the player's expectations up, they can help a game market itself by its similarities to other, already popular games, and honestly, people just love categorization for its own sake. For this guide, it's important to define the genre so it is clear what games it's even talking about.

This poses a problem. "Incremental" is a horribly vague way to define games. Most games have numbers going up in some form or another. We need a more specific definition - similar to how "strategy" can't just mean any game with any amount of strategy because that would be most games. What specifically differentiates incremental games from the rest?

"Incremental" implies it's a genre defined by a game mechanic, but all those game mechanics it could imply exist in many other games. Having a skill tree or upgrades doesn't make you incremental, and if a reset mechanic is all it takes then every roguelite would be an incremental as well. So clearly there's more to it than that - what makes an incremental an incremental?

I'd like to go over a couple of popular suggestions I've seen on defining the genre here. I have my personal preferences and will state them here, but I don't think there's a truly perfect answer here.

Disclaimer: I mostly play incremental games on my computer, and my definitions will be heavily biased towards the games I'm familiar with.

Incrementals vs Idlers vs Clickers

Oftentimes people refer to this genre as idle games and/or clicker games. You'll even find a trend of oxymoronic game titles that contain both terms. "Incremental games" is the umbrella term both those terms fall under. However, I'd like to argue that not only is it better to just use the term "incremental games", but calling them "idle games" or "clicker games" is wrong. Almost universally, these terms are used interchangeably to refer to the same kind of game, where you start the game click spamming and eventually automate the process. Frankly, that kind of game deserves neither title, and the genre of incremental games has trended away from ever requiring click spamming, as it's a bad mechanic, anyways.

While these games do span a spectrum of how active it requires you to be, and sorting games by that metric can be useful for those looking for a particular experience, the borders of when an incremental game counts as an "idler" is too blurry for the term to be useful. "Incremental games" may not be a great descriptive term for the genre (hence this many thousands of words long page on defining what the genre even is), but it's strictly better than calling them "idler" or "clicker" games. This guide will always use the term "incremental games" unless quoting someone else, as it is the term you typically see on all modern games in the genre.

Incrementals as Parodies

Let's start with one of the most interesting definitions of incremental games. Incremental games appear to be distilled versions of games or genres, "revealing" the naked game design at the core of these games or genres not unlike how parodies comment upon their source material.

To understand what that means, think of how a casino uses skinner boxes to emotionally manipulate its customers to keep playing, but "dressing" up the skinner box with tons of stimuli to hide that ultimately the goal is to condition you into coming back compulsively. The idea that incremental games are parodies means taking the stance that at some level all games are similarly manipulating you, giving dopamine rewards in a way that manipulates you to keep playing while not necessarily giving you any value or fulfillment. Incremental games, then, are any games that plainly display the skinner box, and the manipulative core of the game, at the forefront of the experience.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

This "undressing" tends to go hand in hand with a reduced focus on aesthetics, often just printing the game state directly to the screen as text. This makes incremental games much easier to develop, particularly for those with programming skills but not art skills, but that's a tangent for why Incremental Games Guide to Incrementals/Appeal to Developers.

Before I continue, I'd like to make my stance clear that I love games and incremental games, and do not think they should be considered inherently bad or manipulative with the above logic. Skinner boxes are just a way of manipulating behavior via rewards. The games are still fun - that's the reward! I'd believe the real criticism here is that it is "empty fun", or "empty dopamine", that doesn't offer any additional value or sense of fulfillment. I don't think that's inherently bad in moderation, although it can become a problem if the game is manipulating you for profit-seeking, or if you play the game to the detriment of the other parts of your life.

Another interpretation of incremental games as parodies comes from several mainstream incremental games that are also parodies of capitalism, such as cookie clicker and adventure capitalist. It's a very common framework for incremental games to portray the ever-increasing numbers as an insatiable hunger for resources, like the ones observed within capitalism. Therefore, these games are used as evidence that the genre as a whole is about parody and commentary.

Popular videos on incremental games that portray the genre as parodies are Why Idle games make good satire, and how it was ruined. and Bad Game Design - Clicker Games. You may also be interested in this response to the latter video from a fan of incremental games: BadGood Game Design - Clicker Games.

I think that this definition ultimately ascribes a motive to the genre as a whole that only happens to apply to some of the more mainstream titles. There certainly are incremental games commenting on different things, including the genre itself as in the case of The Prestige Tree Classic, The Ascension Tree, or Omega Layers, but certainly not all. And of course, not all games that comment on something or parody something are incremental games! Additionally, a very large majority of incremental games are mobile games using these manipulative strategies to get players to spend as much money as possible - hell, Adventure Capitalist is ostensibly a critique on capitalism but features microtransactions and gameplay that manipulates you into buying them! These profit-seeking incremental games certainly belong within the genre but are hardly parodies when they too use manipulation to serve their interests. Also, from my own anecdotal experience, those who use this definition seem to do so from a fairly surface-level familiarity with the genre, and often in the context of criticizing the genre or the fans thereof.

Incrementals as NGU

Another broad definition often used is that incremental games are games where the focus of the game is "numbers going up". This definition proposes that other genres simply use increasing numbers as a means to an end, but incremental games uniquely only care about the numbers themselves going up. Put another way, it implies there should be no narrative justification for the numbers going up other than "why shouldn't they be going up?"

While this definition is common because it feels easy to understand, it is difficult to formally define. Often phrases are used to describe games using this framework, such as having an "exaggerated sense of progression" or "big" numbers. These terms are vague and don't demonstrate an actual threshold between non-incrementals and incrementals. Most games have a sense of progression, so when is it "exaggerated"? How big are "big" numbers? Most notably, RPGs that are typically not considered incrementals will often pass this definition.

Additionally, a lot of incrementals tend to have some theme guiding the gameplay, or at least the names of mechanics. This makes the line blurred between when numbers are going up for their own sake versus for a contextual reason. I believe this point is best illustrated that, while most RPGs are not considered incremental games, there is a sub-genre of "incremental RPGs" that typically relates to RPGs that perform combat automatically. This definition of incremental games does not support RPGs and "incremental RPGs" being on distinct sides of the line if the only difference between them is manual vs automatic combat.

Incrementals as Strategies

This is a rarer interpretation, but there are similarities between incremental games and strategy games, implying incrementals might just be a sub-genre of strategy games. By this approach, incremental games would be defined by their relation to strategy games, and how they involve player strategy. Incremental games are often large optimization problems - above all else, the actual gameplay the player is performing is deciding what to do next. The consequences of wrong decisions are typically more lenient in incremental games - such as just not making optimal progress - but they certainly get complex.

So if we accept the premise that incrementals could fall under strategy, we still need to define what makes a strategy game an incremental versus some other strategy sub-genre. This is a bit tricky due to one particular sub-genre of strategy games: Factory Builders.

Factory builders, such as Factorio or Satisfactory, are games about gaining ever increasing resources, optimizing production, and expanding more and more. That... sounds pretty similar, doesn't it? In fact, there's been some debate on whether factory builders would fall under the "incremental" umbrella. I think it's safe to say the two are certainly related, and probably have quite a bit of overlap in playerbase.

Roguelites as Incrementals?

Earlier on, I mentioned reset mechanics shouldn't be used in the definition because that could make all roguelites incrementals... But what if it does? A lot of incrementals can be described as games with a strong sense of progression, often with layers of meta-progression. Roguelites fit that bill to a T. What would make roguelites not incremental? I honestly don't think there's a good explanation here, but many fans of incremental games will state they do believe the two genres to be unrelated, even if there's a significant overlap between their player bases due to having similar appealing traits.

At this point, it'd be appropriate to consider what part of the definition of roguelites precludes them from also being incrementals, but that reveals a new problem: What are roguelites? They're usually defined as rogue_likes with meta-progression, but that just pushes the problem back a step: Incrementals aren't the only genre to have difficulties defining themselves, it seems! Roguelikes are another genre where the community argues over the formal definition of their genre, although that means we can borrow from their process of coming to a consensus, and maybe come across a viable definition for incremental games.

The Berlin Interpretation

By far the most popular way of defining roguelikes is the "Berlin Interpretation", which acknowledged the diversity of games within the genre and argued the definition should not be based on any ideals about what the genre ought to be, but rather defined by "its canon". They argued there are a handful of games that can be used to define the canon for roguelikes, and from those games, a list of factors can be derived to determine a game's "roguelikeness". The more factors a game has, the more of a roguelike it is. This strategy is very lenient, allowing a game to not present any specific factor so long as it shows enough, and accounts for the blurriness of any genre definition by not explicitly stating how many factors a game must have to qualify as a definite roguelike.

I believe this strategy for defining genres can be applied to other genres as well. A handful of games can be argued to be the incremental games canon, and a list of factors derived from them can be used to judge any game based on its "incrementalness". I'll propose such a canon and list of factors here, but by no means should it be considered the end-all-be-all.

Note: The "Temple of the roguelike", an authority within the genre, has since replaced the Berlin Interpretation with a new set of factors here: https://blog.roguetemple.com/what-is-a-traditional-roguelike/

The Incremental Games Canon

Alright, time to get controversial. Up til now, I've been trying my best to stay objective and analytical, but now it's time to start making some opinionated decisions. Here is a list of games I think could justifiably make up an Incremental Games Canon:

I chose a variety of games here, biasing towards newer games, purposefully to avoid making a narrow or "traditional" definition. The genre is growing and shouldn't be constrained by the traits of the early popular titles. A lot of these could easily be replaced with other games that are mechanically congruent, so ultimately I'm sure if you asked 10 people for their canon list you'd just get 10 different answers, but I think this should sufficiently allow us to determine what factors make a game have higher "incrementalness".

The Paradigm Shift

The Paradigm Shift is probably the highest possible value factor for an incremental. It's so common that for a while people referred to incrementals that exhibit this trait as "unfolding" games, to the point of trying to replace the term incremental due to their popularity. Paradigm shifts refer to when the gameplay significantly changes. There are too many examples to list here, but notably, every single reset mechanic is typically going to be a paradigm shift. Examples of games with paradigm shifts that aren't tied to reset mechanics include Universal Paperclips and A Dark Room.

There are many reasons for the appeal of paradigm shifts. Oftentimes each mechanic builds on top of the existing mechanics, increasing the complexity of the game in steps so the player can follow along. They provide a sense of mystery, with the player anticipating what will happen next. They shake up the gameplay before it gets too stale - allowing the game to entertain for longer before the sense of Guide to Incrementals/What is Content? dissipates. Of the canon games selected above, I would argue every single one contains a paradigm shift (although I could see someone disagreeing with that statement wrt Increlution).

I should take a moment to say that while I'm hyping up this specific factor, we cannot just reduce the genre definition to "does it have paradigm shifts". Many games have paradigm shifts that are not incremental, so it's just an indicator of incrementalness. Additionally, it can become quite hard to determine how large of a shift is a "paradigm" shift. Take, for example, any game with a skill tree. In some games, each skill node might have a large impact on how you play with the game, and qualify as a paradigm shift for some players. In other games, each skill node might just be a small percentage modifier on some stat that doesn't really impact much more than a slight bias towards an already established mechanic that's newly buffed. Every single canon game may show that it's common amongst incremental games, but could just as easily indicate that they're common in games in general.

High-Value Factors

I won't take as long to discuss the high and low-value factors, as you've already seen most of them brought up earlier on this page. As a reminder, a game does NOT need all of these to be an incremental game, but these are factors that each indicate a strong possibility the game is an incremental, so having several of these means they probably are. These factors apply to most of the canon incremental games.

"Pure UI" Display. Incrementals typically have a textual presentation of the game state - there isn't a visual representation of the entities within the game. The interface is closer to what would be just the UI of a game in another genre or the control panel of a plane. If there is a visual representation, the player is often still interacting with non-diegetic game elements.

Reduced Consequences. Incrementals tend to have reduced repurcussions for misplaying. They very rarely have fail states, where often the largest consequence is simply not progressing - never losing progress.

Optimization Problems. The predominant gameplay of incrementals is typically solving optimization problems, from deciding which purchase to save up for to reasoning and deciding between different mutually exclusive options the game presents.

Resource Management. Incrementals tend to have a lot of resources within the game to keep track of.

Low-Value Factors

These are low-value factors, meaning they aren't as strongly correlated with incremental games. Incremental games may have none of these, and non-incrementals may have several of these - if a game only has low-value factors, they're probably not an incremental.

Fast Numeric Growth. Numbers in incremental games tend to grow faster than in other genres. There are more instances of superlinear growth. The larger the numbers get, the stronger of a signal this factor is.

Automation. As an incremental game progresses, the player often no longer has to deal with earlier mechanics, by having them either happen automatically or otherwise be replaced with an alternative that requires less player interaction.

Goal-Oriented. Incrementals are often heavily reliant on extrinsic motivation to guide the player. Typically this is through some sort of in-game goal to work towards, such as a certain amount of a resource being required to unlock or purchase something new.

Waiting is a Mechanic. In incremental games, the player may come across times where there is no action they can take, and the game will progress automatically instead. The player must wait for some amount of this automatic progress to occur before they can resume interaction with the game.

Are Roguelites Incrementals?

Having made our variation of the Berlin Interpretation for incremental games, we can compare it to the Berlin Interpretation to determine if there's enough overlap that any game that "passes" the Berlin Interpretation would also pass the incremental variant. That is to say, whether any roguelite would also be considered an incremental game.

The meta-progression of an incremental game could arguably be considered a paradigm shift, and certainly adds some resource management. Goal-oriented would probably also apply. I think anything other than those would be a stretch, and in my opinion that just isn't enough to qualify. To be totally honest, I was never expecting to conclude otherwise though 😉

Sub-Genres

There are some trends in incremental games that go beyond just being a commonly used mechanic, such that they deeply affect the rest of the game design. These trends can be used to determine sub-genres within the incremental games umbrella:

Loops games are a sub-genre defined by having a core mechanic related to a loop, where the player is deciding the actions taken per loop. Notable examples include Idle Loops, Stuck in Time, Cavernous II, and Increlution. You may also argue Groundhog Life and Progress Knight fall into this sub-genre.

ITRTG-like games are a sub-genre defined by having a core mechanic based on clearing increasingly difficult battles and often tend to have a lot of different mechanics to become progressively stronger. Notable examples include Idling to Rule the Gods, NGU Idle, and Wizard and Minion Idle.

Polynomial Growth games are a sub-genre defined by having a core mechanic related to a higher degree polynomial. Notable examples include the base layer of Antimatter Dimensions and Swarm Simulator.

Upgrades Games is a category popular on flash games websites that featured games focused on buying upgrades that would allow you to attain more currency in some sort of minigame that would earn you more money to buy more upgrades, which I'd argue now belong under the fold of incremental games. Notable examples include the Learn to Fly series and Upgrade Complete.

Cultivation RPGs are a genre of games, books, and anime popular in China that center around being in a fantasy world with characters getting stronger over time. While few of them get translated into English, a fan of incremental games may find the available games interesting.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/guide-to-incrementals/index.html b/garden/guide-to-incrementals/index.html index f0a7da19..438eb9f2 100644 --- a/garden/guide-to-incrementals/index.html +++ b/garden/guide-to-incrementals/index.html @@ -6,12 +6,12 @@ Guide to Incrementals | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals

251 words, ~1 minute read. Planted +

Skip to content

Guide to Incrementals

251 words, ~1 minute read. Planted . Last tended to -.


This is a comprehensive guide to Incremental Games, a genre of video games. It will explore defining the genre, why it's appealing, and how to design and build your own incremental game. Along the way will be interactive examples, snippets from other creators, and relevant material to contextualize everything.

Note: This is an incomplete document. I want to keep adding opinions and opposing views from other incremental games developers, and add interactive examples to illustrate various points regarding game design and balancing. Consider this a living document - and see the changelog at the end.

Note: This was made before my switch to a digital garden, and is written as prose. Hope you don't mind!

Why am I making this?

That's a good question! What authority do I have to be making this guide? I haven't made the best incremental games, nor the most incremental games, certainly not the most popular ones either. But I do have some formal education in game development, know a lot of incremental game devs (as well as other game devs), and have a passionate interest in ludology, classifying genres, etc. I've also made a couple of incremental games) myself.

If you have any additional questions about my credentials or anything on this site, feel free to reach out!

Ludology

Making an Incremental

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


This is a comprehensive guide to Incremental Games, a genre of video games. It will explore defining the genre, why it's appealing, and how to design and build your own incremental game. Along the way will be interactive examples, snippets from other creators, and relevant material to contextualize everything.

Note: This is an incomplete document. I want to keep adding opinions and opposing views from other incremental games developers, and add interactive examples to illustrate various points regarding game design and balancing. Consider this a living document - and see the changelog at the end.

Note: This was made before my switch to a digital garden, and is written as prose. Hope you don't mind!

Why am I making this?

That's a good question! What authority do I have to be making this guide? I haven't made the best incremental games, nor the most incremental games, certainly not the most popular ones either. But I do have some formal education in game development, know a lot of incremental game devs (as well as other game devs), and have a passionate interest in ludology, classifying genres, etc. I've also made a couple of incremental games) myself.

If you have any additional questions about my credentials or anything on this site, feel free to reach out!

Ludology

Making an Incremental

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/guide-to-incrementals/navigating-criticism/index.html b/garden/guide-to-incrementals/navigating-criticism/index.html index a37cf85b..976eb87b 100644 --- a/garden/guide-to-incrementals/navigating-criticism/index.html +++ b/garden/guide-to-incrementals/navigating-criticism/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Navigating Criticism | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Navigating Criticism

747 words, ~4 minute read. Planted +

Skip to content

Guide to Incrementals/Navigating Criticism

747 words, ~4 minute read. Planted . Last tended to -.


Developing games is fun and exciting and teaches a lot of wonderful skills - I enthusiastically encourage anyone with an interest in game development to try it out - and incremental games are a wonderful way to get started. However, there are many challenges young and inexperienced developers have to face, and I think the hardest one - harder than coding, debugging, balancing, etc. - is handling criticism. When you put your heart and soul into a game it is natural to feel very vulnerable. While I think there's a lot communities can do to ensure they're welcoming, positive and constructive with their criticisms, inevitably you will eventually read some, and potentially a lot, of comments that can deeply affect you. No one is immune to this, from young incremental game developers to the largest content creators you can think of. That's why it's important to be able to process and navigate criticism, because ultimately collecting feedback is essential to the journey to becoming a better developer. On this page, we'll explore how to embrace criticism, grow from it, and continue to post your games publicly with confidence.

Reading Feedback

Game development is a skill that takes time and practice to get truly great at. Criticism and other constructive feedback are vital to continually improving. It's useful to look at the criticism as solely a tool for improving this game and future games - that is to say, it should never be used against you as a person. Insults towards the developer(s) themselves are never okay and should not be allowed within whatever community you're sharing your works in. If you do come across a comment you interpret as an attack upon your person, you should report it. For other negative comments, try not to internalize them; instead, focus on improving the game. By distancing your own identity from your work emotionally, you can better analyze the game and use the feedback to your advantage.

Not all feedback is made equal, and you don't need to feel compelled to read and obey every piece of feedback you receive. Learn to distinguish between constructive feedback and unhelpful comments. Constructive feedback typically offers specific suggestions for improvement, while unhelpful comments are often vague or hurtful. Prioritize the former and disregard the latter. That said, most feedback you get will not be from game developers, so take specific suggestions with a grain of salt. Determine the actual problem they're experiencing, and design what you believe the best solution to that problem would be, regardless if that's the specific solution the player asked for. And keep in mind, due to different player preferences you'll never satisfy everyone, and you don't need to. Ultimately if even just you find the game fun, then that's a success.

Seeking Feedback

When deciding where to share your game, consider the type of players you anticipate getting, and the kind of feedback you can anticipate receiving. Different communities will have different levels of support for learning developers, and certain communities may prefer certain types of games or mechanics. It's important to get a diverse set of feedback focused on players you think will enjoy the specific game you're making.

Collecting feedback from other game developers is incredibly helpful. They've trained themselves to recognize good and bad game design and how to articulate the differences, and from my experience are much more likely to leave positive and constructive comments since they've been in your shoes before! They understand the struggles and can offer guidance and emotional support.

Responding to Feedback

Negative feedback can naturally feel like an attack, and it's okay to get angry. However, lashing back is never the appropriate response. It's best to cool off IRL, and keep in mind all the positive comments you've received. There's a concept in Psychology called negative bias that explains how negative feedback tends to stick with us much more prominently than positive feedback, so it's useful to regularly remind yourself of all the positive feedback you've received. Celebrate your successes, no matter how small they may seem - getting a game to a state you can publicly share it with people is an accomplishment in and of itself!

Remember your passion and your initial reasons for getting into game development. The journey will have its ups and downs, but staying true to your vision and passion will keep you motivated.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Developing games is fun and exciting and teaches a lot of wonderful skills - I enthusiastically encourage anyone with an interest in game development to try it out - and incremental games are a wonderful way to get started. However, there are many challenges young and inexperienced developers have to face, and I think the hardest one - harder than coding, debugging, balancing, etc. - is handling criticism. When you put your heart and soul into a game it is natural to feel very vulnerable. While I think there's a lot communities can do to ensure they're welcoming, positive and constructive with their criticisms, inevitably you will eventually read some, and potentially a lot, of comments that can deeply affect you. No one is immune to this, from young incremental game developers to the largest content creators you can think of. That's why it's important to be able to process and navigate criticism, because ultimately collecting feedback is essential to the journey to becoming a better developer. On this page, we'll explore how to embrace criticism, grow from it, and continue to post your games publicly with confidence.

Reading Feedback

Game development is a skill that takes time and practice to get truly great at. Criticism and other constructive feedback are vital to continually improving. It's useful to look at the criticism as solely a tool for improving this game and future games - that is to say, it should never be used against you as a person. Insults towards the developer(s) themselves are never okay and should not be allowed within whatever community you're sharing your works in. If you do come across a comment you interpret as an attack upon your person, you should report it. For other negative comments, try not to internalize them; instead, focus on improving the game. By distancing your own identity from your work emotionally, you can better analyze the game and use the feedback to your advantage.

Not all feedback is made equal, and you don't need to feel compelled to read and obey every piece of feedback you receive. Learn to distinguish between constructive feedback and unhelpful comments. Constructive feedback typically offers specific suggestions for improvement, while unhelpful comments are often vague or hurtful. Prioritize the former and disregard the latter. That said, most feedback you get will not be from game developers, so take specific suggestions with a grain of salt. Determine the actual problem they're experiencing, and design what you believe the best solution to that problem would be, regardless if that's the specific solution the player asked for. And keep in mind, due to different player preferences you'll never satisfy everyone, and you don't need to. Ultimately if even just you find the game fun, then that's a success.

Seeking Feedback

When deciding where to share your game, consider the type of players you anticipate getting, and the kind of feedback you can anticipate receiving. Different communities will have different levels of support for learning developers, and certain communities may prefer certain types of games or mechanics. It's important to get a diverse set of feedback focused on players you think will enjoy the specific game you're making.

Collecting feedback from other game developers is incredibly helpful. They've trained themselves to recognize good and bad game design and how to articulate the differences, and from my experience are much more likely to leave positive and constructive comments since they've been in your shoes before! They understand the struggles and can offer guidance and emotional support.

Responding to Feedback

Negative feedback can naturally feel like an attack, and it's okay to get angry. However, lashing back is never the appropriate response. It's best to cool off IRL, and keep in mind all the positive comments you've received. There's a concept in Psychology called negative bias that explains how negative feedback tends to stick with us much more prominently than positive feedback, so it's useful to regularly remind yourself of all the positive feedback you've received. Celebrate your successes, no matter how small they may seem - getting a game to a state you can publicly share it with people is an accomplishment in and of itself!

Remember your passion and your initial reasons for getting into game development. The journey will have its ups and downs, but staying true to your vision and passion will keep you motivated.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/guide-to-incrementals/what-is-content/index.html b/garden/guide-to-incrementals/what-is-content/index.html index d633902d..8aff2af4 100644 --- a/garden/guide-to-incrementals/what-is-content/index.html +++ b/garden/guide-to-incrementals/what-is-content/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/What is Content? | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/What is Content?

2092 words, ~11 minute read. Planted +

Skip to content

Guide to Incrementals/What is Content?

2092 words, ~11 minute read. Planted . Last tended to -.


If you've been in the incremental games community for any amount of time, you'll quickly find the number one thing players want is content. They want as much of it as possible! The most popular incremental games have tons of content, so they just keep stretching on and on and on, introducing mechanic after mechanic, and players love it. In fact, players seem to value the amount of content over the quality of any specific content. However, there's a bit of a lack of understanding concerning what content is, and I'd like to explore what counts as content, and how we measure it. As a baseline definition, I think "content" can just be described as the parts of the game that engage the player, but to truly understand it we need to contextualize what that means and how it affects the gameplay experience.

To clarify the purpose of this page, my goal is not to get (too) nitpicky or to attack games with "low content". There's nothing wrong with short / low-content games - I'm quite a big fan of those games myself! This is mostly targeted toward those who ask for content and settle for "long" games, and those who want to provide content but want to make sure they're not just artificially inflating the game. Ultimately, I suppose the goal is to just reduce the amount of artificially inflated content for the sake of having a "longer" game.

Interaction

I think it should be a fairly non-controversial opinion that time spent solely waiting should not count towards content. That is not including the time reading various effects or making decisions in your head, but rather time spent waiting for a condition to be met so you can re-engage with the game.

That is not to say games should necessarily try to minimize this time. Plenty of games lead towards more infrequent interaction and still get popular. In fact, these games appeal to many gamers who want to have something to check up on in between bursts of working on some other activity. These games seem to have fallen slightly out of fashion amongst modern incremental games, but they're still fully valid. The point I'm trying to make here is just that this time is not content. As an extreme example, a game with no interactions and just a counter that goes up every second could safely be said to have 0 content beyond the time it takes to understand what's going on. If it has a list of "goals" to hit, then the time understanding those goals and a short time after achieving each one could be considered content, but not the idle times in between.

Let's take a look at the opposite end of the spectrum - interaction that is so frequent as to become mindless. This is any mechanic where you need to spam-click something to progress. This may be a more controversial take, but I do not believe this constitutes content either. It does not engage the player, because each consecutive click blends together and they do not individually change the gameplay experience. That is to say, a single click and 100 clicks are not meaningfully different in terms of engaging the player. I'd go as far as to say clicking 100 times would be actively worse, as it's artificially delaying the next piece of actual content, alongside the issues of accessibility and potentially causing RSI.

Repeatable Purchases

Imagine an entity in a game that you can purchase multiple times, each time it performs the same thing but for a higher cost. These are incredibly common, from the buildings in cookie clicker to the units in swarm sim to the IP and EP multipliers in antimatter dimensions. However, how much content is each specific purchase? Is it content beyond the first purchase? Does it have diminishing returns? What if you are oscillating between two different repeatable purchases? How much content is lost when you automate) away a repeatable purchase?

I don't want to take too harsh a stance against repeatable purchases. They're useful tools and can be used in a myriad of interesting ways. I feel they do become "stale" or less meaningful content over time, and this happens exponentially quickly the more frequently it can be purchased. A classic example that I believe goes too far is the IP/EP multipliers in Antimatter Dimensions. I would go as far as to say they are a chore and do not provide any meaningful content after you've bought them a couple of times. It's a method for inflating numbers (effectively making every OOM a 5x step instead of 10x), that punishes the player progression-wise whenever they forget to max it again, and eventually gets automated away as a reward to the player for making enough progress.

Just to voice the other side of this argument, Acamaeda defended the IP multiplier as giving the player a "good" upgrade every OOM. I can understand that to a point and need to clarify I'm mainly criticizing IP/EP multipliers after they've been introduced for a while. In fact, I would defend the multipliers for a short while after they're introduced using the same logic I would use to defend normal dimensions as repeatable purchases, at least pre-infinity. There's "content" to be had in looking at what dimensions will become affordable next, and then choosing which to buy amongst those. The IP/EP multipliers, early into infinity or eternity respectively, provide another option that gets put into that mental queue of things to buy with each OOM reached - although the optimal order is often quite trivial and not particularly engaging.

The IP/EP multipliers are not the only repeatable purchase in antimatter dimensions I take offense to. The time dimensions are also a series of repeatable purchases, that are all so similar and static that it doesn't take long before you never need to put any thought into buying them, how much you're buying at once, or the order you buy them in - you just press max all and move on. The entire tab could've been just the max all button and it would not have made a difference beyond the start of the eternity layer. The normal dimensions technically have this problem as well, but since you're constantly getting antimatter the order feels like it has a larger impact and it's more meaningful content, right up until they're automated away. Infinity dimensions are a compromise between the two, so I'm highlighting time dimensions here as the most egregious.

Following Instructions

We're getting more and more controversial as we go along! Let's talk about how linear content is not content now (in some circumstances). A trend in incremental games is adding difficulty by adding a web of effects that abstract the true change you can expect from any specific purchase or decision you make. If a game is both linear and sufficiently abstracts the effect of player decisions, then the player will no longer be engaging with the content - they'll simply be clicking on things as they become available. This isn't necessarily a bad thing, as plenty of players don't mind this style of gameplay, but I'd argue once you reach a point where players don't bother reading the effects, those interactions are no longer truly content. Note that unlike the previous qualifiers mentioned, this qualifier is based on the player, and therefore subjective. In effect, it's a spectrum where the more complicated the web of effects becomes, the more likely it is to disengage the player.

This over-complicatedness leading to disengaging the player can also happen from non-linear gameplay. If the web of effects becomes sufficiently complicated and finding the optimal progression route too time-consuming to discover, players will seek out guides from other players who've completed the game. The second they do this, the game effectively becomes linearly following the instructions of the guide and all the above criticisms apply. Similarly to as before, though, this is a spectrum and not everyone will seek out a guide at the same level of difficulty.

Automation

Automation is a staple of the genre, but it has certain implications for the design of the game. Why, when new content is introduced, must the older content be automated away - why is it a chore and it feels rewarding to not have to do it again? Why does the new mechanic have such appeal if we know it too will just be automated away later on, and we'll be happy when that happens? It honestly begs the question of why this framework of introducing content and automating the old content is even enjoyable - and nearly nonexistent in other genres. You're not going to reach a point in a platformer game where they just automate the jumping part - that's the core mechanic! Instead, platformers either add new mechanics that build on the core mechanic or at least re-contextualize the core mechanic. However, in incremental games new content very frequently means replacing older content, as opposed to augmenting it.

Admittedly, the above paragraph ignores the obvious answer that separates incremental games in this regard. These mechanics become chores as their frequency increases. The frequency increases to give a sense of progression, and automation is seen as a reward because it now manages what was becoming unmanageable. The new content then comes in and continues the loop to give a stronger sense of progression. That's all good and a fine justification for automating content instead of building upon the base mechanic. It's also much easier to design, as each layer essentially lets you start over instead of needing to think of ideas that conform to the original core mechanic.

So, what's the problem? Even if this trend is justified and easy to implement, there are some other effects it has on the game design. First off, and this is probably a neutral point, incremental games with this cycle of replacing old mechanics with new ones trend towards more and more abstract and further away from any narrative throughline as they add layers. There are only so many justifications for resetting progress, so if a game wants to have several of these layers they're inevitably going to become generic or increasingly loosely associated with the original content. It's most unfortunate, in my opinion when an interesting or innovative core mechanic gets fully automated once a generic "prestige" layer is unlocked.

A recent example is Really Grass Cutting Incremental, an incremental game about cutting grass (although I'm really criticizing the Roblox game it's based on). Except, it doesn't continue to be about cutting grass. After you buy enough upgrades to increase your grass cutting and level up sufficiently you "prestige", an abstract term that in this case means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades, but these won't reset on future prestiges. You'll eventually be able to "crystallize", which means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades (and a couple of new ones) and won't reset on future crystallizes. Fine. You'll progress a bit, complete some challenges, and finally get to... grasshop? Grasshopping is this mechanic where you reset all your progress to get some resource that isn't for buying upgrades - this time you just unlock different modifiers on everything based on their amount. You may have gotten the point by now, but there are also "steelie" resets which give you steel for some reason, before unlocking a factory with various machines - none of which are directly tied to cutting grass, and start gathering things like oil and reset for rocket parts and reset to go to space and so on and so on. Throughout all of this there is absolutely no narrative justification or throughline for the direction the game is going, or why cutting grass is still relevant when we're collecting things like rocket parts. I may be going a little hard on GCI, but it is far from alone.

Tips for Developers

If you're a developer, by this point you should have a pretty decent idea of how to create "true" content in your game. Here are some other specific tips I'd suggest:

An upgrade that simply unlocks another upgrade trivially isn't content. However, many games have an upgrade that just unlocks a feature, which then has a wait or other requirements before it can be used. Try to make sure when you unlock a feature, there is immediately something to do with the feature - for example, perhaps give them a small amount of the new currency it unlocks, if applicable.

If you don't have a large web of effects, and can definitively say the impact of a purchase is to multiply the gain of the cost currency by N, and the next purchase costs N times the amount of that same currency, then this purchase effectively made no difference and it may have made more sense to just go directly to the next upgrade. That said, having effects based on things like the number of purchases made will quickly invalidate this tip.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


If you've been in the incremental games community for any amount of time, you'll quickly find the number one thing players want is content. They want as much of it as possible! The most popular incremental games have tons of content, so they just keep stretching on and on and on, introducing mechanic after mechanic, and players love it. In fact, players seem to value the amount of content over the quality of any specific content. However, there's a bit of a lack of understanding concerning what content is, and I'd like to explore what counts as content, and how we measure it. As a baseline definition, I think "content" can just be described as the parts of the game that engage the player, but to truly understand it we need to contextualize what that means and how it affects the gameplay experience.

To clarify the purpose of this page, my goal is not to get (too) nitpicky or to attack games with "low content". There's nothing wrong with short / low-content games - I'm quite a big fan of those games myself! This is mostly targeted toward those who ask for content and settle for "long" games, and those who want to provide content but want to make sure they're not just artificially inflating the game. Ultimately, I suppose the goal is to just reduce the amount of artificially inflated content for the sake of having a "longer" game.

Interaction

I think it should be a fairly non-controversial opinion that time spent solely waiting should not count towards content. That is not including the time reading various effects or making decisions in your head, but rather time spent waiting for a condition to be met so you can re-engage with the game.

That is not to say games should necessarily try to minimize this time. Plenty of games lead towards more infrequent interaction and still get popular. In fact, these games appeal to many gamers who want to have something to check up on in between bursts of working on some other activity. These games seem to have fallen slightly out of fashion amongst modern incremental games, but they're still fully valid. The point I'm trying to make here is just that this time is not content. As an extreme example, a game with no interactions and just a counter that goes up every second could safely be said to have 0 content beyond the time it takes to understand what's going on. If it has a list of "goals" to hit, then the time understanding those goals and a short time after achieving each one could be considered content, but not the idle times in between.

Let's take a look at the opposite end of the spectrum - interaction that is so frequent as to become mindless. This is any mechanic where you need to spam-click something to progress. This may be a more controversial take, but I do not believe this constitutes content either. It does not engage the player, because each consecutive click blends together and they do not individually change the gameplay experience. That is to say, a single click and 100 clicks are not meaningfully different in terms of engaging the player. I'd go as far as to say clicking 100 times would be actively worse, as it's artificially delaying the next piece of actual content, alongside the issues of accessibility and potentially causing RSI.

Repeatable Purchases

Imagine an entity in a game that you can purchase multiple times, each time it performs the same thing but for a higher cost. These are incredibly common, from the buildings in cookie clicker to the units in swarm sim to the IP and EP multipliers in antimatter dimensions. However, how much content is each specific purchase? Is it content beyond the first purchase? Does it have diminishing returns? What if you are oscillating between two different repeatable purchases? How much content is lost when you automate) away a repeatable purchase?

I don't want to take too harsh a stance against repeatable purchases. They're useful tools and can be used in a myriad of interesting ways. I feel they do become "stale" or less meaningful content over time, and this happens exponentially quickly the more frequently it can be purchased. A classic example that I believe goes too far is the IP/EP multipliers in Antimatter Dimensions. I would go as far as to say they are a chore and do not provide any meaningful content after you've bought them a couple of times. It's a method for inflating numbers (effectively making every OOM a 5x step instead of 10x), that punishes the player progression-wise whenever they forget to max it again, and eventually gets automated away as a reward to the player for making enough progress.

Just to voice the other side of this argument, Acamaeda defended the IP multiplier as giving the player a "good" upgrade every OOM. I can understand that to a point and need to clarify I'm mainly criticizing IP/EP multipliers after they've been introduced for a while. In fact, I would defend the multipliers for a short while after they're introduced using the same logic I would use to defend normal dimensions as repeatable purchases, at least pre-infinity. There's "content" to be had in looking at what dimensions will become affordable next, and then choosing which to buy amongst those. The IP/EP multipliers, early into infinity or eternity respectively, provide another option that gets put into that mental queue of things to buy with each OOM reached - although the optimal order is often quite trivial and not particularly engaging.

The IP/EP multipliers are not the only repeatable purchase in antimatter dimensions I take offense to. The time dimensions are also a series of repeatable purchases, that are all so similar and static that it doesn't take long before you never need to put any thought into buying them, how much you're buying at once, or the order you buy them in - you just press max all and move on. The entire tab could've been just the max all button and it would not have made a difference beyond the start of the eternity layer. The normal dimensions technically have this problem as well, but since you're constantly getting antimatter the order feels like it has a larger impact and it's more meaningful content, right up until they're automated away. Infinity dimensions are a compromise between the two, so I'm highlighting time dimensions here as the most egregious.

Following Instructions

We're getting more and more controversial as we go along! Let's talk about how linear content is not content now (in some circumstances). A trend in incremental games is adding difficulty by adding a web of effects that abstract the true change you can expect from any specific purchase or decision you make. If a game is both linear and sufficiently abstracts the effect of player decisions, then the player will no longer be engaging with the content - they'll simply be clicking on things as they become available. This isn't necessarily a bad thing, as plenty of players don't mind this style of gameplay, but I'd argue once you reach a point where players don't bother reading the effects, those interactions are no longer truly content. Note that unlike the previous qualifiers mentioned, this qualifier is based on the player, and therefore subjective. In effect, it's a spectrum where the more complicated the web of effects becomes, the more likely it is to disengage the player.

This over-complicatedness leading to disengaging the player can also happen from non-linear gameplay. If the web of effects becomes sufficiently complicated and finding the optimal progression route too time-consuming to discover, players will seek out guides from other players who've completed the game. The second they do this, the game effectively becomes linearly following the instructions of the guide and all the above criticisms apply. Similarly to as before, though, this is a spectrum and not everyone will seek out a guide at the same level of difficulty.

Automation

Automation is a staple of the genre, but it has certain implications for the design of the game. Why, when new content is introduced, must the older content be automated away - why is it a chore and it feels rewarding to not have to do it again? Why does the new mechanic have such appeal if we know it too will just be automated away later on, and we'll be happy when that happens? It honestly begs the question of why this framework of introducing content and automating the old content is even enjoyable - and nearly nonexistent in other genres. You're not going to reach a point in a platformer game where they just automate the jumping part - that's the core mechanic! Instead, platformers either add new mechanics that build on the core mechanic or at least re-contextualize the core mechanic. However, in incremental games new content very frequently means replacing older content, as opposed to augmenting it.

Admittedly, the above paragraph ignores the obvious answer that separates incremental games in this regard. These mechanics become chores as their frequency increases. The frequency increases to give a sense of progression, and automation is seen as a reward because it now manages what was becoming unmanageable. The new content then comes in and continues the loop to give a stronger sense of progression. That's all good and a fine justification for automating content instead of building upon the base mechanic. It's also much easier to design, as each layer essentially lets you start over instead of needing to think of ideas that conform to the original core mechanic.

So, what's the problem? Even if this trend is justified and easy to implement, there are some other effects it has on the game design. First off, and this is probably a neutral point, incremental games with this cycle of replacing old mechanics with new ones trend towards more and more abstract and further away from any narrative throughline as they add layers. There are only so many justifications for resetting progress, so if a game wants to have several of these layers they're inevitably going to become generic or increasingly loosely associated with the original content. It's most unfortunate, in my opinion when an interesting or innovative core mechanic gets fully automated once a generic "prestige" layer is unlocked.

A recent example is Really Grass Cutting Incremental, an incremental game about cutting grass (although I'm really criticizing the Roblox game it's based on). Except, it doesn't continue to be about cutting grass. After you buy enough upgrades to increase your grass cutting and level up sufficiently you "prestige", an abstract term that in this case means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades, but these won't reset on future prestiges. You'll eventually be able to "crystallize", which means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades (and a couple of new ones) and won't reset on future crystallizes. Fine. You'll progress a bit, complete some challenges, and finally get to... grasshop? Grasshopping is this mechanic where you reset all your progress to get some resource that isn't for buying upgrades - this time you just unlock different modifiers on everything based on their amount. You may have gotten the point by now, but there are also "steelie" resets which give you steel for some reason, before unlocking a factory with various machines - none of which are directly tied to cutting grass, and start gathering things like oil and reset for rocket parts and reset to go to space and so on and so on. Throughout all of this there is absolutely no narrative justification or throughline for the direction the game is going, or why cutting grass is still relevant when we're collecting things like rocket parts. I may be going a little hard on GCI, but it is far from alone.

Tips for Developers

If you're a developer, by this point you should have a pretty decent idea of how to create "true" content in your game. Here are some other specific tips I'd suggest:

An upgrade that simply unlocks another upgrade trivially isn't content. However, many games have an upgrade that just unlocks a feature, which then has a wait or other requirements before it can be used. Try to make sure when you unlock a feature, there is immediately something to do with the feature - for example, perhaps give them a small amount of the new currency it unlocks, if applicable.

If you don't have a large web of effects, and can definitively say the impact of a purchase is to multiply the gain of the cost currency by N, and the next purchase costs N times the amount of that same currency, then this purchase effectively made no difference and it may have made more sense to just go directly to the next upgrade. That said, having effects based on things like the number of purchases made will quickly invalidate this tip.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/incremental-social/index.html b/garden/incremental-social/index.html index 4bde3336..a667db9a 100644 --- a/garden/incremental-social/index.html +++ b/garden/incremental-social/index.html @@ -6,12 +6,12 @@ Incremental Social | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/ivy-road/index.html b/garden/ivy-road/index.html index ff735f6e..0c822c2c 100644 --- a/garden/ivy-road/index.html +++ b/garden/ivy-road/index.html @@ -6,12 +6,12 @@ Ivy Road | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Ivy Road

6 words, ~0 minute read. Planted +

Skip to content

Ivy Road

6 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Davey Wreden, Wanderstop

Tags: Davey Wreden

Ivy Road is a indie game studio created by Davey Wreden, Karla Kimonja, and C418

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Davey Wreden, Wanderstop

Tags: Davey Wreden

Ivy Road is a indie game studio created by Davey Wreden, Karla Kimonja, and C418

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/kronos/index.html b/garden/kronos/index.html index 049fd1b2..0c5e6540 100644 --- a/garden/kronos/index.html +++ b/garden/kronos/index.html @@ -6,12 +6,12 @@ Kronos | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Kronos

60 words, ~0 minute read. Planted +

Skip to content

Kronos

60 words, ~0 minute read. Planted . Last tended to -.


Referenced by: V-ecs

Tags: My Projects, Profectus

My largest and most ambitious incremental game I've ever made

  • A magnum opus, of sorts ;P

Still in development, and will be for a long time. I have full intention of completing it, however

An older version, that is built in The Modding Tree, only has the gameplay, and only goes up to Chapter 2, can be played here

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: V-ecs

Tags: My Projects, Profectus

My largest and most ambitious incremental game I've ever made

  • A magnum opus, of sorts ;P

Still in development, and will be for a long time. I have full intention of completing it, however

An older version, that is built in The Modding Tree, only has the gameplay, and only goes up to Chapter 2, can be played here

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/life-is-strange/index.html b/garden/life-is-strange/index.html index cc6e8d8e..b42ffab3 100644 --- a/garden/life-is-strange/index.html +++ b/garden/life-is-strange/index.html @@ -6,12 +6,12 @@ Life is Strange | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Life is Strange

654 words, ~4 minute read. Planted +

Skip to content

Life is Strange

654 words, ~4 minute read. Planted . Last tended to -.


A series of narrative driven video games with a focus on player choices

I really enjoyed the first game and engaged with the community a lot. I would get very emotional playing through the later chapters, and it became one of my favorite games.

Playthroughs I enjoyed:

Around the start of Haley and I's relationship, we'd play through LiS1 on projectors in our's classrooms

The ending

I was not a huge fan of the ending of Life is Strange. Of the two endings, one very clearly got a lot more resources spent on it, but I think Max's story has a better conclusion under the other.

In my mind, Max's arc (and major themes of the last chapter) was about learning not to rely on her powers, and to learn to live with the consequences of her actions. To that end, having the game end with her taking responsibility and living with the consequences of such a major event is a fitting thematic conclusion to the game and her character arc. In contrast, the other ending shows Max relying on her powers once again and, in my opinion, portrays Max as having not grown nor learned any lessons throughout the entire series. I think its a disservice this ending got so much more attention, with unique outfits and a song dedicated to it.

Life is Strange: Before the Storm

I really enjoyed this story. I didn't get quite as invested, perhaps due to it being a condensed 3 chapters rather than 5, but the characters will still just as amazing, which is what makes LiS so good. The ending didn't have as much of a punch as LiS1 - in fact, the entire back half of episode 3 didn't quite meet the bar in my eyes. At the time, I enjoyed these threads discussing criticisms levied at that part of the game:

Deadbones played through the game here

The Awesome Adventures of Captain Spirit

I enjoyed the demo, and it certainly got me hyped for LiS2 (although I would've been regardless). Switching to UE seemed like a really good move, and the comic theme fits the aesthetic of the series well.

Life is Strange 2

Unfortunately, I've only played the first chapter of this game. I wanted to play through it with Haley, but we haven't found time to do so.

LATER Skip the rest of LiS1 and play LiS2 with Haley

Life is Strange: True Colors

This game seems interesting, although the power does seem a little funnily close to "has empathy". I haven't had time to play it, but would like to.

Life is Strange: Double Exposure

I'm very excited for this game! Returning to Max's story sounds awesome. Although I will say, from the trailer alone it's incredibly obvious what one of the story beats will be: Revealing that the two timelines follow the two disparate endings from LiS1.

This game was announced to come with premium editions that get access to the game earlier

  • I think this is a horrible anti-consumer practice
  • Since this game is narratively driven, it is prone to spoilers
  • They're getting more money from their biggest fans without providing any tangible value to them, other than making the experience worse for everyone who plays but doesn't cough up that money
  • I hope other narratively driven games find other ways to do Video Game Monetization
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


A series of narrative driven video games with a focus on player choices

I really enjoyed the first game and engaged with the community a lot. I would get very emotional playing through the later chapters, and it became one of my favorite games.

Playthroughs I enjoyed:

Around the start of Haley and I's relationship, we'd play through LiS1 on projectors in our's classrooms

The ending

I was not a huge fan of the ending of Life is Strange. Of the two endings, one very clearly got a lot more resources spent on it, but I think Max's story has a better conclusion under the other.

In my mind, Max's arc (and major themes of the last chapter) was about learning not to rely on her powers, and to learn to live with the consequences of her actions. To that end, having the game end with her taking responsibility and living with the consequences of such a major event is a fitting thematic conclusion to the game and her character arc. In contrast, the other ending shows Max relying on her powers once again and, in my opinion, portrays Max as having not grown nor learned any lessons throughout the entire series. I think its a disservice this ending got so much more attention, with unique outfits and a song dedicated to it.

Life is Strange: Before the Storm

I really enjoyed this story. I didn't get quite as invested, perhaps due to it being a condensed 3 chapters rather than 5, but the characters will still just as amazing, which is what makes LiS so good. The ending didn't have as much of a punch as LiS1 - in fact, the entire back half of episode 3 didn't quite meet the bar in my eyes. At the time, I enjoyed these threads discussing criticisms levied at that part of the game:

Deadbones played through the game here

The Awesome Adventures of Captain Spirit

I enjoyed the demo, and it certainly got me hyped for LiS2 (although I would've been regardless). Switching to UE seemed like a really good move, and the comic theme fits the aesthetic of the series well.

Life is Strange 2

Unfortunately, I've only played the first chapter of this game. I wanted to play through it with Haley, but we haven't found time to do so.

LATER Skip the rest of LiS1 and play LiS2 with Haley

Life is Strange: True Colors

This game seems interesting, although the power does seem a little funnily close to "has empathy". I haven't had time to play it, but would like to.

Life is Strange: Double Exposure

I'm very excited for this game! Returning to Max's story sounds awesome. Although I will say, from the trailer alone it's incredibly obvious what one of the story beats will be: Revealing that the two timelines follow the two disparate endings from LiS1.

This game was announced to come with premium editions that get access to the game earlier

  • I think this is a horrible anti-consumer practice
  • Since this game is narratively driven, it is prone to spoilers
  • They're getting more money from their biggest fans without providing any tangible value to them, other than making the experience worse for everyone who plays but doesn't cough up that money
  • I hope other narratively driven games find other ways to do Video Game Monetization
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/logseq/index.html b/garden/logseq/index.html index b8cc3781..348ccb63 100644 --- a/garden/logseq/index.html +++ b/garden/logseq/index.html @@ -6,12 +6,12 @@ Logseq | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Logseq

3 words, ~0 minute read. Planted +

Skip to content

Logseq

3 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Command Palettes, This Knowledge Hub

Logseq is an Open Source outlining software

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Command Palettes, This Knowledge Hub

Logseq is an Open Source outlining software

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/matrix/index.html b/garden/matrix/index.html index 5d4dae67..a3bd7b01 100644 --- a/garden/matrix/index.html +++ b/garden/matrix/index.html @@ -6,12 +6,12 @@ Matrix | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Matrix

2 words, ~0 minute read. Planted +

Skip to content

Matrix

2 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Cinny, Commune, Synapse

Matrix is a protocol for Decentralized messaging

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Cinny, Commune, Synapse

Matrix is a protocol for Decentralized messaging

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/mbin/index.html b/garden/mbin/index.html index 80ac22c3..0cbfab52 100644 --- a/garden/mbin/index.html +++ b/garden/mbin/index.html @@ -6,12 +6,12 @@ Mbin | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Mbin

12 words, ~0 minute read. Planted +

Skip to content

Mbin

12 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Incremental Social

Mbin is an Open Source Fediverse software

Can show both twitter-style posts and reddit-style threads

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Incremental Social

Mbin is an Open Source Fediverse software

Can show both twitter-style posts and reddit-style threads

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/mtx/index.html b/garden/mtx/index.html index 7751599a..17e1390f 100644 --- a/garden/mtx/index.html +++ b/garden/mtx/index.html @@ -6,12 +6,12 @@ MTX | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

MTX

10 words, ~0 minute read. Planted +

Skip to content

MTX

10 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Premium Currency, Video Game Monetization

Purchaseable items in video games that cost real life currencies

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Premium Currency, Video Game Monetization

Purchaseable items in video games that cost real life currencies

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/my-personal-website/index.html b/garden/my-personal-website/index.html index 4cea98c5..ba9cbd95 100644 --- a/garden/my-personal-website/index.html +++ b/garden/my-personal-website/index.html @@ -6,12 +6,12 @@ My Personal Website | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

My Personal Website

10 words, ~0 minute read. Planted +

Skip to content

My Personal Website

10 words, ~0 minute read. Planted . Last tended to -.


Referenced by: The Small Web

A Personal Websites for myself, available at https://thepaperpilot.org

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: The Small Web

A Personal Websites for myself, available at https://thepaperpilot.org

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/my-projects/index.html b/garden/my-projects/index.html index 5c0c1613..820c05b5 100644 --- a/garden/my-projects/index.html +++ b/garden/my-projects/index.html @@ -6,12 +6,12 @@ My Projects | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

My Projects

72 words, ~0 minute read. Planted +

Skip to content

My Projects

72 words, ~0 minute read. Planted . Last tended to -.


Tagged by: Advent Incremental, Babble Buds, Capture the Citadel, Dice Armor, Game Dev Tree, Incremental Social, Kronos, Opti-Speech, Planar Pioneers, Profectus, V-ecs

I like making games and tools!

Games

Tools (and other non-games)

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tagged by: Advent Incremental, Babble Buds, Capture the Citadel, Dice Armor, Game Dev Tree, Incremental Social, Kronos, Opti-Speech, Planar Pioneers, Profectus, V-ecs

I like making games and tools!

Games

Tools (and other non-games)

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/nostr/index.html b/garden/nostr/index.html index 0d77f733..49df2539 100644 --- a/garden/nostr/index.html +++ b/garden/nostr/index.html @@ -6,12 +6,12 @@ Nostr | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Nostr

8 words, ~0 minute read. Planted +

Skip to content

Nostr

8 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Fediverse

Tags: Decentralized

Nostr is a protocol for Federated Social Media

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Fediverse

Tags: Decentralized

Nostr is a protocol for Federated Social Media

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/open-source/index.html b/garden/open-source/index.html index 49749ab6..4b9838f2 100644 --- a/garden/open-source/index.html +++ b/garden/open-source/index.html @@ -6,12 +6,12 @@ Open Source | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Open Source

25 words, ~0 minute read. Planted +

Skip to content

Open Source

25 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Advent Incremental, Cinny, Commune, Dice Armor, Forgejo, Game Dev Tree, Logseq, Mbin, Planar Pioneers, Profectus, Synapse, Vitepress, Weird

Projects with the source code publicly accessible

Typically also grants users the right to modify the code and redistribute those changes, depending on the license

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Advent Incremental, Cinny, Commune, Dice Armor, Forgejo, Game Dev Tree, Logseq, Mbin, Planar Pioneers, Profectus, Synapse, Vitepress, Weird

Projects with the source code publicly accessible

Typically also grants users the right to modify the code and redistribute those changes, depending on the license

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/opti-speech/index.html b/garden/opti-speech/index.html index 5c9612c3..ff7ff05a 100644 --- a/garden/opti-speech/index.html +++ b/garden/opti-speech/index.html @@ -6,12 +6,12 @@ Opti-Speech | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Opti-Speech

312 words, ~2 minute read. Planted +

Skip to content

Opti-Speech

312 words, ~2 minute read. Planted . Last tended to -.


Tags: My Projects

In college I continued development on the Opti-Speech project, originally built alongside the scientific paper Opti-speech: a real-time, 3d visual feedback system for speech training

The Original Project

The Optispeech project involves designing and testing a real-time tongue model that can be viewed in a transparent head while a subject talks — for the purposes of treating speech errors and teaching foreign language sounds. This work has been conducted in partnership with Vulintus and with support from the National Institutes of Health (NIH).

This video shows a talker with WAVE sensors placed on the tongue hitting a virtual target sphere located at the alveolar ridge. When an alveolar consonant is hit (e.g., /s/, /n/, /d/) the sphere changes color from red to green.

This video shows an American talker learning a novel sound not found in English. When the post-alveolar consonant is hit, the target sphere changes color from red to green. Here, the NDI WAVE system serves as input.

My Work

As the sole programmer at UT Dallas Speech Production Lab at the time, my changes involved updating to a more modern version of Unity, improving the interface, in general cleaning up tech debt so it can more easily support new features, and added support for additional EMA systems, namely the Carstens AG501.

In addition, the program now includes documentation and unit tests to improve program stability and maintainability going forward.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: My Projects

In college I continued development on the Opti-Speech project, originally built alongside the scientific paper Opti-speech: a real-time, 3d visual feedback system for speech training

The Original Project

The Optispeech project involves designing and testing a real-time tongue model that can be viewed in a transparent head while a subject talks — for the purposes of treating speech errors and teaching foreign language sounds. This work has been conducted in partnership with Vulintus and with support from the National Institutes of Health (NIH).

This video shows a talker with WAVE sensors placed on the tongue hitting a virtual target sphere located at the alveolar ridge. When an alveolar consonant is hit (e.g., /s/, /n/, /d/) the sphere changes color from red to green.

This video shows an American talker learning a novel sound not found in English. When the post-alveolar consonant is hit, the target sphere changes color from red to green. Here, the NDI WAVE system serves as input.

My Work

As the sole programmer at UT Dallas Speech Production Lab at the time, my changes involved updating to a more modern version of Unity, improving the interface, in general cleaning up tech debt so it can more easily support new features, and added support for additional EMA systems, namely the Carstens AG501.

In addition, the program now includes documentation and unit tests to improve program stability and maintainability going forward.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/planar-pioneers/index.html b/garden/planar-pioneers/index.html index b4b77eaa..46ec5c84 100644 --- a/garden/planar-pioneers/index.html +++ b/garden/planar-pioneers/index.html @@ -6,12 +6,12 @@ Planar Pioneers | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Planar Pioneers

25 words, ~0 minute read. Planted +

Skip to content

Planar Pioneers

25 words, ~0 minute read. Planted . Last tended to -.


Tags: My Projects, Profectus

Play it here!

An Open Source game designed to show off Profectus' dynamic layer system!

The TV Tropes page on this game mentions some of the cool things about this game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: My Projects, Profectus

Play it here!

An Open Source game designed to show off Profectus' dynamic layer system!

The TV Tropes page on this game mentions some of the cool things about this game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/pre-order-bonuses/index.html b/garden/pre-order-bonuses/index.html index 0ba3389d..2ff56171 100644 --- a/garden/pre-order-bonuses/index.html +++ b/garden/pre-order-bonuses/index.html @@ -6,12 +6,12 @@ Pre-Order Bonuses | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Pre-Order Bonuses

98 words, ~1 minute read. Planted +

Skip to content

Pre-Order Bonuses

98 words, ~1 minute read. Planted . Last tended to -.


Referenced by: Video Game Monetization

Pre-order bonuses are benefits given to players who buy a game before it comes out

They primarily serve to benefit the company

  • People commit to buying before the embargo date passes
  • Heuristic of how well it'll sell after launch
  • Slight lead on return on investment
    • More significantly impacts indie studios, who will likely have less cash on hand
  • Companies make deals with storefronts to have exclusive bonuses, to drive customers to said storefronts

Common bonuses:

  • Digital goods:
  • Physical goods:
    • Typically pins, keychains, etc.
    • Typically only included in physical editions of the game
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Video Game Monetization

Pre-order bonuses are benefits given to players who buy a game before it comes out

They primarily serve to benefit the company

  • People commit to buying before the embargo date passes
  • Heuristic of how well it'll sell after launch
  • Slight lead on return on investment
    • More significantly impacts indie studios, who will likely have less cash on hand
  • Companies make deals with storefronts to have exclusive bonuses, to drive customers to said storefronts

Common bonuses:

  • Digital goods:
  • Physical goods:
    • Typically pins, keychains, etc.
    • Typically only included in physical editions of the game
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/premium-currency/index.html b/garden/premium-currency/index.html index e4c85db5..0f94e8e8 100644 --- a/garden/premium-currency/index.html +++ b/garden/premium-currency/index.html @@ -6,12 +6,12 @@ Premium Currency | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Premium Currency

71 words, ~0 minute read. Planted +

Skip to content

Premium Currency

71 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Pre-Order Bonuses

A popular form of MTX where instead of receiving a useful item or effect directly, you receive a currency that is then spent on an in game store

Reasons companies use them

  • Abstracts the real world price of items
    • No strict conversion ratio
    • Discounts for bulk purchasing
    • Small amounts given for free based on story progression or watching ads
  • Consolidates smaller purchases into a larger one (decreasing friction of individual purchases)
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Pre-Order Bonuses

A popular form of MTX where instead of receiving a useful item or effect directly, you receive a currency that is then spent on an in game store

Reasons companies use them

  • Abstracts the real world price of items
    • No strict conversion ratio
    • Discounts for bulk purchasing
    • Small amounts given for free based on story progression or watching ads
  • Consolidates smaller purchases into a larger one (decreasing friction of individual purchases)
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/profectus/index.html b/garden/profectus/index.html index 661056d7..a101b824 100644 --- a/garden/profectus/index.html +++ b/garden/profectus/index.html @@ -6,12 +6,12 @@ Profectus | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Profectus

73 words, ~0 minute read. Planted +

Skip to content

Profectus

73 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Advent Incremental, Planar Pioneers

Tagged by: Advent Incremental, Kronos, Planar Pioneers

Tags: My Projects

Profectus is an Open Source game engine I made, loosely based on The Modding Tree by Acamaeda

Technically it's more of a template for making web games

It centers around using Vue's reactivity and is designed with the intent to not restrain developers into making games that only look or behave "one way"

Games made with Profectus:

  • Everything in this garden tagged with this page!
  • The entries to the Profectus Creation Jam
  • Primordia by Jacorb
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Advent Incremental, Planar Pioneers

Tagged by: Advent Incremental, Kronos, Planar Pioneers

Tags: My Projects

Profectus is an Open Source game engine I made, loosely based on The Modding Tree by Acamaeda

Technically it's more of a template for making web games

It centers around using Vue's reactivity and is designed with the intent to not restrain developers into making games that only look or behave "one way"

Games made with Profectus:

  • Everything in this garden tagged with this page!
  • The entries to the Profectus Creation Jam
  • Primordia by Jacorb
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/social-media/index.html b/garden/social-media/index.html index b9632a88..a60a22d6 100644 --- a/garden/social-media/index.html +++ b/garden/social-media/index.html @@ -6,12 +6,12 @@ Social Media | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Social Media

98 words, ~1 minute read. Planted +

Skip to content

Social Media

98 words, ~1 minute read. Planted . Last tended to -.


Referenced by: Commune, Fediverse

Traditional social media

  • Not Decentralized
    • Can't choose your own rules, sorting methods, data queries, etc.
  • Overrun by scams and ads and influencers

Federated Social Media

  • Partially Decentralized
    • Self hosting is too hard for everyone to do
    • Still subject to instance's moderation, limitations, etc.
  • Users need to pick an instance, associating their identity with one specific group
    • People belong to many groups
    • The person is permanently associated with that one group
    • You have to pick before getting a "trial period" to ensure you actually like that group/instance

My take on an ideal social media Fedi v2

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Commune, Fediverse

Traditional social media

  • Not Decentralized
    • Can't choose your own rules, sorting methods, data queries, etc.
  • Overrun by scams and ads and influencers

Federated Social Media

  • Partially Decentralized
    • Self hosting is too hard for everyone to do
    • Still subject to instance's moderation, limitations, etc.
  • Users need to pick an instance, associating their identity with one specific group
    • People belong to many groups
    • The person is permanently associated with that one group
    • You have to pick before getting a "trial period" to ensure you actually like that group/instance

My take on an ideal social media Fedi v2

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/synapse/index.html b/garden/synapse/index.html index d01c9485..c8ccb683 100644 --- a/garden/synapse/index.html +++ b/garden/synapse/index.html @@ -6,12 +6,12 @@ Synapse | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Synapse

2 words, ~0 minute read. Planted +

Skip to content

Synapse

2 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Incremental Social

Synapse is an Open Source server software for the Matrix protocol

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Incremental Social

Synapse is an Open Source server software for the Matrix protocol

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/the-beginner-s-guide/index.html b/garden/the-beginner-s-guide/index.html index 3e56581f..52541e71 100644 --- a/garden/the-beginner-s-guide/index.html +++ b/garden/the-beginner-s-guide/index.html @@ -6,12 +6,12 @@ The Beginner's Guide | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

The Beginner's Guide

70 words, ~0 minute read. Planted +

Skip to content

The Beginner's Guide

70 words, ~0 minute read. Planted . Last tended to -.


Tags: Davey Wreden

My favorite video game of all time, bar none. Created by Davey Wreden

The game broadly comments on the relationship between creators and consumers, and it can apply to all forms of art

  • Perhaps also an important commentary on parasocial relationships

Important analyses:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: Davey Wreden

My favorite video game of all time, bar none. Created by Davey Wreden

The game broadly comments on the relationship between creators and consumers, and it can apply to all forms of art

  • Perhaps also an important commentary on parasocial relationships

Important analyses:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/the-cozy-web/index.html b/garden/the-cozy-web/index.html index d93861e3..31aef86f 100644 --- a/garden/the-cozy-web/index.html +++ b/garden/the-cozy-web/index.html @@ -6,12 +6,12 @@ The Cozy Web | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

The Cozy Web

45 words, ~0 minute read. Planted +

Skip to content

The Cozy Web

45 words, ~0 minute read. Planted . Last tended to -.


Referenced by: Digital Gardens, The Small Web

The Cozy Web is an extension of the dark forest theory of the Internet

It refers to the part of the web that is not web indexable

This part of the web is known for not typically having ads or marketers

Popularized by this article written by Maggie Appleton, who has also written a lot about Digital Gardens

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Digital Gardens, The Small Web

The Cozy Web is an extension of the dark forest theory of the Internet

It refers to the part of the web that is not web indexable

This part of the web is known for not typically having ads or marketers

Popularized by this article written by Maggie Appleton, who has also written a lot about Digital Gardens

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/the-indieweb/amplification/index.html b/garden/the-indieweb/amplification/index.html index e7ebfe5a..dbaf954b 100644 --- a/garden/the-indieweb/amplification/index.html +++ b/garden/the-indieweb/amplification/index.html @@ -6,12 +6,12 @@ The IndieWeb/Amplification | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

The IndieWeb/Amplification

57 words, ~0 minute read. Planted +

Skip to content

The IndieWeb/Amplification

57 words, ~0 minute read. Planted . Last tended to -.


Refers to reblogging (and re-hosting, sometimes) of someone else's content on your own site

The Internet is a series of webs discusses some ideas and best practices for amplification

To ensure the rehosted content actually came from the claimed author and was not tampered with, all content should be signed using The IndieWeb/Signature Blocks

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Refers to reblogging (and re-hosting, sometimes) of someone else's content on your own site

The Internet is a series of webs discusses some ideas and best practices for amplification

To ensure the rehosted content actually came from the claimed author and was not tampered with, all content should be signed using The IndieWeb/Signature Blocks

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/the-indieweb/signature-blocks/index.html b/garden/the-indieweb/signature-blocks/index.html index 59d243cc..b4018abf 100644 --- a/garden/the-indieweb/signature-blocks/index.html +++ b/garden/the-indieweb/signature-blocks/index.html @@ -6,12 +6,12 @@ The IndieWeb/Signature Blocks | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

The IndieWeb/Signature Blocks

14 words, ~0 minute read. Planted +

Skip to content

The IndieWeb/Signature Blocks

14 words, ~0 minute read. Planted . Last tended to -.


A proposal I want to write for posting signed content on your IndieWeb website

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


A proposal I want to write for posting signed content on your IndieWeb website

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/the-small-web/index.html b/garden/the-small-web/index.html index e0f510d0..2fed01ab 100644 --- a/garden/the-small-web/index.html +++ b/garden/the-small-web/index.html @@ -6,12 +6,12 @@ The Small Web | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

The Small Web

443 words, ~2 minute read. Planted +

Skip to content

The Small Web

443 words, ~2 minute read. Planted . Last tended to -.


Referenced by: /now, This Knowledge Hub

Small personal websites created by individuals

  • My Personal Website is part of the small web
  • A callback to how the web was before social media, which homogenized content
  • These pages are diverse and typically won't have ads or marketers

The small web as a whole is Freeform

  • Individual sites may be Chronological still
  • Individual sites link between each other in ways similar to wikis

Browsing the small web

Follow Webrings or other links from known small websites

Marginalia is a search engine for non-commercial content with a "random" button and filters for the small web explicitly (amongst other useful filters!)

Building personal websites

IndieWeb contains various resources

  • Their building blocks are standards people can use to help the small web connect with each other consistently
  • They discourage the use of site builders or templates that end up making sites look too homogenized

Free hosting for static websites:

Streams

Microsub is a proposed protocol to support this

  • That way, people could use microsub clients to subscribe to multiple streams and get them in one feed
  • Effectively a Federated Social Media that works through personal websites
  • Announce new posts using WebSub

This also allows your personal website to be the one source of truth for your posted content

Multiple streams can be hosted by one site/person so people can subscribe to the kind of content they're interested in

How viable would it be to include chat messages in a stream as well?

  • Perhaps with Chat Glue you could link to specific branches I chatted in

Digital Gardens

These sites may be useful to occasionally check up on rather than get notifications from on every post/change

  • Although Garden-RSS could allow those who want to receive notifications to do so

The future

The Internet is a series of webs talks about transitioning from our current consolidated web back to the indie web

Why people want the small web

There are tools these days that make making websites incredibly easy

  • Back in the day geocities was pretty complicated but a lot of people managed to make pages there
  • Neocities has an extensive page on Learn How to Make Websites!

Hosting can be expensive, but static websites are cheap

  • There are plenty of free options out there for hosting static websites
    • Ideally you'd use some sort of system that is easily transferrable to other servers, and possibly even supports nomadic identities
    • Free hosting for static websites:
    • People are creative and love creating things

The web has lost its soul

You should check out the indie web

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: /now, This Knowledge Hub

Small personal websites created by individuals

  • My Personal Website is part of the small web
  • A callback to how the web was before social media, which homogenized content
  • These pages are diverse and typically won't have ads or marketers

The small web as a whole is Freeform

  • Individual sites may be Chronological still
  • Individual sites link between each other in ways similar to wikis

Browsing the small web

Follow Webrings or other links from known small websites

Marginalia is a search engine for non-commercial content with a "random" button and filters for the small web explicitly (amongst other useful filters!)

Building personal websites

IndieWeb contains various resources

  • Their building blocks are standards people can use to help the small web connect with each other consistently
  • They discourage the use of site builders or templates that end up making sites look too homogenized

Free hosting for static websites:

Streams

Microsub is a proposed protocol to support this

  • That way, people could use microsub clients to subscribe to multiple streams and get them in one feed
  • Effectively a Federated Social Media that works through personal websites
  • Announce new posts using WebSub

This also allows your personal website to be the one source of truth for your posted content

Multiple streams can be hosted by one site/person so people can subscribe to the kind of content they're interested in

How viable would it be to include chat messages in a stream as well?

  • Perhaps with Chat Glue you could link to specific branches I chatted in

Digital Gardens

These sites may be useful to occasionally check up on rather than get notifications from on every post/change

  • Although Garden-RSS could allow those who want to receive notifications to do so

The future

The Internet is a series of webs talks about transitioning from our current consolidated web back to the indie web

Why people want the small web

There are tools these days that make making websites incredibly easy

  • Back in the day geocities was pretty complicated but a lot of people managed to make pages there
  • Neocities has an extensive page on Learn How to Make Websites!

Hosting can be expensive, but static websites are cheap

  • There are plenty of free options out there for hosting static websites
    • Ideally you'd use some sort of system that is easily transferrable to other servers, and possibly even supports nomadic identities
    • Free hosting for static websites:
    • People are creative and love creating things

The web has lost its soul

You should check out the indie web

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/this-knowledge-hub/index.html b/garden/this-knowledge-hub/index.html index 9e87f646..4d573ead 100644 --- a/garden/this-knowledge-hub/index.html +++ b/garden/this-knowledge-hub/index.html @@ -6,12 +6,12 @@ This Knowledge Hub | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

This Knowledge Hub

135 words, ~1 minute read. Planted +

Skip to content

This Knowledge Hub

135 words, ~1 minute read. Planted . Last tended to -.


Referenced by: Digital Gardens

This is my knowledge hub!

  • It's a Digital Garden collecting my thoughts in varying levels of completeness on basically anything I have interest in

This is not Wikipedia. My thoughts are biased and argumentative, but to the best of my ability based on fact and expertise

I'm writing on something essentially every day

  • Most of my pages are private, especially the journal pages
  • I'll only push updates to this site every so often (not an automatic process)
  • Until something like Garden-RSS exists, we'll have to make do with /changelog which gives a git diff summary for every pushed change, in the form of a The IndieWeb stream as well as an RSS feed

Written in Logseq and rendered with Vitepress

I want to utilize the strategies described in Andy's working notes to help improve my digital garden

Suggested pages:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Digital Gardens

This is my knowledge hub!

  • It's a Digital Garden collecting my thoughts in varying levels of completeness on basically anything I have interest in

This is not Wikipedia. My thoughts are biased and argumentative, but to the best of my ability based on fact and expertise

I'm writing on something essentially every day

  • Most of my pages are private, especially the journal pages
  • I'll only push updates to this site every so often (not an automatic process)
  • Until something like Garden-RSS exists, we'll have to make do with /changelog which gives a git diff summary for every pushed change, in the form of a The IndieWeb stream as well as an RSS feed

Written in Logseq and rendered with Vitepress

I want to utilize the strategies described in Andy's working notes to help improve my digital garden

Suggested pages:

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/v-ecs/index.html b/garden/v-ecs/index.html index 35a95c89..adf98e17 100644 --- a/garden/v-ecs/index.html +++ b/garden/v-ecs/index.html @@ -6,12 +6,12 @@ V-ecs | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

V-ecs

209 words, ~1 minute read. Planted +

Skip to content

V-ecs

209 words, ~1 minute read. Planted . Last tended to -.


Tags: My Projects

V-ecs (pronounced "Vex") is a Vulkan-based engine I made for making highly moddable games and tools in Lua centered around the ECS design pattern and a work-stealing job system.

The engine works with "worlds", which are collections of systems and renderers. The engine comes with several worlds using systems and renderers I made, including a voxel world, an incremental game, and some test scenes. All of these include systems to render the fps as well as show a debug console by typing the grave key (`). The default world is a title screen that detects any worlds in the "worlds" folder and displays a button for each of them.

The original plans were to eventually put it on the steam workshop so people could more easily share their creations amongst each other, but I never became happy enough with the performance of the engine - the parallelization of the lua code involved a lot of overhead that severely limited performance.

Instead, I made a couple of worlds by myself - an infinite procedurally generated voxel world, a simple incremental game, and a more complex incremental game I call "Sands of Time".

The gameplay of Sands of Time was replicated in Kronos Chapter 2!

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: My Projects

V-ecs (pronounced "Vex") is a Vulkan-based engine I made for making highly moddable games and tools in Lua centered around the ECS design pattern and a work-stealing job system.

The engine works with "worlds", which are collections of systems and renderers. The engine comes with several worlds using systems and renderers I made, including a voxel world, an incremental game, and some test scenes. All of these include systems to render the fps as well as show a debug console by typing the grave key (`). The default world is a title screen that detects any worlds in the "worlds" folder and displays a button for each of them.

The original plans were to eventually put it on the steam workshop so people could more easily share their creations amongst each other, but I never became happy enough with the performance of the engine - the parallelization of the lua code involved a lot of overhead that severely limited performance.

Instead, I made a couple of worlds by myself - an infinite procedurally generated voxel world, a simple incremental game, and a more complex incremental game I call "Sands of Time".

The gameplay of Sands of Time was replicated in Kronos Chapter 2!

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/video-game-monetization/index.html b/garden/video-game-monetization/index.html index 0b35409e..57da1e65 100644 --- a/garden/video-game-monetization/index.html +++ b/garden/video-game-monetization/index.html @@ -6,12 +6,12 @@ Video Game Monetization | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Video Game Monetization

123 words, ~1 minute read. Planted +

Skip to content

Video Game Monetization

123 words, ~1 minute read. Planted . Last tended to -.


Referenced by: Life is Strange

AAA games

Cost a lot of money to make, mostly due to the graphics arms race

The price required to make games that expensive earn the cost back would be much higher than the current price of AAA games

Graphics would not justify those higher prices, and AAA studios know this

Techniques AAA games use to make more money without raising the base price:

Free-to-play games

Typically utilize MTX and ads in order to profit

Indie developers

Trying to make a sustainable living is hard

The industry is packed with lots of competition

I don't blame them for their monetization

Ethical game monetization

Requirements:

  • Free demo
  • Paid base game
  • No MTX
  • Paid content expansions
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Life is Strange

AAA games

Cost a lot of money to make, mostly due to the graphics arms race

The price required to make games that expensive earn the cost back would be much higher than the current price of AAA games

Graphics would not justify those higher prices, and AAA studios know this

Techniques AAA games use to make more money without raising the base price:

Free-to-play games

Typically utilize MTX and ads in order to profit

Indie developers

Trying to make a sustainable living is hard

The industry is packed with lots of competition

I don't blame them for their monetization

Ethical game monetization

Requirements:

  • Free demo
  • Paid base game
  • No MTX
  • Paid content expansions
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/vitepress/index.html b/garden/vitepress/index.html index 2fcd07e8..2767e1a3 100644 --- a/garden/vitepress/index.html +++ b/garden/vitepress/index.html @@ -6,12 +6,12 @@ Vitepress | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Vitepress

4 words, ~0 minute read. Planted +

Skip to content

Vitepress

4 words, ~0 minute read. Planted . Last tended to -.


Referenced by: This Knowledge Hub

Vitepress is an Open Source static site generator

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: This Knowledge Hub

Vitepress is an Open Source static site generator

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/wanderstop/index.html b/garden/wanderstop/index.html index 27190e23..862273b3 100644 --- a/garden/wanderstop/index.html +++ b/garden/wanderstop/index.html @@ -6,12 +6,12 @@ Wanderstop | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Wanderstop

8 words, ~0 minute read. Planted +

Skip to content

Wanderstop

8 words, ~0 minute read. Planted . Last tended to -.


Tags: Davey Wreden

Wanderstop is the first game by Ivy Road. It's a narrative focused cozy game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Tags: Davey Wreden

Wanderstop is the first game by Ivy Road. It's a narrative focused cozy game

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/webrings/index.html b/garden/webrings/index.html index ce827712..3d5435c8 100644 --- a/garden/webrings/index.html +++ b/garden/webrings/index.html @@ -6,12 +6,12 @@ Webrings | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Webrings

139 words, ~1 minute read. Planted +

Skip to content

Webrings

139 words, ~1 minute read. Planted . Last tended to -.


Referenced by: The Small Web

A collection of Personal Websites that link to each other

  • These websites are all endorsing each other
  • They form a network of related sites readers might be interested in
  • Built on human trust rather than algorithms

Commune has a vision for modern webrings

  • Have communities set up matrix spaces for chatting
  • Multiple spaces can contain the same room
  • Related communities can share a room about a relevant topic
    • e.g. a bunch of game development libraries shared a "Game Design" room
  • This allows smaller communities to grow from cross-pollinating with other related communities
  • Could Incremental Social host a shared "Incremental Games" room?
    • How to bridge one channel to multiple discord servers, since that's where most incremental games communities are
    • Would this be appealing to already large communities?
    • Would this be overwhelming to smaller communities?
    • Who would moderate?
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: The Small Web

A collection of Personal Websites that link to each other

  • These websites are all endorsing each other
  • They form a network of related sites readers might be interested in
  • Built on human trust rather than algorithms

Commune has a vision for modern webrings

  • Have communities set up matrix spaces for chatting
  • Multiple spaces can contain the same room
  • Related communities can share a room about a relevant topic
    • e.g. a bunch of game development libraries shared a "Game Design" room
  • This allows smaller communities to grow from cross-pollinating with other related communities
  • Could Incremental Social host a shared "Incremental Games" room?
    • How to bridge one channel to multiple discord servers, since that's where most incremental games communities are
    • Would this be appealing to already large communities?
    • Would this be overwhelming to smaller communities?
    • Who would moderate?
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/garden/weird/index.html b/garden/weird/index.html index 443fb5e2..b8e7c4e2 100644 --- a/garden/weird/index.html +++ b/garden/weird/index.html @@ -6,12 +6,12 @@ Weird | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Weird

114 words, ~1 minute read. Planted +

Skip to content

Weird

114 words, ~1 minute read. Planted . Last tended to -.


Referenced by: Commune, Fedi v2, The Small Web

Weird is an Open Source project by the Commune team currently in development

Aims to make creating Personal Websites with Federated Identity available to everyone

  • Also plans on having paid tiers for giving people access to single user instances of various Fediverse tools

Long term, Weird wants to build a new better fediverse

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Referenced by: Commune, Fedi v2, The Small Web

Weird is an Open Source project by the Commune team currently in development

Aims to make creating Personal Websites with Federated Identity available to everyone

  • Also plans on having paid tiers for giving people access to single user instances of various Fediverse tools

Long term, Weird wants to build a new better fediverse

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/guide-to-incrementals/design/criticism/index.html b/guide-to-incrementals/design/criticism/index.html index 99d594fb..63b6facf 100644 --- a/guide-to-incrementals/design/criticism/index.html +++ b/guide-to-incrementals/design/criticism/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Navigating Criticism | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Navigating Criticism

747 words, ~4 minute read. Planted +

Skip to content

Guide to Incrementals/Navigating Criticism

747 words, ~4 minute read. Planted . Last tended to -.


Developing games is fun and exciting and teaches a lot of wonderful skills - I enthusiastically encourage anyone with an interest in game development to try it out - and incremental games are a wonderful way to get started. However, there are many challenges young and inexperienced developers have to face, and I think the hardest one - harder than coding, debugging, balancing, etc. - is handling criticism. When you put your heart and soul into a game it is natural to feel very vulnerable. While I think there's a lot communities can do to ensure they're welcoming, positive and constructive with their criticisms, inevitably you will eventually read some, and potentially a lot, of comments that can deeply affect you. No one is immune to this, from young incremental game developers to the largest content creators you can think of. That's why it's important to be able to process and navigate criticism, because ultimately collecting feedback is essential to the journey to becoming a better developer. On this page, we'll explore how to embrace criticism, grow from it, and continue to post your games publicly with confidence.

Reading Feedback

Game development is a skill that takes time and practice to get truly great at. Criticism and other constructive feedback are vital to continually improving. It's useful to look at the criticism as solely a tool for improving this game and future games - that is to say, it should never be used against you as a person. Insults towards the developer(s) themselves are never okay and should not be allowed within whatever community you're sharing your works in. If you do come across a comment you interpret as an attack upon your person, you should report it. For other negative comments, try not to internalize them; instead, focus on improving the game. By distancing your own identity from your work emotionally, you can better analyze the game and use the feedback to your advantage.

Not all feedback is made equal, and you don't need to feel compelled to read and obey every piece of feedback you receive. Learn to distinguish between constructive feedback and unhelpful comments. Constructive feedback typically offers specific suggestions for improvement, while unhelpful comments are often vague or hurtful. Prioritize the former and disregard the latter. That said, most feedback you get will not be from game developers, so take specific suggestions with a grain of salt. Determine the actual problem they're experiencing, and design what you believe the best solution to that problem would be, regardless if that's the specific solution the player asked for. And keep in mind, due to different player preferences you'll never satisfy everyone, and you don't need to. Ultimately if even just you find the game fun, then that's a success.

Seeking Feedback

When deciding where to share your game, consider the type of players you anticipate getting, and the kind of feedback you can anticipate receiving. Different communities will have different levels of support for learning developers, and certain communities may prefer certain types of games or mechanics. It's important to get a diverse set of feedback focused on players you think will enjoy the specific game you're making.

Collecting feedback from other game developers is incredibly helpful. They've trained themselves to recognize good and bad game design and how to articulate the differences, and from my experience are much more likely to leave positive and constructive comments since they've been in your shoes before! They understand the struggles and can offer guidance and emotional support.

Responding to Feedback

Negative feedback can naturally feel like an attack, and it's okay to get angry. However, lashing back is never the appropriate response. It's best to cool off IRL, and keep in mind all the positive comments you've received. There's a concept in Psychology called negative bias that explains how negative feedback tends to stick with us much more prominently than positive feedback, so it's useful to regularly remind yourself of all the positive feedback you've received. Celebrate your successes, no matter how small they may seem - getting a game to a state you can publicly share it with people is an accomplishment in and of itself!

Remember your passion and your initial reasons for getting into game development. The journey will have its ups and downs, but staying true to your vision and passion will keep you motivated.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Developing games is fun and exciting and teaches a lot of wonderful skills - I enthusiastically encourage anyone with an interest in game development to try it out - and incremental games are a wonderful way to get started. However, there are many challenges young and inexperienced developers have to face, and I think the hardest one - harder than coding, debugging, balancing, etc. - is handling criticism. When you put your heart and soul into a game it is natural to feel very vulnerable. While I think there's a lot communities can do to ensure they're welcoming, positive and constructive with their criticisms, inevitably you will eventually read some, and potentially a lot, of comments that can deeply affect you. No one is immune to this, from young incremental game developers to the largest content creators you can think of. That's why it's important to be able to process and navigate criticism, because ultimately collecting feedback is essential to the journey to becoming a better developer. On this page, we'll explore how to embrace criticism, grow from it, and continue to post your games publicly with confidence.

Reading Feedback

Game development is a skill that takes time and practice to get truly great at. Criticism and other constructive feedback are vital to continually improving. It's useful to look at the criticism as solely a tool for improving this game and future games - that is to say, it should never be used against you as a person. Insults towards the developer(s) themselves are never okay and should not be allowed within whatever community you're sharing your works in. If you do come across a comment you interpret as an attack upon your person, you should report it. For other negative comments, try not to internalize them; instead, focus on improving the game. By distancing your own identity from your work emotionally, you can better analyze the game and use the feedback to your advantage.

Not all feedback is made equal, and you don't need to feel compelled to read and obey every piece of feedback you receive. Learn to distinguish between constructive feedback and unhelpful comments. Constructive feedback typically offers specific suggestions for improvement, while unhelpful comments are often vague or hurtful. Prioritize the former and disregard the latter. That said, most feedback you get will not be from game developers, so take specific suggestions with a grain of salt. Determine the actual problem they're experiencing, and design what you believe the best solution to that problem would be, regardless if that's the specific solution the player asked for. And keep in mind, due to different player preferences you'll never satisfy everyone, and you don't need to. Ultimately if even just you find the game fun, then that's a success.

Seeking Feedback

When deciding where to share your game, consider the type of players you anticipate getting, and the kind of feedback you can anticipate receiving. Different communities will have different levels of support for learning developers, and certain communities may prefer certain types of games or mechanics. It's important to get a diverse set of feedback focused on players you think will enjoy the specific game you're making.

Collecting feedback from other game developers is incredibly helpful. They've trained themselves to recognize good and bad game design and how to articulate the differences, and from my experience are much more likely to leave positive and constructive comments since they've been in your shoes before! They understand the struggles and can offer guidance and emotional support.

Responding to Feedback

Negative feedback can naturally feel like an attack, and it's okay to get angry. However, lashing back is never the appropriate response. It's best to cool off IRL, and keep in mind all the positive comments you've received. There's a concept in Psychology called negative bias that explains how negative feedback tends to stick with us much more prominently than positive feedback, so it's useful to regularly remind yourself of all the positive feedback you've received. Celebrate your successes, no matter how small they may seem - getting a game to a state you can publicly share it with people is an accomplishment in and of itself!

Remember your passion and your initial reasons for getting into game development. The journey will have its ups and downs, but staying true to your vision and passion will keep you motivated.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/guide-to-incrementals/index.html b/guide-to-incrementals/index.html index caaf7bc3..93da8f64 100644 --- a/guide-to-incrementals/index.html +++ b/guide-to-incrementals/index.html @@ -6,12 +6,12 @@ Guide to Incrementals | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals

251 words, ~1 minute read. Planted +

Skip to content

Guide to Incrementals

251 words, ~1 minute read. Planted . Last tended to -.


This is a comprehensive guide to Incremental Games, a genre of video games. It will explore defining the genre, why it's appealing, and how to design and build your own incremental game. Along the way will be interactive examples, snippets from other creators, and relevant material to contextualize everything.

Note: This is an incomplete document. I want to keep adding opinions and opposing views from other incremental games developers, and add interactive examples to illustrate various points regarding game design and balancing. Consider this a living document - and see the changelog at the end.

Note: This was made before my switch to a digital garden, and is written as prose. Hope you don't mind!

Why am I making this?

That's a good question! What authority do I have to be making this guide? I haven't made the best incremental games, nor the most incremental games, certainly not the most popular ones either. But I do have some formal education in game development, know a lot of incremental game devs (as well as other game devs), and have a passionate interest in ludology, classifying genres, etc. I've also made a couple of incremental games) myself.

If you have any additional questions about my credentials or anything on this site, feel free to reach out!

Ludology

Making an Incremental

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


This is a comprehensive guide to Incremental Games, a genre of video games. It will explore defining the genre, why it's appealing, and how to design and build your own incremental game. Along the way will be interactive examples, snippets from other creators, and relevant material to contextualize everything.

Note: This is an incomplete document. I want to keep adding opinions and opposing views from other incremental games developers, and add interactive examples to illustrate various points regarding game design and balancing. Consider this a living document - and see the changelog at the end.

Note: This was made before my switch to a digital garden, and is written as prose. Hope you don't mind!

Why am I making this?

That's a good question! What authority do I have to be making this guide? I haven't made the best incremental games, nor the most incremental games, certainly not the most popular ones either. But I do have some formal education in game development, know a lot of incremental game devs (as well as other game devs), and have a passionate interest in ludology, classifying genres, etc. I've also made a couple of incremental games) myself.

If you have any additional questions about my credentials or anything on this site, feel free to reach out!

Ludology

Making an Incremental

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/guide-to-incrementals/ludology/appeal-developers/index.html b/guide-to-incrementals/ludology/appeal-developers/index.html index bb8d76d1..939b5eb6 100644 --- a/guide-to-incrementals/ludology/appeal-developers/index.html +++ b/guide-to-incrementals/ludology/appeal-developers/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Appeal to Developers | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Appeal to Developers

636 words, ~3 minute read. Planted +

Skip to content

Guide to Incrementals/Appeal to Developers

636 words, ~3 minute read. Planted . Last tended to -.


There are a lot of developers in the incremental games community - the genre seems to draw them in, and convert a lot of players into developers. Let's explore the reasons why this genre appeals to developers.

Incrementals are Easy to Make

Compared to other genres, incrementals have quite low expectations. You don't need to make fancy art, or music, or lay things out nicely. If you can make a button and learn the few lines of code necessary to make a number go up, you can make an incremental. This low threshold makes the genre perfect for those who are actively learning to code and haven't developed any gamedev-related skills yet.

Additionally, unlike other genres incrementals are uniquely easy to implement in a normal web page - no need to worry about rendering sprites, moving them around, implementing physics, etc. New developers can just use HTML to add a button, and the game is now available in your browser. You don't need to choose an engine, have admin privileges, or hell for the dedicated you don't even need a computer - there are tools for web development that run in the browser itself, so you can technically use your phone if that's all you have.

Javascript is a perfectly viable language for making web games, whereas other genres are typically going to require using other more difficult languages to learn. There are countless javascript tutorials that start from 0 knowledge of programming, making it incredibly accessible to beginners.

Players are Easy to Find

Once you've finished your game and uploaded it on github pages or itch or just copied the link if you're using glitch or replit (all of which are easy to do), anyone can now play the game in their browser. This low barrier to entry has shown tremendous success in getting completely unknown developers to have thousands of plays.

The incremental games community, which mostly centers around r/incremental_games, is always looking for new games and tends to flood any new ones posted with initial players.

Having your games be played can be incredibly motivating, and the community makes it quite clear that you can expect players to play your game. These communities - both for incremental games in general as well as game-specific communities - tend to be very developer friendly as well. A lot of the developers know each other, and welcome new developers with open arms, often with dedicated channels for programming help and discussions.

Monetization

I'd like to clarify that everything I've said above mainly applies to web-based incrementals. Incremental games are also incredibly popular on mobile, but with a much different culture and community. Many mobile gamers will still participate in the web-focused community for the culture. This web-focused community has a culture that has been criticized for being "anti-monetization". Ads, IAPs, and similar forms of monetization are often criticized, mainly due to the abundance of completely non-monetized games available from hobbyist developers. There are exceptions, like paid games often being considered fine, like Increlution or Stuck in Time, or donation ware games like kittens game, but even popular games that have IAP see some level of regular criticism, like NGU Idle, Idle Skilling, or Idle Pins. A large part of this can be explained by the community being hyper-aware of the addictive) nature of this genre and its susceptibility to exploiting players.

On mobile, however, monetization is the norm and expected. If an incremental game is available on mobile, it almost certainly will be monetized, and mobile players are aware and accepting of that. Mobile incremental games, due to their addictive nature, tend to make a lot of money. It's very lucrative, and therefore these games are quite abundant on mobile storefronts.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


There are a lot of developers in the incremental games community - the genre seems to draw them in, and convert a lot of players into developers. Let's explore the reasons why this genre appeals to developers.

Incrementals are Easy to Make

Compared to other genres, incrementals have quite low expectations. You don't need to make fancy art, or music, or lay things out nicely. If you can make a button and learn the few lines of code necessary to make a number go up, you can make an incremental. This low threshold makes the genre perfect for those who are actively learning to code and haven't developed any gamedev-related skills yet.

Additionally, unlike other genres incrementals are uniquely easy to implement in a normal web page - no need to worry about rendering sprites, moving them around, implementing physics, etc. New developers can just use HTML to add a button, and the game is now available in your browser. You don't need to choose an engine, have admin privileges, or hell for the dedicated you don't even need a computer - there are tools for web development that run in the browser itself, so you can technically use your phone if that's all you have.

Javascript is a perfectly viable language for making web games, whereas other genres are typically going to require using other more difficult languages to learn. There are countless javascript tutorials that start from 0 knowledge of programming, making it incredibly accessible to beginners.

Players are Easy to Find

Once you've finished your game and uploaded it on github pages or itch or just copied the link if you're using glitch or replit (all of which are easy to do), anyone can now play the game in their browser. This low barrier to entry has shown tremendous success in getting completely unknown developers to have thousands of plays.

The incremental games community, which mostly centers around r/incremental_games, is always looking for new games and tends to flood any new ones posted with initial players.

Having your games be played can be incredibly motivating, and the community makes it quite clear that you can expect players to play your game. These communities - both for incremental games in general as well as game-specific communities - tend to be very developer friendly as well. A lot of the developers know each other, and welcome new developers with open arms, often with dedicated channels for programming help and discussions.

Monetization

I'd like to clarify that everything I've said above mainly applies to web-based incrementals. Incremental games are also incredibly popular on mobile, but with a much different culture and community. Many mobile gamers will still participate in the web-focused community for the culture. This web-focused community has a culture that has been criticized for being "anti-monetization". Ads, IAPs, and similar forms of monetization are often criticized, mainly due to the abundance of completely non-monetized games available from hobbyist developers. There are exceptions, like paid games often being considered fine, like Increlution or Stuck in Time, or donation ware games like kittens game, but even popular games that have IAP see some level of regular criticism, like NGU Idle, Idle Skilling, or Idle Pins. A large part of this can be explained by the community being hyper-aware of the addictive) nature of this genre and its susceptibility to exploiting players.

On mobile, however, monetization is the norm and expected. If an incremental game is available on mobile, it almost certainly will be monetized, and mobile players are aware and accepting of that. Mobile incremental games, due to their addictive nature, tend to make a lot of money. It's very lucrative, and therefore these games are quite abundant on mobile storefronts.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/guide-to-incrementals/ludology/appeal-gamers/index.html b/guide-to-incrementals/ludology/appeal-gamers/index.html index b4e15364..41fe995c 100644 --- a/guide-to-incrementals/ludology/appeal-gamers/index.html +++ b/guide-to-incrementals/ludology/appeal-gamers/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Appeal to Players | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Appeal to Players

2400 words, ~13 minute read. Planted +

Skip to content

Guide to Incrementals/Appeal to Players

2400 words, ~13 minute read. Planted . Last tended to -.


This is something that has been discussed and analyzed by many people, and to some extent, I feel like everything that can be said on the topic already has. However, a lot of these analyses are from the perspective of those with not as much experience and involvement within the genre as I'd argue would be necessary for a fully contextualized answer. I recently watched a video about Vampire Survivors, which has since been taken down due to drawing negative attention, which made me think about some interesting arguments about what games are, and what makes them good. The video's argument that "Vampire Survivors is not a video game" mirrors a claim by the developer of Cookie Clicker that his games are "non-games". Using Vampire Survivors and the video made on it as a framework, I'll be answering why incremental games appeal to players. Since the video has been taken down, I'll do my best to contextualize and generalize the arguments of the video without requiring the reader to watch it. For what it's worth, while I disagreed with the video I actually liked a lot of the way it went about thinking about games, and I consider this a continuation of that discussion.

Numbers Going Up

This is a very common response to why people enjoy incremental games, although it's not one I find compels me personally, and I suspect it might be a stand-in for progression) or Guide to Incrementals/What is Content?. But reportedly, some people do just like seeing big numbers. I must reiterate I suspect the actual cause is seeing big numbers in context though - if you start at 1e1000 of a currency and get to 1e1001, that isn't going to feel as satisfying as going from 1e10 to 1e100, and in any case, I don't think a button that just adds a zero to your number will feel quite satisfying - I believe its the sense of having made progress, and comparing where you are to where you started and feeling like you've earned your way here that is enjoyable.

Progression

Vampire Survivors can be argued to have a comparatively low depth to its combat compared to many other games. I'd argue it has sufficient depth and more than someone might expect who has only played the game for a short while, but it still definitely gets beat out by many other combat-focused games. Instead, a lot of the progression in Vampire Survivors comes from a meta-progression system by which base stats are increased by spending a currency that persists between runs. While it is technically possible to win without this meta-progression system, and indeed in many roguelikes players like to challenge themselves by beating the game without any meta-progression, the criticism can be made that meta-progression de-emphasizes player skill by making it less important to have to beat the game. Certainly, in incremental games, it is often literally impossible to complete a game without taking advantage of the meta-progression systems. I'd argue this does not detract from the game, however, and is actually a part of what makes incremental games, and roguelikes, enjoyable to many players: meta-progression augments the increases in skill the player is naturally gaining as they play. In effect, it's not replacing the skill increase, but exaggerating it to make it feel more real to the player.

Note: There is also a lot of progression from exploring the mechanics and discovering synergies, unlocking new weapons or playable characters, etc. That just isn't as relevant to this discussion, but it does make up a lot of the appeal of the game.

Effortlessness

Incremental games are so easy, a lot of them even have you progress while you're not playing! Part of the appeal is being able to feel like you're making progress while doing something actually productive - multitasking, in a way. In this sense, the game is more of a fidget toy - not something to think hard about and play actively, but something to click a few buttons every so often while you're paying attention to a lecture or studying or working. Of course, not all incremental games lend themselves to being played this way - it's specifically "idle" games that work like this. These are games that take an incredibly long amount of time to see all the content, stretching it as thin as possible, but they aren't expecting you to be sitting at your device playing it the entire time. They expect you to leave and come back later to make a bit of progress and repeat the cycle.

If you look at the higher-level play of most games, you'll see them perform difficult feats with ease and speed. They'll achieve a "flow state" that takes all their knowledge and experience of the game and uses it to play the game as instinctively as possible. It's incredible to watch things like Slay the Spire speed runs or competitive DDR-likes. I'd argue the goal of a lot of games with a competitive scene is to get so good that the game becomes effortless. In that sense, a game that allows you to reach that point earlier isn't any less legitimate, but rather lowers the barrier to entry by allowing more people to get "really good" at the game. And to be clear, Vampire Survivors and (most) incremental games aren't trivially easy - they, and to an extent, every game will have some level of learning and improvement over time.

Addiction

A lot of these reasons for why incremental games appeal may have reminded you of why gambling appeals to people, particularly those prone to addiction. Indeed, incremental games are quite often criticized for their similarity to a skinner box. Some have gone as far as to say incremental games as a genre are commenting that all games are skinner boxes). The argument goes that some games are not fun, but rather condition players into continuing to play without actually getting anything from the experience. When tied to real-world money this is seen as predatory, and to a lesser extent, even free games may be feeding the addictive sides of people and making them more prone to seek out gambling or micro-transaction heavy games.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

Since incremental games are often built on extrinsic motivations in the form of progression systems, it's hard to argue whether players continue to play because they are enjoying the gameplay, or if they are just conditioned to keep doing it because the game keeps rewarding them. Unfortunately, it can often feel like it's the latter, as there isn't typically anything compelling about the "gameplay" of clicking a button and waiting. There may be a significant overlap between those who enjoy incremental games and those who are most prone to addiction, and there are often posts on r/incremental_games about someone either struggling with or overcoming video game addiction.

Strategy

Incremental games could be considered a subset of strategy games), and inherit the appeals of strategy games. This includes the appeal of feeling like you've found a good solution to a puzzle, or that you're learning more about the game and are improving at making decisions within it. This applies to Vampire Survivors specifically, where you're learning about evolutions and synergies and what kinds of enemies can spawn under what conditions, and how best to handle them.

Note that strategy games are not all the same difficulty, as well. Vampire Survivors is still easier to play than Starcraft 2, and Cookie Clicker is probably somewhere in between (once you progress sufficiently). Vampire Survivors being so successful may indicate that "easier" strategies may have their separate appeal to harder strategy games - players like to feel smart and that they figured the game out and have optimized or mastered it, and the game being easier doesn't detract from that sense of accomplishment as much as it allows more and more users to be able to reach the point where they gain that sense.

Avoiding Staleness

Incremental games tend to have "paradigm shifts", where the gameplay changes in a meaningful way at various times throughout the progression of the game. These upset and change the gameplay loop, which helps keep them from stagnating. This constant "freshness" to the gameplay can keep players engaged for longer, compared to a game with a repetitive and static gameplay loop.

Good Game Design

Incremental games tend to show their game design "plainly", so it's more readily apparent if a game has good game design while playing, even if you're not looking for it. While different players have different preferences and might enjoy different types of games more than others, there are underlying good and bad game design principles that players will notice the effects of. To be clear, this isn't talking about stuff like big numbers being enjoyable, where I can comfortably agree to disagree with other players. They don't intrinsically make my experience better, but I'm aware of those for whom it does and I won't argue against their feelings. However, the game designer in me does feel like there are some extremely clear-cut examples of good and bad game design philosophies.

Let's start by giving an example of a mechanic I think can be easily and strongly argued is good game design. There are of course many examples, but a personal favorite of mine is how DOOM encourages aggressive gameplay by linking health drops to melee attacks. It has an intended experience it's trying to give the player - immersing themselves as DOOM guy, who would not hide behind cover when low on health - and this mechanic does a great job at encouraging and effectively teaching players to behave properly. This is in sharp contrast to shooters like Call of Duty, which have you regen health passively, encouraging players to hide behind cover and wait after getting hit. Note that I'm not arguing CoD is poorly designed, as the games have different intended experiences. I'm specifically praising DOOM for having a mechanic that does a good job at ensuring the player has that intended experience.

To contrast with an example I think is bad game design, let's talk about shields in souls-likes. This is a bit of a famous example, and I highly recommend this video essay which spends quite a good bit of time on this topic. Essentially, the argument boils down to players of earlier games in the souls games using shields too much - playing slowly, conservatively, and ultimately having less fun. Players wanted to feel safe, so they ended up playing in a way that ruined the experience for them. The developers solved this by removing shields, apart from an intentionally bad one effectively mocking the playstyle, and it did its job at getting players to play more aggressively, and often have more fun.

To bring the conversation back to incrementals, I'm incredibly opinionated on what makes a good incremental game, which I'll discuss in the game design section. Suffice it to say, incremental games rely more on good game design than other genres, due to not having much to distract from bad game design. This helps (although imperfectly - gamers are a bit too tolerant of bad game design!) well-designed games rise to the top within the genre.

Artistic Merit

The Vampire Survivors video made me think back to the old arguments about whether games are art, and whether they ought to be. The video seems preoccupied with attaching value to games solely based on their mechanics and the depth thereof, to the point of arguing Vampire Survivors is a waste of time due to its lack of depth. However, even setting aside the fact that if players are having fun then it's not time wasted, I think games can have artistic merit that supersedes the necessity of having (any / engaging / "deep") gameplay. I think the consensus online is that games are definitively art, although I could see the argument that some genres, like incremental games, might be a bit in a grey area. Let's talk about Vampire Survivors first though - It has a story to tell, with lore and many characters, that drive the player and encourage them to continue exploring the game and discovering things within it. Like any walking simulator, it is no less legitimate of a game or the "art" label because of any lack perceived lack of depth. For what it's worth, most art can be consumed with more ease than VS - any painting, movie, sculpture, etc.

A lot of incrementals have a narrative context that can similarly qualify them as art. Cookie Clicker is, as has been pointed out numerous times before, commenting on excess and increasing production beyond any reasonable limits - devolving into increasing production for its own sake. Indeed, a lot of incremental games are written to comment upon various concepts like capitalism or tropes in games, as discussed when defining Incrementals). However, I'd like to argue most incremental games are still art, even without any narrative context. "Art" as a concept is pretty nebulous already, but I personally like those who define it as an act of expression more than any physical result. The creator and the context within which they created the art, and any meaning they put into it, are all relevant and a part of the art itself. Most incremental games have artistic merit from things like why the creator made it, why they chose to make it an incremental game, and why they made any particular design decision. Hell, even if you play through an entire incremental game without a single thought or feeling, that very fact it elicited nothing can itself be artistic merit!

I'm not an art major, and I may be taking a somewhat extreme take on what is art and what has artistic merit, but I'd argue the overall point stands that games, and incremental games specifically, can have artistic merit, which appeals to many gamers.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


This is something that has been discussed and analyzed by many people, and to some extent, I feel like everything that can be said on the topic already has. However, a lot of these analyses are from the perspective of those with not as much experience and involvement within the genre as I'd argue would be necessary for a fully contextualized answer. I recently watched a video about Vampire Survivors, which has since been taken down due to drawing negative attention, which made me think about some interesting arguments about what games are, and what makes them good. The video's argument that "Vampire Survivors is not a video game" mirrors a claim by the developer of Cookie Clicker that his games are "non-games". Using Vampire Survivors and the video made on it as a framework, I'll be answering why incremental games appeal to players. Since the video has been taken down, I'll do my best to contextualize and generalize the arguments of the video without requiring the reader to watch it. For what it's worth, while I disagreed with the video I actually liked a lot of the way it went about thinking about games, and I consider this a continuation of that discussion.

Numbers Going Up

This is a very common response to why people enjoy incremental games, although it's not one I find compels me personally, and I suspect it might be a stand-in for progression) or Guide to Incrementals/What is Content?. But reportedly, some people do just like seeing big numbers. I must reiterate I suspect the actual cause is seeing big numbers in context though - if you start at 1e1000 of a currency and get to 1e1001, that isn't going to feel as satisfying as going from 1e10 to 1e100, and in any case, I don't think a button that just adds a zero to your number will feel quite satisfying - I believe its the sense of having made progress, and comparing where you are to where you started and feeling like you've earned your way here that is enjoyable.

Progression

Vampire Survivors can be argued to have a comparatively low depth to its combat compared to many other games. I'd argue it has sufficient depth and more than someone might expect who has only played the game for a short while, but it still definitely gets beat out by many other combat-focused games. Instead, a lot of the progression in Vampire Survivors comes from a meta-progression system by which base stats are increased by spending a currency that persists between runs. While it is technically possible to win without this meta-progression system, and indeed in many roguelikes players like to challenge themselves by beating the game without any meta-progression, the criticism can be made that meta-progression de-emphasizes player skill by making it less important to have to beat the game. Certainly, in incremental games, it is often literally impossible to complete a game without taking advantage of the meta-progression systems. I'd argue this does not detract from the game, however, and is actually a part of what makes incremental games, and roguelikes, enjoyable to many players: meta-progression augments the increases in skill the player is naturally gaining as they play. In effect, it's not replacing the skill increase, but exaggerating it to make it feel more real to the player.

Note: There is also a lot of progression from exploring the mechanics and discovering synergies, unlocking new weapons or playable characters, etc. That just isn't as relevant to this discussion, but it does make up a lot of the appeal of the game.

Effortlessness

Incremental games are so easy, a lot of them even have you progress while you're not playing! Part of the appeal is being able to feel like you're making progress while doing something actually productive - multitasking, in a way. In this sense, the game is more of a fidget toy - not something to think hard about and play actively, but something to click a few buttons every so often while you're paying attention to a lecture or studying or working. Of course, not all incremental games lend themselves to being played this way - it's specifically "idle" games that work like this. These are games that take an incredibly long amount of time to see all the content, stretching it as thin as possible, but they aren't expecting you to be sitting at your device playing it the entire time. They expect you to leave and come back later to make a bit of progress and repeat the cycle.

If you look at the higher-level play of most games, you'll see them perform difficult feats with ease and speed. They'll achieve a "flow state" that takes all their knowledge and experience of the game and uses it to play the game as instinctively as possible. It's incredible to watch things like Slay the Spire speed runs or competitive DDR-likes. I'd argue the goal of a lot of games with a competitive scene is to get so good that the game becomes effortless. In that sense, a game that allows you to reach that point earlier isn't any less legitimate, but rather lowers the barrier to entry by allowing more people to get "really good" at the game. And to be clear, Vampire Survivors and (most) incremental games aren't trivially easy - they, and to an extent, every game will have some level of learning and improvement over time.

Addiction

A lot of these reasons for why incremental games appeal may have reminded you of why gambling appeals to people, particularly those prone to addiction. Indeed, incremental games are quite often criticized for their similarity to a skinner box. Some have gone as far as to say incremental games as a genre are commenting that all games are skinner boxes). The argument goes that some games are not fun, but rather condition players into continuing to play without actually getting anything from the experience. When tied to real-world money this is seen as predatory, and to a lesser extent, even free games may be feeding the addictive sides of people and making them more prone to seek out gambling or micro-transaction heavy games.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

Since incremental games are often built on extrinsic motivations in the form of progression systems, it's hard to argue whether players continue to play because they are enjoying the gameplay, or if they are just conditioned to keep doing it because the game keeps rewarding them. Unfortunately, it can often feel like it's the latter, as there isn't typically anything compelling about the "gameplay" of clicking a button and waiting. There may be a significant overlap between those who enjoy incremental games and those who are most prone to addiction, and there are often posts on r/incremental_games about someone either struggling with or overcoming video game addiction.

Strategy

Incremental games could be considered a subset of strategy games), and inherit the appeals of strategy games. This includes the appeal of feeling like you've found a good solution to a puzzle, or that you're learning more about the game and are improving at making decisions within it. This applies to Vampire Survivors specifically, where you're learning about evolutions and synergies and what kinds of enemies can spawn under what conditions, and how best to handle them.

Note that strategy games are not all the same difficulty, as well. Vampire Survivors is still easier to play than Starcraft 2, and Cookie Clicker is probably somewhere in between (once you progress sufficiently). Vampire Survivors being so successful may indicate that "easier" strategies may have their separate appeal to harder strategy games - players like to feel smart and that they figured the game out and have optimized or mastered it, and the game being easier doesn't detract from that sense of accomplishment as much as it allows more and more users to be able to reach the point where they gain that sense.

Avoiding Staleness

Incremental games tend to have "paradigm shifts", where the gameplay changes in a meaningful way at various times throughout the progression of the game. These upset and change the gameplay loop, which helps keep them from stagnating. This constant "freshness" to the gameplay can keep players engaged for longer, compared to a game with a repetitive and static gameplay loop.

Good Game Design

Incremental games tend to show their game design "plainly", so it's more readily apparent if a game has good game design while playing, even if you're not looking for it. While different players have different preferences and might enjoy different types of games more than others, there are underlying good and bad game design principles that players will notice the effects of. To be clear, this isn't talking about stuff like big numbers being enjoyable, where I can comfortably agree to disagree with other players. They don't intrinsically make my experience better, but I'm aware of those for whom it does and I won't argue against their feelings. However, the game designer in me does feel like there are some extremely clear-cut examples of good and bad game design philosophies.

Let's start by giving an example of a mechanic I think can be easily and strongly argued is good game design. There are of course many examples, but a personal favorite of mine is how DOOM encourages aggressive gameplay by linking health drops to melee attacks. It has an intended experience it's trying to give the player - immersing themselves as DOOM guy, who would not hide behind cover when low on health - and this mechanic does a great job at encouraging and effectively teaching players to behave properly. This is in sharp contrast to shooters like Call of Duty, which have you regen health passively, encouraging players to hide behind cover and wait after getting hit. Note that I'm not arguing CoD is poorly designed, as the games have different intended experiences. I'm specifically praising DOOM for having a mechanic that does a good job at ensuring the player has that intended experience.

To contrast with an example I think is bad game design, let's talk about shields in souls-likes. This is a bit of a famous example, and I highly recommend this video essay which spends quite a good bit of time on this topic. Essentially, the argument boils down to players of earlier games in the souls games using shields too much - playing slowly, conservatively, and ultimately having less fun. Players wanted to feel safe, so they ended up playing in a way that ruined the experience for them. The developers solved this by removing shields, apart from an intentionally bad one effectively mocking the playstyle, and it did its job at getting players to play more aggressively, and often have more fun.

To bring the conversation back to incrementals, I'm incredibly opinionated on what makes a good incremental game, which I'll discuss in the game design section. Suffice it to say, incremental games rely more on good game design than other genres, due to not having much to distract from bad game design. This helps (although imperfectly - gamers are a bit too tolerant of bad game design!) well-designed games rise to the top within the genre.

Artistic Merit

The Vampire Survivors video made me think back to the old arguments about whether games are art, and whether they ought to be. The video seems preoccupied with attaching value to games solely based on their mechanics and the depth thereof, to the point of arguing Vampire Survivors is a waste of time due to its lack of depth. However, even setting aside the fact that if players are having fun then it's not time wasted, I think games can have artistic merit that supersedes the necessity of having (any / engaging / "deep") gameplay. I think the consensus online is that games are definitively art, although I could see the argument that some genres, like incremental games, might be a bit in a grey area. Let's talk about Vampire Survivors first though - It has a story to tell, with lore and many characters, that drive the player and encourage them to continue exploring the game and discovering things within it. Like any walking simulator, it is no less legitimate of a game or the "art" label because of any lack perceived lack of depth. For what it's worth, most art can be consumed with more ease than VS - any painting, movie, sculpture, etc.

A lot of incrementals have a narrative context that can similarly qualify them as art. Cookie Clicker is, as has been pointed out numerous times before, commenting on excess and increasing production beyond any reasonable limits - devolving into increasing production for its own sake. Indeed, a lot of incremental games are written to comment upon various concepts like capitalism or tropes in games, as discussed when defining Incrementals). However, I'd like to argue most incremental games are still art, even without any narrative context. "Art" as a concept is pretty nebulous already, but I personally like those who define it as an act of expression more than any physical result. The creator and the context within which they created the art, and any meaning they put into it, are all relevant and a part of the art itself. Most incremental games have artistic merit from things like why the creator made it, why they chose to make it an incremental game, and why they made any particular design decision. Hell, even if you play through an entire incremental game without a single thought or feeling, that very fact it elicited nothing can itself be artistic merit!

I'm not an art major, and I may be taking a somewhat extreme take on what is art and what has artistic merit, but I'd argue the overall point stands that games, and incremental games specifically, can have artistic merit, which appeals to many gamers.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/guide-to-incrementals/ludology/content/index.html b/guide-to-incrementals/ludology/content/index.html index 67391326..c8a5e17e 100644 --- a/guide-to-incrementals/ludology/content/index.html +++ b/guide-to-incrementals/ludology/content/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/What is Content? | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/What is Content?

2092 words, ~11 minute read. Planted +

Skip to content

Guide to Incrementals/What is Content?

2092 words, ~11 minute read. Planted . Last tended to -.


If you've been in the incremental games community for any amount of time, you'll quickly find the number one thing players want is content. They want as much of it as possible! The most popular incremental games have tons of content, so they just keep stretching on and on and on, introducing mechanic after mechanic, and players love it. In fact, players seem to value the amount of content over the quality of any specific content. However, there's a bit of a lack of understanding concerning what content is, and I'd like to explore what counts as content, and how we measure it. As a baseline definition, I think "content" can just be described as the parts of the game that engage the player, but to truly understand it we need to contextualize what that means and how it affects the gameplay experience.

To clarify the purpose of this page, my goal is not to get (too) nitpicky or to attack games with "low content". There's nothing wrong with short / low-content games - I'm quite a big fan of those games myself! This is mostly targeted toward those who ask for content and settle for "long" games, and those who want to provide content but want to make sure they're not just artificially inflating the game. Ultimately, I suppose the goal is to just reduce the amount of artificially inflated content for the sake of having a "longer" game.

Interaction

I think it should be a fairly non-controversial opinion that time spent solely waiting should not count towards content. That is not including the time reading various effects or making decisions in your head, but rather time spent waiting for a condition to be met so you can re-engage with the game.

That is not to say games should necessarily try to minimize this time. Plenty of games lead towards more infrequent interaction and still get popular. In fact, these games appeal to many gamers who want to have something to check up on in between bursts of working on some other activity. These games seem to have fallen slightly out of fashion amongst modern incremental games, but they're still fully valid. The point I'm trying to make here is just that this time is not content. As an extreme example, a game with no interactions and just a counter that goes up every second could safely be said to have 0 content beyond the time it takes to understand what's going on. If it has a list of "goals" to hit, then the time understanding those goals and a short time after achieving each one could be considered content, but not the idle times in between.

Let's take a look at the opposite end of the spectrum - interaction that is so frequent as to become mindless. This is any mechanic where you need to spam-click something to progress. This may be a more controversial take, but I do not believe this constitutes content either. It does not engage the player, because each consecutive click blends together and they do not individually change the gameplay experience. That is to say, a single click and 100 clicks are not meaningfully different in terms of engaging the player. I'd go as far as to say clicking 100 times would be actively worse, as it's artificially delaying the next piece of actual content, alongside the issues of accessibility and potentially causing RSI.

Repeatable Purchases

Imagine an entity in a game that you can purchase multiple times, each time it performs the same thing but for a higher cost. These are incredibly common, from the buildings in cookie clicker to the units in swarm sim to the IP and EP multipliers in antimatter dimensions. However, how much content is each specific purchase? Is it content beyond the first purchase? Does it have diminishing returns? What if you are oscillating between two different repeatable purchases? How much content is lost when you automate) away a repeatable purchase?

I don't want to take too harsh a stance against repeatable purchases. They're useful tools and can be used in a myriad of interesting ways. I feel they do become "stale" or less meaningful content over time, and this happens exponentially quickly the more frequently it can be purchased. A classic example that I believe goes too far is the IP/EP multipliers in Antimatter Dimensions. I would go as far as to say they are a chore and do not provide any meaningful content after you've bought them a couple of times. It's a method for inflating numbers (effectively making every OOM a 5x step instead of 10x), that punishes the player progression-wise whenever they forget to max it again, and eventually gets automated away as a reward to the player for making enough progress.

Just to voice the other side of this argument, Acamaeda defended the IP multiplier as giving the player a "good" upgrade every OOM. I can understand that to a point and need to clarify I'm mainly criticizing IP/EP multipliers after they've been introduced for a while. In fact, I would defend the multipliers for a short while after they're introduced using the same logic I would use to defend normal dimensions as repeatable purchases, at least pre-infinity. There's "content" to be had in looking at what dimensions will become affordable next, and then choosing which to buy amongst those. The IP/EP multipliers, early into infinity or eternity respectively, provide another option that gets put into that mental queue of things to buy with each OOM reached - although the optimal order is often quite trivial and not particularly engaging.

The IP/EP multipliers are not the only repeatable purchase in antimatter dimensions I take offense to. The time dimensions are also a series of repeatable purchases, that are all so similar and static that it doesn't take long before you never need to put any thought into buying them, how much you're buying at once, or the order you buy them in - you just press max all and move on. The entire tab could've been just the max all button and it would not have made a difference beyond the start of the eternity layer. The normal dimensions technically have this problem as well, but since you're constantly getting antimatter the order feels like it has a larger impact and it's more meaningful content, right up until they're automated away. Infinity dimensions are a compromise between the two, so I'm highlighting time dimensions here as the most egregious.

Following Instructions

We're getting more and more controversial as we go along! Let's talk about how linear content is not content now (in some circumstances). A trend in incremental games is adding difficulty by adding a web of effects that abstract the true change you can expect from any specific purchase or decision you make. If a game is both linear and sufficiently abstracts the effect of player decisions, then the player will no longer be engaging with the content - they'll simply be clicking on things as they become available. This isn't necessarily a bad thing, as plenty of players don't mind this style of gameplay, but I'd argue once you reach a point where players don't bother reading the effects, those interactions are no longer truly content. Note that unlike the previous qualifiers mentioned, this qualifier is based on the player, and therefore subjective. In effect, it's a spectrum where the more complicated the web of effects becomes, the more likely it is to disengage the player.

This over-complicatedness leading to disengaging the player can also happen from non-linear gameplay. If the web of effects becomes sufficiently complicated and finding the optimal progression route too time-consuming to discover, players will seek out guides from other players who've completed the game. The second they do this, the game effectively becomes linearly following the instructions of the guide and all the above criticisms apply. Similarly to as before, though, this is a spectrum and not everyone will seek out a guide at the same level of difficulty.

Automation

Automation is a staple of the genre, but it has certain implications for the design of the game. Why, when new content is introduced, must the older content be automated away - why is it a chore and it feels rewarding to not have to do it again? Why does the new mechanic have such appeal if we know it too will just be automated away later on, and we'll be happy when that happens? It honestly begs the question of why this framework of introducing content and automating the old content is even enjoyable - and nearly nonexistent in other genres. You're not going to reach a point in a platformer game where they just automate the jumping part - that's the core mechanic! Instead, platformers either add new mechanics that build on the core mechanic or at least re-contextualize the core mechanic. However, in incremental games new content very frequently means replacing older content, as opposed to augmenting it.

Admittedly, the above paragraph ignores the obvious answer that separates incremental games in this regard. These mechanics become chores as their frequency increases. The frequency increases to give a sense of progression, and automation is seen as a reward because it now manages what was becoming unmanageable. The new content then comes in and continues the loop to give a stronger sense of progression. That's all good and a fine justification for automating content instead of building upon the base mechanic. It's also much easier to design, as each layer essentially lets you start over instead of needing to think of ideas that conform to the original core mechanic.

So, what's the problem? Even if this trend is justified and easy to implement, there are some other effects it has on the game design. First off, and this is probably a neutral point, incremental games with this cycle of replacing old mechanics with new ones trend towards more and more abstract and further away from any narrative throughline as they add layers. There are only so many justifications for resetting progress, so if a game wants to have several of these layers they're inevitably going to become generic or increasingly loosely associated with the original content. It's most unfortunate, in my opinion when an interesting or innovative core mechanic gets fully automated once a generic "prestige" layer is unlocked.

A recent example is Really Grass Cutting Incremental, an incremental game about cutting grass (although I'm really criticizing the Roblox game it's based on). Except, it doesn't continue to be about cutting grass. After you buy enough upgrades to increase your grass cutting and level up sufficiently you "prestige", an abstract term that in this case means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades, but these won't reset on future prestiges. You'll eventually be able to "crystallize", which means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades (and a couple of new ones) and won't reset on future crystallizes. Fine. You'll progress a bit, complete some challenges, and finally get to... grasshop? Grasshopping is this mechanic where you reset all your progress to get some resource that isn't for buying upgrades - this time you just unlock different modifiers on everything based on their amount. You may have gotten the point by now, but there are also "steelie" resets which give you steel for some reason, before unlocking a factory with various machines - none of which are directly tied to cutting grass, and start gathering things like oil and reset for rocket parts and reset to go to space and so on and so on. Throughout all of this there is absolutely no narrative justification or throughline for the direction the game is going, or why cutting grass is still relevant when we're collecting things like rocket parts. I may be going a little hard on GCI, but it is far from alone.

Tips for Developers

If you're a developer, by this point you should have a pretty decent idea of how to create "true" content in your game. Here are some other specific tips I'd suggest:

An upgrade that simply unlocks another upgrade trivially isn't content. However, many games have an upgrade that just unlocks a feature, which then has a wait or other requirements before it can be used. Try to make sure when you unlock a feature, there is immediately something to do with the feature - for example, perhaps give them a small amount of the new currency it unlocks, if applicable.

If you don't have a large web of effects, and can definitively say the impact of a purchase is to multiply the gain of the cost currency by N, and the next purchase costs N times the amount of that same currency, then this purchase effectively made no difference and it may have made more sense to just go directly to the next upgrade. That said, having effects based on things like the number of purchases made will quickly invalidate this tip.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


If you've been in the incremental games community for any amount of time, you'll quickly find the number one thing players want is content. They want as much of it as possible! The most popular incremental games have tons of content, so they just keep stretching on and on and on, introducing mechanic after mechanic, and players love it. In fact, players seem to value the amount of content over the quality of any specific content. However, there's a bit of a lack of understanding concerning what content is, and I'd like to explore what counts as content, and how we measure it. As a baseline definition, I think "content" can just be described as the parts of the game that engage the player, but to truly understand it we need to contextualize what that means and how it affects the gameplay experience.

To clarify the purpose of this page, my goal is not to get (too) nitpicky or to attack games with "low content". There's nothing wrong with short / low-content games - I'm quite a big fan of those games myself! This is mostly targeted toward those who ask for content and settle for "long" games, and those who want to provide content but want to make sure they're not just artificially inflating the game. Ultimately, I suppose the goal is to just reduce the amount of artificially inflated content for the sake of having a "longer" game.

Interaction

I think it should be a fairly non-controversial opinion that time spent solely waiting should not count towards content. That is not including the time reading various effects or making decisions in your head, but rather time spent waiting for a condition to be met so you can re-engage with the game.

That is not to say games should necessarily try to minimize this time. Plenty of games lead towards more infrequent interaction and still get popular. In fact, these games appeal to many gamers who want to have something to check up on in between bursts of working on some other activity. These games seem to have fallen slightly out of fashion amongst modern incremental games, but they're still fully valid. The point I'm trying to make here is just that this time is not content. As an extreme example, a game with no interactions and just a counter that goes up every second could safely be said to have 0 content beyond the time it takes to understand what's going on. If it has a list of "goals" to hit, then the time understanding those goals and a short time after achieving each one could be considered content, but not the idle times in between.

Let's take a look at the opposite end of the spectrum - interaction that is so frequent as to become mindless. This is any mechanic where you need to spam-click something to progress. This may be a more controversial take, but I do not believe this constitutes content either. It does not engage the player, because each consecutive click blends together and they do not individually change the gameplay experience. That is to say, a single click and 100 clicks are not meaningfully different in terms of engaging the player. I'd go as far as to say clicking 100 times would be actively worse, as it's artificially delaying the next piece of actual content, alongside the issues of accessibility and potentially causing RSI.

Repeatable Purchases

Imagine an entity in a game that you can purchase multiple times, each time it performs the same thing but for a higher cost. These are incredibly common, from the buildings in cookie clicker to the units in swarm sim to the IP and EP multipliers in antimatter dimensions. However, how much content is each specific purchase? Is it content beyond the first purchase? Does it have diminishing returns? What if you are oscillating between two different repeatable purchases? How much content is lost when you automate) away a repeatable purchase?

I don't want to take too harsh a stance against repeatable purchases. They're useful tools and can be used in a myriad of interesting ways. I feel they do become "stale" or less meaningful content over time, and this happens exponentially quickly the more frequently it can be purchased. A classic example that I believe goes too far is the IP/EP multipliers in Antimatter Dimensions. I would go as far as to say they are a chore and do not provide any meaningful content after you've bought them a couple of times. It's a method for inflating numbers (effectively making every OOM a 5x step instead of 10x), that punishes the player progression-wise whenever they forget to max it again, and eventually gets automated away as a reward to the player for making enough progress.

Just to voice the other side of this argument, Acamaeda defended the IP multiplier as giving the player a "good" upgrade every OOM. I can understand that to a point and need to clarify I'm mainly criticizing IP/EP multipliers after they've been introduced for a while. In fact, I would defend the multipliers for a short while after they're introduced using the same logic I would use to defend normal dimensions as repeatable purchases, at least pre-infinity. There's "content" to be had in looking at what dimensions will become affordable next, and then choosing which to buy amongst those. The IP/EP multipliers, early into infinity or eternity respectively, provide another option that gets put into that mental queue of things to buy with each OOM reached - although the optimal order is often quite trivial and not particularly engaging.

The IP/EP multipliers are not the only repeatable purchase in antimatter dimensions I take offense to. The time dimensions are also a series of repeatable purchases, that are all so similar and static that it doesn't take long before you never need to put any thought into buying them, how much you're buying at once, or the order you buy them in - you just press max all and move on. The entire tab could've been just the max all button and it would not have made a difference beyond the start of the eternity layer. The normal dimensions technically have this problem as well, but since you're constantly getting antimatter the order feels like it has a larger impact and it's more meaningful content, right up until they're automated away. Infinity dimensions are a compromise between the two, so I'm highlighting time dimensions here as the most egregious.

Following Instructions

We're getting more and more controversial as we go along! Let's talk about how linear content is not content now (in some circumstances). A trend in incremental games is adding difficulty by adding a web of effects that abstract the true change you can expect from any specific purchase or decision you make. If a game is both linear and sufficiently abstracts the effect of player decisions, then the player will no longer be engaging with the content - they'll simply be clicking on things as they become available. This isn't necessarily a bad thing, as plenty of players don't mind this style of gameplay, but I'd argue once you reach a point where players don't bother reading the effects, those interactions are no longer truly content. Note that unlike the previous qualifiers mentioned, this qualifier is based on the player, and therefore subjective. In effect, it's a spectrum where the more complicated the web of effects becomes, the more likely it is to disengage the player.

This over-complicatedness leading to disengaging the player can also happen from non-linear gameplay. If the web of effects becomes sufficiently complicated and finding the optimal progression route too time-consuming to discover, players will seek out guides from other players who've completed the game. The second they do this, the game effectively becomes linearly following the instructions of the guide and all the above criticisms apply. Similarly to as before, though, this is a spectrum and not everyone will seek out a guide at the same level of difficulty.

Automation

Automation is a staple of the genre, but it has certain implications for the design of the game. Why, when new content is introduced, must the older content be automated away - why is it a chore and it feels rewarding to not have to do it again? Why does the new mechanic have such appeal if we know it too will just be automated away later on, and we'll be happy when that happens? It honestly begs the question of why this framework of introducing content and automating the old content is even enjoyable - and nearly nonexistent in other genres. You're not going to reach a point in a platformer game where they just automate the jumping part - that's the core mechanic! Instead, platformers either add new mechanics that build on the core mechanic or at least re-contextualize the core mechanic. However, in incremental games new content very frequently means replacing older content, as opposed to augmenting it.

Admittedly, the above paragraph ignores the obvious answer that separates incremental games in this regard. These mechanics become chores as their frequency increases. The frequency increases to give a sense of progression, and automation is seen as a reward because it now manages what was becoming unmanageable. The new content then comes in and continues the loop to give a stronger sense of progression. That's all good and a fine justification for automating content instead of building upon the base mechanic. It's also much easier to design, as each layer essentially lets you start over instead of needing to think of ideas that conform to the original core mechanic.

So, what's the problem? Even if this trend is justified and easy to implement, there are some other effects it has on the game design. First off, and this is probably a neutral point, incremental games with this cycle of replacing old mechanics with new ones trend towards more and more abstract and further away from any narrative throughline as they add layers. There are only so many justifications for resetting progress, so if a game wants to have several of these layers they're inevitably going to become generic or increasingly loosely associated with the original content. It's most unfortunate, in my opinion when an interesting or innovative core mechanic gets fully automated once a generic "prestige" layer is unlocked.

A recent example is Really Grass Cutting Incremental, an incremental game about cutting grass (although I'm really criticizing the Roblox game it's based on). Except, it doesn't continue to be about cutting grass. After you buy enough upgrades to increase your grass cutting and level up sufficiently you "prestige", an abstract term that in this case means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades, but these won't reset on future prestiges. You'll eventually be able to "crystallize", which means you reset all your progress to get some currency to buy upgrades that do the same things as the original upgrades (and a couple of new ones) and won't reset on future crystallizes. Fine. You'll progress a bit, complete some challenges, and finally get to... grasshop? Grasshopping is this mechanic where you reset all your progress to get some resource that isn't for buying upgrades - this time you just unlock different modifiers on everything based on their amount. You may have gotten the point by now, but there are also "steelie" resets which give you steel for some reason, before unlocking a factory with various machines - none of which are directly tied to cutting grass, and start gathering things like oil and reset for rocket parts and reset to go to space and so on and so on. Throughout all of this there is absolutely no narrative justification or throughline for the direction the game is going, or why cutting grass is still relevant when we're collecting things like rocket parts. I may be going a little hard on GCI, but it is far from alone.

Tips for Developers

If you're a developer, by this point you should have a pretty decent idea of how to create "true" content in your game. Here are some other specific tips I'd suggest:

An upgrade that simply unlocks another upgrade trivially isn't content. However, many games have an upgrade that just unlocks a feature, which then has a wait or other requirements before it can be used. Try to make sure when you unlock a feature, there is immediately something to do with the feature - for example, perhaps give them a small amount of the new currency it unlocks, if applicable.

If you don't have a large web of effects, and can definitively say the impact of a purchase is to multiply the gain of the cost currency by N, and the next purchase costs N times the amount of that same currency, then this purchase effectively made no difference and it may have made more sense to just go directly to the next upgrade. That said, having effects based on things like the number of purchases made will quickly invalidate this tip.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/guide-to-incrementals/ludology/definition/index.html b/guide-to-incrementals/ludology/definition/index.html index ed32f1aa..7c263d3e 100644 --- a/guide-to-incrementals/ludology/definition/index.html +++ b/guide-to-incrementals/ludology/definition/index.html @@ -6,12 +6,12 @@ Guide to Incrementals/Defining the Genre | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

Guide to Incrementals/Defining the Genre

3429 words, ~19 minute read. Planted +

Skip to content

Guide to Incrementals/Defining the Genre

3429 words, ~19 minute read. Planted . Last tended to -.


Video games are placed into genres for a variety of reasons. They can give a mental shorthand to set the player's expectations up, they can help a game market itself by its similarities to other, already popular games, and honestly, people just love categorization for its own sake. For this guide, it's important to define the genre so it is clear what games it's even talking about.

This poses a problem. "Incremental" is a horribly vague way to define games. Most games have numbers going up in some form or another. We need a more specific definition - similar to how "strategy" can't just mean any game with any amount of strategy because that would be most games. What specifically differentiates incremental games from the rest?

"Incremental" implies it's a genre defined by a game mechanic, but all those game mechanics it could imply exist in many other games. Having a skill tree or upgrades doesn't make you incremental, and if a reset mechanic is all it takes then every roguelite would be an incremental as well. So clearly there's more to it than that - what makes an incremental an incremental?

I'd like to go over a couple of popular suggestions I've seen on defining the genre here. I have my personal preferences and will state them here, but I don't think there's a truly perfect answer here.

Disclaimer: I mostly play incremental games on my computer, and my definitions will be heavily biased towards the games I'm familiar with.

Incrementals vs Idlers vs Clickers

Oftentimes people refer to this genre as idle games and/or clicker games. You'll even find a trend of oxymoronic game titles that contain both terms. "Incremental games" is the umbrella term both those terms fall under. However, I'd like to argue that not only is it better to just use the term "incremental games", but calling them "idle games" or "clicker games" is wrong. Almost universally, these terms are used interchangeably to refer to the same kind of game, where you start the game click spamming and eventually automate the process. Frankly, that kind of game deserves neither title, and the genre of incremental games has trended away from ever requiring click spamming, as it's a bad mechanic, anyways.

While these games do span a spectrum of how active it requires you to be, and sorting games by that metric can be useful for those looking for a particular experience, the borders of when an incremental game counts as an "idler" is too blurry for the term to be useful. "Incremental games" may not be a great descriptive term for the genre (hence this many thousands of words long page on defining what the genre even is), but it's strictly better than calling them "idler" or "clicker" games. This guide will always use the term "incremental games" unless quoting someone else, as it is the term you typically see on all modern games in the genre.

Incrementals as Parodies

Let's start with one of the most interesting definitions of incremental games. Incremental games appear to be distilled versions of games or genres, "revealing" the naked game design at the core of these games or genres not unlike how parodies comment upon their source material.

To understand what that means, think of how a casino uses skinner boxes to emotionally manipulate its customers to keep playing, but "dressing" up the skinner box with tons of stimuli to hide that ultimately the goal is to condition you into coming back compulsively. The idea that incremental games are parodies means taking the stance that at some level all games are similarly manipulating you, giving dopamine rewards in a way that manipulates you to keep playing while not necessarily giving you any value or fulfillment. Incremental games, then, are any games that plainly display the skinner box, and the manipulative core of the game, at the forefront of the experience.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

This "undressing" tends to go hand in hand with a reduced focus on aesthetics, often just printing the game state directly to the screen as text. This makes incremental games much easier to develop, particularly for those with programming skills but not art skills, but that's a tangent for why Incremental Games Guide to Incrementals/Appeal to Developers.

Before I continue, I'd like to make my stance clear that I love games and incremental games, and do not think they should be considered inherently bad or manipulative with the above logic. Skinner boxes are just a way of manipulating behavior via rewards. The games are still fun - that's the reward! I'd believe the real criticism here is that it is "empty fun", or "empty dopamine", that doesn't offer any additional value or sense of fulfillment. I don't think that's inherently bad in moderation, although it can become a problem if the game is manipulating you for profit-seeking, or if you play the game to the detriment of the other parts of your life.

Another interpretation of incremental games as parodies comes from several mainstream incremental games that are also parodies of capitalism, such as cookie clicker and adventure capitalist. It's a very common framework for incremental games to portray the ever-increasing numbers as an insatiable hunger for resources, like the ones observed within capitalism. Therefore, these games are used as evidence that the genre as a whole is about parody and commentary.

Popular videos on incremental games that portray the genre as parodies are Why Idle games make good satire, and how it was ruined. and Bad Game Design - Clicker Games. You may also be interested in this response to the latter video from a fan of incremental games: BadGood Game Design - Clicker Games.

I think that this definition ultimately ascribes a motive to the genre as a whole that only happens to apply to some of the more mainstream titles. There certainly are incremental games commenting on different things, including the genre itself as in the case of The Prestige Tree Classic, The Ascension Tree, or Omega Layers, but certainly not all. And of course, not all games that comment on something or parody something are incremental games! Additionally, a very large majority of incremental games are mobile games using these manipulative strategies to get players to spend as much money as possible - hell, Adventure Capitalist is ostensibly a critique on capitalism but features microtransactions and gameplay that manipulates you into buying them! These profit-seeking incremental games certainly belong within the genre but are hardly parodies when they too use manipulation to serve their interests. Also, from my own anecdotal experience, those who use this definition seem to do so from a fairly surface-level familiarity with the genre, and often in the context of criticizing the genre or the fans thereof.

Incrementals as NGU

Another broad definition often used is that incremental games are games where the focus of the game is "numbers going up". This definition proposes that other genres simply use increasing numbers as a means to an end, but incremental games uniquely only care about the numbers themselves going up. Put another way, it implies there should be no narrative justification for the numbers going up other than "why shouldn't they be going up?"

While this definition is common because it feels easy to understand, it is difficult to formally define. Often phrases are used to describe games using this framework, such as having an "exaggerated sense of progression" or "big" numbers. These terms are vague and don't demonstrate an actual threshold between non-incrementals and incrementals. Most games have a sense of progression, so when is it "exaggerated"? How big are "big" numbers? Most notably, RPGs that are typically not considered incrementals will often pass this definition.

Additionally, a lot of incrementals tend to have some theme guiding the gameplay, or at least the names of mechanics. This makes the line blurred between when numbers are going up for their own sake versus for a contextual reason. I believe this point is best illustrated that, while most RPGs are not considered incremental games, there is a sub-genre of "incremental RPGs" that typically relates to RPGs that perform combat automatically. This definition of incremental games does not support RPGs and "incremental RPGs" being on distinct sides of the line if the only difference between them is manual vs automatic combat.

Incrementals as Strategies

This is a rarer interpretation, but there are similarities between incremental games and strategy games, implying incrementals might just be a sub-genre of strategy games. By this approach, incremental games would be defined by their relation to strategy games, and how they involve player strategy. Incremental games are often large optimization problems - above all else, the actual gameplay the player is performing is deciding what to do next. The consequences of wrong decisions are typically more lenient in incremental games - such as just not making optimal progress - but they certainly get complex.

So if we accept the premise that incrementals could fall under strategy, we still need to define what makes a strategy game an incremental versus some other strategy sub-genre. This is a bit tricky due to one particular sub-genre of strategy games: Factory Builders.

Factory builders, such as Factorio or Satisfactory, are games about gaining ever increasing resources, optimizing production, and expanding more and more. That... sounds pretty similar, doesn't it? In fact, there's been some debate on whether factory builders would fall under the "incremental" umbrella. I think it's safe to say the two are certainly related, and probably have quite a bit of overlap in playerbase.

Roguelites as Incrementals?

Earlier on, I mentioned reset mechanics shouldn't be used in the definition because that could make all roguelites incrementals... But what if it does? A lot of incrementals can be described as games with a strong sense of progression, often with layers of meta-progression. Roguelites fit that bill to a T. What would make roguelites not incremental? I honestly don't think there's a good explanation here, but many fans of incremental games will state they do believe the two genres to be unrelated, even if there's a significant overlap between their player bases due to having similar appealing traits.

At this point, it'd be appropriate to consider what part of the definition of roguelites precludes them from also being incrementals, but that reveals a new problem: What are roguelites? They're usually defined as rogue_likes with meta-progression, but that just pushes the problem back a step: Incrementals aren't the only genre to have difficulties defining themselves, it seems! Roguelikes are another genre where the community argues over the formal definition of their genre, although that means we can borrow from their process of coming to a consensus, and maybe come across a viable definition for incremental games.

The Berlin Interpretation

By far the most popular way of defining roguelikes is the "Berlin Interpretation", which acknowledged the diversity of games within the genre and argued the definition should not be based on any ideals about what the genre ought to be, but rather defined by "its canon". They argued there are a handful of games that can be used to define the canon for roguelikes, and from those games, a list of factors can be derived to determine a game's "roguelikeness". The more factors a game has, the more of a roguelike it is. This strategy is very lenient, allowing a game to not present any specific factor so long as it shows enough, and accounts for the blurriness of any genre definition by not explicitly stating how many factors a game must have to qualify as a definite roguelike.

I believe this strategy for defining genres can be applied to other genres as well. A handful of games can be argued to be the incremental games canon, and a list of factors derived from them can be used to judge any game based on its "incrementalness". I'll propose such a canon and list of factors here, but by no means should it be considered the end-all-be-all.

Note: The "Temple of the roguelike", an authority within the genre, has since replaced the Berlin Interpretation with a new set of factors here: https://blog.roguetemple.com/what-is-a-traditional-roguelike/

The Incremental Games Canon

Alright, time to get controversial. Up til now, I've been trying my best to stay objective and analytical, but now it's time to start making some opinionated decisions. Here is a list of games I think could justifiably make up an Incremental Games Canon:

I chose a variety of games here, biasing towards newer games, purposefully to avoid making a narrow or "traditional" definition. The genre is growing and shouldn't be constrained by the traits of the early popular titles. A lot of these could easily be replaced with other games that are mechanically congruent, so ultimately I'm sure if you asked 10 people for their canon list you'd just get 10 different answers, but I think this should sufficiently allow us to determine what factors make a game have higher "incrementalness".

The Paradigm Shift

The Paradigm Shift is probably the highest possible value factor for an incremental. It's so common that for a while people referred to incrementals that exhibit this trait as "unfolding" games, to the point of trying to replace the term incremental due to their popularity. Paradigm shifts refer to when the gameplay significantly changes. There are too many examples to list here, but notably, every single reset mechanic is typically going to be a paradigm shift. Examples of games with paradigm shifts that aren't tied to reset mechanics include Universal Paperclips and A Dark Room.

There are many reasons for the appeal of paradigm shifts. Oftentimes each mechanic builds on top of the existing mechanics, increasing the complexity of the game in steps so the player can follow along. They provide a sense of mystery, with the player anticipating what will happen next. They shake up the gameplay before it gets too stale - allowing the game to entertain for longer before the sense of Guide to Incrementals/What is Content? dissipates. Of the canon games selected above, I would argue every single one contains a paradigm shift (although I could see someone disagreeing with that statement wrt Increlution).

I should take a moment to say that while I'm hyping up this specific factor, we cannot just reduce the genre definition to "does it have paradigm shifts". Many games have paradigm shifts that are not incremental, so it's just an indicator of incrementalness. Additionally, it can become quite hard to determine how large of a shift is a "paradigm" shift. Take, for example, any game with a skill tree. In some games, each skill node might have a large impact on how you play with the game, and qualify as a paradigm shift for some players. In other games, each skill node might just be a small percentage modifier on some stat that doesn't really impact much more than a slight bias towards an already established mechanic that's newly buffed. Every single canon game may show that it's common amongst incremental games, but could just as easily indicate that they're common in games in general.

High-Value Factors

I won't take as long to discuss the high and low-value factors, as you've already seen most of them brought up earlier on this page. As a reminder, a game does NOT need all of these to be an incremental game, but these are factors that each indicate a strong possibility the game is an incremental, so having several of these means they probably are. These factors apply to most of the canon incremental games.

"Pure UI" Display. Incrementals typically have a textual presentation of the game state - there isn't a visual representation of the entities within the game. The interface is closer to what would be just the UI of a game in another genre or the control panel of a plane. If there is a visual representation, the player is often still interacting with non-diegetic game elements.

Reduced Consequences. Incrementals tend to have reduced repurcussions for misplaying. They very rarely have fail states, where often the largest consequence is simply not progressing - never losing progress.

Optimization Problems. The predominant gameplay of incrementals is typically solving optimization problems, from deciding which purchase to save up for to reasoning and deciding between different mutually exclusive options the game presents.

Resource Management. Incrementals tend to have a lot of resources within the game to keep track of.

Low-Value Factors

These are low-value factors, meaning they aren't as strongly correlated with incremental games. Incremental games may have none of these, and non-incrementals may have several of these - if a game only has low-value factors, they're probably not an incremental.

Fast Numeric Growth. Numbers in incremental games tend to grow faster than in other genres. There are more instances of superlinear growth. The larger the numbers get, the stronger of a signal this factor is.

Automation. As an incremental game progresses, the player often no longer has to deal with earlier mechanics, by having them either happen automatically or otherwise be replaced with an alternative that requires less player interaction.

Goal-Oriented. Incrementals are often heavily reliant on extrinsic motivation to guide the player. Typically this is through some sort of in-game goal to work towards, such as a certain amount of a resource being required to unlock or purchase something new.

Waiting is a Mechanic. In incremental games, the player may come across times where there is no action they can take, and the game will progress automatically instead. The player must wait for some amount of this automatic progress to occur before they can resume interaction with the game.

Are Roguelites Incrementals?

Having made our variation of the Berlin Interpretation for incremental games, we can compare it to the Berlin Interpretation to determine if there's enough overlap that any game that "passes" the Berlin Interpretation would also pass the incremental variant. That is to say, whether any roguelite would also be considered an incremental game.

The meta-progression of an incremental game could arguably be considered a paradigm shift, and certainly adds some resource management. Goal-oriented would probably also apply. I think anything other than those would be a stretch, and in my opinion that just isn't enough to qualify. To be totally honest, I was never expecting to conclude otherwise though 😉

Sub-Genres

There are some trends in incremental games that go beyond just being a commonly used mechanic, such that they deeply affect the rest of the game design. These trends can be used to determine sub-genres within the incremental games umbrella:

Loops games are a sub-genre defined by having a core mechanic related to a loop, where the player is deciding the actions taken per loop. Notable examples include Idle Loops, Stuck in Time, Cavernous II, and Increlution. You may also argue Groundhog Life and Progress Knight fall into this sub-genre.

ITRTG-like games are a sub-genre defined by having a core mechanic based on clearing increasingly difficult battles and often tend to have a lot of different mechanics to become progressively stronger. Notable examples include Idling to Rule the Gods, NGU Idle, and Wizard and Minion Idle.

Polynomial Growth games are a sub-genre defined by having a core mechanic related to a higher degree polynomial. Notable examples include the base layer of Antimatter Dimensions and Swarm Simulator.

Upgrades Games is a category popular on flash games websites that featured games focused on buying upgrades that would allow you to attain more currency in some sort of minigame that would earn you more money to buy more upgrades, which I'd argue now belong under the fold of incremental games. Notable examples include the Learn to Fly series and Upgrade Complete.

Cultivation RPGs are a genre of games, books, and anime popular in China that center around being in a fantasy world with characters getting stronger over time. While few of them get translated into English, a fan of incremental games may find the available games interesting.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


Video games are placed into genres for a variety of reasons. They can give a mental shorthand to set the player's expectations up, they can help a game market itself by its similarities to other, already popular games, and honestly, people just love categorization for its own sake. For this guide, it's important to define the genre so it is clear what games it's even talking about.

This poses a problem. "Incremental" is a horribly vague way to define games. Most games have numbers going up in some form or another. We need a more specific definition - similar to how "strategy" can't just mean any game with any amount of strategy because that would be most games. What specifically differentiates incremental games from the rest?

"Incremental" implies it's a genre defined by a game mechanic, but all those game mechanics it could imply exist in many other games. Having a skill tree or upgrades doesn't make you incremental, and if a reset mechanic is all it takes then every roguelite would be an incremental as well. So clearly there's more to it than that - what makes an incremental an incremental?

I'd like to go over a couple of popular suggestions I've seen on defining the genre here. I have my personal preferences and will state them here, but I don't think there's a truly perfect answer here.

Disclaimer: I mostly play incremental games on my computer, and my definitions will be heavily biased towards the games I'm familiar with.

Incrementals vs Idlers vs Clickers

Oftentimes people refer to this genre as idle games and/or clicker games. You'll even find a trend of oxymoronic game titles that contain both terms. "Incremental games" is the umbrella term both those terms fall under. However, I'd like to argue that not only is it better to just use the term "incremental games", but calling them "idle games" or "clicker games" is wrong. Almost universally, these terms are used interchangeably to refer to the same kind of game, where you start the game click spamming and eventually automate the process. Frankly, that kind of game deserves neither title, and the genre of incremental games has trended away from ever requiring click spamming, as it's a bad mechanic, anyways.

While these games do span a spectrum of how active it requires you to be, and sorting games by that metric can be useful for those looking for a particular experience, the borders of when an incremental game counts as an "idler" is too blurry for the term to be useful. "Incremental games" may not be a great descriptive term for the genre (hence this many thousands of words long page on defining what the genre even is), but it's strictly better than calling them "idler" or "clicker" games. This guide will always use the term "incremental games" unless quoting someone else, as it is the term you typically see on all modern games in the genre.

Incrementals as Parodies

Let's start with one of the most interesting definitions of incremental games. Incremental games appear to be distilled versions of games or genres, "revealing" the naked game design at the core of these games or genres not unlike how parodies comment upon their source material.

To understand what that means, think of how a casino uses skinner boxes to emotionally manipulate its customers to keep playing, but "dressing" up the skinner box with tons of stimuli to hide that ultimately the goal is to condition you into coming back compulsively. The idea that incremental games are parodies means taking the stance that at some level all games are similarly manipulating you, giving dopamine rewards in a way that manipulates you to keep playing while not necessarily giving you any value or fulfillment. Incremental games, then, are any games that plainly display the skinner box, and the manipulative core of the game, at the forefront of the experience.

While incremental games can be fun and even healthy in certain contexts, they can exacerbate video game addiction more than other genres. If you feel like playing incremental games is taking priority over other things in your life, or manipulating your sleep schedule, it may be prudent to seek help. See r/StopGaming for resources.

This "undressing" tends to go hand in hand with a reduced focus on aesthetics, often just printing the game state directly to the screen as text. This makes incremental games much easier to develop, particularly for those with programming skills but not art skills, but that's a tangent for why Incremental Games Guide to Incrementals/Appeal to Developers.

Before I continue, I'd like to make my stance clear that I love games and incremental games, and do not think they should be considered inherently bad or manipulative with the above logic. Skinner boxes are just a way of manipulating behavior via rewards. The games are still fun - that's the reward! I'd believe the real criticism here is that it is "empty fun", or "empty dopamine", that doesn't offer any additional value or sense of fulfillment. I don't think that's inherently bad in moderation, although it can become a problem if the game is manipulating you for profit-seeking, or if you play the game to the detriment of the other parts of your life.

Another interpretation of incremental games as parodies comes from several mainstream incremental games that are also parodies of capitalism, such as cookie clicker and adventure capitalist. It's a very common framework for incremental games to portray the ever-increasing numbers as an insatiable hunger for resources, like the ones observed within capitalism. Therefore, these games are used as evidence that the genre as a whole is about parody and commentary.

Popular videos on incremental games that portray the genre as parodies are Why Idle games make good satire, and how it was ruined. and Bad Game Design - Clicker Games. You may also be interested in this response to the latter video from a fan of incremental games: BadGood Game Design - Clicker Games.

I think that this definition ultimately ascribes a motive to the genre as a whole that only happens to apply to some of the more mainstream titles. There certainly are incremental games commenting on different things, including the genre itself as in the case of The Prestige Tree Classic, The Ascension Tree, or Omega Layers, but certainly not all. And of course, not all games that comment on something or parody something are incremental games! Additionally, a very large majority of incremental games are mobile games using these manipulative strategies to get players to spend as much money as possible - hell, Adventure Capitalist is ostensibly a critique on capitalism but features microtransactions and gameplay that manipulates you into buying them! These profit-seeking incremental games certainly belong within the genre but are hardly parodies when they too use manipulation to serve their interests. Also, from my own anecdotal experience, those who use this definition seem to do so from a fairly surface-level familiarity with the genre, and often in the context of criticizing the genre or the fans thereof.

Incrementals as NGU

Another broad definition often used is that incremental games are games where the focus of the game is "numbers going up". This definition proposes that other genres simply use increasing numbers as a means to an end, but incremental games uniquely only care about the numbers themselves going up. Put another way, it implies there should be no narrative justification for the numbers going up other than "why shouldn't they be going up?"

While this definition is common because it feels easy to understand, it is difficult to formally define. Often phrases are used to describe games using this framework, such as having an "exaggerated sense of progression" or "big" numbers. These terms are vague and don't demonstrate an actual threshold between non-incrementals and incrementals. Most games have a sense of progression, so when is it "exaggerated"? How big are "big" numbers? Most notably, RPGs that are typically not considered incrementals will often pass this definition.

Additionally, a lot of incrementals tend to have some theme guiding the gameplay, or at least the names of mechanics. This makes the line blurred between when numbers are going up for their own sake versus for a contextual reason. I believe this point is best illustrated that, while most RPGs are not considered incremental games, there is a sub-genre of "incremental RPGs" that typically relates to RPGs that perform combat automatically. This definition of incremental games does not support RPGs and "incremental RPGs" being on distinct sides of the line if the only difference between them is manual vs automatic combat.

Incrementals as Strategies

This is a rarer interpretation, but there are similarities between incremental games and strategy games, implying incrementals might just be a sub-genre of strategy games. By this approach, incremental games would be defined by their relation to strategy games, and how they involve player strategy. Incremental games are often large optimization problems - above all else, the actual gameplay the player is performing is deciding what to do next. The consequences of wrong decisions are typically more lenient in incremental games - such as just not making optimal progress - but they certainly get complex.

So if we accept the premise that incrementals could fall under strategy, we still need to define what makes a strategy game an incremental versus some other strategy sub-genre. This is a bit tricky due to one particular sub-genre of strategy games: Factory Builders.

Factory builders, such as Factorio or Satisfactory, are games about gaining ever increasing resources, optimizing production, and expanding more and more. That... sounds pretty similar, doesn't it? In fact, there's been some debate on whether factory builders would fall under the "incremental" umbrella. I think it's safe to say the two are certainly related, and probably have quite a bit of overlap in playerbase.

Roguelites as Incrementals?

Earlier on, I mentioned reset mechanics shouldn't be used in the definition because that could make all roguelites incrementals... But what if it does? A lot of incrementals can be described as games with a strong sense of progression, often with layers of meta-progression. Roguelites fit that bill to a T. What would make roguelites not incremental? I honestly don't think there's a good explanation here, but many fans of incremental games will state they do believe the two genres to be unrelated, even if there's a significant overlap between their player bases due to having similar appealing traits.

At this point, it'd be appropriate to consider what part of the definition of roguelites precludes them from also being incrementals, but that reveals a new problem: What are roguelites? They're usually defined as rogue_likes with meta-progression, but that just pushes the problem back a step: Incrementals aren't the only genre to have difficulties defining themselves, it seems! Roguelikes are another genre where the community argues over the formal definition of their genre, although that means we can borrow from their process of coming to a consensus, and maybe come across a viable definition for incremental games.

The Berlin Interpretation

By far the most popular way of defining roguelikes is the "Berlin Interpretation", which acknowledged the diversity of games within the genre and argued the definition should not be based on any ideals about what the genre ought to be, but rather defined by "its canon". They argued there are a handful of games that can be used to define the canon for roguelikes, and from those games, a list of factors can be derived to determine a game's "roguelikeness". The more factors a game has, the more of a roguelike it is. This strategy is very lenient, allowing a game to not present any specific factor so long as it shows enough, and accounts for the blurriness of any genre definition by not explicitly stating how many factors a game must have to qualify as a definite roguelike.

I believe this strategy for defining genres can be applied to other genres as well. A handful of games can be argued to be the incremental games canon, and a list of factors derived from them can be used to judge any game based on its "incrementalness". I'll propose such a canon and list of factors here, but by no means should it be considered the end-all-be-all.

Note: The "Temple of the roguelike", an authority within the genre, has since replaced the Berlin Interpretation with a new set of factors here: https://blog.roguetemple.com/what-is-a-traditional-roguelike/

The Incremental Games Canon

Alright, time to get controversial. Up til now, I've been trying my best to stay objective and analytical, but now it's time to start making some opinionated decisions. Here is a list of games I think could justifiably make up an Incremental Games Canon:

I chose a variety of games here, biasing towards newer games, purposefully to avoid making a narrow or "traditional" definition. The genre is growing and shouldn't be constrained by the traits of the early popular titles. A lot of these could easily be replaced with other games that are mechanically congruent, so ultimately I'm sure if you asked 10 people for their canon list you'd just get 10 different answers, but I think this should sufficiently allow us to determine what factors make a game have higher "incrementalness".

The Paradigm Shift

The Paradigm Shift is probably the highest possible value factor for an incremental. It's so common that for a while people referred to incrementals that exhibit this trait as "unfolding" games, to the point of trying to replace the term incremental due to their popularity. Paradigm shifts refer to when the gameplay significantly changes. There are too many examples to list here, but notably, every single reset mechanic is typically going to be a paradigm shift. Examples of games with paradigm shifts that aren't tied to reset mechanics include Universal Paperclips and A Dark Room.

There are many reasons for the appeal of paradigm shifts. Oftentimes each mechanic builds on top of the existing mechanics, increasing the complexity of the game in steps so the player can follow along. They provide a sense of mystery, with the player anticipating what will happen next. They shake up the gameplay before it gets too stale - allowing the game to entertain for longer before the sense of Guide to Incrementals/What is Content? dissipates. Of the canon games selected above, I would argue every single one contains a paradigm shift (although I could see someone disagreeing with that statement wrt Increlution).

I should take a moment to say that while I'm hyping up this specific factor, we cannot just reduce the genre definition to "does it have paradigm shifts". Many games have paradigm shifts that are not incremental, so it's just an indicator of incrementalness. Additionally, it can become quite hard to determine how large of a shift is a "paradigm" shift. Take, for example, any game with a skill tree. In some games, each skill node might have a large impact on how you play with the game, and qualify as a paradigm shift for some players. In other games, each skill node might just be a small percentage modifier on some stat that doesn't really impact much more than a slight bias towards an already established mechanic that's newly buffed. Every single canon game may show that it's common amongst incremental games, but could just as easily indicate that they're common in games in general.

High-Value Factors

I won't take as long to discuss the high and low-value factors, as you've already seen most of them brought up earlier on this page. As a reminder, a game does NOT need all of these to be an incremental game, but these are factors that each indicate a strong possibility the game is an incremental, so having several of these means they probably are. These factors apply to most of the canon incremental games.

"Pure UI" Display. Incrementals typically have a textual presentation of the game state - there isn't a visual representation of the entities within the game. The interface is closer to what would be just the UI of a game in another genre or the control panel of a plane. If there is a visual representation, the player is often still interacting with non-diegetic game elements.

Reduced Consequences. Incrementals tend to have reduced repurcussions for misplaying. They very rarely have fail states, where often the largest consequence is simply not progressing - never losing progress.

Optimization Problems. The predominant gameplay of incrementals is typically solving optimization problems, from deciding which purchase to save up for to reasoning and deciding between different mutually exclusive options the game presents.

Resource Management. Incrementals tend to have a lot of resources within the game to keep track of.

Low-Value Factors

These are low-value factors, meaning they aren't as strongly correlated with incremental games. Incremental games may have none of these, and non-incrementals may have several of these - if a game only has low-value factors, they're probably not an incremental.

Fast Numeric Growth. Numbers in incremental games tend to grow faster than in other genres. There are more instances of superlinear growth. The larger the numbers get, the stronger of a signal this factor is.

Automation. As an incremental game progresses, the player often no longer has to deal with earlier mechanics, by having them either happen automatically or otherwise be replaced with an alternative that requires less player interaction.

Goal-Oriented. Incrementals are often heavily reliant on extrinsic motivation to guide the player. Typically this is through some sort of in-game goal to work towards, such as a certain amount of a resource being required to unlock or purchase something new.

Waiting is a Mechanic. In incremental games, the player may come across times where there is no action they can take, and the game will progress automatically instead. The player must wait for some amount of this automatic progress to occur before they can resume interaction with the game.

Are Roguelites Incrementals?

Having made our variation of the Berlin Interpretation for incremental games, we can compare it to the Berlin Interpretation to determine if there's enough overlap that any game that "passes" the Berlin Interpretation would also pass the incremental variant. That is to say, whether any roguelite would also be considered an incremental game.

The meta-progression of an incremental game could arguably be considered a paradigm shift, and certainly adds some resource management. Goal-oriented would probably also apply. I think anything other than those would be a stretch, and in my opinion that just isn't enough to qualify. To be totally honest, I was never expecting to conclude otherwise though 😉

Sub-Genres

There are some trends in incremental games that go beyond just being a commonly used mechanic, such that they deeply affect the rest of the game design. These trends can be used to determine sub-genres within the incremental games umbrella:

Loops games are a sub-genre defined by having a core mechanic related to a loop, where the player is deciding the actions taken per loop. Notable examples include Idle Loops, Stuck in Time, Cavernous II, and Increlution. You may also argue Groundhog Life and Progress Knight fall into this sub-genre.

ITRTG-like games are a sub-genre defined by having a core mechanic based on clearing increasingly difficult battles and often tend to have a lot of different mechanics to become progressively stronger. Notable examples include Idling to Rule the Gods, NGU Idle, and Wizard and Minion Idle.

Polynomial Growth games are a sub-genre defined by having a core mechanic related to a higher degree polynomial. Notable examples include the base layer of Antimatter Dimensions and Swarm Simulator.

Upgrades Games is a category popular on flash games websites that featured games focused on buying upgrades that would allow you to attain more currency in some sort of minigame that would earn you more money to buy more upgrades, which I'd argue now belong under the fold of incremental games. Notable examples include the Learn to Fly series and Upgrade Complete.

Cultivation RPGs are a genre of games, books, and anime popular in China that center around being in a fantasy world with characters getting stronger over time. While few of them get translated into English, a fan of incremental games may find the available games interesting.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/hashmap.json b/hashmap.json index 996592ee..14e72e85 100644 --- a/hashmap.json +++ b/hashmap.json @@ -1 +1 @@ -{"garden_matrix_index.md":"C78VYYz1","garden_guide-to-incrementals_index.md":"BzczfToF","garden_mbin_index.md":"Dionlejf","garden_fediverse_index.md":"CGquF_ei","garden_forgejo_index.md":"BR0pkwOl","garden_freeform_index.md":"CxwOYYUM","garden_garden-rss_index.md":"CJZ3uLwn","garden_atproto_index.md":"FIpg42uM","about_index.md":"p-omr8fP","garden_freeform-vs-chronological-dichotomy_index.md":"DyHhTPx1","changelog_index.md":"BpRz4m_c","garden_game-dev-tree_index.md":"SVW5COfA","garden_activitypub_index.md":"nGB2Ugcw","garden_guide-to-incrementals_appeal-to-developers_index.md":"C8GwgGD2","garden_guide-to-incrementals_appeal-to-players_index.md":"I4yQBROE","garden_incremental-social_index.md":"DXrf6JNf","garden_ivy-road_index.md":"AXtf8fZc","garden_kronos_index.md":"BBfrUWpx","index.md":"BanIo7zz","garden_my-personal-website_index.md":"DYECnLks","garden_life-is-strange_index.md":"3o3FN6qT","public_gamedevtree_docs_buyables.md":"BWSB6neR","public_gamedevtree_readme.md":"B6IoVQ-I","public_gamedevtree_changelog.md":"BFpQdU6f","public_gamedevtree_docs_achievements.md":"C6gZOG4E","public_gamedevtree_docs_bars.md":"1NZ3Fz1N","garden_mtx_index.md":"CY67oQSn","public_gamedevtree_docs_!general-info.md":"B4kcWpV-","garden_davey-wreden_index.md":"SGaHrxwX","garden_commune_index.md":"BksNnRi6","garden_the-small-web_index.md":"BDAXLN0D","garden_v-ecs_index.md":"bw4rUp7d","garden_video-game-monetization_index.md":"BqDfezhL","garden_vitepress_index.md":"O43Um6MI","garden_wanderstop_index.md":"i8qeeMcz","garden_babble-buds_index.md":"BJE_tzY5","guide-to-incrementals_index.md":"EkOkYCUH","garden_weird_index.md":"CwkTA0TR","guide-to-incrementals_ludology_appeal-gamers_index.md":"DVALlC29","guide-to-incrementals_ludology_appeal-developers_index.md":"DcKi1uKS","guide-to-incrementals_design_criticism_index.md":"QUzfSxJP","guide-to-incrementals_ludology_content_index.md":"BMAOL1a_","garden_capture-the-citadel_index.md":"BN-YksDC","garden_advent-incremental_index.md":"D771-IuF","garden_this-knowledge-hub_index.md":"BvroBCf6","garden_guide-to-incrementals_navigating-criticism_index.md":"ICsm7JOZ","garden_webrings_index.md":"C-yxVeE6","garden_guide-to-incrementals_what-is-content_index.md":"CMD9eYuA","public_gamedevtree_docs_custom-tab-layouts.md":"oOQumDgW","now_index.md":"BQbJs2h1","guide-to-incrementals_ludology_definition_index.md":"Dn9xPt1k","public_lit_readme.md":"Dp_XDgLr","garden_guide-to-incrementals_defining-the-genre_index.md":"CTeEKO2E","public_lit_docs_bars.md":"CnS5IMvm","public_lit_docs_!general-info.md":"DwyPmy7N","public_lit_docs_updating-tmt.md":"CjXsxPz8","public_lit_docs_infoboxes.md":"71lto7Te","public_lit_docs_layer-features.md":"FrysJ_Sk","public_lit_docs_achievements.md":"DaBdzZ0g","garden_logseq_index.md":"Owl3sCHO","garden_decentralized_index.md":"DABuWYWx","public_lit_docs_milestones.md":"CKbDaByO","public_lit_docs_main-mod-info.md":"B2Wd3G2L","public_lit_docs_basic-layer-breakdown.md":"B_DwLl-5","public_lit_docs_buyables.md":"Cr6AwZWn","public_lit_docs_trees-and-tree-customization.md":"D-rEc1nB","public_lit_docs_challenges.md":"BXbZcSAe","public_lit_docs_subtabs-and-microtabs.md":"DkrjReOt","public_lit_docs_upgrades.md":"DCCBwvKJ","public_lit_docs_clickables.md":"DQD4wzqI","public_lit_docs_custom-tab-layouts.md":"CHYKKeeX","public_kronos_docs_updating-tmt.md":"yvj4vsSM","public_gamedevtree_2.0-format-changes.md":"DWZ5VgEH","garden_dice-armor_index.md":"Rr3nnh6V","garden_digital-gardens_index.md":"CJoZsrEi","public_kronos_docs_!general-info.md":"Dr4UpP6q","garden_chronological_index.md":"DoP2J6qb","garden_premium-currency_index.md":"Csjt2l0V","garden_profectus_index.md":"DgQQY-vL","garden_social-media_index.md":"CYONfT_y","garden_synapse_index.md":"BI7F1dMI","garden_the-beginner-s-guide_index.md":"ChAdsj_y","garden_the-cozy-web_index.md":"DaJefYx7","garden_the-indieweb_amplification_index.md":"DfKJ_KtK","public_gamedevtree_docs_basic-layer-breakdown.md":"DG6Q9mdT","public_gamedevtree_docs_challenges.md":"DJU5H6Rk","public_gamedevtree_docs_updating-tmt.md":"B1_CRXZy","public_gamedevtree_docs_upgrades.md":"DuL26i8s","public_kronos_old things_2.0-format-changes.md":"DAyzd7AX","garden_chat-glue_index.md":"CkMzaX_H","public_kronos_docs_achievements.md":"BQdSRHBr","public_kronos_changelog.md":"_RxA7rHJ","public_kronos_docs_bars.md":"DLIjHzcw","public_kronos_docs_basic-layer-breakdown.md":"DHJLymK0","public_kronos_docs_buyables.md":"CZOwuPEI","public_kronos_docs_challenges.md":"C8-cN764","public_kronos_docs_clickables.md":"Dpdgv1J5","public_gamedevtree_docs_subtabs-and-microtabs.md":"BUkbEA-K","garden_command-palettes_index.md":"cEwnHYSj","public_kronos_docs_main-mod-info.md":"DYKIKxsS","garden_fedi-v2_index.md":"CK_GsGf6","garden_artificial-intelligence_index.md":"Cf5fW2LF","public_kronos_docs_infoboxes.md":"Bc-XXHMa","public_kronos_docs_layer-features.md":"DJjusT4t","public_gamedevtree_docs_layer-features.md":"DAMp8TY6","public_gamedevtree_docs_main-mod-info.md":"DGfpmFPw","public_gamedevtree_docs_milestones.md":"C9u7zdbl","garden_the-indieweb_signature-blocks_index.md":"idlweEUf","garden_my-projects_index.md":"vjRjnME5","garden_open-source_index.md":"C_VcDsbZ","garden_nostr_index.md":"Be6A8yGZ","public_kronos_docs_upgrades.md":"BY_E6naZ","public_kronos_docs_getting-started.md":"qT4YQHFa","public_gamedevtree_docs_getting-started.md":"DZiPQZAv","public_lit_changelog.md":"D7wPxHZ1","public_kronos_docs_subtabs-and-microtabs.md":"BSv4TpNt","public_gamedevtree_docs_clickables.md":"DlF0g6fO","garden_planar-pioneers_index.md":"CdMqvm-2","garden_cinny_index.md":"Dqj9jrEW","garden_opti-speech_index.md":"Ctz_UJYG","garden_pre-order-bonuses_index.md":"Bzv9fLF9","public_lit_docs_getting-started.md":"BoU9JbJY","public_kronos_docs_trees-and-tree-customization.md":"C6vJ-bgs","public_lit_old things_2.0-format-changes.md":"aA7GK9Ns","public_kronos_readme.md":"DR8w07T9","public_kronos_docs_particles.md":"CgdBAXsD","garden_federated-identity_index.md":"tYQ-ES5R","public_kronos_docs_milestones.md":"Ce7tGr8C","public_gamedevtree_docs_infoboxes.md":"BtrpL17l","public_kronos_docs_custom-tab-layouts.md":"B34ACqtp","public_kronos_docs_grids.md":"dbyCMqJD"} +{"garden_digital-gardens_index.md":"CJoZsrEi","garden_davey-wreden_index.md":"SGaHrxwX","garden_activitypub_index.md":"nGB2Ugcw","garden_freeform-vs-chronological-dichotomy_index.md":"DyHhTPx1","about_index.md":"p-omr8fP","garden_fediverse_index.md":"CGquF_ei","garden_dice-armor_index.md":"Rr3nnh6V","garden_guide-to-incrementals_navigating-criticism_index.md":"ICsm7JOZ","garden_ivy-road_index.md":"AXtf8fZc","garden_chat-glue_index.md":"CkMzaX_H","garden_incremental-social_index.md":"DXrf6JNf","garden_guide-to-incrementals_what-is-content_index.md":"CMD9eYuA","garden_game-dev-tree_index.md":"SVW5COfA","garden_forgejo_index.md":"BR0pkwOl","garden_life-is-strange_index.md":"3o3FN6qT","garden_logseq_index.md":"Owl3sCHO","garden_garden-rss_index.md":"CJZ3uLwn","public_gamedevtree_docs_infoboxes.md":"BtrpL17l","public_gamedevtree_docs_custom-tab-layouts.md":"oOQumDgW","public_gamedevtree_2.0-format-changes.md":"DWZ5VgEH","public_lit_docs_trees-and-tree-customization.md":"D-rEc1nB","garden_decentralized_index.md":"DABuWYWx","public_gamedevtree_docs_basic-layer-breakdown.md":"DG6Q9mdT","guide-to-incrementals_ludology_definition_index.md":"Dn9xPt1k","garden_babble-buds_index.md":"BJE_tzY5","garden_freeform_index.md":"CxwOYYUM","public_kronos_old things_2.0-format-changes.md":"DAyzd7AX","public_gamedevtree_changelog.md":"BFpQdU6f","public_gamedevtree_docs_subtabs-and-microtabs.md":"BUkbEA-K","public_gamedevtree_docs_updating-tmt.md":"B1_CRXZy","public_gamedevtree_docs_upgrades.md":"DuL26i8s","garden_guide-to-incrementals_appeal-to-developers_index.md":"C8GwgGD2","public_kronos_readme.md":"DR8w07T9","public_gamedevtree_docs_clickables.md":"DlF0g6fO","public_kronos_changelog.md":"_RxA7rHJ","garden_nostr_index.md":"Be6A8yGZ","public_gamedevtree_docs_buyables.md":"BWSB6neR","garden_video-game-monetization_index.md":"BqDfezhL","public_gamedevtree_readme.md":"B6IoVQ-I","garden_vitepress_index.md":"O43Um6MI","garden_opti-speech_index.md":"Ctz_UJYG","garden_weird_index.md":"CwkTA0TR","garden_webrings_index.md":"C-yxVeE6","public_kronos_docs_clickables.md":"Dpdgv1J5","public_kronos_docs_custom-tab-layouts.md":"B34ACqtp","changelog_index.md":"BpRz4m_c","public_kronos_docs_getting-started.md":"qT4YQHFa","garden_fedi-v2_index.md":"CK_GsGf6","public_kronos_docs_grids.md":"dbyCMqJD","public_kronos_docs_infoboxes.md":"Bc-XXHMa","guide-to-incrementals_ludology_content_index.md":"BMAOL1a_","public_kronos_docs_milestones.md":"Ce7tGr8C","garden_cinny_index.md":"Dqj9jrEW","public_kronos_docs_layer-features.md":"DJjusT4t","public_kronos_docs_particles.md":"CgdBAXsD","public_kronos_docs_updating-tmt.md":"yvj4vsSM","public_kronos_docs_upgrades.md":"BY_E6naZ","public_lit_docs_bars.md":"CnS5IMvm","public_lit_readme.md":"Dp_XDgLr","garden_guide-to-incrementals_defining-the-genre_index.md":"CTeEKO2E","public_lit_docs_!general-info.md":"DwyPmy7N","public_lit_changelog.md":"D7wPxHZ1","public_lit_docs_infoboxes.md":"71lto7Te","garden_the-indieweb_signature-blocks_index.md":"idlweEUf","public_lit_docs_layer-features.md":"FrysJ_Sk","public_lit_docs_main-mod-info.md":"B2Wd3G2L","public_lit_docs_subtabs-and-microtabs.md":"DkrjReOt","garden_mtx_index.md":"CY67oQSn","public_lit_docs_milestones.md":"CKbDaByO","public_kronos_docs_bars.md":"DLIjHzcw","garden_capture-the-citadel_index.md":"BN-YksDC","public_lit_docs_upgrades.md":"DCCBwvKJ","public_kronos_docs_basic-layer-breakdown.md":"DHJLymK0","garden_commune_index.md":"BksNnRi6","garden_kronos_index.md":"BBfrUWpx","garden_command-palettes_index.md":"cEwnHYSj","public_lit_docs_buyables.md":"Cr6AwZWn","garden_the-beginner-s-guide_index.md":"ChAdsj_y","public_gamedevtree_docs_challenges.md":"DJU5H6Rk","public_gamedevtree_docs_milestones.md":"C9u7zdbl","garden_profectus_index.md":"DgQQY-vL","garden_the-small-web_index.md":"BDAXLN0D","public_gamedevtree_docs_layer-features.md":"DAMp8TY6","guide-to-incrementals_index.md":"EkOkYCUH","garden_the-indieweb_amplification_index.md":"DfKJ_KtK","public_gamedevtree_docs_main-mod-info.md":"DGfpmFPw","garden_my-personal-website_index.md":"DYECnLks","garden_planar-pioneers_index.md":"CdMqvm-2","public_lit_old things_2.0-format-changes.md":"aA7GK9Ns","garden_synapse_index.md":"BI7F1dMI","public_kronos_docs_challenges.md":"C8-cN764","garden_social-media_index.md":"CYONfT_y","public_lit_docs_basic-layer-breakdown.md":"B_DwLl-5","public_kronos_docs_buyables.md":"CZOwuPEI","public_kronos_docs_achievements.md":"BQdSRHBr","garden_federated-identity_index.md":"tYQ-ES5R","public_lit_docs_clickables.md":"DQD4wzqI","garden_v-ecs_index.md":"bw4rUp7d","public_kronos_docs_!general-info.md":"Dr4UpP6q","garden_open-source_index.md":"C_VcDsbZ","garden_guide-to-incrementals_index.md":"BzczfToF","garden_mbin_index.md":"Dionlejf","garden_the-cozy-web_index.md":"DaJefYx7","public_kronos_docs_main-mod-info.md":"DYKIKxsS","public_lit_docs_challenges.md":"BXbZcSAe","garden_pre-order-bonuses_index.md":"Bzv9fLF9","public_kronos_docs_subtabs-and-microtabs.md":"BSv4TpNt","garden_premium-currency_index.md":"Csjt2l0V","public_gamedevtree_docs_getting-started.md":"DZiPQZAv","public_lit_docs_updating-tmt.md":"CjXsxPz8","garden_atproto_index.md":"FIpg42uM","public_lit_docs_custom-tab-layouts.md":"CHYKKeeX","guide-to-incrementals_design_criticism_index.md":"QUzfSxJP","garden_my-projects_index.md":"vjRjnME5","garden_advent-incremental_index.md":"D771-IuF","public_lit_docs_getting-started.md":"BoU9JbJY","guide-to-incrementals_ludology_appeal-gamers_index.md":"DVALlC29","guide-to-incrementals_ludology_appeal-developers_index.md":"DcKi1uKS","index.md":"BanIo7zz","garden_chronological_index.md":"DoP2J6qb","public_gamedevtree_docs_bars.md":"1NZ3Fz1N","garden_wanderstop_index.md":"i8qeeMcz","public_gamedevtree_docs_!general-info.md":"B4kcWpV-","public_gamedevtree_docs_achievements.md":"C6gZOG4E","now_index.md":"BQbJs2h1","garden_guide-to-incrementals_appeal-to-players_index.md":"I4yQBROE","public_kronos_docs_trees-and-tree-customization.md":"C6vJ-bgs","garden_matrix_index.md":"C78VYYz1","garden_artificial-intelligence_index.md":"Cf5fW2LF","public_lit_docs_achievements.md":"DaBdzZ0g","garden_this-knowledge-hub_index.md":"BvroBCf6"} diff --git a/index.html b/index.html index 5cb944c4..db9590cd 100644 --- a/index.html +++ b/index.html @@ -6,12 +6,12 @@ Hello! | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

Hello!

I'm Anthony, or The Paper Pilot, and welcome to my digital garden!

This is a public website collecting all my (public) thoughts and projects all in one place. There are a lot of pages here, that link to each other wiki-style. I suggest starting your browsing with one of the recommended pages that most closely align with your interests 😃.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

Hello!

I'm Anthony, or The Paper Pilot, and welcome to my digital garden!

This is a public website collecting all my (public) thoughts and projects all in one place. There are a lot of pages here, that link to each other wiki-style. I suggest starting your browsing with one of the recommended pages that most closely align with your interests 😃.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/now/index.html b/now/index.html index ce325e4a..9bbd9fe6 100644 --- a/now/index.html +++ b/now/index.html @@ -6,12 +6,12 @@ /now | The Paper Pilot - + - + - + @@ -35,10 +35,10 @@ -
Skip to content

/now

181 words, ~1 minute read. Planted +

Skip to content

/now

181 words, ~1 minute read. Planted . Last tended to -.


This "now page" offers a big picture glimpse into what I’m focused on at this point in my life. What is a now page?

IndieWeb

I've been learning a lot about The Small Web (or the various other names it goes by). I've been working on this website and implementing the various IndieWeb building blocks

I'm also working on a proposal for adding The IndieWeb/Signature Blocks to your notes

Commune

While I'm not contributing to the project directly, I'm following along and participating with the discussions and designs of Commune.

I'm working on a mockup of what an app could look like that treats incoming messages, emails, etc. differently based on user defined rules, with a focus on moving them into personal or communal digital gardens.

Incremental Social

I'm running and improving the social media site Incremental Social, along with CardboardEmpress.

Chromatic Lattice

I'm working on a multiplayer incremental game. That's all that's known publicly for now 😜.

Kronos

I'm working on a long single player narratively driven incremental game. This is a very long-term project.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +.


This "now page" offers a big picture glimpse into what I’m focused on at this point in my life. What is a now page?

IndieWeb

I've been learning a lot about The Small Web (or the various other names it goes by). I've been working on this website and implementing the various IndieWeb building blocks

I'm also working on a proposal for adding The IndieWeb/Signature Blocks to your notes

Commune

While I'm not contributing to the project directly, I'm following along and participating with the discussions and designs of Commune.

I'm working on a mockup of what an app could look like that treats incoming messages, emails, etc. differently based on user defined rules, with a focus on moving them into personal or communal digital gardens.

Incremental Social

I'm running and improving the social media site Incremental Social, along with CardboardEmpress.

Chromatic Lattice

I'm working on a multiplayer incremental game. That's all that's known publicly for now 😜.

Kronos

I'm working on a long single player narratively driven incremental game. This is a very long-term project.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/2.0-format-changes.html b/public/gamedevtree/2.0-format-changes.html index 66abec16..ca1bdb64 100644 --- a/public/gamedevtree/2.0-format-changes.html +++ b/public/gamedevtree/2.0-format-changes.html @@ -6,12 +6,12 @@ 2.0 format changes | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

2.0 format changes

  • Temp format is changed from temp.something[layer] to temp[layer].something, for consistency
  • Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.)
  • effectDisplay in Challenges and Upgrades no longer takes an argument, and neither does effect for Buyables
  • Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase).
  • Generation of Points now happens in the main game loop (not in a layer update function), enabled by canGenPoints in game.js.
  • Changed fullLayerReset to layerDataReset, which takes an array of names of values to keep

In addition, many names were changed, mostly expanding abbreviations:

All instances of:

  • chall -> challenge
  • unl -> unlocked
  • upg -> upgrade (besides CSS)
  • amt -> amount
  • desc -> description
  • resCeil -> roundUpCost
  • order -> unlockOrder
  • incr_order -> increaseUnlockOrder

Challenges:

  • desc -> challengeDescription
  • reward -> rewardDescription
  • effect -> rewardEffect
  • effectDisplay -> rewardDisplay
  • active -> challengeActive
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

2.0 format changes

  • Temp format is changed from temp.something[layer] to temp[layer].something, for consistency
  • Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.)
  • effectDisplay in Challenges and Upgrades no longer takes an argument, and neither does effect for Buyables
  • Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase).
  • Generation of Points now happens in the main game loop (not in a layer update function), enabled by canGenPoints in game.js.
  • Changed fullLayerReset to layerDataReset, which takes an array of names of values to keep

In addition, many names were changed, mostly expanding abbreviations:

All instances of:

  • chall -> challenge
  • unl -> unlocked
  • upg -> upgrade (besides CSS)
  • amt -> amount
  • desc -> description
  • resCeil -> roundUpCost
  • order -> unlockOrder
  • incr_order -> increaseUnlockOrder

Challenges:

  • desc -> challengeDescription
  • reward -> rewardDescription
  • effect -> rewardEffect
  • effectDisplay -> rewardDisplay
  • active -> challengeActive
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/README.html b/public/gamedevtree/README.html index e64db4c4..8a7eafb6 100644 --- a/public/gamedevtree/README.html +++ b/public/gamedevtree/README.html @@ -6,12 +6,12 @@ The-Modding-Tree | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

The-Modding-Tree

A modified version of The Prestige Tree that is much easier to mod. It still requires programming knowledge, but it's mostly pretty easy things and copy/pasting.

Look here for a tutorial on getting started with modding with TMT

You can look in the documentation for more information on how it all works, or look at the code in layers.js to see what it all looks like.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

The-Modding-Tree

A modified version of The Prestige Tree that is much easier to mod. It still requires programming knowledge, but it's mostly pretty easy things and copy/pasting.

Look here for a tutorial on getting started with modding with TMT

You can look in the documentation for more information on how it all works, or look at the code in layers.js to see what it all looks like.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/changelog.html b/public/gamedevtree/changelog.html index 8ef172b8..657394b6 100644 --- a/public/gamedevtree/changelog.html +++ b/public/gamedevtree/changelog.html @@ -6,12 +6,12 @@ The Game Dev Tree changelog: | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

The Game Dev Tree changelog:

v1.0.4 Version Bump [rebalanced,debuggedx3] - 2020-11-09

  • Fixed refactorings 2, 3, and 4 not actually affecting productivity

v1.0.3 Version Bump [rebalanced,debuggedx2] - 2020-11-08

  • Fixed API milestone 4 not working

v1.0.2 Version Bump [rebalanced,debugged] - 2020-11-08

  • Fixed tree lines being hidden after hitting "keepGoing" in the victory screen

v1.0.1 Version Bump [rebalanced] - 2020-11-08

  • Buffed several TAs

v1.0 Version Bump - 2020-11-08

  • Finished row 4
  • Added colored text to lore
  • Fixed some visual bugs with milestones
  • Probably other stuff lol its been a week

v0.2.3 Stylish - 2020-10-30

  • Re-styled basically everything
  • Added favicon
  • Added header bar
  • Added changelog

v0.2.2 Row 3 - 2020-10-22

  • Removed debug statement
  • Moved milestones in F layer beneath the buyables

v0.2.1 Row 3 - 2020-10-21

  • Fixed layers hiding
  • Fixed typos/minor issues
  • Fixed S layer being highlighted before you can unlock the layer

v0.2 Row 3 - 2020-10-21

  • Implemented row 3

v0.1.1 Cash Influx [rebalanced] - 2020-10-19

  • Fixed notification issue
  • Rebalanced to make early game faster and late game slower
  • Fixed other minor issues

v0.1 Cash Influx - 2020-10-19

  • Implemented row 2

v0.0 Initial Commit - 2020-10-18

  • Implemented row 1
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

The Game Dev Tree changelog:

v1.0.4 Version Bump [rebalanced,debuggedx3] - 2020-11-09

  • Fixed refactorings 2, 3, and 4 not actually affecting productivity

v1.0.3 Version Bump [rebalanced,debuggedx2] - 2020-11-08

  • Fixed API milestone 4 not working

v1.0.2 Version Bump [rebalanced,debugged] - 2020-11-08

  • Fixed tree lines being hidden after hitting "keepGoing" in the victory screen

v1.0.1 Version Bump [rebalanced] - 2020-11-08

  • Buffed several TAs

v1.0 Version Bump - 2020-11-08

  • Finished row 4
  • Added colored text to lore
  • Fixed some visual bugs with milestones
  • Probably other stuff lol its been a week

v0.2.3 Stylish - 2020-10-30

  • Re-styled basically everything
  • Added favicon
  • Added header bar
  • Added changelog

v0.2.2 Row 3 - 2020-10-22

  • Removed debug statement
  • Moved milestones in F layer beneath the buyables

v0.2.1 Row 3 - 2020-10-21

  • Fixed layers hiding
  • Fixed typos/minor issues
  • Fixed S layer being highlighted before you can unlock the layer

v0.2 Row 3 - 2020-10-21

  • Implemented row 3

v0.1.1 Cash Influx [rebalanced] - 2020-10-19

  • Fixed notification issue
  • Rebalanced to make early game faster and late game slower
  • Fixed other minor issues

v0.1 Cash Influx - 2020-10-19

  • Implemented row 2

v0.0 Initial Commit - 2020-10-18

  • Implemented row 1
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/!general-info.html b/public/gamedevtree/docs/!general-info.html index d87db4b6..88379ddb 100644 --- a/public/gamedevtree/docs/!general-info.html +++ b/public/gamedevtree/docs/!general-info.html @@ -6,12 +6,12 @@ The-Modding-Tree | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

The-Modding-Tree

The main way to add content is through creating layers. You can either add a layer directly in the layers object in layersSupportjs, or declare it in another file and then do "addLayer(layername, layerdata)" (good for breaking things up into smaller files). The existing layers are just examples and can be freely deleted. You can also use them as references and a base for your own layers.

The first thing you need to do is to edit the modInfo at the top of game.js to set your modID (a string). A unique modId will prevent your mod's saves from conflicting with other mods.

Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to.

The Modding Tree uses break_eternity.js to store large values. This means that many numbers are Decimal objects, and must be treated differently. For example, you have to use new Decimal(x) to create a Decimal value instead of a plain number, and perform operations on them by calling functions. e.g, instead of x = x + y, use x = x.add(y).

Almost all values can be either a constant value, or a dynamic value. Dynamic values are defined by putting a function that returns what the value should be at any given time.

All display text can be basic HTML instead (But you can't use most Vue features there).

Table of Contents:

General:

  • Getting Started: Getting your own copy of the code set up with Github Desktop.
  • Main mod info: How to set up general things for your mod in mod.js.
  • Basic layer breakdown: Breaking down the components of a layer with minimal features.
  • Layer features: Explanations of all of the different properties that you can give a layer.
  • Custom Tab Layouts: An optional way to give your tabs a different layout. You can even create entirely new components to use.
  • Updating TMT: Using Github Desktop to update your mod's version of TMT.

Common components

  • Upgrades: How to create upgrades for a layer.
  • Milestones: How to create milestones for a layer.
  • Buyables: Create rebuyable upgrades for your layer (with the option to make them respec-able). Can be used to make Enhancers or Space Buildings.
  • Clickables: A more generalized variant of buyables, for any kind of thing that is sometimes clickable. Between these and Buyables, you can do just about anything.

Other components

  • Challenges: How to create challenges for a layer.
  • Bars: Display some information as a progress bar, gague, or similar. They are highly customizable, and can be horizontal and vertical as well.
  • Subtabs and Microtabs: Create subtabs for your tabs, as well as "microtab" components that you can put inside the tabs.
  • Achievements: How to create achievements for a layer (or for the whole game).
  • Infoboxes: Boxes containing text that can be shown or hidden.
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

The-Modding-Tree

The main way to add content is through creating layers. You can either add a layer directly in the layers object in layersSupportjs, or declare it in another file and then do "addLayer(layername, layerdata)" (good for breaking things up into smaller files). The existing layers are just examples and can be freely deleted. You can also use them as references and a base for your own layers.

The first thing you need to do is to edit the modInfo at the top of game.js to set your modID (a string). A unique modId will prevent your mod's saves from conflicting with other mods.

Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to.

The Modding Tree uses break_eternity.js to store large values. This means that many numbers are Decimal objects, and must be treated differently. For example, you have to use new Decimal(x) to create a Decimal value instead of a plain number, and perform operations on them by calling functions. e.g, instead of x = x + y, use x = x.add(y).

Almost all values can be either a constant value, or a dynamic value. Dynamic values are defined by putting a function that returns what the value should be at any given time.

All display text can be basic HTML instead (But you can't use most Vue features there).

Table of Contents:

General:

  • Getting Started: Getting your own copy of the code set up with Github Desktop.
  • Main mod info: How to set up general things for your mod in mod.js.
  • Basic layer breakdown: Breaking down the components of a layer with minimal features.
  • Layer features: Explanations of all of the different properties that you can give a layer.
  • Custom Tab Layouts: An optional way to give your tabs a different layout. You can even create entirely new components to use.
  • Updating TMT: Using Github Desktop to update your mod's version of TMT.

Common components

  • Upgrades: How to create upgrades for a layer.
  • Milestones: How to create milestones for a layer.
  • Buyables: Create rebuyable upgrades for your layer (with the option to make them respec-able). Can be used to make Enhancers or Space Buildings.
  • Clickables: A more generalized variant of buyables, for any kind of thing that is sometimes clickable. Between these and Buyables, you can do just about anything.

Other components

  • Challenges: How to create challenges for a layer.
  • Bars: Display some information as a progress bar, gague, or similar. They are highly customizable, and can be horizontal and vertical as well.
  • Subtabs and Microtabs: Create subtabs for your tabs, as well as "microtab" components that you can put inside the tabs.
  • Achievements: How to create achievements for a layer (or for the whole game).
  • Infoboxes: Boxes containing text that can be shown or hidden.
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/achievements.html b/public/gamedevtree/docs/achievements.html index 636acf09..b665b9dc 100644 --- a/public/gamedevtree/docs/achievements.html +++ b/public/gamedevtree/docs/achievements.html @@ -6,12 +6,12 @@ Achievements | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
Skip to content

Achievements

Achievements are awarded to the player when they meet a certain goal, and give some benefit. Currently, they are pretty basic, but additional features will be added later to help.

You can make global achievements by putting them in a side layer (make its row "side" instead of a number)

Useful functions for dealing with achievements and implementing their effects:

  • hasAchievement(layer, id): determine if the player has the Achievement
  • achievementEffect(layer, id): Returns the current effects of the achievement, if any

Achievements should be formatted like this:

js
    achievements: {
+    
Skip to content

Achievements

Achievements are awarded to the player when they meet a certain goal, and give some benefit. Currently, they are pretty basic, but additional features will be added later to help.

You can make global achievements by putting them in a side layer (make its row "side" instead of a number)

Useful functions for dealing with achievements and implementing their effects:

  • hasAchievement(layer, id): determine if the player has the Achievement
  • achievementEffect(layer, id): Returns the current effects of the achievement, if any

Achievements should be formatted like this:

js
    achievements: {
         rows: # of rows
         cols: # of columns
         11: {
@@ -42,8 +42,8 @@
             more features
         }
         etc
-    }

Each achievement should have an id where the first digit is the row and the second digit is the column. Individual achievement can have these features:

  • name: optional, displayed at the top of the achievement. The only visible text. It can also be a function that returns updating text. Can use basic HTML.

  • done(): A function returning a boolean to determine if the achievement should be awarded.

  • tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML.

  • effect(): optional, A function that calculates and returns the current values of any bonuses from the achievement. Can return a value or an object containing multiple values.

  • unlocked(): optional, A function returning a bool to determine if the achievement is visible or not. Default is unlocked.

  • onComplete() - optional, this function will be called when the achievement is completed.

  • style: Optional, Applies CSS to this achievement, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the achievement was stored under, for convenient access. The achievement in the example's id is 11.

  • goalTooltip: optional, depracated Appears when the achievement is hovered over and locked, overrides the basic tooltip. This is to display the goal (or a hint). It can also be a function that returns updating text. Can use basic HTML.

  • doneTooltip: optional, depracated Appears when the achievement is hovered over and completed, overrides the basic tooltip. This can display what the player achieved (the goal), and the rewards, if any. It can also be a function that returns updating text. Can use basic HTML.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + }

Each achievement should have an id where the first digit is the row and the second digit is the column. Individual achievement can have these features:

  • name: optional, displayed at the top of the achievement. The only visible text. It can also be a function that returns updating text. Can use basic HTML.

  • done(): A function returning a boolean to determine if the achievement should be awarded.

  • tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML.

  • effect(): optional, A function that calculates and returns the current values of any bonuses from the achievement. Can return a value or an object containing multiple values.

  • unlocked(): optional, A function returning a bool to determine if the achievement is visible or not. Default is unlocked.

  • onComplete() - optional, this function will be called when the achievement is completed.

  • style: Optional, Applies CSS to this achievement, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the achievement was stored under, for convenient access. The achievement in the example's id is 11.

  • goalTooltip: optional, depracated Appears when the achievement is hovered over and locked, overrides the basic tooltip. This is to display the goal (or a hint). It can also be a function that returns updating text. Can use basic HTML.

  • doneTooltip: optional, depracated Appears when the achievement is hovered over and completed, overrides the basic tooltip. This can display what the player achieved (the goal), and the rewards, if any. It can also be a function that returns updating text. Can use basic HTML.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/bars.html b/public/gamedevtree/docs/bars.html index 5f330a32..3632bba7 100644 --- a/public/gamedevtree/docs/bars.html +++ b/public/gamedevtree/docs/bars.html @@ -6,12 +6,12 @@ Bars | The Paper Pilot - + - + - + @@ -34,14 +34,14 @@ -
Skip to content

Bars

Bars let you display information in a more direct way. It can be a progress bar, health bar, capacity gague, or anything else.

Bars are defined like other Big Features:

js
    bars: {
+    
Skip to content

Bars

Bars let you display information in a more direct way. It can be a progress bar, health bar, capacity gague, or anything else.

Bars are defined like other Big Features:

js
    bars: {
         bigBar: {
             display() {return "Blah"},
             etc
         }
         etc
-    }

Features:

  • direction: UP, DOWN, LEFT, or RIGHT (not Strings). Determines the direction that the bar is filled as it progresses. RIGHT means from left to right.

  • width, height: The size in pixels of the bar, but as Numbers (no "px" at the end)

  • progress(): A function that returns the portion of the bar that is filled, from "empty" at 0 to "full" at 1. (Nothing bad happens if the value goes out of these bounds, and it can be a number or Decimal).

  • display(): optional, A function that returns text to be displayed on top of the bar, can use HTML.

  • unlocked(): optional, A function returning a bool to determine if the bar is visible or not. Default is unlocked.

  • baseStyle, fillStyle, borderStyle, textStyle: Optional, Apply CSS to the unfilled portion, filled portion, border, and display text on the bar, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + }

Features:

  • direction: UP, DOWN, LEFT, or RIGHT (not Strings). Determines the direction that the bar is filled as it progresses. RIGHT means from left to right.

  • width, height: The size in pixels of the bar, but as Numbers (no "px" at the end)

  • progress(): A function that returns the portion of the bar that is filled, from "empty" at 0 to "full" at 1. (Nothing bad happens if the value goes out of these bounds, and it can be a number or Decimal).

  • display(): optional, A function that returns text to be displayed on top of the bar, can use HTML.

  • unlocked(): optional, A function returning a bool to determine if the bar is visible or not. Default is unlocked.

  • baseStyle, fillStyle, borderStyle, textStyle: Optional, Apply CSS to the unfilled portion, filled portion, border, and display text on the bar, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/basic-layer-breakdown.html b/public/gamedevtree/docs/basic-layer-breakdown.html index 7fa490db..ef4832d3 100644 --- a/public/gamedevtree/docs/basic-layer-breakdown.html +++ b/public/gamedevtree/docs/basic-layer-breakdown.html @@ -6,12 +6,12 @@ Basic layer breakdown | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
Skip to content

Basic layer breakdown

This is a very minimal layer with minimal features. Most things will require additional features.

js
    p: {
+    
Skip to content

Basic layer breakdown

This is a very minimal layer with minimal features. Most things will require additional features.

js
    p: {
         startData() { return {                  // startData is a function that returns default data for a layer. 
             unlocked: false,                    // You can add more variables here to add them to your layer.
             points: new Decimal(0),             // "points" is the internal name for the main resource of the layer.
@@ -61,8 +61,8 @@
         },
 
         layerShown() {return true},             // Returns a bool for if this layer's node should be visible in the tree.
-    },
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + },
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/buyables.html b/public/gamedevtree/docs/buyables.html index 553a076c..78e0bb7b 100644 --- a/public/gamedevtree/docs/buyables.html +++ b/public/gamedevtree/docs/buyables.html @@ -6,12 +6,12 @@ Buyables | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
Skip to content

Buyables

Buyables are usually things that can be bought multiple times with scaling costs. If you set a respec function, the player can reset the purchases to get their currency back.

The amount of a buyable owned is a Decimal. You can get or set the amount of a buyable with getBuyableAmt(layer, id) and setBuyableAmt(layer, id, amt). You can use buyableEffect(layer, id) to get the current effects of a buyable.

Buyables should be formatted like this:

js
    buyables: {
+    
Skip to content

Buyables

Buyables are usually things that can be bought multiple times with scaling costs. If you set a respec function, the player can reset the purchases to get their currency back.

The amount of a buyable owned is a Decimal. You can get or set the amount of a buyable with getBuyableAmt(layer, id) and setBuyableAmt(layer, id, amt). You can use buyableEffect(layer, id) to get the current effects of a buyable.

Buyables should be formatted like this:

js
    buyables: {
         rows: # of rows
         cols: # of columns
         respec() {}, //**optional**, implement it to reset things and give back your currency.
@@ -47,8 +47,8 @@
             etc
         }
         etc
-    }

Features:

  • title: optional, displayed at the top in a larger font It can also be a function that returns updating text.

  • cost(): cost for buying the next buyable. Can have an optional argument "x" to calculate the cost of the x+1th object, but needs to use "current amount" as a default value for x. (x is a Decimal). Can return an object if there are multiple currencies.

  • effect(): optional, A function that calculates and returns the current values of bonuses of this buyable. Can return a value or an object containing multiple values.

  • display(): A function returning everything that should be displayed on the buyable after the title, likely including the description, amount bought, cost, and current effect. Can use basic HTML.

  • unlocked(): optional, A function returning a bool to determine if the buyable is visible or not. Default is unlocked.

  • canAfford(): A function returning a bool to determine if you can buy one of the buyables.

  • buy(): A function that implements buying one of the buyable, including spending the currency.

  • buyMax(): optional, A function that implements buying as many of the buyable as possible.

  • style: Optional, Applies CSS to this buyable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the buyable was stored under, for convenient access. The buyable in the example's id is 11.

Sell One/Sell All:

Including a sellOne or sellAll function will cause an additional button to appear beneath the buyable. They are functionally identical, but "sell one" appears above "sell all". You can also use them for other things.

sellOne/sellAll(): optional, Called when the button is pressed. The standard use would be to decrease/reset the amount of the buyable, And possibly return some currency to the player.

canSellOne/canSellAll(): optional, booleans determining whether or not to show the buttons. If "canSellOne/All" is absent but "sellOne/All" is present, the appropriate button will always show.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + }

Features:

  • title: optional, displayed at the top in a larger font It can also be a function that returns updating text.

  • cost(): cost for buying the next buyable. Can have an optional argument "x" to calculate the cost of the x+1th object, but needs to use "current amount" as a default value for x. (x is a Decimal). Can return an object if there are multiple currencies.

  • effect(): optional, A function that calculates and returns the current values of bonuses of this buyable. Can return a value or an object containing multiple values.

  • display(): A function returning everything that should be displayed on the buyable after the title, likely including the description, amount bought, cost, and current effect. Can use basic HTML.

  • unlocked(): optional, A function returning a bool to determine if the buyable is visible or not. Default is unlocked.

  • canAfford(): A function returning a bool to determine if you can buy one of the buyables.

  • buy(): A function that implements buying one of the buyable, including spending the currency.

  • buyMax(): optional, A function that implements buying as many of the buyable as possible.

  • style: Optional, Applies CSS to this buyable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the buyable was stored under, for convenient access. The buyable in the example's id is 11.

Sell One/Sell All:

Including a sellOne or sellAll function will cause an additional button to appear beneath the buyable. They are functionally identical, but "sell one" appears above "sell all". You can also use them for other things.

sellOne/sellAll(): optional, Called when the button is pressed. The standard use would be to decrease/reset the amount of the buyable, And possibly return some currency to the player.

canSellOne/canSellAll(): optional, booleans determining whether or not to show the buttons. If "canSellOne/All" is absent but "sellOne/All" is present, the appropriate button will always show.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/challenges.html b/public/gamedevtree/docs/challenges.html index ec767c4e..611c4ec6 100644 --- a/public/gamedevtree/docs/challenges.html +++ b/public/gamedevtree/docs/challenges.html @@ -6,12 +6,12 @@ Challenges | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
Skip to content

Challenges

Useful functions for dealing with Challenges and implementing their effects:

  • inChallenge(layer, id): determine if the player is in a given challenge (or another challenge on the same layer that counts as this one)
  • hasChallenge(layer, id): determine if the player has completed the challenge
  • challengeCompletions(layer, id): determine how many times the player completed the challenge
  • challEffect(layer, id): Returns the current effects of the challenge, if any

Challenges are stored in the following format:

js
    challenges: {
+    
Skip to content

Challenges

Useful functions for dealing with Challenges and implementing their effects:

  • inChallenge(layer, id): determine if the player is in a given challenge (or another challenge on the same layer that counts as this one)
  • hasChallenge(layer, id): determine if the player has completed the challenge
  • challengeCompletions(layer, id): determine how many times the player completed the challenge
  • challEffect(layer, id): Returns the current effects of the challenge, if any

Challenges are stored in the following format:

js
    challenges: {
         rows: # of rows
         cols: # of columns
         11: {
@@ -42,8 +42,8 @@
             etc
         }
         etc
-    }

Each challenge should have an id where the first digit is the row and the second digit is the column. Individual Challenges can have these features:

  • name: Name of the challenge, can be a string or a function. Can use basic HTML.

  • challengeDescription: A description of what makes the challenge a challenge. You will need to implement these elsewhere It can also be a function that returns updating text. Can use basic HTML.

  • rewardDescription: A description of the reward's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

  • rewardEffect(): optional, A function that calculates and returns the current values of any bonuses from the reward. Can return a value or an object containing multiple values. Can use basic HTML.

  • rewardDisplay(): optional, A function that returns a display of the current effects of the reward with formatting. Default behavior is to just display the a number appropriately formatted.

  • goal: A Decimal for the amount of currency required to beat the challenge. By default, the goal is in basic Points. The goal can also be a function if its value changes.

  • unlocked(): optional, A function returning a bool to determine if the challenge is visible or not. Default is unlocked.

  • onComplete() - optional, this function will be called when the challenge is completed when previously incomplete.

  • countsAs: optional, If a challenge combines the effects of other challenges in this layer, you can use this. An array of challenge ids. The player is effectively in all of those challenges when in the current one.

By default, challenges use basic Points for the goal. You can change that using these features.

  • currencyDisplayName: optional, the name to display for the currency for the goal

  • currencyInternalName: optional, the internal name for that currency

  • currencyLayer: optional, the internal name of the layer that currency is stored in. If it's not in a layer, omit. If it's not stored directly in a layer, instead use the next feature.

  • currencyLocation: optional, if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

  • completionLimit: optional, the amount of times you can complete this challenge. Default is 1 completion.

  • style: Optional, Applies CSS to this challenge, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the challenge was stored under, for convenient access. The challenge in the example's id is 11.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + }

Each challenge should have an id where the first digit is the row and the second digit is the column. Individual Challenges can have these features:

  • name: Name of the challenge, can be a string or a function. Can use basic HTML.

  • challengeDescription: A description of what makes the challenge a challenge. You will need to implement these elsewhere It can also be a function that returns updating text. Can use basic HTML.

  • rewardDescription: A description of the reward's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

  • rewardEffect(): optional, A function that calculates and returns the current values of any bonuses from the reward. Can return a value or an object containing multiple values. Can use basic HTML.

  • rewardDisplay(): optional, A function that returns a display of the current effects of the reward with formatting. Default behavior is to just display the a number appropriately formatted.

  • goal: A Decimal for the amount of currency required to beat the challenge. By default, the goal is in basic Points. The goal can also be a function if its value changes.

  • unlocked(): optional, A function returning a bool to determine if the challenge is visible or not. Default is unlocked.

  • onComplete() - optional, this function will be called when the challenge is completed when previously incomplete.

  • countsAs: optional, If a challenge combines the effects of other challenges in this layer, you can use this. An array of challenge ids. The player is effectively in all of those challenges when in the current one.

By default, challenges use basic Points for the goal. You can change that using these features.

  • currencyDisplayName: optional, the name to display for the currency for the goal

  • currencyInternalName: optional, the internal name for that currency

  • currencyLayer: optional, the internal name of the layer that currency is stored in. If it's not in a layer, omit. If it's not stored directly in a layer, instead use the next feature.

  • currencyLocation: optional, if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

  • completionLimit: optional, the amount of times you can complete this challenge. Default is 1 completion.

  • style: Optional, Applies CSS to this challenge, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the challenge was stored under, for convenient access. The challenge in the example's id is 11.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/clickables.html b/public/gamedevtree/docs/clickables.html index 9fcafe72..a2e08bd9 100644 --- a/public/gamedevtree/docs/clickables.html +++ b/public/gamedevtree/docs/clickables.html @@ -6,12 +6,12 @@ Clickables | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
Skip to content

Clickables

Clickables are any kind of thing that you can click for an effect. They're a more generalized version of Buyables.

DO NOT USE THESE TO MAKE THINGS THAT YOU CLICK REPEATEDLY FOR A BONUS BECAUSE THOSE ARE AWFUL.

There are several differences between the two. One is that a buyable's saved data is its amount as a Decimal, while Clickables store a "state" which can be a number or string, but not Decimal, array, or object). Buyables have a number of extra features which you can see on their page. Clickables also have a smaller default size.

You can get and set a clickable's state with getClickableState(layer, id) and setClickableState(layer, id, state). You can use clickableEffect(layer, id) to get the current effects of a clickable.

Clickables should be formatted like this:

js
    clickables: {
+    
Skip to content

Clickables

Clickables are any kind of thing that you can click for an effect. They're a more generalized version of Buyables.

DO NOT USE THESE TO MAKE THINGS THAT YOU CLICK REPEATEDLY FOR A BONUS BECAUSE THOSE ARE AWFUL.

There are several differences between the two. One is that a buyable's saved data is its amount as a Decimal, while Clickables store a "state" which can be a number or string, but not Decimal, array, or object). Buyables have a number of extra features which you can see on their page. Clickables also have a smaller default size.

You can get and set a clickable's state with getClickableState(layer, id) and setClickableState(layer, id, state). You can use clickableEffect(layer, id) to get the current effects of a clickable.

Clickables should be formatted like this:

js
    clickables: {
         rows: # of rows
         cols: # of columns
         masterButtonPress() // **optional** If this is present, an additional button will appear above the clickables.
@@ -46,8 +46,8 @@
             etc
         }
         etc
-    }

Features:

  • title: optional, displayed at the top in a larger font It can also be a function that returns updating text.

  • effect(): optional, A function that calculates and returns the current values of bonuses of this clickable. Can return a value or an object containing multiple values.

  • display(): A function returning everything that should be displayed on the clickable after the title, likely changing based on its state. Can use basic HTML.

  • unlocked(): optional, A function returning a bool to determine if the clickable is visible or not. Default is unlocked.

  • canClick(): A function returning a bool to determine if you can click the clickable.

  • onClick(): A function that implements clicking one of the clickable.

  • style: Optional, Applies CSS to this clickable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

  • id: Assigned automagically. It's the "key" which the clickable was stored under, for convenient access. The clickable in the example's id is 11.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + }

Features:

  • title: optional, displayed at the top in a larger font It can also be a function that returns updating text.

  • effect(): optional, A function that calculates and returns the current values of bonuses of this clickable. Can return a value or an object containing multiple values.

  • display(): A function returning everything that should be displayed on the clickable after the title, likely changing based on its state. Can use basic HTML.

  • unlocked(): optional, A function returning a bool to determine if the clickable is visible or not. Default is unlocked.

  • canClick(): A function returning a bool to determine if you can click the clickable.

  • onClick(): A function that implements clicking one of the clickable.

  • style: Optional, Applies CSS to this clickable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

  • id: Assigned automagically. It's the "key" which the clickable was stored under, for convenient access. The clickable in the example's id is 11.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/custom-tab-layouts.html b/public/gamedevtree/docs/custom-tab-layouts.html index 1876d66b..692b43d2 100644 --- a/public/gamedevtree/docs/custom-tab-layouts.html +++ b/public/gamedevtree/docs/custom-tab-layouts.html @@ -6,12 +6,12 @@ Custom tab layouts | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
Skip to content

Custom tab layouts

Note: If you are using subtabs, tabFormat is used differently, but you still use the same format within each subtabs. See here for more on subtabs

Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:

js
    tabFormat: ["main-display",
+    
Skip to content

Custom tab layouts

Note: If you are using subtabs, tabFormat is used differently, but you still use the same format within each subtabs. See here for more on subtabs

Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:

js
    tabFormat: ["main-display",
             ["prestige-button", function(){return "Melt your points into "}],
             "blank",
             ["display-text",
@@ -42,8 +42,8 @@
                 {"color": "red", "font-size": "32px", "font-family": "Comic Sans MS"}],
             "blank",
             ["toggle", ["c", "beep"]],
-            "milestones", "blank", "blank", "upgrades"]

It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) applies a CSS style to it with a "CSS object", where the keys are CSS attributes.

These are the existing components, but you can create more in v.js:

  • display-text: Displays some text (can use basic HTML). The argument is the text to display. It can also be a function that returns updating text.

  • raw-html: Displays some basic HTML, can also be a function.

  • blank: Adds empty space. The default dimensions are 8px x 17px. The argument changes the dimensions. If it's a single value (e.g. "20px"), that determines the height. If you have a pair of arguments, the first is width and the second is height.

  • row: Display a list of components horizontally. The argument is an array of components in the tab layout format.

  • column: Display a list of components vertically. The argument is an array of components in the tab layout format. This is useful to display columns within a row.

  • main-display: The text that displays the main currency for the layer and its effects.

  • resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in startData for this layer)

  • prestige-button: The argument is a string that the prestige button should say before the amount of currency you will gain. It can also be a function that returns updating text.

  • upgrades, milestones, challs, achievements: Display the upgrades, milestones, and challenges for a layer, as appropriate.

  • buyables, clickables: Display all of the buyables/clickables for this layer, as appropriate. The argument optional, and is the size of the boxes in pixels.

  • microtabs: Display a set of subtabs for an area. The argument is the name of the set of microtabs in the "microtabs" feature.

  • bar: Display a bar. The argument is the id of the bar to display.

  • infobox: Display an infobox. The argument is the id of the infobox to display.

  • toggle: A toggle button that toggles a bool value. The data is a pair that identifies what bool to toggle, [layer, id]

The rest of the components are sub-components. They can be used just like other components, but are typically part of another component.

  • upgrade, milestone, chall, buyable, clickable, achievement: An individual upgrade, challenge, etc. The argument is the id. This can be used if you want to have upgrades split up across multiple subtabs, for example.

  • respec-button, master-button: The respec and master buttons for buyables and clickables, respectively.

  • sell-one, sell-all: The "sell one" and "sell all" for buyables, respectively. The argument is the id of the buyable.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + "milestones", "blank", "blank", "upgrades"]

It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) applies a CSS style to it with a "CSS object", where the keys are CSS attributes.

These are the existing components, but you can create more in v.js:

  • display-text: Displays some text (can use basic HTML). The argument is the text to display. It can also be a function that returns updating text.

  • raw-html: Displays some basic HTML, can also be a function.

  • blank: Adds empty space. The default dimensions are 8px x 17px. The argument changes the dimensions. If it's a single value (e.g. "20px"), that determines the height. If you have a pair of arguments, the first is width and the second is height.

  • row: Display a list of components horizontally. The argument is an array of components in the tab layout format.

  • column: Display a list of components vertically. The argument is an array of components in the tab layout format. This is useful to display columns within a row.

  • main-display: The text that displays the main currency for the layer and its effects.

  • resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in startData for this layer)

  • prestige-button: The argument is a string that the prestige button should say before the amount of currency you will gain. It can also be a function that returns updating text.

  • upgrades, milestones, challs, achievements: Display the upgrades, milestones, and challenges for a layer, as appropriate.

  • buyables, clickables: Display all of the buyables/clickables for this layer, as appropriate. The argument optional, and is the size of the boxes in pixels.

  • microtabs: Display a set of subtabs for an area. The argument is the name of the set of microtabs in the "microtabs" feature.

  • bar: Display a bar. The argument is the id of the bar to display.

  • infobox: Display an infobox. The argument is the id of the infobox to display.

  • toggle: A toggle button that toggles a bool value. The data is a pair that identifies what bool to toggle, [layer, id]

The rest of the components are sub-components. They can be used just like other components, but are typically part of another component.

  • upgrade, milestone, chall, buyable, clickable, achievement: An individual upgrade, challenge, etc. The argument is the id. This can be used if you want to have upgrades split up across multiple subtabs, for example.

  • respec-button, master-button: The respec and master buttons for buyables and clickables, respectively.

  • sell-one, sell-all: The "sell one" and "sell all" for buyables, respectively. The argument is the id of the buyable.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/getting-started.html b/public/gamedevtree/docs/getting-started.html index 8f567ac3..bfc159cd 100644 --- a/public/gamedevtree/docs/getting-started.html +++ b/public/gamedevtree/docs/getting-started.html @@ -6,12 +6,12 @@ Getting started | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
Skip to content

Getting started

Welcome to The Modding Tree!

Using the Modding Tree, at its simplest level, just requires getting a copy of it onto your computer. However, if you do it the right way, it will help in many ways.

Don't let the word "Github" scare you away. It's actually much easier to use than most people think, especially because most people use it the hard way. The key is Github Desktop, which lets you do everything you need to, without even touching the command line.

The benefits of using Github:

  • It makes it much, much easier to update The Modding Tree.
  • You can share your work without any extra effort using githack, or with a bit more effort, set up a github.io site.
  • It lets you undo changes to your code, and to have multiple versions of it.
  • It lets you collaborate with other people, if you want to.

Getting set up with Github and The Modding Tree:

  1. Install Github Desktop and Visual Studio Code.

  2. Make a Github account. You can handle this on your own.

  3. Log in on your browser, and go back to The Modding Tree page. At the top right, there should be a button that says "fork". Click on it, and then on your username. You now have your own fork, or copy, of The Modding Tree.

  4. Open Github Desktop and log in. Ignore everything else and choose "clone a repository". A "repository" is basically a "Github project", like The Modding Tree. "Cloning" is downloading a copy of the repository to your computer.

  5. Look for The Modding Tree in the list of repositiories (it should be the only one) and click "clone".

  6. Select that you're using it for your own purposes, and click continue. It will download the files and handle everything.

Using your repository

  1. Click on "show in finder" to the right, and then open index.html. This will let you view and test your project!

  2. To edit your project, click "open in VSCode" in Github Desktop.

  3. Open mod.js in VSCode, and look at the top part where it says "modInfo". On the lines below that, change the mod's name to whatever you want, and change the id as well. (It can be any string value, and it's used to determine where the savefile is. Make it something that's probably unique, and don't change it again later.)

  4. Save game.js, and then reload index.html. The title on the tab, as well as on the info page, will now be the new ones!

  5. Go back to Github Desktop. It's time to save your changes into the git system by making a "commit".

  6. At the bottom right corner, add a summary of your changes, and then click "commit to master".

  7. Finally, at the top middle, click "push origin" to push your changes out onto the online repository.

  8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html

And now, you have successfully used Github! You can look at the documentation to see how The Modding Tree's system works and to make your mod a reality.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
Skip to content

Getting started

Welcome to The Modding Tree!

Using the Modding Tree, at its simplest level, just requires getting a copy of it onto your computer. However, if you do it the right way, it will help in many ways.

Don't let the word "Github" scare you away. It's actually much easier to use than most people think, especially because most people use it the hard way. The key is Github Desktop, which lets you do everything you need to, without even touching the command line.

The benefits of using Github:

  • It makes it much, much easier to update The Modding Tree.
  • You can share your work without any extra effort using githack, or with a bit more effort, set up a github.io site.
  • It lets you undo changes to your code, and to have multiple versions of it.
  • It lets you collaborate with other people, if you want to.

Getting set up with Github and The Modding Tree:

  1. Install Github Desktop and Visual Studio Code.

  2. Make a Github account. You can handle this on your own.

  3. Log in on your browser, and go back to The Modding Tree page. At the top right, there should be a button that says "fork". Click on it, and then on your username. You now have your own fork, or copy, of The Modding Tree.

  4. Open Github Desktop and log in. Ignore everything else and choose "clone a repository". A "repository" is basically a "Github project", like The Modding Tree. "Cloning" is downloading a copy of the repository to your computer.

  5. Look for The Modding Tree in the list of repositiories (it should be the only one) and click "clone".

  6. Select that you're using it for your own purposes, and click continue. It will download the files and handle everything.

Using your repository

  1. Click on "show in finder" to the right, and then open index.html. This will let you view and test your project!

  2. To edit your project, click "open in VSCode" in Github Desktop.

  3. Open mod.js in VSCode, and look at the top part where it says "modInfo". On the lines below that, change the mod's name to whatever you want, and change the id as well. (It can be any string value, and it's used to determine where the savefile is. Make it something that's probably unique, and don't change it again later.)

  4. Save game.js, and then reload index.html. The title on the tab, as well as on the info page, will now be the new ones!

  5. Go back to Github Desktop. It's time to save your changes into the git system by making a "commit".

  6. At the bottom right corner, add a summary of your changes, and then click "commit to master".

  7. Finally, at the top middle, click "push origin" to push your changes out onto the online repository.

  8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html

And now, you have successfully used Github! You can look at the documentation to see how The Modding Tree's system works and to make your mod a reality.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/infoboxes.html b/public/gamedevtree/docs/infoboxes.html index 23fafb22..bbfe5cb6 100644 --- a/public/gamedevtree/docs/infoboxes.html +++ b/public/gamedevtree/docs/infoboxes.html @@ -6,12 +6,12 @@ Infoboxes | The Paper Pilot - + - + - + @@ -34,14 +34,14 @@ -
Skip to content

Infoboxes

Infoboxes are good for displaying "lore", or story elements, as well as for explaining complicated things.

In the default tab layout, the first infobox will be displayed at the very top of the tab.

Infoboxes are defined like other Big Features:

js
    infoboxes: {
+    
Skip to content

Infoboxes

Infoboxes are good for displaying "lore", or story elements, as well as for explaining complicated things.

In the default tab layout, the first infobox will be displayed at the very top of the tab.

Infoboxes are defined like other Big Features:

js
    infoboxes: {
         infobox: {
             display() {return "Blah"},
             etc
         }
         etc
-    }

Features:

  • title: The text displayed above the main box. Can be a function to be dynamic, and can use basic HTML.

  • body: The text displayed inside the box. Can be a function to be dynamic, and can use basic HTML.

  • style, titleStyle, bodyStyle: Optional, Apply CSS to the infobox, or to the title button or body of the infobox, in the form of an object where the keys are CSS attributes, and the values are the Values for those attributes (both as strings).

  • unlocked(): optional, A function returning a bool to determine if the infobox is visible or not. Default is unlocked.

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- + }

Features:

  • title: The text displayed above the main box. Can be a function to be dynamic, and can use basic HTML.

  • body: The text displayed inside the box. Can be a function to be dynamic, and can use basic HTML.

  • style, titleStyle, bodyStyle: Optional, Apply CSS to the infobox, or to the title button or body of the infobox, in the form of an object where the keys are CSS attributes, and the values are the Values for those attributes (both as strings).

  • unlocked(): optional, A function returning a bool to determine if the infobox is visible or not. Default is unlocked.

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/layer-features.html b/public/gamedevtree/docs/layer-features.html index 4695b8af..d5f8916e 100644 --- a/public/gamedevtree/docs/layer-features.html +++ b/public/gamedevtree/docs/layer-features.html @@ -6,12 +6,12 @@ Layer Features | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
Skip to content

Layer Features

This is a more comprehensive list of established features to add to layers. You can add more freely, if you want to have other functions or values associated with your layer. These have special functionality, though.

You can make almost any value dynamic by using a function in its place, including all display strings and styling/color features.

Key:

  • No label: This is required and the game will crash if it isn't included.
  • sometimes required: This is may be required, depending on other things in the layer.
  • optional: You can leave this out if you don't intend to use that feature for the layer.

Layer Definition features

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar to access the save value. It makes copying code to new layers easier. It is also assigned to all upgrades and buyables and such.

  • name: Optional, used in reset confirmations (and maybe other places). If absent, it just uses the layer's id.

  • startData(): A function to return the default save data for this layer. Add any variables you have to it. Any nonstandard Decimal variables need to be added to convertToDecimal as well. Standard values: Required: unlocked: a bool determining if this layer is unlocked or not points: a Decimal, the main currency for the layer Optional: total: A Decimal, tracks total amount of main prestige currency best: A Decimal, tracks highest amount of main prestige currency unlockOrder: used to keep track of relevant layers unlocked before this one.

  • color: A color associated with this layer, used in many places. (A string in hex format with a #)

  • row: The row of the layer, starting at 0. This affects where the node appears on the tree, and which resets affect the layer.

     Using "side" instead of a number will cause the layer to appear off to the side as a smaller node (useful for achievements
    +    
    Skip to content

    Layer Features

    This is a more comprehensive list of established features to add to layers. You can add more freely, if you want to have other functions or values associated with your layer. These have special functionality, though.

    You can make almost any value dynamic by using a function in its place, including all display strings and styling/color features.

    Key:

    • No label: This is required and the game will crash if it isn't included.
    • sometimes required: This is may be required, depending on other things in the layer.
    • optional: You can leave this out if you don't intend to use that feature for the layer.

    Layer Definition features

    • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar to access the save value. It makes copying code to new layers easier. It is also assigned to all upgrades and buyables and such.

    • name: Optional, used in reset confirmations (and maybe other places). If absent, it just uses the layer's id.

    • startData(): A function to return the default save data for this layer. Add any variables you have to it. Any nonstandard Decimal variables need to be added to convertToDecimal as well. Standard values: Required: unlocked: a bool determining if this layer is unlocked or not points: a Decimal, the main currency for the layer Optional: total: A Decimal, tracks total amount of main prestige currency best: A Decimal, tracks highest amount of main prestige currency unlockOrder: used to keep track of relevant layers unlocked before this one.

    • color: A color associated with this layer, used in many places. (A string in hex format with a #)

    • row: The row of the layer, starting at 0. This affects where the node appears on the tree, and which resets affect the layer.

       Using "side" instead of a number will cause the layer to appear off to the side as a smaller node (useful for achievements
        and statistics). Side layers are not affected by resets unless you add a doReset to them.
       
    • resource: Name of the main currency you gain by resetting on this layer.

    • effect(): optional, A function that calculates and returns the current values of any bonuses inherent to the main currency. Can return a value or an object containing multiple values. You will also have to implement the effect where it is applied.

    • effectDescription: optional, A function that returns a description of this effect. If the text stays constant, it can just be a string.

    • layerShown(): A function returning a bool which determines if this layer's node should be visible on the tree. It can also return "ghost", which will hide the layer, but its node will still take up space in the tree.

    • hotkeys: optional, An array containing information on any hotkeys associated with this layer:

      js
      hotkeys: [
           {key: "p", // What the hotkey button is. Use uppercase if it's combined with shift, or "ctrl+x" if ctrl is.
      @@ -49,8 +49,8 @@
       
    • update(diff): optional, this function is called every game tick. Use it for any passive resource production or time-based things. diff is the time since the last tick. Suggestion: use addPoints(layer, gain) when generating points to automatically update the best and total amounts.

    • automate(): optional, this function is called every game tick, after production. Use it to activate any autobuyers or auto-resets or similar on this layer, if appropriate.

    • resetsNothing: optional, returns true if this layer shouldn't trigger any resets when you prestige.

    • increaseUnlockOrder: optional, an array of layer ids. When this layer is unlocked for the first time, the unlockOrder value for any not-yet-unlocked layers in this list increases. This can be used to make them harder to unlock.

    • shouldNotify: optional, a function to return true if this layer should be highlighted in the tree. The layer will automatically be highlighted if you can buy an upgrade whether you have this or not.

    • componentStyles: optional, An object that contains a set of functions returning CSS objects. Each of these will be applied to any components on the layer with the type of its id. Example:

    js
            componentStyles: {
                 "challenge"() {return {'height': '200px'}},
                 "prestige-button"() {return {'color': '#AA66AA'}},
    -        },

    Custom Prestige type

    • getResetGain(): For custom prestige type, Returns how many points you should get if you reset now. You can call getResetGain(this.layer, useType = "static") or similar to calculate what your gain would be under another prestige type (provided you have all of the required features in the layer.)

    • getNextAt(canMax=false): For custom prestige type, Returns how many of the base currency you need to get to the next point. canMax is an optional variable used with Static-ish layers to differentiate between if it's looking for the first point you can reset at, or the requirement for any gain at all. (Supporting both is good). You can also call getNextAt(this.layer, canMax=false, useType = "static") or similar to calculate what your next at would be under another prestige type (provided you have all of the required features in the layer.)

    • canReset(): For custom prestige type, return true only if you have the resources required to do a prestige here.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - + },

Custom Prestige type

  • getResetGain(): For custom prestige type, Returns how many points you should get if you reset now. You can call getResetGain(this.layer, useType = "static") or similar to calculate what your gain would be under another prestige type (provided you have all of the required features in the layer.)

  • getNextAt(canMax=false): For custom prestige type, Returns how many of the base currency you need to get to the next point. canMax is an optional variable used with Static-ish layers to differentiate between if it's looking for the first point you can reset at, or the requirement for any gain at all. (Supporting both is good). You can also call getNextAt(this.layer, canMax=false, useType = "static") or similar to calculate what your next at would be under another prestige type (provided you have all of the required features in the layer.)

  • canReset(): For custom prestige type, return true only if you have the resources required to do a prestige here.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/main-mod-info.html b/public/gamedevtree/docs/main-mod-info.html index 0df03bb4..8dfee0a5 100644 --- a/public/gamedevtree/docs/main-mod-info.html +++ b/public/gamedevtree/docs/main-mod-info.html @@ -6,12 +6,12 @@ mod.js | The Paper Pilot - + - + - + @@ -34,12 +34,12 @@ -
Skip to content

mod.js

All of the code and data that you're likely to edit is here in mod.js! Everything in mod.js will not be altered by updates, besides the addition of new things.

Here's a breakdown of what's in it:

  • modInfo is where most of the basic configuration for the mod is. It contains:

    • name: The name of your mod. (a string)
    • id: The id for your mod, a unique string that is used to determine savefile location. Setting it is important!
    • author: The name of the author, displayed in the info tab.
    • pointsName: This changes what is displayed instead of "points" for the main currency. (It does not affect it in the code.)
    • discordName, discordLink: If you have a Discord server or other discussion place, you can add a link to it. "discordName" is the text on the link, and "discordLink" is the url of an invite. If you're using a Discord invite, please make sure it's set to never expire.
    • changelogLink: You can use this to set a link to a page where your changelog for the game is displayed.
    • offlineLimit: The maximum amount of offline time that the player can accumulate, in hours. Any extra time is lost. (a number) This is useful because most of these mods are fast-paced enough that too much offline time ruins the balance, such as the time in between updates. That is why I suggest developers disable offline time on their own savefile.
    • initialStartPoints: A Decimal for the amount of points a new player should start with.
  • VERSION is used to describe the current version of your mod. It contains: num: The mod's version number, displayed at the top right of the tree tab. name: The version's name, displayed alongside the number in the info tab.

  • doNotCallTheseFunctionsEveryTick is very important. TMT calls every function anywhere in "layers" every tick to store the result, unless specifically told not to. Functions that have are used to do an action need to be identified. "Official" functions (those in the documentation) are all fine, but if you make any new ones, add their names to this array.

js
// (The ones here are examples, all official functions are already taken care of)
+    
Skip to content

mod.js

All of the code and data that you're likely to edit is here in mod.js! Everything in mod.js will not be altered by updates, besides the addition of new things.

Here's a breakdown of what's in it:

  • modInfo is where most of the basic configuration for the mod is. It contains:

    • name: The name of your mod. (a string)
    • id: The id for your mod, a unique string that is used to determine savefile location. Setting it is important!
    • author: The name of the author, displayed in the info tab.
    • pointsName: This changes what is displayed instead of "points" for the main currency. (It does not affect it in the code.)
    • discordName, discordLink: If you have a Discord server or other discussion place, you can add a link to it. "discordName" is the text on the link, and "discordLink" is the url of an invite. If you're using a Discord invite, please make sure it's set to never expire.
    • changelogLink: You can use this to set a link to a page where your changelog for the game is displayed.
    • offlineLimit: The maximum amount of offline time that the player can accumulate, in hours. Any extra time is lost. (a number) This is useful because most of these mods are fast-paced enough that too much offline time ruins the balance, such as the time in between updates. That is why I suggest developers disable offline time on their own savefile.
    • initialStartPoints: A Decimal for the amount of points a new player should start with.
  • VERSION is used to describe the current version of your mod. It contains: num: The mod's version number, displayed at the top right of the tree tab. name: The version's name, displayed alongside the number in the info tab.

  • doNotCallTheseFunctionsEveryTick is very important. TMT calls every function anywhere in "layers" every tick to store the result, unless specifically told not to. Functions that have are used to do an action need to be identified. "Official" functions (those in the documentation) are all fine, but if you make any new ones, add their names to this array.

js
// (The ones here are examples, all official functions are already taken care of)
 var doNotCallTheseFunctionsEveryTick = ["doReset", "buy", "onPurchase", "blowUpEverything"]
  • getStartPoints(): A function to determine the amount of points the player starts with after a reset. (returns a Decimal value)

  • canGenPoints(): A function returning a boolean for if points should be generated. Use this if you want an upgrade to unlock generating points.

  • getPointGen(): A function that calculates your points per second. Anything that affects your point gain should go into the calculation here.

  • addedPlayerData(): A function that returns any non-layer-related data that you want to be added to the save data and "player" object.

js
function addedPlayerData() { return {
 	weather: "Yes",
 	happiness: new Decimal(72),
-}}
  • displayThings: An array of functions used to display extra things at the top of the tree tab. Each function returns a string, which is a line to display (with basic HTML support). If a function returns nothing, nothing is displayed (and it doesn't take up a line).

  • isEndgame(): A function to determine if the player has reached the end of the game, at which point the "you win!" screen appears.

Less important things beyond this point!

  • maxTickLength(): Returns the maximum tick length, in milliseconds. Only really useful if you have something that reduces over time, which long ticks mess up (usually a challenge).
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +}}
  • displayThings: An array of functions used to display extra things at the top of the tree tab. Each function returns a string, which is a line to display (with basic HTML support). If a function returns nothing, nothing is displayed (and it doesn't take up a line).

  • isEndgame(): A function to determine if the player has reached the end of the game, at which point the "you win!" screen appears.

Less important things beyond this point!

  • maxTickLength(): Returns the maximum tick length, in milliseconds. Only really useful if you have something that reduces over time, which long ticks mess up (usually a challenge).
Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
+ \ No newline at end of file diff --git a/public/gamedevtree/docs/milestones.html b/public/gamedevtree/docs/milestones.html index 1f8eaf64..d9f2f9e6 100644 --- a/public/gamedevtree/docs/milestones.html +++ b/public/gamedevtree/docs/milestones.html @@ -6,12 +6,12 @@ Milestones | The Paper Pilot - + - + - + @@ -34,14 +34,14 @@ -
Skip to content

Milestones

Milestones are awarded to the player when they meet a certain goal, and give some benefit. Milestones should be formatted like this:

js
    milestones: {
+    
Skip to content

Milestones

Milestones are awarded to the player when they meet a certain goal, and give some benefit. Milestones should be formatted like this:

js
    milestones: {
         0: {
             requirementDesc: "123 waffles",
         }
         etc
     }

You can use hasMilestone(layer, id) to determine if the player has a given milestone

Milestone features:

  • requirementDesc: A string describing the requirement for unlocking this milestone. Suggestion: Use a "total". It can also be a function that returns updating text. Can use basic HTML.

  • effectDesc: A string describing the reward for having the milestone. You will have to implement the reward elsewhere. It can also be a function that returns updating text. Can use basic HTML.

  • done(): A function returning a boolean to determine if the milestone should be awarded.

  • toggles: optional, Creates toggle buttons that appear on the milestone when it is unlocked. The toggles can toggle a given boolean value in a layer. It is defined as an array of paired items, one pair per toggle. The first is the internal name of the layer the value being toggled is stored in, and the second is the internal name of the variable to toggle. (e.g. [["b", "auto"], ["g", "auto"])

         **Tip:** Toggles are not de-set if the milestone becomes locked! In this case, you should also check if the player has the milestone.
    -
  • style: Optional, Applies CSS to this milestone, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • unlocked(): Optional A function returning a boolean to determine if the milestone should be shown. If absent, it is always shown.

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the milestone was stored under, for convenient access. The milestone in the example's id is 0.

Any and all opinions listed here are my own and not representative of my employers; future, past and present.
Resume (not actively seeking new opportunities).
Site built from this commit on .
- +
  • style: Optional, Applies CSS to this milestone, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

  • unlocked(): Optional A function returning a boolean to determine if the milestone should be shown. If absent, it is always shown.

  • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

  • id: Assigned automagically. It's the "key" which the milestone was stored under, for convenient access. The milestone in the example's id is 0.

  • Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/gamedevtree/docs/subtabs-and-microtabs.html b/public/gamedevtree/docs/subtabs-and-microtabs.html index f8b66fd9..39528078 100644 --- a/public/gamedevtree/docs/subtabs-and-microtabs.html +++ b/public/gamedevtree/docs/subtabs-and-microtabs.html @@ -6,12 +6,12 @@ Subtabs and Microtabs | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Subtabs and Microtabs

    Subtabs are separate sections of a tab that you can view by selecting one at the top of the tab. Microtabs are smaller areas that function in much the same way.

    Subtabs are defined by using the tab format like this, where each element of tabFormat is given the name of that subtab:

    js
        tabFormat: {
    +    
    Skip to content

    Subtabs and Microtabs

    Subtabs are separate sections of a tab that you can view by selecting one at the top of the tab. Microtabs are smaller areas that function in much the same way.

    Subtabs are defined by using the tab format like this, where each element of tabFormat is given the name of that subtab:

    js
        tabFormat: {
             "Main tab": {
                 *subtab features*
             },
    @@ -56,8 +56,8 @@
             otherStuff: {
                 // There could be another set of microtabs here
             }
    -    },

    Normal subtabs and microtab subtabs both use the same features:

    Features:

    • content: The tab layout code for the subtab, in the tab layout format

    • style: Optional, Applies CSS to the whole subtab when switched to, in the form of an "CSS Object", where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

    • buttonStyle: Optional, A CSS object, which affects the appearance of the button for that subtab.

    • unlocked(): Optional, a function to determine if the button for this subtab should be visible. By default, a subtab is always unlocked. (You can't use the "this" keyword in this function.)

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - + },

    Normal subtabs and microtab subtabs both use the same features:

    Features:

    • content: The tab layout code for the subtab, in the tab layout format

    • style: Optional, Applies CSS to the whole subtab when switched to, in the form of an "CSS Object", where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

    • buttonStyle: Optional, A CSS object, which affects the appearance of the button for that subtab.

    • unlocked(): Optional, a function to determine if the button for this subtab should be visible. By default, a subtab is always unlocked. (You can't use the "this" keyword in this function.)

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/gamedevtree/docs/updating-tmt.html b/public/gamedevtree/docs/updating-tmt.html index 757314f6..ff126f07 100644 --- a/public/gamedevtree/docs/updating-tmt.html +++ b/public/gamedevtree/docs/updating-tmt.html @@ -6,12 +6,12 @@ Updating The Modding Tree | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    Updating The Modding Tree

    This tutorial assumes that you have used the Getting Started Tutorial, and are using Github Desktop and VSCode for your mod.

    Here's what you have to do when there's a TMT update:

    1. Look at the changelog. It will warn you if the update will break anything or require any changes. Decide if you want to try to update.

    2. Open Github Desktop, and at the top middle, click "fetch origin". This will make Github Desktop get information about the update.

    3. Click where it says "current branch: master" at the top middle, and at the bottom of the thing that appears, click "choose a branch to merge into master.

    4. Select upstream/master. It will likely say there are conflicts, but you have tools to resolve them. Click "Merge upstream/master into master".

    5. A conflict happens when the things you're trying to merge have both made changes in the same place. Click "open in Visual Studio Code" next to the first file.

    6. Scroll down through the file, and look for the parts highlighted in red and green. One of these is your code, and the other is some code that will be modified by the update. Do your best to try to edit things to keep the updated changes, but keep your content.

    7. Continue to do this for all remaining challenges.

    8. Do any other changes required by the update, run the game, fix issues, etc.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    Updating The Modding Tree

    This tutorial assumes that you have used the Getting Started Tutorial, and are using Github Desktop and VSCode for your mod.

    Here's what you have to do when there's a TMT update:

    1. Look at the changelog. It will warn you if the update will break anything or require any changes. Decide if you want to try to update.

    2. Open Github Desktop, and at the top middle, click "fetch origin". This will make Github Desktop get information about the update.

    3. Click where it says "current branch: master" at the top middle, and at the bottom of the thing that appears, click "choose a branch to merge into master.

    4. Select upstream/master. It will likely say there are conflicts, but you have tools to resolve them. Click "Merge upstream/master into master".

    5. A conflict happens when the things you're trying to merge have both made changes in the same place. Click "open in Visual Studio Code" next to the first file.

    6. Scroll down through the file, and look for the parts highlighted in red and green. One of these is your code, and the other is some code that will be modified by the update. Do your best to try to edit things to keep the updated changes, but keep your content.

    7. Continue to do this for all remaining challenges.

    8. Do any other changes required by the update, run the game, fix issues, etc.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/gamedevtree/docs/upgrades.html b/public/gamedevtree/docs/upgrades.html index b0decfff..67d4ae40 100644 --- a/public/gamedevtree/docs/upgrades.html +++ b/public/gamedevtree/docs/upgrades.html @@ -6,12 +6,12 @@ Upgrades | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Upgrades

    Useful functions for dealing with Upgrades and implementing their effects:

    • hasUpgrade(layer, id): determine if the player has the upgrade
    • upgradeEffect(layer, id): Returns the current effects of the upgrade, if any
    • buyUpgrade(layer, id): Buys an upgrade directly (if affordable)

    Hint: Basic point gain is calculated in mod.js's "getPointGen".

    Upgrades are stored in the following format:

    js
        upgrades: {
    +    
    Skip to content

    Upgrades

    Useful functions for dealing with Upgrades and implementing their effects:

    • hasUpgrade(layer, id): determine if the player has the upgrade
    • upgradeEffect(layer, id): Returns the current effects of the upgrade, if any
    • buyUpgrade(layer, id): Buys an upgrade directly (if affordable)

    Hint: Basic point gain is calculated in mod.js's "getPointGen".

    Upgrades are stored in the following format:

    js
        upgrades: {
             rows: # of rows
             cols: # of columns
             11: {
    @@ -42,8 +42,8 @@
                 more features
             }
             etc
    -    }

    Each upgrade should have an id where the first digit is the row and the second digit is the column. Individual upgrades can have these features:

    • title: optional, displayed at the top in a larger font It can also be a function that returns updating text. Can use basic HTML.

    • description: A description of the upgrade's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • effect(): optional, A function that calculates and returns the current values of any bonuses from the upgrade. Can return a value or an object containing multiple values.

    • effectDisplay(): optional, A function that returns a display of the current effects of the upgrade with formatting. Default behavior is to just display the a number appropriately formatted. Can use basic HTML.

    • cost: A Decimal for the cost of the upgrade. By default, upgrades cost the main prestige currency for the layer.

    • unlocked(): optional, A function returning a bool to determine if the upgrade is visible or not. Default is unlocked.

    • onPurchase() - optional, this function will be called when the upgrade is purchased. Good for upgrades like "makes this layer act like it was unlocked first".

    By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

    • currencyDisplayName: optional, the name to display for the currency for the upgrade

    • currencyInternalName: optional, the internal name for that currency

    • currencyLayer: optional, the internal name of the layer that currency is stored in. If it's not in a layer (like Points), omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation: optional, if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    • style: Optional, Applies CSS to this upgrade, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

    • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: Assigned automagically. It's the "key" which the upgrade was stored under, for convenient access. The upgrade in the example's id is 11.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - + }

    Each upgrade should have an id where the first digit is the row and the second digit is the column. Individual upgrades can have these features:

    • title: optional, displayed at the top in a larger font It can also be a function that returns updating text. Can use basic HTML.

    • description: A description of the upgrade's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • effect(): optional, A function that calculates and returns the current values of any bonuses from the upgrade. Can return a value or an object containing multiple values.

    • effectDisplay(): optional, A function that returns a display of the current effects of the upgrade with formatting. Default behavior is to just display the a number appropriately formatted. Can use basic HTML.

    • cost: A Decimal for the cost of the upgrade. By default, upgrades cost the main prestige currency for the layer.

    • unlocked(): optional, A function returning a bool to determine if the upgrade is visible or not. Default is unlocked.

    • onPurchase() - optional, this function will be called when the upgrade is purchased. Good for upgrades like "makes this layer act like it was unlocked first".

    By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

    • currencyDisplayName: optional, the name to display for the currency for the upgrade

    • currencyInternalName: optional, the internal name for that currency

    • currencyLayer: optional, the internal name of the layer that currency is stored in. If it's not in a layer (like Points), omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation: optional, if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    • style: Optional, Applies CSS to this upgrade, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings)

    • layer: Assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: Assigned automagically. It's the "key" which the upgrade was stored under, for convenient access. The upgrade in the example's id is 11.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/Old Things/2.0-format-changes.html b/public/kronos/Old Things/2.0-format-changes.html index 8619e59c..24db14d7 100644 --- a/public/kronos/Old Things/2.0-format-changes.html +++ b/public/kronos/Old Things/2.0-format-changes.html @@ -6,12 +6,12 @@ 2.0 format changes | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    2.0 format changes

    • Temp format is changed from temp.something[layer] to temp[layer].something, for consistency
    • Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.)
    • effectDisplay in Challenges and Upgrades no longer takes an argument, and neither does effect for Buyables
    • Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase).
    • Generation of Points now happens in the main game loop (not in a layer update function), enabled by canGenPoints in game.js.
    • Changed fullLayerReset to layerDataReset, which takes an array of names of values to keep

    In addition, many names were changed, mostly expanding abbreviations:

    All instances of:

    • chall -> challenge
    • unl -> unlocked
    • upg -> upgrade (besides CSS)
    • amt -> amount
    • desc -> description
    • resCeil -> roundUpCost
    • order -> unlockOrder
    • incr_order -> increaseUnlockOrder

    Challenges:

    • desc -> challengeDescription
    • reward -> rewardDescription
    • effect -> rewardEffect
    • effectDisplay -> rewardDisplay
    • active -> challengeActive
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    2.0 format changes

    • Temp format is changed from temp.something[layer] to temp[layer].something, for consistency
    • Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.)
    • effectDisplay in Challenges and Upgrades no longer takes an argument, and neither does effect for Buyables
    • Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase).
    • Generation of Points now happens in the main game loop (not in a layer update function), enabled by canGenPoints in game.js.
    • Changed fullLayerReset to layerDataReset, which takes an array of names of values to keep

    In addition, many names were changed, mostly expanding abbreviations:

    All instances of:

    • chall -> challenge
    • unl -> unlocked
    • upg -> upgrade (besides CSS)
    • amt -> amount
    • desc -> description
    • resCeil -> roundUpCost
    • order -> unlockOrder
    • incr_order -> increaseUnlockOrder

    Challenges:

    • desc -> challengeDescription
    • reward -> rewardDescription
    • effect -> rewardEffect
    • effectDisplay -> rewardDisplay
    • active -> challengeActive
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/README.html b/public/kronos/README.html index 4462d298..c9277ea1 100644 --- a/public/kronos/README.html +++ b/public/kronos/README.html @@ -6,12 +6,12 @@ Kronos | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    Kronos

    Play here.

    Updating the website:

    • git submodule update --remote
    • git add -A
    • git commit -m "Updated kronos"
    • git push
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    Kronos

    Play here.

    Updating the website:

    • git submodule update --remote
    • git add -A
    • git commit -m "Updated kronos"
    • git push
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/changelog.html b/public/kronos/changelog.html index 2b676a87..d8903b70 100644 --- a/public/kronos/changelog.html +++ b/public/kronos/changelog.html @@ -6,12 +6,12 @@ The Modding Tree changelog: | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    The Modding Tree changelog:

    v2.5.9.2 - 5/19/21

    • Fixed many issues with things not updating.

    v2.5.9.1 - 5/18/21

    • Made text inputs never give NaNs.

    v2.5.9 - 5/18/21

    • Fixed issue when using text inputs for Numbers.
    • Added particle color feature.
    • Particle speed and dir are updated as it moves.
    • Added setSpeed and setDir for particles.
    • Added more trig functions.

    v2.5.8 - 5/17/21

    • Added makeShinies, which creates a stationary particle in a random spot.
    • Bars will visually update more quickly.
    • Fixed a major particle-related issue.
    • Fixed autoUpgrade.
    • Fixed a minor visual issue with tree nodes.

    v2.5.7 - 5/15/21

    • Added a particle system! Not only can it be used for visual effects, but particles can interact with the mouse. They could be used to create golden cookies or collectables, for example.
    • Added marked feature to buyables, clickables, and challenges. By default, stars multi-completion challenges when maxed.
    • Added 'deactivated' feature to layers, which disables many features.
    • Improved number formatting slightly.

    v2.5.6 - 5/14/21

    • You can now use non-numeric ids for upgrades, buyables, etc.
    • Fixed an exploit that let you buy an extra buyable.
    • Moved basic getter/setter functions to easyAccess.js.

    v2.5.5.2 - 5/12/21

    • Fixed a major issue with buyables.
    • Fixed a variety of tabFormat-related issues.
    • Fixed commas appearing in decimal places (thanks to pg132!)

    v2.5.5.1 - 5/12/21

    • Fixed clickables.

    v2.5.5 - 5/12/21

    • Added grids! They are a grid of buttons which behave the same, but have their own data. Good for inventory grids, map tiles, and more!
    • Added "marked" feature to add a mark to a node. Can be an image instead of a star. (Originally by Jacorb)
    • Added "layer-proxy" component that lets you use components from another layer.
    • Added the ability to display non-whole numbers in main-display.

    v2.5.4 - 5/10/21

    • Added a setting to always use single-tab mode.
    • Added directMult, which multiplies prestige gain after exponents and softcaps. It actually multiplies gain for static layers.
    • Added onEnter and onExit for challenges.
    • Improved displaying numbers between 0.0001 and 0.1.
    • Added documentation on how gainMult/Exp work for static layers.
    • Fixed a visual issue on mobile, thanks to thepaperpilot.
    • Improved documentation in general.

    v2.5.3 - 5/8/21

    • Improved performance of tab formats and bars.
    • Respec confirmation settings are now kept on resets.
    • Improved compatibility with older browsers.
    • Fixed missing pixel on vertical bars.

    v2.5.2.1 - 5/7/21

    • Fixed microtabs making layers highlight incorrectly.

    v2.5.2 - 5/7/21

    • Added glowColor for subtabs.
    • Improved the display for extremely small numbers.
    • Fixed issues in the buyable docs.

    v2.5.1 - 5/7/21

    • Fixed dynamic things in tabFormat not updating.

    v2.5: Dreams Really Do Come True - 5/7/21

    • Optimizations, hopefully a significant amount.
    • Added OOM/s point gen display at high values (thanks to Ducdat!)
    • Only one tab will display if the window is not wide enough (also thanks to Ducdat!)
    • Holding down a buyable's button now buys it continuously.
    • New milestone setting will also show the most recently unlocked milestone. (Also renamed all settings to be clearer)
    • Added an onHold feature for clickables.
    • Layer nodes will be highlighted even if the player is on the same tab.
    • Added customizable node glowColor.
    • Added buyable purchaseLimit.
    • Amount is automatically supplied to buyable cost and effect functions.
    • Locked (not yet visible) milestones no longer take up space. Also fixed hidden milestones taking a tiny bit of space.
    • Re-centered respec buttons.
    • Force-displayed tooltips are not hidden by resets.
    • Added formatting support for very small numbers. Disabled in most places by default because rounding errors might cause issues. Access it with formatSmall, or enable it globally by adding "allowSmall: true" to modInfo.

    v2.4.1 - 4/29/21

    • A number of minor fixes, many thanks to thepaperpilot.
    • The respec confirmation checkbox is now part of the respec-button component. (This also fixes the checkbox appearing when there is no respec button)
    • Added a few undocumented changes to the 2.4 changelog (the two at the bottom)

    v2.4: Rationalized Edition - 4/29/21

    • Completely reworked tooltips. Shift-click a node to force its tooltip to stay displayed. (And hopefully finally fixed flickering!)

    • Added text-input and slider components.

    • Added the ability to toggle respec confirmations.

    • Added custom respec confirmation messages.

    • The red layer highlight will not appear before a layer is unlocked.

    • Added unlocking hotkeys.

    • You no longer need to supply 'rows' and 'cols' for any Big Features.

    • Node symbols can use HTML.

    • Added documentation for the respec button.

    • Added prestigeNotify to subtabs, and prestigeNotify in subtabs also highlights the layer node.

    • The version number no longer contains special characters or irrational numbers.

    • Added ctrlDown and shiftDown variables.

    • Tooltips now use HTML (this means you need to replace any newlines with
      )

    v2.π.1 - 4/7/21

    • Fixed formatting for some larger numbers.
    • Upgrades will expand if there is too much text to display.
    • Fixed styling challenges.
    • No longer attempts to display a base currency when there is none.

    v2.π: Incrementally Updated - 2/5/21

    • Performance improvements.
    • Fixed tooltips overlapping with the top display.
    • Clicking a popup dismisses it immediately.
    • Added support for bulk challenge completions.
    • "Best" is updated automatically.
    • Fixed keeping Decimal values on reset.
    • Code reorganization and style improvements by fudo.

    v2.3.5 - 12/21/20

    • Added resetTime, which tracks the time since a layer prestiged or was reset.
    • A layer node will be highlighted red if one of its subtabs is highlighted red.
    • Fixed issues with keeping challenges, buyables, and clickables on reset.
    • Improved the unlocking of custom layers.
    • Other minor fixes.

    v2.3.4 - 12/16/20

    • Added a node image feature.
    • Resource display now always shows the amount of the currency the layer's gain is based on.
    • Added spacing between tree nodes.
    • Another attempt to fix tooltip flickering.

    v2.3.3 - 12/13/20

    • Fixed the first node in a row always taking up space.
    • layerShown is now optional.
    • All prestige types can now use features for custom prestige types.

    v2.3.2 - 12/13/20

    • Fixed achievement/milestone popups.

    v2.3.1 - 12/12/20

    • Another attempt to fix flickering tooltips.
    • The "this" keyword should work everywhere except tabFormat arrays (although I may have missed some things).
    • Fixed tree branches not updating when scrolling on the right-side tab.
    • Fixed a spacing issue when a node's symbol is ""
    • Removed some old, unneeded files.

    v2.3: Cooler and Newer Edition - 12/10/20

    • Added achievement/milestone popups (thank you to Jacorb for this contribution!)
    • The changelog tab is back, and can be set in mod.js.
    • Layer nodes and respec buttons will not be clicked by pressing "enter".
    • Possible fix for flickering tooltips and strange transitions.
    • The victory screen text is configurable.
    • Added image and textStyle features to achievements.
    • Added an argument to use specific rows in an "upgrades" component.
    • Fixed the comma appearing in the main display when there was no effectDescription
    • Added the ability to easily make a tab that is a collection of layers in subtabs.
    • Improved spacing for embedding layers with subtabs into subtabs.

    v2.2.8 - 12/03/20

    • Double-clicking a layer node brings you to the main subtab for that layer.
    • Attempted to fix challenges visually updating a different way.
    • Added a softcap function for use in formulas.
    • Added displayRow feature, which lets layers be shown somewhere separate from where they are in the reset order (e.g. side layers)
    • Fixed autoupgrade issue.

    v2.2.7 - 11/30/20

    • Added autoUpgrade feature.
    • resource-display now shows resource gain per second if passiveGain is active.
    • Fixed formatting issues on some large numbers.
    • Better support for using classed objects in player and in layers/tmp.
    • Made hard resetting more effective.
    • Removed Herobrine from getStartClickables.

    v2.2.6 - 11/30/20

    • Added goalDescription for challenges and made the new "canComplete" system the standard.
    • Another attempt to fix challenges not visually updating.
    • Fixed side layers not appearing.
    • Fixed getStartClickables again.

    v2.2.5 - 11/29/20

    • Added features for overriding the displays and costs/goals of upgrades and challenges to make them fully custom.
    • best, total, and unlocked are always automatically added to layerData (but best and total will only display if you add them yourself).
    • Fixed getStartClickables.

    v2.2.4 - 11/28/20

    • Added softcap and softcapPower features (for Normal layers)
    • Offline time limit and default max tick length were fixed (previously the limits were 1000x too large)
    • Added fixOldSaves.
    • You can use HTML in main-display.
    • Fixed a number of minor oddities.

    v2.2.3 - 11/28/20

    • Layers will be highlighted if you can finish a challenge.
    • The "can complete challenge" color now overrides the "already completed" color.
    • Button nodes now work as side "layers".
    • Setting a tooltip to "" hides it entirely.

    v2.2.2 - 11/22/20

    • Fixed right half of the screen being unclickable in some circumstances.
    • Fixed tree branches being offset.
    • Fix to lastSafeTab.

    v2.2.1 - 11/7/20

    • Added a small highlight to layers you can meaningfully prestige on.
    • Added passiveGeneration and autoPrestige features to standardize prestige automation. (The old ways still work, but the new ones work better with other things)
    • Improved milestones visually a bit.
    • "best" and "total" are now only displayed if present in startData.
    • Fixed issues with things not updating visually. (Thank you to to Jacorb!)
    • Side layers and button nodes can now be highlighted.
    • Updated docs on the new tree-related features.

    v2.2: Uprooted - 11/7/20

    • You can now embed a layer inside of a subtab or microtab!
    • Added support for hiding or reformatting the tree tab
    • Added non-layer button nodes
    • Added shouldNotify to subtab/microtab buttons. (You can make them highlighted)
    • Added commas to large exponents.
    • Upgrades now only show "currently" if they have an effectDisplay (so not for constant effects).
    • Achievements are part of the default tab format.
    • NaN is now handled more intelligently.
    • Renamed files, and moved less relevant ones to another folder.
    • The "hide completed challenges" setting now only hides challenges at max completions.
    • Thank you to thepaperpilot for fixing errors in docs and improving the infobox appearance!
    • Many other minor fixes.

    v2.1.4 - 10/25/20

    • Added an infobox component. Thank you to thepaperpilot for this contribution!
    • Layer type is now optional, and defaults to "none".
    • Improved the look of bars and tab buttons.
    • Improved spacing between layer nodes (also thanks to thepaperpilot!)
    • Fixed the "blank" component breaking if only specifying the height.
    • Fixed some numbers not displaying with enough digits.
    • Made a few more things able to be functions.
    • A few other minor fixes.

    v2.1.3.1 - 10/21/20

    • Fixed the update function.

    v2.1.3 - 10/21/20

    • gainMult and gainExp are now optional.
    • Layer unlocking is now kept on reset.
    • Game should start up faster.
    • Layer updates now have a determined order and starts with earlier-rowed layers.
    • Automation now has a determined order and starts with later-rowed layers.
    • Fixed issues with resetting clickables and challenges.
    • Commas should no longer appear in the decimal places of a number.
    • Fixed potential issue in displaying the tree.

    v2.1.2 - 10/19/20

    • Added buyUpgrade function (buyUpg still works though)
    • Added author name to modInfo.
    • Fix to crash caused when the name of a subtab or microtab is changed.
    • Fixes to outdated information in docs.
    • Improvements to Discord links.
    • Thank you to thepaperpilot for contributing to this update!

    v2.1.1 - 10/17/20

    • Added resource-display component, which displays the base currency for the prestige layer, as well as the best and/or total of this layer's prestige currency.
    • Fixed the value for the base currency not updating in resource-display.

    v2.1: We should have thought of this sooner! - 10/17/20

    • Moved most of the code users will want to edit to mod.js, added documentation for it.
      • Specifically, modInfo, VERSION, canGenPoints, getPointGen, and maxTickLength
    • Added getStartPoints()
    • Added the ability to store non-layer-related data
    • Added the ability to display more things at the top of the tree tab below points.
    • Made the endgame condition customizable
    • Added "sell one" and "sell all" buttons for buyables.
    • Moved the old "game" to demo.js, and replaced it with a minimal game that won't cause issues when edited.
    • Fixed issues with version number
    • Fixed number formatting issue making things like "10e9" appear.

    v2.0.5 - 10/16/20

    • Made more features (including prestige parameters) able to be dynamic.
    • Layer nodes can be hidden but still take up space with "ghost" visibility
    • Added clickableEffect for real.
    • Fixed some visual issues with bars.
    • A few other minor tweaks and improvements.

    v2.0.4 - 10/16/20

    • Fixed HTML on buttons interfering with clicking on them.

    v2.0.3 - 10/16/20

    • Fixed hotkeys not displaying in info.
    • Fixed the game supressing all external hotkeys.
    • You can use more things as currencies for upgrade costs and challenge goals using currencyLocation.
    • Added maxTickLength, which can be used to prevent offline time or tab-switching from breaking time-limit based mechanics.
    • Made buyable respec buttons and clickable "master" buttons their own components, and gave them a hide/show feature.
    • Added a general "tooltip" feature for achievements.

    v2.0.2 - 10/15/20

    • Branches are now dynamic (they can be functions).
    • Fixed a crash related to offline time.
    • Fixed links being too wide.

    v2.0.1 - 10/15/20

    • Fixed side layers appearing multiple times.

    v2.0: The Pinnacle of Achievement Mountain - 10/15/20

    • Added progress bars, which are highly customizable and can be horizontal or vertical!
    • Added "side layers", displayed smaller and off to the side, and don't get reset by default. They can be used for global achievements and statistics. Speaking of which...
    • Added achievements!
    • Added clickables, a more generalized variant of buyables.
    • Almost every value in layer data can be either a function or a constant value!
    • Added support for multiple completions of challenges.
    • Added "none" prestige type, which removes the need for any other prestige-related features.
    • The points display and other gui elements stay at the top of the screen when the tree scrolls.
    • Added getter/setter functions for the amounts and effects of most Big Features
    • Moved modInfo to game.js, added a spot in modInfo for a Discord link, changelog link. Also added a separate mod version from the TMT version in VERSION.
    • Tree structure is based on layer data, no index.html editing is needed.
    • Tmp does not need to be manually updated.
    • You don't have to have the same amount of upgrades in every row (and challs and buyables)
    • "unlocked" is optional for all Big Components (defaults to true).
    • All displays will update correctly.
    • Changelog is no longer in index.html at all.
    • Generation of Points now happens in the main game loop
    • Changed the reset functions to make keeping things easier
    • Renamed many things to increase readability (see the list in the link below)
    • Improved documentation based on feedback

    v1.3.5:

    • Completely automated convertToDecimal, now you never have to worry about it again.
    • Branches can be defined without a color id. But they can also use hex values for color ids!
    • Created a tutorial for getting started with TMT and Github.
    • Page title is now automatically taken from mod name.

    v1.3.4 - 10/8/20

    • Added "midsection" feature to add things to a tab's layout while still keeping the standard layout.
    • Fix for being able to buy more buyables than you should.

    v1.3.3 - 10/7/20

    • Fix for the "order of operations" issue in temp.

    v1.3.1 - 10/7/20

    • Added custom CSS and tooltips for Layer Nodes.
    • Added custom CSS for upgrades, buyables, milestones, and challenges, both individually and layer-wide.
    • You can now use HTML in most display text!
    • You can now make milestones unlockable and not display immediately.
    • Fixed importing saves, and issue with upgrades not appearing, and probably more.
    • Optional "name" layer feature, used in confirmation messages.

    v1.3: Tabception... ception! - 10/7/20

    • Added subtabs! And also a Micro-tab component to let you make smaller subtab-esque areas anywhere.
    • Added a "custom" prestige formula type, and a number of features to support it.
    • Added points/sec display (can be disabled).
    • Added h-line, v-line and image-display components, plus components for individual upgrades, challenges, and milestones.
    • Added upgEffect, buyableEffect, and challEffect functions.
    • Added "hide completed challenges" setting.
    • Moved old changelogs to a separate place.
    • Fixed hasMilestone and incr_order.
    • Static layers now show the currency amount needed for the next one if you can buy max.

    v1.2.4 - 10/4/20

    • Layers are now highlighted if you can buy an upgrade, and a new feature, shouldNotify, lets you make it highlight other ways.
    • Fixed bugs with hasUpg, hasChall, hasMilestone, and inChallenge.
    • Changed the sample code to use the above functions for convenience.

    v1.2.3 - 10/3/20

    • Added a row component, which displays a list of objects in a row.
    • Added a column component, which displays a list of objects in a column (useful within a row).
    • Changed blanks to have a customizable width and height.

    v1.2: This Changes Everything! - 10/3/20

    • Many layer features can now be static values or functions. (This made some formats change, which will break old things)
    • You can now use the "this" keyword, to make code easier to transfer when making new layers.
    • Also added "this.layer", which is the current layer's name, and works on existing subfeatures (e.g. individual upgrades) as well! Subfeatures also have "this.id".
    • Fixed a big save issue. If you use a unique mod id, your save will never conflict with other mods.
    • Added a configurable offline time limit in modinfo at the top of index.html. (default 1 hour)
    • Added a few minor features, and updated the docs with new information.

    v1.1.1 - 9/30/20

    • You can define hotkeys directly from layer config.

    v1.1: Enhanced Edition - 9/30/20

    • Added "Buyables", which can function like Space Buildings or Enhancers.
    • Custom CSS can now be used on any component! Make the third argument an object with CSS parameters.
    • Lots of minor good things.

    v1.0 - 9/27/20

    • First release.
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    The Modding Tree changelog:

    v2.5.9.2 - 5/19/21

    • Fixed many issues with things not updating.

    v2.5.9.1 - 5/18/21

    • Made text inputs never give NaNs.

    v2.5.9 - 5/18/21

    • Fixed issue when using text inputs for Numbers.
    • Added particle color feature.
    • Particle speed and dir are updated as it moves.
    • Added setSpeed and setDir for particles.
    • Added more trig functions.

    v2.5.8 - 5/17/21

    • Added makeShinies, which creates a stationary particle in a random spot.
    • Bars will visually update more quickly.
    • Fixed a major particle-related issue.
    • Fixed autoUpgrade.
    • Fixed a minor visual issue with tree nodes.

    v2.5.7 - 5/15/21

    • Added a particle system! Not only can it be used for visual effects, but particles can interact with the mouse. They could be used to create golden cookies or collectables, for example.
    • Added marked feature to buyables, clickables, and challenges. By default, stars multi-completion challenges when maxed.
    • Added 'deactivated' feature to layers, which disables many features.
    • Improved number formatting slightly.

    v2.5.6 - 5/14/21

    • You can now use non-numeric ids for upgrades, buyables, etc.
    • Fixed an exploit that let you buy an extra buyable.
    • Moved basic getter/setter functions to easyAccess.js.

    v2.5.5.2 - 5/12/21

    • Fixed a major issue with buyables.
    • Fixed a variety of tabFormat-related issues.
    • Fixed commas appearing in decimal places (thanks to pg132!)

    v2.5.5.1 - 5/12/21

    • Fixed clickables.

    v2.5.5 - 5/12/21

    • Added grids! They are a grid of buttons which behave the same, but have their own data. Good for inventory grids, map tiles, and more!
    • Added "marked" feature to add a mark to a node. Can be an image instead of a star. (Originally by Jacorb)
    • Added "layer-proxy" component that lets you use components from another layer.
    • Added the ability to display non-whole numbers in main-display.

    v2.5.4 - 5/10/21

    • Added a setting to always use single-tab mode.
    • Added directMult, which multiplies prestige gain after exponents and softcaps. It actually multiplies gain for static layers.
    • Added onEnter and onExit for challenges.
    • Improved displaying numbers between 0.0001 and 0.1.
    • Added documentation on how gainMult/Exp work for static layers.
    • Fixed a visual issue on mobile, thanks to thepaperpilot.
    • Improved documentation in general.

    v2.5.3 - 5/8/21

    • Improved performance of tab formats and bars.
    • Respec confirmation settings are now kept on resets.
    • Improved compatibility with older browsers.
    • Fixed missing pixel on vertical bars.

    v2.5.2.1 - 5/7/21

    • Fixed microtabs making layers highlight incorrectly.

    v2.5.2 - 5/7/21

    • Added glowColor for subtabs.
    • Improved the display for extremely small numbers.
    • Fixed issues in the buyable docs.

    v2.5.1 - 5/7/21

    • Fixed dynamic things in tabFormat not updating.

    v2.5: Dreams Really Do Come True - 5/7/21

    • Optimizations, hopefully a significant amount.
    • Added OOM/s point gen display at high values (thanks to Ducdat!)
    • Only one tab will display if the window is not wide enough (also thanks to Ducdat!)
    • Holding down a buyable's button now buys it continuously.
    • New milestone setting will also show the most recently unlocked milestone. (Also renamed all settings to be clearer)
    • Added an onHold feature for clickables.
    • Layer nodes will be highlighted even if the player is on the same tab.
    • Added customizable node glowColor.
    • Added buyable purchaseLimit.
    • Amount is automatically supplied to buyable cost and effect functions.
    • Locked (not yet visible) milestones no longer take up space. Also fixed hidden milestones taking a tiny bit of space.
    • Re-centered respec buttons.
    • Force-displayed tooltips are not hidden by resets.
    • Added formatting support for very small numbers. Disabled in most places by default because rounding errors might cause issues. Access it with formatSmall, or enable it globally by adding "allowSmall: true" to modInfo.

    v2.4.1 - 4/29/21

    • A number of minor fixes, many thanks to thepaperpilot.
    • The respec confirmation checkbox is now part of the respec-button component. (This also fixes the checkbox appearing when there is no respec button)
    • Added a few undocumented changes to the 2.4 changelog (the two at the bottom)

    v2.4: Rationalized Edition - 4/29/21

    • Completely reworked tooltips. Shift-click a node to force its tooltip to stay displayed. (And hopefully finally fixed flickering!)

    • Added text-input and slider components.

    • Added the ability to toggle respec confirmations.

    • Added custom respec confirmation messages.

    • The red layer highlight will not appear before a layer is unlocked.

    • Added unlocking hotkeys.

    • You no longer need to supply 'rows' and 'cols' for any Big Features.

    • Node symbols can use HTML.

    • Added documentation for the respec button.

    • Added prestigeNotify to subtabs, and prestigeNotify in subtabs also highlights the layer node.

    • The version number no longer contains special characters or irrational numbers.

    • Added ctrlDown and shiftDown variables.

    • Tooltips now use HTML (this means you need to replace any newlines with
      )

    v2.π.1 - 4/7/21

    • Fixed formatting for some larger numbers.
    • Upgrades will expand if there is too much text to display.
    • Fixed styling challenges.
    • No longer attempts to display a base currency when there is none.

    v2.π: Incrementally Updated - 2/5/21

    • Performance improvements.
    • Fixed tooltips overlapping with the top display.
    • Clicking a popup dismisses it immediately.
    • Added support for bulk challenge completions.
    • "Best" is updated automatically.
    • Fixed keeping Decimal values on reset.
    • Code reorganization and style improvements by fudo.

    v2.3.5 - 12/21/20

    • Added resetTime, which tracks the time since a layer prestiged or was reset.
    • A layer node will be highlighted red if one of its subtabs is highlighted red.
    • Fixed issues with keeping challenges, buyables, and clickables on reset.
    • Improved the unlocking of custom layers.
    • Other minor fixes.

    v2.3.4 - 12/16/20

    • Added a node image feature.
    • Resource display now always shows the amount of the currency the layer's gain is based on.
    • Added spacing between tree nodes.
    • Another attempt to fix tooltip flickering.

    v2.3.3 - 12/13/20

    • Fixed the first node in a row always taking up space.
    • layerShown is now optional.
    • All prestige types can now use features for custom prestige types.

    v2.3.2 - 12/13/20

    • Fixed achievement/milestone popups.

    v2.3.1 - 12/12/20

    • Another attempt to fix flickering tooltips.
    • The "this" keyword should work everywhere except tabFormat arrays (although I may have missed some things).
    • Fixed tree branches not updating when scrolling on the right-side tab.
    • Fixed a spacing issue when a node's symbol is ""
    • Removed some old, unneeded files.

    v2.3: Cooler and Newer Edition - 12/10/20

    • Added achievement/milestone popups (thank you to Jacorb for this contribution!)
    • The changelog tab is back, and can be set in mod.js.
    • Layer nodes and respec buttons will not be clicked by pressing "enter".
    • Possible fix for flickering tooltips and strange transitions.
    • The victory screen text is configurable.
    • Added image and textStyle features to achievements.
    • Added an argument to use specific rows in an "upgrades" component.
    • Fixed the comma appearing in the main display when there was no effectDescription
    • Added the ability to easily make a tab that is a collection of layers in subtabs.
    • Improved spacing for embedding layers with subtabs into subtabs.

    v2.2.8 - 12/03/20

    • Double-clicking a layer node brings you to the main subtab for that layer.
    • Attempted to fix challenges visually updating a different way.
    • Added a softcap function for use in formulas.
    • Added displayRow feature, which lets layers be shown somewhere separate from where they are in the reset order (e.g. side layers)
    • Fixed autoupgrade issue.

    v2.2.7 - 11/30/20

    • Added autoUpgrade feature.
    • resource-display now shows resource gain per second if passiveGain is active.
    • Fixed formatting issues on some large numbers.
    • Better support for using classed objects in player and in layers/tmp.
    • Made hard resetting more effective.
    • Removed Herobrine from getStartClickables.

    v2.2.6 - 11/30/20

    • Added goalDescription for challenges and made the new "canComplete" system the standard.
    • Another attempt to fix challenges not visually updating.
    • Fixed side layers not appearing.
    • Fixed getStartClickables again.

    v2.2.5 - 11/29/20

    • Added features for overriding the displays and costs/goals of upgrades and challenges to make them fully custom.
    • best, total, and unlocked are always automatically added to layerData (but best and total will only display if you add them yourself).
    • Fixed getStartClickables.

    v2.2.4 - 11/28/20

    • Added softcap and softcapPower features (for Normal layers)
    • Offline time limit and default max tick length were fixed (previously the limits were 1000x too large)
    • Added fixOldSaves.
    • You can use HTML in main-display.
    • Fixed a number of minor oddities.

    v2.2.3 - 11/28/20

    • Layers will be highlighted if you can finish a challenge.
    • The "can complete challenge" color now overrides the "already completed" color.
    • Button nodes now work as side "layers".
    • Setting a tooltip to "" hides it entirely.

    v2.2.2 - 11/22/20

    • Fixed right half of the screen being unclickable in some circumstances.
    • Fixed tree branches being offset.
    • Fix to lastSafeTab.

    v2.2.1 - 11/7/20

    • Added a small highlight to layers you can meaningfully prestige on.
    • Added passiveGeneration and autoPrestige features to standardize prestige automation. (The old ways still work, but the new ones work better with other things)
    • Improved milestones visually a bit.
    • "best" and "total" are now only displayed if present in startData.
    • Fixed issues with things not updating visually. (Thank you to to Jacorb!)
    • Side layers and button nodes can now be highlighted.
    • Updated docs on the new tree-related features.

    v2.2: Uprooted - 11/7/20

    • You can now embed a layer inside of a subtab or microtab!
    • Added support for hiding or reformatting the tree tab
    • Added non-layer button nodes
    • Added shouldNotify to subtab/microtab buttons. (You can make them highlighted)
    • Added commas to large exponents.
    • Upgrades now only show "currently" if they have an effectDisplay (so not for constant effects).
    • Achievements are part of the default tab format.
    • NaN is now handled more intelligently.
    • Renamed files, and moved less relevant ones to another folder.
    • The "hide completed challenges" setting now only hides challenges at max completions.
    • Thank you to thepaperpilot for fixing errors in docs and improving the infobox appearance!
    • Many other minor fixes.

    v2.1.4 - 10/25/20

    • Added an infobox component. Thank you to thepaperpilot for this contribution!
    • Layer type is now optional, and defaults to "none".
    • Improved the look of bars and tab buttons.
    • Improved spacing between layer nodes (also thanks to thepaperpilot!)
    • Fixed the "blank" component breaking if only specifying the height.
    • Fixed some numbers not displaying with enough digits.
    • Made a few more things able to be functions.
    • A few other minor fixes.

    v2.1.3.1 - 10/21/20

    • Fixed the update function.

    v2.1.3 - 10/21/20

    • gainMult and gainExp are now optional.
    • Layer unlocking is now kept on reset.
    • Game should start up faster.
    • Layer updates now have a determined order and starts with earlier-rowed layers.
    • Automation now has a determined order and starts with later-rowed layers.
    • Fixed issues with resetting clickables and challenges.
    • Commas should no longer appear in the decimal places of a number.
    • Fixed potential issue in displaying the tree.

    v2.1.2 - 10/19/20

    • Added buyUpgrade function (buyUpg still works though)
    • Added author name to modInfo.
    • Fix to crash caused when the name of a subtab or microtab is changed.
    • Fixes to outdated information in docs.
    • Improvements to Discord links.
    • Thank you to thepaperpilot for contributing to this update!

    v2.1.1 - 10/17/20

    • Added resource-display component, which displays the base currency for the prestige layer, as well as the best and/or total of this layer's prestige currency.
    • Fixed the value for the base currency not updating in resource-display.

    v2.1: We should have thought of this sooner! - 10/17/20

    • Moved most of the code users will want to edit to mod.js, added documentation for it.
      • Specifically, modInfo, VERSION, canGenPoints, getPointGen, and maxTickLength
    • Added getStartPoints()
    • Added the ability to store non-layer-related data
    • Added the ability to display more things at the top of the tree tab below points.
    • Made the endgame condition customizable
    • Added "sell one" and "sell all" buttons for buyables.
    • Moved the old "game" to demo.js, and replaced it with a minimal game that won't cause issues when edited.
    • Fixed issues with version number
    • Fixed number formatting issue making things like "10e9" appear.

    v2.0.5 - 10/16/20

    • Made more features (including prestige parameters) able to be dynamic.
    • Layer nodes can be hidden but still take up space with "ghost" visibility
    • Added clickableEffect for real.
    • Fixed some visual issues with bars.
    • A few other minor tweaks and improvements.

    v2.0.4 - 10/16/20

    • Fixed HTML on buttons interfering with clicking on them.

    v2.0.3 - 10/16/20

    • Fixed hotkeys not displaying in info.
    • Fixed the game supressing all external hotkeys.
    • You can use more things as currencies for upgrade costs and challenge goals using currencyLocation.
    • Added maxTickLength, which can be used to prevent offline time or tab-switching from breaking time-limit based mechanics.
    • Made buyable respec buttons and clickable "master" buttons their own components, and gave them a hide/show feature.
    • Added a general "tooltip" feature for achievements.

    v2.0.2 - 10/15/20

    • Branches are now dynamic (they can be functions).
    • Fixed a crash related to offline time.
    • Fixed links being too wide.

    v2.0.1 - 10/15/20

    • Fixed side layers appearing multiple times.

    v2.0: The Pinnacle of Achievement Mountain - 10/15/20

    • Added progress bars, which are highly customizable and can be horizontal or vertical!
    • Added "side layers", displayed smaller and off to the side, and don't get reset by default. They can be used for global achievements and statistics. Speaking of which...
    • Added achievements!
    • Added clickables, a more generalized variant of buyables.
    • Almost every value in layer data can be either a function or a constant value!
    • Added support for multiple completions of challenges.
    • Added "none" prestige type, which removes the need for any other prestige-related features.
    • The points display and other gui elements stay at the top of the screen when the tree scrolls.
    • Added getter/setter functions for the amounts and effects of most Big Features
    • Moved modInfo to game.js, added a spot in modInfo for a Discord link, changelog link. Also added a separate mod version from the TMT version in VERSION.
    • Tree structure is based on layer data, no index.html editing is needed.
    • Tmp does not need to be manually updated.
    • You don't have to have the same amount of upgrades in every row (and challs and buyables)
    • "unlocked" is optional for all Big Components (defaults to true).
    • All displays will update correctly.
    • Changelog is no longer in index.html at all.
    • Generation of Points now happens in the main game loop
    • Changed the reset functions to make keeping things easier
    • Renamed many things to increase readability (see the list in the link below)
    • Improved documentation based on feedback

    v1.3.5:

    • Completely automated convertToDecimal, now you never have to worry about it again.
    • Branches can be defined without a color id. But they can also use hex values for color ids!
    • Created a tutorial for getting started with TMT and Github.
    • Page title is now automatically taken from mod name.

    v1.3.4 - 10/8/20

    • Added "midsection" feature to add things to a tab's layout while still keeping the standard layout.
    • Fix for being able to buy more buyables than you should.

    v1.3.3 - 10/7/20

    • Fix for the "order of operations" issue in temp.

    v1.3.1 - 10/7/20

    • Added custom CSS and tooltips for Layer Nodes.
    • Added custom CSS for upgrades, buyables, milestones, and challenges, both individually and layer-wide.
    • You can now use HTML in most display text!
    • You can now make milestones unlockable and not display immediately.
    • Fixed importing saves, and issue with upgrades not appearing, and probably more.
    • Optional "name" layer feature, used in confirmation messages.

    v1.3: Tabception... ception! - 10/7/20

    • Added subtabs! And also a Micro-tab component to let you make smaller subtab-esque areas anywhere.
    • Added a "custom" prestige formula type, and a number of features to support it.
    • Added points/sec display (can be disabled).
    • Added h-line, v-line and image-display components, plus components for individual upgrades, challenges, and milestones.
    • Added upgEffect, buyableEffect, and challEffect functions.
    • Added "hide completed challenges" setting.
    • Moved old changelogs to a separate place.
    • Fixed hasMilestone and incr_order.
    • Static layers now show the currency amount needed for the next one if you can buy max.

    v1.2.4 - 10/4/20

    • Layers are now highlighted if you can buy an upgrade, and a new feature, shouldNotify, lets you make it highlight other ways.
    • Fixed bugs with hasUpg, hasChall, hasMilestone, and inChallenge.
    • Changed the sample code to use the above functions for convenience.

    v1.2.3 - 10/3/20

    • Added a row component, which displays a list of objects in a row.
    • Added a column component, which displays a list of objects in a column (useful within a row).
    • Changed blanks to have a customizable width and height.

    v1.2: This Changes Everything! - 10/3/20

    • Many layer features can now be static values or functions. (This made some formats change, which will break old things)
    • You can now use the "this" keyword, to make code easier to transfer when making new layers.
    • Also added "this.layer", which is the current layer's name, and works on existing subfeatures (e.g. individual upgrades) as well! Subfeatures also have "this.id".
    • Fixed a big save issue. If you use a unique mod id, your save will never conflict with other mods.
    • Added a configurable offline time limit in modinfo at the top of index.html. (default 1 hour)
    • Added a few minor features, and updated the docs with new information.

    v1.1.1 - 9/30/20

    • You can define hotkeys directly from layer config.

    v1.1: Enhanced Edition - 9/30/20

    • Added "Buyables", which can function like Space Buildings or Enhancers.
    • Custom CSS can now be used on any component! Make the third argument an object with CSS parameters.
    • Lots of minor good things.

    v1.0 - 9/27/20

    • First release.
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/!general-info.html b/public/kronos/docs/!general-info.html index da420a6c..0cd4f39d 100644 --- a/public/kronos/docs/!general-info.html +++ b/public/kronos/docs/!general-info.html @@ -6,12 +6,12 @@ The-Modding-Tree | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    The-Modding-Tree

    Making a game in The Modding Tree mostly involves defining parameters or functions on objects. If you aren't following the getting started guide, you should start by setting up your basic mod info in mod.js. It's important to set a mod id to ensure saving works properly.

    Beyond that, the main way to add content is through creating layers, often in layers.js. You can add new layers by calling addLayer(layername, layerdata). There is an example of a basic layer in layers.js showing the recommended method. It is just an example and can be freely deleted. You can also use it as a reference or a base for your own layers.

    Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to, for example to add new Vue components in components.js.

    The Modding Tree uses break_eternity.js to store large values. This means that many numbers are Decimal objects, and must be treated differently. For example, you have to use new Decimal(x) to create a Decimal value instead of a plain number, and perform operations on them by calling functions. e.g, instead of x = x + y, use x = x.add(y). Keep in mind this also applies to comparison operators, which should be replaced with calling the .gt, .gte, .lt, .lte, .eq, and .neq functions. See the break_eternity.js docs for more details on working with Decimal values.

    Almost all values can be either a constant value, or a dynamic value. Dynamic values are defined by putting a function that returns what the value should be at any given time.

    All display text can use basic HTML elements (But you can't use most Vue features there).

    While reading this documentation, the following key will be used when describing features:

    • No label: This is required and the game may crash if it isn't included.
    • sometimes required: This is may be required, depending on other things in the layer.
    • optional: You can leave this out if you don't intend to use that feature for the layer.
    • assigned automagically: This value will be set automatically and override any value you set.
    • deprecated: This feature is not recommended to be used, because newer features are able to achieve the same thing in a better, easier way.

    Table of Contents

    General

    • Getting Started: Getting your own copy of the code set up with Github Desktop.
    • Main mod info: How to set up general things for your mod in mod.js.
    • Basic layer breakdown: Breaking down the components of a layer with minimal features.
    • Layer features: Explanations of all of the different properties that you can give a layer.
    • Custom Tab Layouts: An optional way to give your tabs a different layout. You can even create entirely new components to use.
    • Custom game layouts: You can get rid of the tree tab, add buttons and other things to the tree, or even customize the tab's layout like a layer tab.
    • Updating TMT: Using Github Desktop to update your mod's version of TMT.

    Common components

    • Upgrades: How to create upgrades for a layer.
    • Milestones: How to create milestones for a layer.
    • Buyables: Create rebuyable upgrades for your layer (with the option to make them respec-able). Can be used to make Enhancers or Space Buildings, for example.
    • Clickables: A more generalized variant of buyables, for any kind of thing that is sometimes clickable. Between these and Buyables, you can do just about anything.
    • Achievements: How to create achievements for a layer (or for the whole game).

    Other components and features

    • Challenges: How to create challenges for a layer.
    • Bars: Display some information as a progress bar, gauge, or similar. They are highly customizable, and can be horizontal and vertical as well.
    • Subtabs and Microtabs: Create subtabs for your tabs, as well as "microtab" components that you can put inside the tabs. You can even use them to embed a layer inside another layer!
    • [Grids][grids.md]: Create a group buttons that behave the same, but have their own data. Good for map tiles, an inventory grid, and more!
    • Infoboxes: Boxes containing text that can be shown or hidden.
    • Trees: Make your own trees. You can make non-layer button nodes too!
    • Particle system: Can be used to create particles for visual effects, but also interactable things like golden cookies or collectables.
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    The-Modding-Tree

    Making a game in The Modding Tree mostly involves defining parameters or functions on objects. If you aren't following the getting started guide, you should start by setting up your basic mod info in mod.js. It's important to set a mod id to ensure saving works properly.

    Beyond that, the main way to add content is through creating layers, often in layers.js. You can add new layers by calling addLayer(layername, layerdata). There is an example of a basic layer in layers.js showing the recommended method. It is just an example and can be freely deleted. You can also use it as a reference or a base for your own layers.

    Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to, for example to add new Vue components in components.js.

    The Modding Tree uses break_eternity.js to store large values. This means that many numbers are Decimal objects, and must be treated differently. For example, you have to use new Decimal(x) to create a Decimal value instead of a plain number, and perform operations on them by calling functions. e.g, instead of x = x + y, use x = x.add(y). Keep in mind this also applies to comparison operators, which should be replaced with calling the .gt, .gte, .lt, .lte, .eq, and .neq functions. See the break_eternity.js docs for more details on working with Decimal values.

    Almost all values can be either a constant value, or a dynamic value. Dynamic values are defined by putting a function that returns what the value should be at any given time.

    All display text can use basic HTML elements (But you can't use most Vue features there).

    While reading this documentation, the following key will be used when describing features:

    • No label: This is required and the game may crash if it isn't included.
    • sometimes required: This is may be required, depending on other things in the layer.
    • optional: You can leave this out if you don't intend to use that feature for the layer.
    • assigned automagically: This value will be set automatically and override any value you set.
    • deprecated: This feature is not recommended to be used, because newer features are able to achieve the same thing in a better, easier way.

    Table of Contents

    General

    • Getting Started: Getting your own copy of the code set up with Github Desktop.
    • Main mod info: How to set up general things for your mod in mod.js.
    • Basic layer breakdown: Breaking down the components of a layer with minimal features.
    • Layer features: Explanations of all of the different properties that you can give a layer.
    • Custom Tab Layouts: An optional way to give your tabs a different layout. You can even create entirely new components to use.
    • Custom game layouts: You can get rid of the tree tab, add buttons and other things to the tree, or even customize the tab's layout like a layer tab.
    • Updating TMT: Using Github Desktop to update your mod's version of TMT.

    Common components

    • Upgrades: How to create upgrades for a layer.
    • Milestones: How to create milestones for a layer.
    • Buyables: Create rebuyable upgrades for your layer (with the option to make them respec-able). Can be used to make Enhancers or Space Buildings, for example.
    • Clickables: A more generalized variant of buyables, for any kind of thing that is sometimes clickable. Between these and Buyables, you can do just about anything.
    • Achievements: How to create achievements for a layer (or for the whole game).

    Other components and features

    • Challenges: How to create challenges for a layer.
    • Bars: Display some information as a progress bar, gauge, or similar. They are highly customizable, and can be horizontal and vertical as well.
    • Subtabs and Microtabs: Create subtabs for your tabs, as well as "microtab" components that you can put inside the tabs. You can even use them to embed a layer inside another layer!
    • [Grids][grids.md]: Create a group buttons that behave the same, but have their own data. Good for map tiles, an inventory grid, and more!
    • Infoboxes: Boxes containing text that can be shown or hidden.
    • Trees: Make your own trees. You can make non-layer button nodes too!
    • Particle system: Can be used to create particles for visual effects, but also interactable things like golden cookies or collectables.
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/achievements.html b/public/kronos/docs/achievements.html index 9bb6ba7c..2319b737 100644 --- a/public/kronos/docs/achievements.html +++ b/public/kronos/docs/achievements.html @@ -6,12 +6,12 @@ Achievements | The Paper Pilot - + - + - + @@ -34,14 +34,14 @@ -
    Skip to content

    Achievements

    Achievements are awarded to the player when they meet a certain goal, and optionally give some benefit.

    You can make global achievements by putting them in a side layer by making its row equal to "side" instead of a number.

    Useful functions for dealing with achievements and implementing their effects:

    • hasAchievement(layer, id): determine if the player has the Achievement.
    • achievementEffect(layer, id): Returns the current effects of the achievement, if any.

    Achievements should be formatted like this:

    js
    achievements: {
    +    
    Skip to content

    Achievements

    Achievements are awarded to the player when they meet a certain goal, and optionally give some benefit.

    You can make global achievements by putting them in a side layer by making its row equal to "side" instead of a number.

    Useful functions for dealing with achievements and implementing their effects:

    • hasAchievement(layer, id): determine if the player has the Achievement.
    • achievementEffect(layer, id): Returns the current effects of the achievement, if any.

    Achievements should be formatted like this:

    js
    achievements: {
         11: {
             name: "Blah",
             more features
         },
         etc
    -}

    Usually, each achievement should have an id where the first digit is the row and the second digit is the column.

    Individual achievement can have these features:

    • name: optional. displayed at the top of the achievement. The only visible text. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the achievement should be awarded.

    • tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML. Setting this to "" disables the tooltip.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the achievement. Can return a value or an object containing multiple values.

    • unlocked(): optional. A function returning a bool to determine if the achievement is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the achievement is completed.

    • image: optional, puts the image from the given URL (relative or absolute) in the achievement

    • style: optional. Applies CSS to this achievement, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • textStyle: optional. Applies CSS to the text, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the achievement was stored under, for convenient access. The achievement in the example's id is 11.

    • goalTooltip: optional, deprecated. Appears when the achievement is hovered over and locked, overrides the basic tooltip. This is to display the goal (or a hint). It can also be a function that returns updating text. Can use basic HTML.

    • doneTooltip: optional, deprecated. Appears when the achievement is hovered over and completed, overrides the basic tooltip. This can display what the player achieved (the goal), and the rewards, if any. It can also be a function that returns updating text. Can use basic HTML.

    Disable achievement popups by adding achievementsPopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Usually, each achievement should have an id where the first digit is the row and the second digit is the column.

    Individual achievement can have these features:

    • name: optional. displayed at the top of the achievement. The only visible text. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the achievement should be awarded.

    • tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML. Setting this to "" disables the tooltip.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the achievement. Can return a value or an object containing multiple values.

    • unlocked(): optional. A function returning a bool to determine if the achievement is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the achievement is completed.

    • image: optional, puts the image from the given URL (relative or absolute) in the achievement

    • style: optional. Applies CSS to this achievement, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • textStyle: optional. Applies CSS to the text, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the achievement was stored under, for convenient access. The achievement in the example's id is 11.

    • goalTooltip: optional, deprecated. Appears when the achievement is hovered over and locked, overrides the basic tooltip. This is to display the goal (or a hint). It can also be a function that returns updating text. Can use basic HTML.

    • doneTooltip: optional, deprecated. Appears when the achievement is hovered over and completed, overrides the basic tooltip. This can display what the player achieved (the goal), and the rewards, if any. It can also be a function that returns updating text. Can use basic HTML.

    Disable achievement popups by adding achievementsPopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/bars.html b/public/kronos/docs/bars.html index bf7aaa5f..778dfc20 100644 --- a/public/kronos/docs/bars.html +++ b/public/kronos/docs/bars.html @@ -6,12 +6,12 @@ Bars | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Bars

    Bars let you display information in a more direct way. It can be a progress bar, health bar, capacity gauge, or anything else.

    Bars are defined like other Big Features:

    js
    bars: {
    +    
    Skip to content

    Bars

    Bars let you display information in a more direct way. It can be a progress bar, health bar, capacity gauge, or anything else.

    Bars are defined like other Big Features:

    js
    bars: {
         bigBar: {
             direction: RIGHT,
             width: 200,
    @@ -43,8 +43,8 @@
             etc
         },
         etc
    -}

    Features:

    • direction: UP, DOWN, LEFT, or RIGHT (not strings). Determines the direction that the bar is filled as it progresses. RIGHT means from left to right.

    • width, height: The size in pixels of the bar, but as numbers (no "px" at the end).

    • progress(): A function that returns the portion of the bar that is filled, from "empty" at 0 to "full" at 1, updating automatically. (Nothing bad happens if the value goes out of these bounds, and it can be a number or Decimal)

    • display(): optional. A function that returns text to be displayed on top of the bar, can use HTML.

    • unlocked(): optional. A function returning a bool to determine if the bar is visible or not. Default is unlocked.

    • baseStyle, fillStyle, borderStyle, textStyle: Optional, Apply CSS to the unfilled portion, filled portion, border, and display text on the bar, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • direction: UP, DOWN, LEFT, or RIGHT (not strings). Determines the direction that the bar is filled as it progresses. RIGHT means from left to right.

    • width, height: The size in pixels of the bar, but as numbers (no "px" at the end).

    • progress(): A function that returns the portion of the bar that is filled, from "empty" at 0 to "full" at 1, updating automatically. (Nothing bad happens if the value goes out of these bounds, and it can be a number or Decimal)

    • display(): optional. A function that returns text to be displayed on top of the bar, can use HTML.

    • unlocked(): optional. A function returning a bool to determine if the bar is visible or not. Default is unlocked.

    • baseStyle, fillStyle, borderStyle, textStyle: Optional, Apply CSS to the unfilled portion, filled portion, border, and display text on the bar, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/basic-layer-breakdown.html b/public/kronos/docs/basic-layer-breakdown.html index d4a41b01..f2700e4a 100644 --- a/public/kronos/docs/basic-layer-breakdown.html +++ b/public/kronos/docs/basic-layer-breakdown.html @@ -6,12 +6,12 @@ Basic layer breakdown | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Basic layer breakdown

    This is a very minimal layer with minimal features. Most things will require additional features.

    js
    addLayer("p", {
    +    
    Skip to content

    Basic layer breakdown

    This is a very minimal layer with minimal features. Most things will require additional features.

    js
    addLayer("p", {
         startData() { return {                  // startData is a function that returns default data for a layer. 
             unlocked: true,                     // You can add more variables here to add them to your layer.
             points: new Decimal(0),             // "points" is the internal name for the main resource of the layer.
    @@ -65,8 +65,8 @@
         upgrades: {
             // Look in the upgrades docs to see what goes here!
         },
    -})
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +})
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/buyables.html b/public/kronos/docs/buyables.html index 82dee0dd..7e346531 100644 --- a/public/kronos/docs/buyables.html +++ b/public/kronos/docs/buyables.html @@ -6,12 +6,12 @@ Buyables | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Buyables

    Buyables are usually things that can be bought multiple times with scaling costs. They come with optional buttons that can be used for respeccing or selling buyables, among other things.

    The amount of a buyable owned is a Decimal.

    Useful functions for dealing with buyables and implementing their effects:

    • getBuyableAmount(layer, id): get the amount of the buyable the player has
    • setBuyableAmount(layer, id, amount): set the amount of the buyable the player has
    • buyableEffect(layer, id): Returns the current effects of the buyable, if any.

    Buyables should be formatted like this:

    js
    buyables: {
    +    
    Skip to content

    Buyables

    Buyables are usually things that can be bought multiple times with scaling costs. They come with optional buttons that can be used for respeccing or selling buyables, among other things.

    The amount of a buyable owned is a Decimal.

    Useful functions for dealing with buyables and implementing their effects:

    • getBuyableAmount(layer, id): get the amount of the buyable the player has
    • setBuyableAmount(layer, id, amount): set the amount of the buyable the player has
    • buyableEffect(layer, id): Returns the current effects of the buyable, if any.

    Buyables should be formatted like this:

    js
    buyables: {
         11: {
             cost(x) { return new Decimal(1).mul(x) },
             display() { return "Blah" },
    @@ -46,8 +46,8 @@
             etc
         },
         etc
    -}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • cost(): cost for buying the next buyable. Can have an optional argument "x" to calculate the cost of the x+1th purchase. (x is a Decimal). Can return an object if there are multiple currencies.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this buyable. Can have an optional argument "x" to calculate the effect of having x of the buyable.. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the buyable after the title, likely including the description, amount bought, cost, and current effect. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the buyable is visible or not. Default is unlocked.

    • canAfford(): A function returning a bool to determine if you can buy one of the buyables.

    • buy(): A function that implements buying one of the buyable, including spending the currency.

    • buyMax(): optional. A function that implements buying as many of the buyable as possible.

    • style: optional. Applies CSS to this buyable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • purchaseLimit: optional. The limit on how many of the buyable can be bought. The default is no limit.

    • marked: optional Adds a mark to the corner of the buyable. If it's "true" it will be a star, but it can also be an image URL.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the buyable was stored under, for convenient access. The buyable in the example's id is 11.

    Sell One/Sell All:

    Including a sellOne or sellAll function will cause an additional button to appear beneath the buyable. They are functionally identical, but "sell one" appears above "sell all". You can also use them for other things.

    • sellOne/sellAll(): optional. Called when the button is pressed. The standard use would be to decrease/reset the amount of the buyable, and possibly return some currency to the player.

    • canSellOne/canSellAll(): optional. booleans determining whether or not to show the buttons. If "canSellOne/All" is absent but "sellOne/All" is present, the appropriate button will always show.

    To add a respec button, or something similar, add the respecBuyables function to the main buyables object (not individual buyables). You can use these features along with it:

    • respec(): optional. This is called when the button is pressed (after a toggleable confirmation message).

    • respecText: optional. Text to display on the respec Button.

    • showRespec(): optional. A function determining whether or not to show the button, if respecBuyables is defined. Defaults to true if absent.

    • respecMessage: optional. A custom confirmation message on respec, in place of the default one.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • cost(): cost for buying the next buyable. Can have an optional argument "x" to calculate the cost of the x+1th purchase. (x is a Decimal). Can return an object if there are multiple currencies.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this buyable. Can have an optional argument "x" to calculate the effect of having x of the buyable.. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the buyable after the title, likely including the description, amount bought, cost, and current effect. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the buyable is visible or not. Default is unlocked.

    • canAfford(): A function returning a bool to determine if you can buy one of the buyables.

    • buy(): A function that implements buying one of the buyable, including spending the currency.

    • buyMax(): optional. A function that implements buying as many of the buyable as possible.

    • style: optional. Applies CSS to this buyable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • purchaseLimit: optional. The limit on how many of the buyable can be bought. The default is no limit.

    • marked: optional Adds a mark to the corner of the buyable. If it's "true" it will be a star, but it can also be an image URL.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the buyable was stored under, for convenient access. The buyable in the example's id is 11.

    Sell One/Sell All:

    Including a sellOne or sellAll function will cause an additional button to appear beneath the buyable. They are functionally identical, but "sell one" appears above "sell all". You can also use them for other things.

    • sellOne/sellAll(): optional. Called when the button is pressed. The standard use would be to decrease/reset the amount of the buyable, and possibly return some currency to the player.

    • canSellOne/canSellAll(): optional. booleans determining whether or not to show the buttons. If "canSellOne/All" is absent but "sellOne/All" is present, the appropriate button will always show.

    To add a respec button, or something similar, add the respecBuyables function to the main buyables object (not individual buyables). You can use these features along with it:

    • respec(): optional. This is called when the button is pressed (after a toggleable confirmation message).

    • respecText: optional. Text to display on the respec Button.

    • showRespec(): optional. A function determining whether or not to show the button, if respecBuyables is defined. Defaults to true if absent.

    • respecMessage: optional. A custom confirmation message on respec, in place of the default one.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/challenges.html b/public/kronos/docs/challenges.html index 03610020..f943d71b 100644 --- a/public/kronos/docs/challenges.html +++ b/public/kronos/docs/challenges.html @@ -6,12 +6,12 @@ Challenges | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Challenges

    Challenges can have fully customizable win conditions. Useful functions for dealing with Challenges and implementing their effects:

    • inChallenge(layer, id): determine if the player is in a given challenge (or another challenge on the same layer that counts as this one).
    • hasChallenge(layer, id): determine if the player has completed the challenge.
    • challengeCompletions(layer, id): determine how many times the player completed the challenge.
    • maxedChallenge(layer, id): determines if the player has reached the maximum completions.
    • challengeEffect(layer, id): Returns the current effects of the challenge, if any.

    Challenges are stored in the following format:

    js
    challenges: {
    +    
    Skip to content

    Challenges

    Challenges can have fully customizable win conditions. Useful functions for dealing with Challenges and implementing their effects:

    • inChallenge(layer, id): determine if the player is in a given challenge (or another challenge on the same layer that counts as this one).
    • hasChallenge(layer, id): determine if the player has completed the challenge.
    • challengeCompletions(layer, id): determine how many times the player completed the challenge.
    • maxedChallenge(layer, id): determines if the player has reached the maximum completions.
    • challengeEffect(layer, id): Returns the current effects of the challenge, if any.

    Challenges are stored in the following format:

    js
    challenges: {
         11: {
             name: "Ouch",
             challengeDescription: "description of ouchie",
    @@ -42,8 +42,8 @@
             etc
         },
         etc
    -}

    Usually, each challenge should have an id where the first digit is the row and the second digit is the column.

    Individual Challenges can have these features:

    • name: Name of the challenge, can be a string or a function. Can use basic HTML.

    • challengeDescription: A description of what makes the challenge a challenge. You will need to implement these elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • goalDescription: A description of the win condition for the challenge. It can also be a function that returns updating text. Can use basic HTML. (Optional if using the old goal system)

    • canComplete(): A function that returns true if you meet the win condition for the challenge. Returning a number will allow bulk completing the challenge. (Optional if using the old goal system)

    • rewardDescription: A description of the reward's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • rewardEffect(): optional. A function that calculates and returns the current values of any bonuses from the reward. Can return a value or an object containing multiple values. Can use basic HTML.

    • rewardDisplay(): optional. A function that returns a display of the current effects of the reward with formatting. Default behavior is to just display the a number appropriately formatted.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the challenge. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the challenge is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the challenge is completed when previously incomplete.

    • onEnter() - optional. this function will be called when entering the challenge

    • onExit() - optional. this function will be called when exiting the challenge in any way

    • countsAs: optional. If a challenge combines the effects of other challenges in this layer, you can use this. An array of challenge ids. The player is effectively in all of those challenges when in the current one.

    • completionLimit: optional. the amount of times you can complete this challenge. Default is 1 completion.

    • style: optional. Applies CSS to this challenge, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • marked: optional Adds a mark to the corner of the challenge. If it's "true" it will be a star, but it can also be an image URL. By default, if the challenge has multiple completions, it will be starred at max completions.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the challenge was stored under, for convenient access. The challenge in the example's id is 11.

    The old goal system uses these features:

    • goal: deprecated, A Decimal for the amount of currency required to beat the challenge. By default, the goal is in basic Points. The goal can also be a function if its value changes.

    • currencyDisplayName: deprecated. the name to display for the currency for the goal

    • currencyInternalName: deprecated. the internal name for that currency

    • currencyLayer: deprecated. the internal name of the layer that currency is stored in. If it's not in a layer, omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation(): deprecated. if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Usually, each challenge should have an id where the first digit is the row and the second digit is the column.

    Individual Challenges can have these features:

    • name: Name of the challenge, can be a string or a function. Can use basic HTML.

    • challengeDescription: A description of what makes the challenge a challenge. You will need to implement these elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • goalDescription: A description of the win condition for the challenge. It can also be a function that returns updating text. Can use basic HTML. (Optional if using the old goal system)

    • canComplete(): A function that returns true if you meet the win condition for the challenge. Returning a number will allow bulk completing the challenge. (Optional if using the old goal system)

    • rewardDescription: A description of the reward's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • rewardEffect(): optional. A function that calculates and returns the current values of any bonuses from the reward. Can return a value or an object containing multiple values. Can use basic HTML.

    • rewardDisplay(): optional. A function that returns a display of the current effects of the reward with formatting. Default behavior is to just display the a number appropriately formatted.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the challenge. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the challenge is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the challenge is completed when previously incomplete.

    • onEnter() - optional. this function will be called when entering the challenge

    • onExit() - optional. this function will be called when exiting the challenge in any way

    • countsAs: optional. If a challenge combines the effects of other challenges in this layer, you can use this. An array of challenge ids. The player is effectively in all of those challenges when in the current one.

    • completionLimit: optional. the amount of times you can complete this challenge. Default is 1 completion.

    • style: optional. Applies CSS to this challenge, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • marked: optional Adds a mark to the corner of the challenge. If it's "true" it will be a star, but it can also be an image URL. By default, if the challenge has multiple completions, it will be starred at max completions.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the challenge was stored under, for convenient access. The challenge in the example's id is 11.

    The old goal system uses these features:

    • goal: deprecated, A Decimal for the amount of currency required to beat the challenge. By default, the goal is in basic Points. The goal can also be a function if its value changes.

    • currencyDisplayName: deprecated. the name to display for the currency for the goal

    • currencyInternalName: deprecated. the internal name for that currency

    • currencyLayer: deprecated. the internal name of the layer that currency is stored in. If it's not in a layer, omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation(): deprecated. if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/clickables.html b/public/kronos/docs/clickables.html index 7b7ed9b7..8fc2600f 100644 --- a/public/kronos/docs/clickables.html +++ b/public/kronos/docs/clickables.html @@ -6,12 +6,12 @@ Clickables | The Paper Pilot - + - + - + @@ -34,14 +34,14 @@ -
    Skip to content

    Clickables

    Clickables are any kind of thing that you can click for an effect. They're a more generalized version of Buyables.

    DO NOT USE THESE TO MAKE THINGS THAT YOU CLICK REPEATEDLY FOR A BONUS BECAUSE THOSE ARE AWFUL.

    There are several differences between the two. One is that a buyable's saved data is its amount as a Decimal, while Clickables store a "state" which can be a number or string, but not Decimal, array, or object). Buyables have a number of extra features which you can see on their page. Clickables also have a smaller default size.

    Useful functions for dealing with clickables and implementing their effects:

    • getClickableState(layer, id): get the state of the clickable the player has
    • setClickableState(layer, id, state): set the state of the clickable the player has
    • clickableEffect(layer, id): Returns the current effects of the clickable, if any.

    Clickables should be formatted like this:

    js
    clickables: {
    +    
    Skip to content

    Clickables

    Clickables are any kind of thing that you can click for an effect. They're a more generalized version of Buyables.

    DO NOT USE THESE TO MAKE THINGS THAT YOU CLICK REPEATEDLY FOR A BONUS BECAUSE THOSE ARE AWFUL.

    There are several differences between the two. One is that a buyable's saved data is its amount as a Decimal, while Clickables store a "state" which can be a number or string, but not Decimal, array, or object). Buyables have a number of extra features which you can see on their page. Clickables also have a smaller default size.

    Useful functions for dealing with clickables and implementing their effects:

    • getClickableState(layer, id): get the state of the clickable the player has
    • setClickableState(layer, id, state): set the state of the clickable the player has
    • clickableEffect(layer, id): Returns the current effects of the clickable, if any.

    Clickables should be formatted like this:

    js
    clickables: {
         11: {
             display() {return "Blah"},
             etc
         }
         etc
    -}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this clickable. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the clickable after the title, likely changing based on its state. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the clickable is visible or not. Default is unlocked.

    • canClick(): A function returning a bool to determine if you can click the clickable.

    • onClick(): A function that implements clicking the clickable.

    • onHold(): optional A function that is called 20x/sec when the button is held for at least 0.25 seconds.

    • style: optional. Applies CSS to this clickable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • marked: optional Adds a mark to the corner of the clickable. If it's "true" it will be a star, but it can also be an image URL.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the clickable was stored under, for convenient access. The clickable in the example's id is 11.

    You can also use these features on the clickables object to add a button above all the clickables, for implementing a respec button or similar.

    • masterButtonPress(): optional. If present, an additional button will appear above the clickables. Pressing it will call this function.

    • masterButtonText: optional. Text to display on the Master Button.

    • showMasterButton(): optional. A function determining whether or not to show the button, if masterButtonPress is defined. Defaults to true if absent.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this clickable. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the clickable after the title, likely changing based on its state. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the clickable is visible or not. Default is unlocked.

    • canClick(): A function returning a bool to determine if you can click the clickable.

    • onClick(): A function that implements clicking the clickable.

    • onHold(): optional A function that is called 20x/sec when the button is held for at least 0.25 seconds.

    • style: optional. Applies CSS to this clickable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • marked: optional Adds a mark to the corner of the clickable. If it's "true" it will be a star, but it can also be an image URL.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the clickable was stored under, for convenient access. The clickable in the example's id is 11.

    You can also use these features on the clickables object to add a button above all the clickables, for implementing a respec button or similar.

    • masterButtonPress(): optional. If present, an additional button will appear above the clickables. Pressing it will call this function.

    • masterButtonText: optional. Text to display on the Master Button.

    • showMasterButton(): optional. A function determining whether or not to show the button, if masterButtonPress is defined. Defaults to true if absent.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/custom-tab-layouts.html b/public/kronos/docs/custom-tab-layouts.html index ff593a23..4ce1a9dd 100644 --- a/public/kronos/docs/custom-tab-layouts.html +++ b/public/kronos/docs/custom-tab-layouts.html @@ -6,12 +6,12 @@ Custom tab layouts | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Custom tab layouts

    Note: If you are using subtabs, tabFormat is used differently, but the same format is used for defining their layouts. See here for more on subtabs.

    Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:

    js
    tabFormat: [
    +    
    Skip to content

    Custom tab layouts

    Note: If you are using subtabs, tabFormat is used differently, but the same format is used for defining their layouts. See here for more on subtabs.

    Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:

    js
    tabFormat: [
         "main-display",
         ["prestige-button", function() { return "Melt your points into " }],
         "blank",
    @@ -47,8 +47,8 @@
         "blank",
         "blank",
         "upgrades"
    -]

    It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) applies a CSS style to it with a "CSS object", where the keys are CSS attributes.

    These are the existing components, but you can create more in components.js:

    • display-text: Displays some text (can use basic HTML). The argument is the text to display. It can also be a function that returns updating text.

    • raw-html: Displays some basic HTML, can also be a function.

    • blank: Adds empty space. The default dimensions are 8px x 17px. The argument changes the dimensions. If it's a single value (e.g. "20px"), that determines the height. If you have a pair of arguments, the first is width and the second is height.

    • row: Display a list of components horizontally. The argument is an array of components in the tab layout format.

    • column: Display a list of components vertically. The argument is an array of components in the tab layout format. This is useful to display columns within a row.

    • main-display: The text that displays the main currency for the layer and its effects. The argument is the amount of precision to use, allowing it to display non-whole numbers.

    • resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in startData for this layer).

    • prestige-button: The argument is a string that the prestige button should say before the amount of currency you will gain. It can also be a function that returns updating text.

    • text-input: A text input box. The argument is the name of the variable in player[layer] that the input is for, player[layer][argument] (Works with strings, numbers, and Decimals!)

    • slider: Lets the user input a value with a slider. The argument a 3-element array: [name, min, max]. The name is the name of the variable in player[layer] that the input that the input is for, and min and max are the limits of the slider. (Does not work for Decimal values)

    • upgrades: The layer's upgrades. The argument is optional, and is a the list of rows this component should include, if it doesn't have all of them.

    • milestones, challenges, achievements: Display the upgrades, milestones, and challenges for a layer, as appropriate.

    • buyables, clickables: Display all of the buyables/clickables for this layer, as appropriate. The argument is optional and is the size of the boxes in pixels.

    • microtabs: Display a set of subtabs for an area. The argument is the name of the set of microtabs in the "microtabs" feature.

    • bar: Display a bar. The argument is the id of the bar to display.

    • infobox: Display an infobox. The argument is the id of the infobox to display.

    • tree: Displays a tree. The argument is an array of arrays containing the names of the nodes in the tree (first by row, then by column) See here for more information on tree layouts and nodes!

    • toggle: A toggle button that toggles a bool value. The argument is a pair that identifies the location in player of the bool to toggle, e.g. [layer, id]. 'layer' also affects the color of the toggle.

    • grid: Displays the gridable grid for the layer. If you need more than one grid, use a layer proxy.

    • layer-proxy: Lets you use components from another layer. The argument is a pair, [layer, data], consisting of the id of the layer to proxy from, and the tabFormat for the components to show. (Note: you cannot use a microtab within a layer proxy)

    The rest of the components are sub-components. They can be used just like other components, but are typically part of another component.

    • upgrade, milestone, challenge, buyable, clickable, achievement, gridable: An individual upgrade, challenge, etc. The argument is the id. This can be used if you want to have upgrades split up across multiple subtabs, for example.

    • respec-button, master-button: The respec and master buttons for buyables and clickables, respectively.

    • sell-one, sell-all: The "sell one" and "sell all" for buyables, respectively. The argument is the id of the buyable.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +]

    It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) applies a CSS style to it with a "CSS object", where the keys are CSS attributes.

    These are the existing components, but you can create more in components.js:

    • display-text: Displays some text (can use basic HTML). The argument is the text to display. It can also be a function that returns updating text.

    • raw-html: Displays some basic HTML, can also be a function.

    • blank: Adds empty space. The default dimensions are 8px x 17px. The argument changes the dimensions. If it's a single value (e.g. "20px"), that determines the height. If you have a pair of arguments, the first is width and the second is height.

    • row: Display a list of components horizontally. The argument is an array of components in the tab layout format.

    • column: Display a list of components vertically. The argument is an array of components in the tab layout format. This is useful to display columns within a row.

    • main-display: The text that displays the main currency for the layer and its effects. The argument is the amount of precision to use, allowing it to display non-whole numbers.

    • resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in startData for this layer).

    • prestige-button: The argument is a string that the prestige button should say before the amount of currency you will gain. It can also be a function that returns updating text.

    • text-input: A text input box. The argument is the name of the variable in player[layer] that the input is for, player[layer][argument] (Works with strings, numbers, and Decimals!)

    • slider: Lets the user input a value with a slider. The argument a 3-element array: [name, min, max]. The name is the name of the variable in player[layer] that the input that the input is for, and min and max are the limits of the slider. (Does not work for Decimal values)

    • upgrades: The layer's upgrades. The argument is optional, and is a the list of rows this component should include, if it doesn't have all of them.

    • milestones, challenges, achievements: Display the upgrades, milestones, and challenges for a layer, as appropriate.

    • buyables, clickables: Display all of the buyables/clickables for this layer, as appropriate. The argument is optional and is the size of the boxes in pixels.

    • microtabs: Display a set of subtabs for an area. The argument is the name of the set of microtabs in the "microtabs" feature.

    • bar: Display a bar. The argument is the id of the bar to display.

    • infobox: Display an infobox. The argument is the id of the infobox to display.

    • tree: Displays a tree. The argument is an array of arrays containing the names of the nodes in the tree (first by row, then by column) See here for more information on tree layouts and nodes!

    • toggle: A toggle button that toggles a bool value. The argument is a pair that identifies the location in player of the bool to toggle, e.g. [layer, id]. 'layer' also affects the color of the toggle.

    • grid: Displays the gridable grid for the layer. If you need more than one grid, use a layer proxy.

    • layer-proxy: Lets you use components from another layer. The argument is a pair, [layer, data], consisting of the id of the layer to proxy from, and the tabFormat for the components to show. (Note: you cannot use a microtab within a layer proxy)

    The rest of the components are sub-components. They can be used just like other components, but are typically part of another component.

    • upgrade, milestone, challenge, buyable, clickable, achievement, gridable: An individual upgrade, challenge, etc. The argument is the id. This can be used if you want to have upgrades split up across multiple subtabs, for example.

    • respec-button, master-button: The respec and master buttons for buyables and clickables, respectively.

    • sell-one, sell-all: The "sell one" and "sell all" for buyables, respectively. The argument is the id of the buyable.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/getting-started.html b/public/kronos/docs/getting-started.html index 1f589140..ae88d63a 100644 --- a/public/kronos/docs/getting-started.html +++ b/public/kronos/docs/getting-started.html @@ -6,12 +6,12 @@ Getting started | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    Getting started

    Welcome to The Modding Tree!

    Using the Modding Tree, at its simplest level, just requires getting a copy of it onto your computer. However, if you do it the right way, it will help in many ways.

    Don't let the word "Github" scare you away. It's actually much easier to use than most people think, especially because most people use it the hard way. The key is Github Desktop, which lets you do everything you need to, without even touching the command line.

    The benefits of using Github:

    • It makes it much, much easier to update The Modding Tree.
    • You can share your work without any extra effort using githack, or with a bit more effort, set up a github.io site.
    • It lets you undo changes to your code, and to have multiple versions of it.
    • It lets you collaborate with other people, if you want to.

    Getting set up with Github Desktop, Visual Studio Code, and The Modding Tree:

    1. Install Github Desktop and Visual Studio Code.

    2. Make a Github account. You can handle this on your own.

    3. Log in on your browser, and go back to The Modding Tree page. At the top right, there should be a button that says "fork". Click on it, and then on your username. You now have your own fork, or copy, of The Modding Tree.

    4. Open Github Desktop and log in. Ignore everything else and choose "clone a repository". A "repository" is basically a "Github project", like The Modding Tree. "Cloning" is downloading a copy of the repository to your computer.

    5. Look for The Modding Tree in the list of repositiories (it should be the only one) and click "clone".

    6. Select that you're using it for your own purposes, and click continue. It will download the files and handle everything.

    Using your repository

    1. Click on "show in explorer/finder" to the right, and then open the index.html file in the folder. The page should open up on your browser. This will let you view and test your project locally!

    2. To edit your project, click "open in VSCode" in Github Desktop.

    3. Open mod.js in VSCode, and look at the top part where it has a "modInfo" object. Fill in your mod's name to whatever you want, and change the id as well. (It can be any string value, and it's used to determine where the savefile is. Make it something that's probably unique, and don't change it again later or else it'll effectively wipe existing saves)

    4. Save mod.js, and then reload index.html in your browser. The title on the tab, as well as on the info page, will now be updated! You can reload the page every time you change the code to test it quickly and easily.

    5. Go back to Github Desktop. It's time to save your changes into the git system by making a "commit". This basically saves your work and creates a snapshot of what your code looks like at this moment, allowing you to look back at it later.

    6. At the bottom right corner, add a summary of your changes, and then click "commit to master".

    7. Finally, at the top middle, click "push origin" to push your changes out onto the online repository.

    8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html

    And now, you have successfully used Github! You can look at the documentation to see how The Modding Tree's system works and to make your mod a reality.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    Getting started

    Welcome to The Modding Tree!

    Using the Modding Tree, at its simplest level, just requires getting a copy of it onto your computer. However, if you do it the right way, it will help in many ways.

    Don't let the word "Github" scare you away. It's actually much easier to use than most people think, especially because most people use it the hard way. The key is Github Desktop, which lets you do everything you need to, without even touching the command line.

    The benefits of using Github:

    • It makes it much, much easier to update The Modding Tree.
    • You can share your work without any extra effort using githack, or with a bit more effort, set up a github.io site.
    • It lets you undo changes to your code, and to have multiple versions of it.
    • It lets you collaborate with other people, if you want to.

    Getting set up with Github Desktop, Visual Studio Code, and The Modding Tree:

    1. Install Github Desktop and Visual Studio Code.

    2. Make a Github account. You can handle this on your own.

    3. Log in on your browser, and go back to The Modding Tree page. At the top right, there should be a button that says "fork". Click on it, and then on your username. You now have your own fork, or copy, of The Modding Tree.

    4. Open Github Desktop and log in. Ignore everything else and choose "clone a repository". A "repository" is basically a "Github project", like The Modding Tree. "Cloning" is downloading a copy of the repository to your computer.

    5. Look for The Modding Tree in the list of repositiories (it should be the only one) and click "clone".

    6. Select that you're using it for your own purposes, and click continue. It will download the files and handle everything.

    Using your repository

    1. Click on "show in explorer/finder" to the right, and then open the index.html file in the folder. The page should open up on your browser. This will let you view and test your project locally!

    2. To edit your project, click "open in VSCode" in Github Desktop.

    3. Open mod.js in VSCode, and look at the top part where it has a "modInfo" object. Fill in your mod's name to whatever you want, and change the id as well. (It can be any string value, and it's used to determine where the savefile is. Make it something that's probably unique, and don't change it again later or else it'll effectively wipe existing saves)

    4. Save mod.js, and then reload index.html in your browser. The title on the tab, as well as on the info page, will now be updated! You can reload the page every time you change the code to test it quickly and easily.

    5. Go back to Github Desktop. It's time to save your changes into the git system by making a "commit". This basically saves your work and creates a snapshot of what your code looks like at this moment, allowing you to look back at it later.

    6. At the bottom right corner, add a summary of your changes, and then click "commit to master".

    7. Finally, at the top middle, click "push origin" to push your changes out onto the online repository.

    8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html

    And now, you have successfully used Github! You can look at the documentation to see how The Modding Tree's system works and to make your mod a reality.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/grids.html b/public/kronos/docs/grids.html index 9b0a5cfd..56051b6b 100644 --- a/public/kronos/docs/grids.html +++ b/public/kronos/docs/grids.html @@ -6,12 +6,12 @@ Grids | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Grids

    Grids are an easier way of making a group of similar clickables. They all have the same behavior, but are different based on their data.

    NOTE: Gridables are similar to clickables in some respects, but are fundamentally different from normal TMT components in quite a few ways. Be sure to keep these in mind:

    • Gridable ids use base 100 instead of base 10, so you can have more than 10 tiles in a row. This means that a grid might look like this: 101 102 201 202
    • Individual gridables are not defined individually. All properties go directly into the "grid" object. Functions are called with arguments for the id of the gridables and its associated data, so you can give them the appropriate appearance and properties based on that.
    • If you need two unrelated grids in a layer, you'll need to use a layer proxy component.

    Useful functions for dealing with grids:

    • getGridData(layer, id): get the data for the chosen gridable
    • setGridData(layer, id, state): set the data for the chosen gridable
    • gridEffect(layer, id): get the effect for the chosen gridable

    The grid should be formatted like this:

    js
    grid: {
    +    
    Skip to content

    Grids

    Grids are an easier way of making a group of similar clickables. They all have the same behavior, but are different based on their data.

    NOTE: Gridables are similar to clickables in some respects, but are fundamentally different from normal TMT components in quite a few ways. Be sure to keep these in mind:

    • Gridable ids use base 100 instead of base 10, so you can have more than 10 tiles in a row. This means that a grid might look like this: 101 102 201 202
    • Individual gridables are not defined individually. All properties go directly into the "grid" object. Functions are called with arguments for the id of the gridables and its associated data, so you can give them the appropriate appearance and properties based on that.
    • If you need two unrelated grids in a layer, you'll need to use a layer proxy component.

    Useful functions for dealing with grids:

    • getGridData(layer, id): get the data for the chosen gridable
    • setGridData(layer, id, state): set the data for the chosen gridable
    • gridEffect(layer, id): get the effect for the chosen gridable

    The grid should be formatted like this:

    js
    grid: {
         rows: 4, // If these are dynamic make sure to have a max value as well!
         cols: 5,
         getStartData(id) {
    @@ -54,8 +54,8 @@
         },
     
         etc
    -}

    Features:

    • rows, cols: The amount of rows and columns of gridable to display.

    • maxRows, maxCols: sometimes needed. If rows or cols are dynamic, you need to define the maximum amount that there can be (you can increase it when you update the game though). These CANNOT be dynamic.

    • getStartData(id): Creates the default data for the gridable at this position. This can be an object, or a regular value.

    • getUnlocked(id): optional. Returns true if the gridable at this position should be visible.

    • getTitle(data, id): optional. Returns text that should displayed at the top in a larger font, based on the position and data of the gridable.

    • getDisplay(data, id): optional. Returns everything that should be displayed on the gridable after the title, based on the position and data of the gridable.

    • getStyle(data, id): optional. Returns CSS to apply to this gridable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • getCanClick(data, id): optional. A function returning a bool to determine if you can click a gridable, based on its data and position. If absent, you can always click it.

    • onClick(data, id): A function that implements clicking on the gridable, based on its position and data.

    • onHold(data, id): optional A function that is called 20x/sec when the button is held for at least 0.25 seconds.

    • getEffect(data, id): optional. A function that calculates and returns a gridable's effect, based on its position and data. (Whatever that means for a gridable)

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • rows, cols: The amount of rows and columns of gridable to display.

    • maxRows, maxCols: sometimes needed. If rows or cols are dynamic, you need to define the maximum amount that there can be (you can increase it when you update the game though). These CANNOT be dynamic.

    • getStartData(id): Creates the default data for the gridable at this position. This can be an object, or a regular value.

    • getUnlocked(id): optional. Returns true if the gridable at this position should be visible.

    • getTitle(data, id): optional. Returns text that should displayed at the top in a larger font, based on the position and data of the gridable.

    • getDisplay(data, id): optional. Returns everything that should be displayed on the gridable after the title, based on the position and data of the gridable.

    • getStyle(data, id): optional. Returns CSS to apply to this gridable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • getCanClick(data, id): optional. A function returning a bool to determine if you can click a gridable, based on its data and position. If absent, you can always click it.

    • onClick(data, id): A function that implements clicking on the gridable, based on its position and data.

    • onHold(data, id): optional A function that is called 20x/sec when the button is held for at least 0.25 seconds.

    • getEffect(data, id): optional. A function that calculates and returns a gridable's effect, based on its position and data. (Whatever that means for a gridable)

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/infoboxes.html b/public/kronos/docs/infoboxes.html index a420e61a..d1d1c8b1 100644 --- a/public/kronos/docs/infoboxes.html +++ b/public/kronos/docs/infoboxes.html @@ -6,12 +6,12 @@ Infoboxes | The Paper Pilot - + - + - + @@ -34,15 +34,15 @@ -
    Skip to content

    Infoboxes

    Infoboxes are good for displaying "lore", or story elements, as well as for explaining complicated things.

    In the default tab layout, the first infobox will be displayed at the very top of the tab.

    Infoboxes are defined like other Big Features:

    js
    infoboxes: {
    +    
    Skip to content

    Infoboxes

    Infoboxes are good for displaying "lore", or story elements, as well as for explaining complicated things.

    In the default tab layout, the first infobox will be displayed at the very top of the tab.

    Infoboxes are defined like other Big Features:

    js
    infoboxes: {
         lore: {
             title: "foo",
             body() { return "bar" },
             etc
         },
         etc
    -}

    Features:

    • title: The text displayed above the main box. Can be a function to be dynamic, and can use basic HTML.

    • body: The text displayed inside the box. Can be a function to be dynamic, and can use basic HTML.

    • style, titleStyle, bodyStyle: optional. Apply CSS to the infobox, or to the title button or body of the infobox, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a bool to determine if the infobox is visible or not. Default is unlocked.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The infobox in the example's id is "lore".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • title: The text displayed above the main box. Can be a function to be dynamic, and can use basic HTML.

    • body: The text displayed inside the box. Can be a function to be dynamic, and can use basic HTML.

    • style, titleStyle, bodyStyle: optional. Apply CSS to the infobox, or to the title button or body of the infobox, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a bool to determine if the infobox is visible or not. Default is unlocked.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The infobox in the example's id is "lore".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/layer-features.html b/public/kronos/docs/layer-features.html index 1d9df0d0..cc2188a8 100644 --- a/public/kronos/docs/layer-features.html +++ b/public/kronos/docs/layer-features.html @@ -6,12 +6,12 @@ Layer Features | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Layer Features

    This is a more comprehensive list of established features to add to layers. You can add more freely, if you want to have other functions or values associated with your layer. These have special functionality, though.

    You can make almost any value dynamic by using a function in its place, including all display strings and styling/color features.

    Layer Definition features

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar to access the saved value. It makes copying code to new layers easier. It is also assigned to all upgrades and buyables and such.

    • name: optional. used in reset confirmations (and the default infobox title). If absent, it just uses the layer's id.

    • startData(): A function to return the default save data for this layer. Add any variables you have to it. Make sure to use Decimal values rather than normal numbers.

      Standard values: - Required: - unlocked: a bool determining if this layer is unlocked or not - points: a Decimal, the main currency for the layer - Optional: - total: A Decimal, tracks total amount of main prestige currency. Always tracked, but only shown if you add it here. - best: A Decimal, tracks highest amount of main prestige currency. Always tracked, but only shown if you add it here. - unlockOrder: used to keep track of relevant layers unlocked before this one. - resetTime: A number, time since this layer was last prestiged (or reset by another layer)

    • color: A color associated with this layer, used in many places. (A string in hex format with a #)

    • row: The row of the layer, starting at 0. This affects where the node appears on the standard tree, and which resets affect the layer.

      Using "side" instead of a number will cause the layer to appear off to the side as a smaller node (useful for achievements and statistics). Side layers are not affected by resets unless you add a doReset to them.

    • displayRow: OVERRIDE Changes where the layer node appears without changing where it is in the reset order.

    • resource: Name of the main currency you gain by resetting on this layer.

    • effect(): optional. A function that calculates and returns the current values of any bonuses inherent to the main currency. Can return a value or an object containing multiple values. You will also have to implement the effect where it is applied.

    • effectDescription: optional. A function that returns a description of this effect. If the text stays constant, it can just be a string.

    • layerShown(): optional, A function returning a bool which determines if this layer's node should be visible on the tree. It can also return "ghost", which will hide the layer, but its node will still take up space in the tree. Defaults to true.

    • hotkeys: optional. An array containing information on any hotkeys associated with this layer:

      js
      hotkeys: [
      +    
      Skip to content

      Layer Features

      This is a more comprehensive list of established features to add to layers. You can add more freely, if you want to have other functions or values associated with your layer. These have special functionality, though.

      You can make almost any value dynamic by using a function in its place, including all display strings and styling/color features.

      Layer Definition features

      • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar to access the saved value. It makes copying code to new layers easier. It is also assigned to all upgrades and buyables and such.

      • name: optional. used in reset confirmations (and the default infobox title). If absent, it just uses the layer's id.

      • startData(): A function to return the default save data for this layer. Add any variables you have to it. Make sure to use Decimal values rather than normal numbers.

        Standard values: - Required: - unlocked: a bool determining if this layer is unlocked or not - points: a Decimal, the main currency for the layer - Optional: - total: A Decimal, tracks total amount of main prestige currency. Always tracked, but only shown if you add it here. - best: A Decimal, tracks highest amount of main prestige currency. Always tracked, but only shown if you add it here. - unlockOrder: used to keep track of relevant layers unlocked before this one. - resetTime: A number, time since this layer was last prestiged (or reset by another layer)

      • color: A color associated with this layer, used in many places. (A string in hex format with a #)

      • row: The row of the layer, starting at 0. This affects where the node appears on the standard tree, and which resets affect the layer.

        Using "side" instead of a number will cause the layer to appear off to the side as a smaller node (useful for achievements and statistics). Side layers are not affected by resets unless you add a doReset to them.

      • displayRow: OVERRIDE Changes where the layer node appears without changing where it is in the reset order.

      • resource: Name of the main currency you gain by resetting on this layer.

      • effect(): optional. A function that calculates and returns the current values of any bonuses inherent to the main currency. Can return a value or an object containing multiple values. You will also have to implement the effect where it is applied.

      • effectDescription: optional. A function that returns a description of this effect. If the text stays constant, it can just be a string.

      • layerShown(): optional, A function returning a bool which determines if this layer's node should be visible on the tree. It can also return "ghost", which will hide the layer, but its node will still take up space in the tree. Defaults to true.

      • hotkeys: optional. An array containing information on any hotkeys associated with this layer:

        js
        hotkeys: [
             {
                 key: "p", // What the hotkey button is. Use uppercase if it's combined with shift, or "ctrl+x" for holding down ctrl.
                 description: "p: reset your points for prestige points", // The description of the hotkey that is displayed in the game's How To Play tab
        @@ -44,8 +44,8 @@
         ]
      • style: optional. a "CSS object" where the keys are CSS attributes, containing any CSS that should affect this layer's entire tab.

      • tabFormat: optional. use this if you want to add extra things to your tab or change the layout. See here for more info.

      • midsection: optional, an alternative to tabFormat, which is inserted in between Milestones and Buyables in the standard tab layout. (cannot do subtabs)

      Big features (all optional)

      • upgrades: A set of one-time purchases which can have unique upgrade conditions, currency costs, and bonuses. See here for more info.

      • milestones: A list of bonuses gained upon reaching certain thresholds of a resource. Often used for automation/QOL. See here for more info.

      • challenges: The player can enter challenges, which make the game harder. If they reach a goal and beat the challenge, they recieve a bonus. See here for more info.

      • buyables: Effectively upgrades that can be bought multiple times, and are optionally respeccable. Many uses. See here for more info.

      • clickables: Extremely versatile and generalized buttons which can only be clicked sometimes. See here for more info.

      • microtabs: An area that functions like a set of subtabs, with buttons at the top changing the content within. (Advanced) See here for more info.

      • bars: Display some information as a progress bar, gague, or similar. They are highly customizable, and can be vertical as well. See here for more info.

      • achievements: Kind of like milestones, but with a different display style and some other differences. Extra features are on the way at a later date! See here for more info.

      • achievementPopups, milestonePopups: optional, If false, disables popup message when you get the achievement/milestone. True by default.

      • infoboxes: Displays some text in a box that can be shown or hidden. See here for more info.

      • grid: A grid of buttons that behave the same, but have their own data.See here for more info.

      Prestige formula features

      • type: optional. Determines which prestige formula you use. Defaults to "none".

        • "normal": The amount of currency you gain is independent of its current amount (like Prestige). The formula before bonuses is based on baseResource^exponent
        • "static": The cost is dependent on your total after reset. The formula before bonuses is based on base^(x^exponent)
        • "custom": You can define everything, from the calculations to the text on the button, yourself. (See more at the bottom)
        • "none": This layer does not prestige, and therefore does not need any of the other features in this section.
      • baseResource: The name of the resource that determines how much of the main currency you gain on reset.

      • baseAmount(): A function that gets the current value of the base resource.

      • requires: A Decimal, the amount of the base needed to gain 1 of the prestige currency. Also the amount required to unlock the layer. You can instead make this a function, to make it harder if another layer was unlocked first (based on unlockOrder).

      • exponent: Used as described above.

      • base: sometimes required. required for "static" layers, used as described above. If absent, defaults to 2. Must be greater than 1.

      • roundUpCost: optional. a bool, which is true if the resource cost needs to be rounded up. (use if the base resource is a "static" currency.)

      • gainMult(), gainExp(): optional. For normal layers, these functions calculate the multiplier and exponent on resource gain from upgrades and boosts and such. Plug in most bonuses here. For static layers, they instead divide and root the cost of the resource.

      • directMult(): optional. Directly multiplies the resource gain, after exponents and softcaps. For static layers, actually multiplies resource gain instead of reducing the cost.

      • softcap, softcapPower: optional. For normal layers, gain beyond [softcap] points is put to the [softcapPower]th power Default for softcap is e1e7, and for power is 0.5.

      • canBuyMax(): sometimes required. required for static layers, function used to determine if buying max is permitted.

      • onPrestige(gain): optional. A function that triggers when this layer prestiges, just before you gain the currency. Can be used to have secondary resource gain on prestige, or to recalculate things or whatnot.

      • resetDescription: optional. Use this to replace "Reset for " on the Prestige button with something else.

      • prestigeButtonText(): sometimes required. Use this to make the entirety of the text a Prestige button contains. Only required for custom layers, but usable by all types.

      • passiveGeneration(): optional, returns a regular number. You automatically generate your gain times this number every second (does nothing if absent) This is good for automating Normal layers.

      • autoPrestige(): optional, returns a boolean, if true, the layer will always automatically do a prestige if it can. This is good for automating Static layers.

      Tree/node features

      • symbol: optional. The text that appears on this layer's node. Default is the layer id with the first letter capitalized.

      • image: override. The url (local or global) of an image that goes on the node. (Overrides symbol)

      • position: optional. Determines the horizontal position of the layer in its row in a standard tree. By default, it uses the layer id, and layers are sorted in alphabetical order.

      • branches: optional. An array of layer/node ids. On a tree, a line will appear from this layer to all of the layers in the list. Alternatively, an entry in the array can be a 2-element array consisting of the layer id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors).

      • nodeStyle: optional. A CSS object, where the keys are CSS attributes, which styles this layer's node on the tree.

      • tooltip() / tooltipLocked(): optional. Functions that return text, which is the tooltip for the node when the layer is unlocked or locked, respectively. By default the tooltips behave the same as in the original Prestige Tree. If the value is "", the tooltip will be disabled.

      • marked: optional Adds a mark to the corner of the node. If it's "true" it will be a star, but it can also be an image URL.

      Other features

      • doReset(resettingLayer): optional. Is triggered when a layer on a row greater than or equal to this one does a reset. The default behavior is to reset everything on the row, but only if it was triggered by a layer in a higher row. doReset is always called for side layers, but for these the default behavior is to reset nothing.

        If you want to keep things, determine what to keep based on resettingLayer, milestones, and such, then call layerDataReset(layer, keep), where layer is this layer, and keep is an array of the names of things to keep. It can include things like "points", "best", "total" (for this layer's prestige currency), "upgrades", any unique variables like "generatorPower", etc. If you want to only keep specific upgrades or something like that, save them in a separate variable, then call layerDataReset, and then set player[this.layer].upgrades to the saved upgrades.

      • update(diff): optional. This function is called every game tick. Use it for any passive resource production or time-based things. diff is the time since the last tick.

      • autoUpgrade: optional, a boolean value, if true, the game will attempt to buy this layer's upgrades every tick. Defaults to false.

      • automate(): optional. This function is called every game tick, after production. Use it to activate automation things that aren't otherwise supported.

      • resetsNothing: optional. Returns true if this layer shouldn't trigger any resets when you prestige.

      • increaseUnlockOrder: optional. An array of layer ids. When this layer is unlocked for the first time, the unlockOrder value for any not-yet-unlocked layers in this list increases. This can be used to make them harder to unlock.

      • shouldNotify: optional. A function to return true if this layer should be highlighted in the tree. The layer will automatically be highlighted if you can buy an upgrade whether you have this or not.

      • glowColor: optional. The color that this layer will be highlighted if it should notify. The default is red. You can use this if you want several different notification types!

      • componentStyles: optional. An object that contains a set of functions returning CSS objects. Each of these will be applied to any components on the layer with the type of its id. Example:

      js
      componentStyles: {
           "challenge"() { return {'height': '200px'} },
           "prestige-button"() { return {'color': '#AA66AA'} }
      -}
      • deactivated: optional, if this is true, hasUpgrade, hasChallenge, hasAchievement, and hasMilestone will return false for things in the layer, and you will be unable to buy or click things on the layer. You will have to disable effects of buyables, the innate layer effect, and possibly other things yourself.

      Custom Prestige type

      (All of these can also be used by other prestige types)

      • getResetGain(): mostly for custom prestige type. Returns how many points you should get if you reset now. You can call getResetGain(this.layer, useType = "static") or similar to calculate what your gain would be under another prestige type (provided you have all of the required features in the layer).

      • getNextAt(canMax=false): mostly for custom prestige type. Returns how many of the base currency you need to get to the next point. canMax is an optional variable used with Static-ish layers to differentiate between if it's looking for the first point you can reset at, or the requirement for any gain at all (Supporting both is good). You can also call getNextAt(this.layer, canMax=false, useType = "static") or similar to calculate what your next at would be under another prestige type (provided you have all of the required features in the layer).

      • canReset(): mostly for custom prestige type. Return true only if you have the resources required to do a prestige here.

      • prestigeNotify(): mostly for custom prestige types, returns true if this layer should be subtly highlighted to indicate you can prestige for a meaningful gain.

      Any and all opinions listed here are my own and not representative of my employers; future, past and present.
      Resume (not actively seeking new opportunities).
      Site built from this commit on .
      - +}
      • deactivated: optional, if this is true, hasUpgrade, hasChallenge, hasAchievement, and hasMilestone will return false for things in the layer, and you will be unable to buy or click things on the layer. You will have to disable effects of buyables, the innate layer effect, and possibly other things yourself.

      Custom Prestige type

      (All of these can also be used by other prestige types)

      • getResetGain(): mostly for custom prestige type. Returns how many points you should get if you reset now. You can call getResetGain(this.layer, useType = "static") or similar to calculate what your gain would be under another prestige type (provided you have all of the required features in the layer).

      • getNextAt(canMax=false): mostly for custom prestige type. Returns how many of the base currency you need to get to the next point. canMax is an optional variable used with Static-ish layers to differentiate between if it's looking for the first point you can reset at, or the requirement for any gain at all (Supporting both is good). You can also call getNextAt(this.layer, canMax=false, useType = "static") or similar to calculate what your next at would be under another prestige type (provided you have all of the required features in the layer).

      • canReset(): mostly for custom prestige type. Return true only if you have the resources required to do a prestige here.

      • prestigeNotify(): mostly for custom prestige types, returns true if this layer should be subtly highlighted to indicate you can prestige for a meaningful gain.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/main-mod-info.html b/public/kronos/docs/main-mod-info.html index 5284714a..5f114ca3 100644 --- a/public/kronos/docs/main-mod-info.html +++ b/public/kronos/docs/main-mod-info.html @@ -6,12 +6,12 @@ mod.js | The Paper Pilot - + - + - + @@ -34,12 +34,12 @@ -
    Skip to content

    mod.js

    Most of the non-layer code and data that you're likely to edit is here in mod.js. Everything in mod.js will not be altered by updates, besides the addition of new things.

    Here's a breakdown of what's in it:

    • modInfo is where most of the basic configuration for the mod is. It contains:

      • name: The name of your mod. (a string)

      • id: The id for your mod, a unique string that is used to determine savefile location. Be sure to set it when you start making a mod, and don't change it later because it will erase all saves.

      • author: The name of the author, displayed in the info tab.

      • pointsName: This changes what is displayed instead of "points" for the main currency. (It does not affect it in the code.)

      • discordName, discordLink: If you have a Discord server or other discussion place, you can add a link to it.

        "discordName" is the text on the link, and "discordLink" is the url of an invite. If you're using a Discord invite, please make sure it's set to never expire.

      • offlineLimit: The maximum amount of offline time that the player can accumulate, in hours. Any extra time is lost. (a number)

        This is useful because most of these mods are fast-paced enough that too much offline time ruins the balance, such as the time in between updates. That is why I suggest developers disable offline time on their own savefile.

      • initialStartPoints: A Decimal for the amount of points a new player should start with.

    • VERSION is used to describe the current version of your mod. It contains:

      • num: The mod's version number, displayed at the top right of the tree tab.
      • name: The version's name, displayed alongside the number in the info tab.
    • changelog is the HTML displayed in the changelog tab. If this gets particularly long, it might be good to put in a separate file (be sure to add the file to index.html)

    • doNotCallTheseFunctionsEveryTick is very important, if you are adding non-standard functions. TMT calls every function anywhere in "layers" every tick to store the result, unless specifically told not to. Functions that have are used to do an action need to be identified. "Official" functions (those in the documentation) are all fine, but if you make any new ones, add their names to this array.

    js
    // (The ones here are examples, all official functions are already taken care of)
    +    
    Skip to content

    mod.js

    Most of the non-layer code and data that you're likely to edit is here in mod.js. Everything in mod.js will not be altered by updates, besides the addition of new things.

    Here's a breakdown of what's in it:

    • modInfo is where most of the basic configuration for the mod is. It contains:

      • name: The name of your mod. (a string)

      • id: The id for your mod, a unique string that is used to determine savefile location. Be sure to set it when you start making a mod, and don't change it later because it will erase all saves.

      • author: The name of the author, displayed in the info tab.

      • pointsName: This changes what is displayed instead of "points" for the main currency. (It does not affect it in the code.)

      • discordName, discordLink: If you have a Discord server or other discussion place, you can add a link to it.

        "discordName" is the text on the link, and "discordLink" is the url of an invite. If you're using a Discord invite, please make sure it's set to never expire.

      • offlineLimit: The maximum amount of offline time that the player can accumulate, in hours. Any extra time is lost. (a number)

        This is useful because most of these mods are fast-paced enough that too much offline time ruins the balance, such as the time in between updates. That is why I suggest developers disable offline time on their own savefile.

      • initialStartPoints: A Decimal for the amount of points a new player should start with.

    • VERSION is used to describe the current version of your mod. It contains:

      • num: The mod's version number, displayed at the top right of the tree tab.
      • name: The version's name, displayed alongside the number in the info tab.
    • changelog is the HTML displayed in the changelog tab. If this gets particularly long, it might be good to put in a separate file (be sure to add the file to index.html)

    • doNotCallTheseFunctionsEveryTick is very important, if you are adding non-standard functions. TMT calls every function anywhere in "layers" every tick to store the result, unless specifically told not to. Functions that have are used to do an action need to be identified. "Official" functions (those in the documentation) are all fine, but if you make any new ones, add their names to this array.

    js
    // (The ones here are examples, all official functions are already taken care of)
     var doNotCallTheseFunctionsEveryTick = ["doReset", "buy", "onPurchase", "blowUpEverything"]
    • getStartPoints(): A function to determine the amount of points the player starts with after a reset. (returns a Decimal value)

    • canGenPoints(): A function returning a boolean for if points should be generated. Use this if you want an upgrade to unlock generating points.

    • getPointGen(): A function that calculates your points per second. Anything that affects your point gain should go into the calculation here.

    • addedPlayerData(): A function that returns any non-layer-related data that you want to be added to the save data and "player" object.

    js
    function addedPlayerData() { return {
     	weather: "Yes",
     	happiness: new Decimal(72),
    -}}
    • displayThings: An array of functions used to display extra things at the top of the tree tab. Each function returns a string, which is a line to display (with basic HTML support). If a function returns nothing, nothing is displayed (and it doesn't take up a line).

    • isEndgame(): A function to determine if the player has reached the end of the game, at which point the "you win!" screen appears.

    Less important things beyond this point!

    • maxTickLength(): Returns the maximum tick length, in milliseconds. Only really useful if you have something that reduces over time, which long ticks mess up (usually a challenge).

    • fixOldSave(): Can be used to modify a save file when loading into a new version of the game. Use this to undo inflation, never forcibly hard reset your players.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}}
    • displayThings: An array of functions used to display extra things at the top of the tree tab. Each function returns a string, which is a line to display (with basic HTML support). If a function returns nothing, nothing is displayed (and it doesn't take up a line).

    • isEndgame(): A function to determine if the player has reached the end of the game, at which point the "you win!" screen appears.

    Less important things beyond this point!

    • maxTickLength(): Returns the maximum tick length, in milliseconds. Only really useful if you have something that reduces over time, which long ticks mess up (usually a challenge).

    • fixOldSave(): Can be used to modify a save file when loading into a new version of the game. Use this to undo inflation, never forcibly hard reset your players.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/milestones.html b/public/kronos/docs/milestones.html index d70ef802..1ca61e11 100644 --- a/public/kronos/docs/milestones.html +++ b/public/kronos/docs/milestones.html @@ -6,12 +6,12 @@ Milestones | The Paper Pilot - + - + - + @@ -34,15 +34,15 @@ -
    Skip to content

    Milestones

    Milestones are awarded to the player when they meet a certain goal, and give some benefit. Milestones should be formatted like this:

    js
    milestones: {
    +    
    Skip to content

    Milestones

    Milestones are awarded to the player when they meet a certain goal, and give some benefit. Milestones should be formatted like this:

    js
    milestones: {
         0: {
             requirementDescription: "123 waffles",
             effectDescription: "blah",
             done() { return player.w.points.gte(123) }
         }
         etc
    -}

    You can use hasMilestone(layer, id) to determine if the player has a given milestone

    Milestone features:

    • requirementDescription: A string describing the requirement for unlocking this milestone. Suggestion: Use a "total". It can also be a function that returns updating text. Can use basic HTML.

    • effectDescription: A string describing the reward for having the milestone. You will have to implement the reward elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the milestone should be awarded.

    • toggles: optional. Creates toggle buttons that appear on the milestone when it is unlocked. The toggles can toggle a given boolean value in a layer. It is defined as an array of paired items, one pair per toggle. The first is the internal name of the layer the value being toggled is stored in, and the second is the internal name of the variable to toggle. (e.g. [["b", "auto"], ["g", "auto"])

      Tip: Toggles are not de-set if the milestone becomes locked! In this case, you should also check if the player has the milestone.

    • style: optional. Applies CSS to this milestone, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a boolean to determine if the milestone should be shown. If absent, it is always shown.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the milestone was stored under, for convenient access. The milestone in the example's id is 0.

    Disaable milestone popups by adding milestonePopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    You can use hasMilestone(layer, id) to determine if the player has a given milestone

    Milestone features:

    • requirementDescription: A string describing the requirement for unlocking this milestone. Suggestion: Use a "total". It can also be a function that returns updating text. Can use basic HTML.

    • effectDescription: A string describing the reward for having the milestone. You will have to implement the reward elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the milestone should be awarded.

    • toggles: optional. Creates toggle buttons that appear on the milestone when it is unlocked. The toggles can toggle a given boolean value in a layer. It is defined as an array of paired items, one pair per toggle. The first is the internal name of the layer the value being toggled is stored in, and the second is the internal name of the variable to toggle. (e.g. [["b", "auto"], ["g", "auto"])

      Tip: Toggles are not de-set if the milestone becomes locked! In this case, you should also check if the player has the milestone.

    • style: optional. Applies CSS to this milestone, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a boolean to determine if the milestone should be shown. If absent, it is always shown.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the milestone was stored under, for convenient access. The milestone in the example's id is 0.

    Disaable milestone popups by adding milestonePopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/particles.html b/public/kronos/docs/particles.html index d2d9a09d..62721f26 100644 --- a/public/kronos/docs/particles.html +++ b/public/kronos/docs/particles.html @@ -6,12 +6,12 @@ Particles | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Particles

    Particles are free-floating elements that can move and have many different behaviors. They can also interact with the mouse.

    To make particles, use makeParticles(particle, amount). particle is a particle-defining object, with features as explained below. There is also makeShinies, which uses different defaults and creates stationary particles at a random location. There are also a few other useful things listed at the end.

    js
    
    +    
    Skip to content

    Particles

    Particles are free-floating elements that can move and have many different behaviors. They can also interact with the mouse.

    To make particles, use makeParticles(particle, amount). particle is a particle-defining object, with features as explained below. There is also makeShinies, which uses different defaults and creates stationary particles at a random location. There are also a few other useful things listed at the end.

    js
    
     const myParticle {
         image:"options_wheel.png",
         spread: 20,
    @@ -44,8 +44,8 @@
             return (Math.random() + 1.2) * 8 
         },
         etc...
    -}

    Features can be functions or constant. These features will be called when each particle is made, with an id argument, which is assigned based on which of the amount particles being spawned this is. All of these are optional, with a default value.

    All distances are in pixels and angles are in degrees, with 0 being up and going clockwise.

    • time: The amount of time, in seconds, that the particle will last. Default is 3.

    • fadeOutTime: The amount of seconds that fading out at the end should take (part of the total lifetime). Default is 1.

    • fadeInTime: The amount of seconds that fading in should take (part of the total lifetime). Default is 0.

    • image: The image the particle should display. "" will display no image. Default is a generic particle.

    • text: Displays text on the particle. Can use basic HTML.

    • style: Lets you apply other CSS styling to the particle.

    • width, height: The dimensions of the particle. Default is 35 and 35.

    • color: Sets the color of the image to this color.

    • angle: The angle that the particle should face. Default is 0.

    • dir: The initial angle that the particles should move in, before spread is factored in. Default is whatever angle is.

    • spread: If there are several particles, they will be spread out by this many degrees, centered on dir. Default is 30.

    • rotation: The amount that the (visual) angle of the particle should change by. Default is 0.

    • speed: The starting speed of the particle. Default is 15.

    • gravity: The amount the particle should accelerate downwards. Default is 0.

    • x, y: The starting coordinates of the particle. Default is at the mouse position.

    • offset: How far from the start each particle should appear. Default is 10.

    • xVel, yVel: Set initially based on other properties, then used to update movement.

    • layer: When changing tabs, if leaving the layer tab, this particle will be erased.

    • You can add other features to particles, but you must impliment their effects yourself.

    Function features: These stay as functions and are for more advanced things. They are optional.

    • update(): Called each tick. Lets you do more advanced visual and movement behaviors by changing other properties.
    • onClick(), onMouseOver(), onMouseLeave(): Called when the particle is interacted with.

    Other useful things that are not features of the particle object:

    • setDir(particle, dir), setSpeed(particle, speed): Set the speed/direction on a particle.
    • clearParticles(check): Function to delete particles. With no check, it deletes all particles. Check is a function that takes a particle, and returns true if that particle should be deleted.
    • You can use Vue.delete(particles, this.id) to make a particle delete itself.
    • mouseX and mouseY are variables that track the mouse position.
    • sin(x), cos(x), tan(x): functions that do these operations, with x in degrees. (Instead of radians).
    • asin(x), acos(x), atan(x): functions that do these operations, with the returned value in degrees. (instead of radians).
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features can be functions or constant. These features will be called when each particle is made, with an id argument, which is assigned based on which of the amount particles being spawned this is. All of these are optional, with a default value.

    All distances are in pixels and angles are in degrees, with 0 being up and going clockwise.

    • time: The amount of time, in seconds, that the particle will last. Default is 3.

    • fadeOutTime: The amount of seconds that fading out at the end should take (part of the total lifetime). Default is 1.

    • fadeInTime: The amount of seconds that fading in should take (part of the total lifetime). Default is 0.

    • image: The image the particle should display. "" will display no image. Default is a generic particle.

    • text: Displays text on the particle. Can use basic HTML.

    • style: Lets you apply other CSS styling to the particle.

    • width, height: The dimensions of the particle. Default is 35 and 35.

    • color: Sets the color of the image to this color.

    • angle: The angle that the particle should face. Default is 0.

    • dir: The initial angle that the particles should move in, before spread is factored in. Default is whatever angle is.

    • spread: If there are several particles, they will be spread out by this many degrees, centered on dir. Default is 30.

    • rotation: The amount that the (visual) angle of the particle should change by. Default is 0.

    • speed: The starting speed of the particle. Default is 15.

    • gravity: The amount the particle should accelerate downwards. Default is 0.

    • x, y: The starting coordinates of the particle. Default is at the mouse position.

    • offset: How far from the start each particle should appear. Default is 10.

    • xVel, yVel: Set initially based on other properties, then used to update movement.

    • layer: When changing tabs, if leaving the layer tab, this particle will be erased.

    • You can add other features to particles, but you must impliment their effects yourself.

    Function features: These stay as functions and are for more advanced things. They are optional.

    • update(): Called each tick. Lets you do more advanced visual and movement behaviors by changing other properties.
    • onClick(), onMouseOver(), onMouseLeave(): Called when the particle is interacted with.

    Other useful things that are not features of the particle object:

    • setDir(particle, dir), setSpeed(particle, speed): Set the speed/direction on a particle.
    • clearParticles(check): Function to delete particles. With no check, it deletes all particles. Check is a function that takes a particle, and returns true if that particle should be deleted.
    • You can use Vue.delete(particles, this.id) to make a particle delete itself.
    • mouseX and mouseY are variables that track the mouse position.
    • sin(x), cos(x), tan(x): functions that do these operations, with x in degrees. (Instead of radians).
    • asin(x), acos(x), atan(x): functions that do these operations, with the returned value in degrees. (instead of radians).
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/subtabs-and-microtabs.html b/public/kronos/docs/subtabs-and-microtabs.html index 2c9d3973..257a7c31 100644 --- a/public/kronos/docs/subtabs-and-microtabs.html +++ b/public/kronos/docs/subtabs-and-microtabs.html @@ -6,12 +6,12 @@ Subtabs and Microtabs | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Subtabs and Microtabs

    Subtabs are separate sections of a tab that you can view by selecting one at the top of the tab. Microtabs are smaller areas that function in much the same way. You can also embed layers inside of subtabs/microtabs.

    Subtabs are defined by using the tab format like this, where each element of tabFormat is given the name of that subtab:

    js
    tabFormat: {
    +    
    Skip to content

    Subtabs and Microtabs

    Subtabs are separate sections of a tab that you can view by selecting one at the top of the tab. Microtabs are smaller areas that function in much the same way. You can also embed layers inside of subtabs/microtabs.

    Subtabs are defined by using the tab format like this, where each element of tabFormat is given the name of that subtab:

    js
    tabFormat: {
         "Main tab": {
             content: [tab format things],
             *subtab features*
    @@ -58,8 +58,8 @@
         otherStuff: {
             // There could be another set of microtabs here
         }
    -}

    Normal subtabs and microtab subtabs both use the same features:

    Features:

    • content: The tab layout code for the subtab, in the tab layout format.

    • style: optional. Applies CSS to the whole subtab when switched to, in the form of an "CSS Object", where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • buttonStyle: optional. A CSS object, which affects the appearance of the button for that subtab.

    • unlocked(): optional. a function to determine if the button for this subtab should be visible. By default, a subtab is always unlocked. You can't use the "this" keyword in this function.

    • shouldNotify()/prestigeNotify(): optional, if true, the tab button will be highlighted to notify the player that there is something there.

    • glowColor: optional, specifies the color that the subtab glows. If this subtab is causing the main layer to node glow (and it would't otherwise) the node also glows this color. Is NOT overridden by embedding a layer.

    • embedLayer: SIGNIFICANT, the id of another layer. If you have this, it will override "content", "style" and "shouldNotify", instead displaying the entire layer in the subtab.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Normal subtabs and microtab subtabs both use the same features:

    Features:

    • content: The tab layout code for the subtab, in the tab layout format.

    • style: optional. Applies CSS to the whole subtab when switched to, in the form of an "CSS Object", where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • buttonStyle: optional. A CSS object, which affects the appearance of the button for that subtab.

    • unlocked(): optional. a function to determine if the button for this subtab should be visible. By default, a subtab is always unlocked. You can't use the "this" keyword in this function.

    • shouldNotify()/prestigeNotify(): optional, if true, the tab button will be highlighted to notify the player that there is something there.

    • glowColor: optional, specifies the color that the subtab glows. If this subtab is causing the main layer to node glow (and it would't otherwise) the node also glows this color. Is NOT overridden by embedding a layer.

    • embedLayer: SIGNIFICANT, the id of another layer. If you have this, it will override "content", "style" and "shouldNotify", instead displaying the entire layer in the subtab.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/trees-and-tree-customization.html b/public/kronos/docs/trees-and-tree-customization.html index 1836b5f3..fadd2ae2 100644 --- a/public/kronos/docs/trees-and-tree-customization.html +++ b/public/kronos/docs/trees-and-tree-customization.html @@ -6,12 +6,12 @@ Trees and tree customization | The Paper Pilot - + - + - + @@ -34,10 +34,10 @@ -
    Skip to content

    Trees and tree customization

    If you want to have something beyond the standard tree on the left tab, you can do that in tree.js. You can change the layout of the tree, including making non-layer nodes, change it into something other than a tree, or hide the left tab altogether. This also introduces the "tree" component, which can be used in your layers as well.

    layoutInfo

    The most important part is layoutInfo, containing:

    • startTab: The id of the default tab to show on the left at the start.
    • showTree: True if the tree tab should be shown at the start of the game. (The other tab will fill the whole page)
    • treeLayout: If present, overrides the tree layout and places nodes as you describe instead (explained in the next section).

    Additionally, if you want the main layout to not be a tree, you can edit the "tree-tab" layer at the bottom of tree.js to modify it just like a normal layer's tab. You can even switch between left tabs, using showNavTab(layer) to make that layer appear on the left.

    Trees

    The tree component is defined as an array of arrays of names of layers or nodes to show in the tree. They work just like layers/ nodes in the main tree (but branches between nodes will only work on the first node if you have duplicates.)

    Here is an example tree:

    js
    [["p"],
    +    
    Skip to content

    Trees and tree customization

    If you want to have something beyond the standard tree on the left tab, you can do that in tree.js. You can change the layout of the tree, including making non-layer nodes, change it into something other than a tree, or hide the left tab altogether. This also introduces the "tree" component, which can be used in your layers as well.

    layoutInfo

    The most important part is layoutInfo, containing:

    • startTab: The id of the default tab to show on the left at the start.
    • showTree: True if the tree tab should be shown at the start of the game. (The other tab will fill the whole page)
    • treeLayout: If present, overrides the tree layout and places nodes as you describe instead (explained in the next section).

    Additionally, if you want the main layout to not be a tree, you can edit the "tree-tab" layer at the bottom of tree.js to modify it just like a normal layer's tab. You can even switch between left tabs, using showNavTab(layer) to make that layer appear on the left.

    Trees

    The tree component is defined as an array of arrays of names of layers or nodes to show in the tree. They work just like layers/ nodes in the main tree (but branches between nodes will only work on the first node if you have duplicates.)

    Here is an example tree:

    js
    [["p"],
      ["left", "blank", "right", "blank"]
    - ["a", "b", "blank", "c", "weirdButton"]]

    Nodes

    Nodes are non-layer buttons that can go in trees. They are defined similarly to layers, but with addNode instead of addLayer.

    Features:

    • color: optional, The node's color. (A string in hex format with a #)

    • symbol: optional The text on the button (The id capitalized by default)

    • canClick(): Returns true if the player can click the node. ()

    • onClick(): The function called when the node is clicked.

    • layerShown(): optional, A function returning a bool which determines if this node should be visible. It can also return "ghost", which will hide the layer, but its node will still take up space in its tree.

    • branches: optional. An array of layer/node ids. On a tree, a line will appear from this node to all of the nodes in the list. Alternatively, an entry in the array can be a 2-element array consisting of the id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors).

    • nodeStyle: optional. A CSS object, where the keys are CSS attributes, which styles this node on the tree.

    • tooltip() / tooltipLocked(): optional. Functions that return text, which is the tooltip for the node when the layer is unlocked or locked, respectively. By default the tooltips behave the same as in the original Prestige Tree.

    • row: optional, the row that this node appears in (for the default tree).

    • position: optional, Determines the horizontal position of the layer in its row in a default tree. By default, it uses the id, and layers/nodes are sorted in alphabetical order.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - + ["a", "b", "blank", "c", "weirdButton"]]

    Nodes

    Nodes are non-layer buttons that can go in trees. They are defined similarly to layers, but with addNode instead of addLayer.

    Features:

    • color: optional, The node's color. (A string in hex format with a #)

    • symbol: optional The text on the button (The id capitalized by default)

    • canClick(): Returns true if the player can click the node. ()

    • onClick(): The function called when the node is clicked.

    • layerShown(): optional, A function returning a bool which determines if this node should be visible. It can also return "ghost", which will hide the layer, but its node will still take up space in its tree.

    • branches: optional. An array of layer/node ids. On a tree, a line will appear from this node to all of the nodes in the list. Alternatively, an entry in the array can be a 2-element array consisting of the id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors).

    • nodeStyle: optional. A CSS object, where the keys are CSS attributes, which styles this node on the tree.

    • tooltip() / tooltipLocked(): optional. Functions that return text, which is the tooltip for the node when the layer is unlocked or locked, respectively. By default the tooltips behave the same as in the original Prestige Tree.

    • row: optional, the row that this node appears in (for the default tree).

    • position: optional, Determines the horizontal position of the layer in its row in a default tree. By default, it uses the id, and layers/nodes are sorted in alphabetical order.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/updating-tmt.html b/public/kronos/docs/updating-tmt.html index a7c1ddd8..736f1f28 100644 --- a/public/kronos/docs/updating-tmt.html +++ b/public/kronos/docs/updating-tmt.html @@ -6,12 +6,12 @@ Updating The Modding Tree | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    Updating The Modding Tree

    This tutorial assumes that you have used the Getting Started Tutorial, and are using Github Desktop and VSCode for your mod.

    Here's what you have to do when there's a TMT update:

    1. Look at the changelog. It will warn you if the update will break anything or require any changes. Decide if you want to try to update.

    2. Open Github Desktop, and at the top middle, click "fetch origin". This will make Github Desktop get information about the update.

    3. Click where it says "current branch: master" at the top middle, and at the bottom of the thing that appears, click "choose a branch to merge into master".

    4. Select upstream/master. It will likely say there are conflicts, but you have tools to resolve them. Click "Merge upstream/master into master".

    5. A conflict happens when the things you're trying to merge have both made changes in the same place. Click "open in Visual Studio Code" next to the first file.

    6. Scroll down through the file, and look for the parts highlighted in red and green. One of these is your code, and the other is some code that will be modified by the update. Do your best to try to edit things to keep the updated changes, but keep your content.

    7. Continue to do this for all remaining changes.

    8. Do any other changes required by the update, run the game, fix issues, etc.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    Updating The Modding Tree

    This tutorial assumes that you have used the Getting Started Tutorial, and are using Github Desktop and VSCode for your mod.

    Here's what you have to do when there's a TMT update:

    1. Look at the changelog. It will warn you if the update will break anything or require any changes. Decide if you want to try to update.

    2. Open Github Desktop, and at the top middle, click "fetch origin". This will make Github Desktop get information about the update.

    3. Click where it says "current branch: master" at the top middle, and at the bottom of the thing that appears, click "choose a branch to merge into master".

    4. Select upstream/master. It will likely say there are conflicts, but you have tools to resolve them. Click "Merge upstream/master into master".

    5. A conflict happens when the things you're trying to merge have both made changes in the same place. Click "open in Visual Studio Code" next to the first file.

    6. Scroll down through the file, and look for the parts highlighted in red and green. One of these is your code, and the other is some code that will be modified by the update. Do your best to try to edit things to keep the updated changes, but keep your content.

    7. Continue to do this for all remaining changes.

    8. Do any other changes required by the update, run the game, fix issues, etc.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/kronos/docs/upgrades.html b/public/kronos/docs/upgrades.html index 51715e1a..c854e401 100644 --- a/public/kronos/docs/upgrades.html +++ b/public/kronos/docs/upgrades.html @@ -6,12 +6,12 @@ Upgrades | The Paper Pilot - + - + - + @@ -34,15 +34,15 @@ -
    Skip to content

    Upgrades

    Useful functions for dealing with Upgrades and implementing their effects:

    • hasUpgrade(layer, id): determine if the player has the upgrade
    • upgradeEffect(layer, id): Returns the current effects of the upgrade, if any
    • buyUpgrade(layer, id): Buys an upgrade directly (if affordable)

    Hint: Basic point gain is calculated in mod.js's "getPointGen" function.

    Upgrades are stored in the following format:

    js
    upgrades: {
    +    
    Skip to content

    Upgrades

    Useful functions for dealing with Upgrades and implementing their effects:

    • hasUpgrade(layer, id): determine if the player has the upgrade
    • upgradeEffect(layer, id): Returns the current effects of the upgrade, if any
    • buyUpgrade(layer, id): Buys an upgrade directly (if affordable)

    Hint: Basic point gain is calculated in mod.js's "getPointGen" function.

    Upgrades are stored in the following format:

    js
    upgrades: {
         11: {
             description: "Blah",
             cost: new Decimal(100),
             etc
         },
         etc
    -}

    Usually, upgrades should have an id where the first digit is the row and the second digit is the column.

    Individual upgrades can have these features:

    • title: optional. Displayed at the top in a larger font. It can also be a function that returns updating text. Can use basic HTML.

    • description: A description of the upgrade's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the upgrade. Can return a value or an object containing multiple values.

    • effectDisplay(): optional. A function that returns a display of the current effects of the upgrade with formatting. Default displays nothing. Can use basic HTML.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the upgrade. Can use basic HTML.

    • cost: A Decimal for the cost of the upgrade. By default, upgrades cost the main prestige currency for the layer.

    • unlocked(): optional. A function returning a bool to determine if the upgrade is visible or not. Default is unlocked.

    • onPurchase(): optional. This function will be called when the upgrade is purchased. Good for upgrades like "makes this layer act like it was unlocked first".

    • style: optional. Applies CSS to this upgrade, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the upgrade was stored under, for convenient access. The upgrade in the example's id is 11.

    By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

    • currencyDisplayName: optional. The name to display for the currency for the upgrade.

    • currencyInternalName: optional. The internal name for that currency.

    • currencyLayer: optional. The internal name of the layer that currency is stored in. If it's not in a layer (like Points), omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation: optional. If your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    If you want to do something more complicated like upgrades that cost two currencies, you can override the purchase system with these (and you need to use fullDisplay as well)

    • canAfford(): OVERRIDE, a function determining if you are able to buy the upgrade

    • pay(): OVERRIDE, a function that reduces your currencies when you buy the upgrade

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Usually, upgrades should have an id where the first digit is the row and the second digit is the column.

    Individual upgrades can have these features:

    • title: optional. Displayed at the top in a larger font. It can also be a function that returns updating text. Can use basic HTML.

    • description: A description of the upgrade's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the upgrade. Can return a value or an object containing multiple values.

    • effectDisplay(): optional. A function that returns a display of the current effects of the upgrade with formatting. Default displays nothing. Can use basic HTML.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the upgrade. Can use basic HTML.

    • cost: A Decimal for the cost of the upgrade. By default, upgrades cost the main prestige currency for the layer.

    • unlocked(): optional. A function returning a bool to determine if the upgrade is visible or not. Default is unlocked.

    • onPurchase(): optional. This function will be called when the upgrade is purchased. Good for upgrades like "makes this layer act like it was unlocked first".

    • style: optional. Applies CSS to this upgrade, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the upgrade was stored under, for convenient access. The upgrade in the example's id is 11.

    By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

    • currencyDisplayName: optional. The name to display for the currency for the upgrade.

    • currencyInternalName: optional. The internal name for that currency.

    • currencyLayer: optional. The internal name of the layer that currency is stored in. If it's not in a layer (like Points), omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation: optional. If your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    If you want to do something more complicated like upgrades that cost two currencies, you can override the purchase system with these (and you need to use fullDisplay as well)

    • canAfford(): OVERRIDE, a function determining if you are able to buy the upgrade

    • pay(): OVERRIDE, a function that reduces your currencies when you buy the upgrade

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/Old Things/2.0-format-changes.html b/public/lit/Old Things/2.0-format-changes.html index 5765b110..b5d174b1 100644 --- a/public/lit/Old Things/2.0-format-changes.html +++ b/public/lit/Old Things/2.0-format-changes.html @@ -6,12 +6,12 @@ 2.0 format changes | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    2.0 format changes

    • Temp format is changed from temp.something[layer] to temp[layer].something, for consistency
    • Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.)
    • effectDisplay in Challenges and Upgrades no longer takes an argument, and neither does effect for Buyables
    • Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase).
    • Generation of Points now happens in the main game loop (not in a layer update function), enabled by canGenPoints in game.js.
    • Changed fullLayerReset to layerDataReset, which takes an array of names of values to keep

    In addition, many names were changed, mostly expanding abbreviations:

    All instances of:

    • chall -> challenge
    • unl -> unlocked
    • upg -> upgrade (besides CSS)
    • amt -> amount
    • desc -> description
    • resCeil -> roundUpCost
    • order -> unlockOrder
    • incr_order -> increaseUnlockOrder

    Challenges:

    • desc -> challengeDescription
    • reward -> rewardDescription
    • effect -> rewardEffect
    • effectDisplay -> rewardDisplay
    • active -> challengeActive
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    2.0 format changes

    • Temp format is changed from temp.something[layer] to temp[layer].something, for consistency
    • Challenges are now saved as an object with the amount of completions in each spot. (This will break saves.)
    • effectDisplay in Challenges and Upgrades no longer takes an argument, and neither does effect for Buyables
    • Buyable cost can take an argument for amount of buyables, but it needs to function if no argument is supplied (it should do the cost for the next purchase).
    • Generation of Points now happens in the main game loop (not in a layer update function), enabled by canGenPoints in game.js.
    • Changed fullLayerReset to layerDataReset, which takes an array of names of values to keep

    In addition, many names were changed, mostly expanding abbreviations:

    All instances of:

    • chall -> challenge
    • unl -> unlocked
    • upg -> upgrade (besides CSS)
    • amt -> amount
    • desc -> description
    • resCeil -> roundUpCost
    • order -> unlockOrder
    • incr_order -> increaseUnlockOrder

    Challenges:

    • desc -> challengeDescription
    • reward -> rewardDescription
    • effect -> rewardEffect
    • effectDisplay -> rewardDisplay
    • active -> challengeActive
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/README.html b/public/lit/README.html index 37a568fc..9fbc33ed 100644 --- a/public/lit/README.html +++ b/public/lit/README.html @@ -6,12 +6,12 @@ Kronos | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    Kronos

    Play here.

    Updating the website:

    • git submodule update --remote
    • git add -A
    • git commit -m "Updated kronos"
    • git push
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    Kronos

    Play here.

    Updating the website:

    • git submodule update --remote
    • git add -A
    • git commit -m "Updated kronos"
    • git push
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/changelog.html b/public/lit/changelog.html index b46ebe53..49fe8ab0 100644 --- a/public/lit/changelog.html +++ b/public/lit/changelog.html @@ -6,12 +6,12 @@ The Modding Tree changelog: | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    The Modding Tree changelog:

    v2.π: Incrementally Updated - 2/5/21

    • Performance improvements.
    • Fixed tooltips overlapping with the top display.
    • Clicking a popup dismisses it immediately.
    • Added support for bulk challenge completions.
    • "Best" is updated automatically.
    • Fixed keeping Decimal values on reset.
    • Code reorganization and style improvements by fudo.

    v2.3.5 - 12/21/20

    • Added resetTime, which tracks the time since a layer prestiged or was reset.
    • A layer node will be highlighted red if one of its subtabs is highlighted red.
    • Fixed issues with keeping challenges, buyables, and clickables on reset.
    • Improved the unlocking of custom layers.
    • Other minor fixes.

    v2.3.4 - 12/16/20

    • Added a node image feature.
    • Resource display now always shows the amount of the currency the layer's gain is based on.
    • Added spacing between tree nodes.
    • Another attempt to fix tooltip flickering.

    v2.3.3 - 12/13/20

    • Fixed the first node in a row always taking up space.
    • layerShown is now optional.
    • All prestige types can now use features for custom prestige types.

    v2.3.2 - 12/13/20

    • Fixed achievement/milestone popups.

    v2.3.1 - 12/12/20

    • Another attempt to fix flickering tooltips.
    • The "this" keyword should work everywhere except tabFormat arrays (although I may have missed some things).
    • Fixed tree branches not updating when scrolling on the right-side tab.
    • Fixed a spacing issue when a node's symbol is ""
    • Removed some old, unneeded files.

    v2.3: Cooler and Newer Edition - 12/10/20

    • Added achievement/milestone popups (thank you to Jacorb for this contribution!)
    • The changelog tab is back, and can be set in mod.js.
    • Layer nodes and respec buttons will not be clicked by pressing "enter".
    • Possible fix for flickering tooltips and strange transitions.
    • The victory screen text is configurable.
    • Added image and textStyle features to achievements.
    • Added an argument to use specific rows in an "upgrades" component.
    • Fixed the comma appearing in the main display when there was no effectDescription
    • Added the ability to easily make a tab that is a collection of layers in subtabs.
    • Improved spacing for embedding layers with subtabs into subtabs.

    v2.2.8 - 12/03/20

    • Double-clicking a layer node brings you to the main subtab for that layer.
    • Attempted to fix challenges visually updating a different way.
    • Added a softcap function for use in formulas.
    • Added displayRow feature, which lets layers be shown somewhere separate from where they are in the reset order (e.g. side layers)
    • Fixed autoupgrade issue.

    v2.2.7 - 11/30/20

    • Added autoUpgrade feature.
    • resource-display now shows resource gain per second if passiveGain is active.
    • Fixed formatting issues on some large numbers.
    • Better support for using classed objects in player and in layers/tmp.
    • Made hard resetting more effective.
    • Removed Herobrine from getStartClickables.

    v2.2.6 - 11/30/20

    • Added goalDescription for challenges and made the new "canComplete" system the standard.
    • Another attempt to fix challenges not visually updating.
    • Fixed side layers not appearing.
    • Fixed getStartClickables again.

    v2.2.5 - 11/29/20

    • Added features for overriding the displays and costs/goals of upgrades and challenges to make them fully custom.
    • best, total, and unlocked are always automatically added to layerData (but best and total will only display if you add them yourself).
    • Fixed getStartClickables.

    v2.2.4 - 11/28/20

    • Added softcap and softcapPower features (for Normal layers)
    • Offline time limit and default max tick length were fixed (previously the limits were 1000x too large)
    • Added fixOldSaves.
    • You can use HTML in main-display.
    • Fixed a number of minor oddities.

    v2.2.3 - 11/28/20

    • Layers will be highlighted if you can finish a challenge.
    • The "can complete challenge" color now overrides the "already completed" color.
    • Button nodes now work as side "layers".
    • Setting a tooltip to "" hides it entirely.

    v2.2.2 - 11/22/20

    • Fixed right half of the screen being unclickable in some circumstances.
    • Fixed tree branches being offset.
    • Fix to lastSafeTab.

    v2.2.1 - 11/7/20

    • Added a small highlight to layers you can meaningfully prestige on.
    • Added passiveGeneration and autoPrestige features to standardize prestige automation. (The old ways still work, but the new ones work better with other things)
    • Improved milestones visually a bit.
    • "best" and "total" are now only displayed if present in startData.
    • Fixed issues with things not updating visually. (Thank you to to Jacorb!)
    • Side layers and button nodes can now be highlighted.
    • Updated docs on the new tree-related features.

    v2.2: Uprooted - 11/7/20

    • You can now embed a layer inside of a subtab or microtab!
    • Added support for hiding or reformatting the tree tab
    • Added non-layer button nodes
    • Added shouldNotify to subtab/microtab buttons. (You can make them highlighted)
    • Added commas to large exponents.
    • Upgrades now only show "currently" if they have an effectDisplay (so not for constant effects).
    • Achievements are part of the default tab format.
    • NaN is now handled more intelligently.
    • Renamed files, and moved less relevant ones to another folder.
    • The "hide completed challenges" setting now only hides challenges at max completions.
    • Thank you to thepaperpilot for fixing errors in docs and improving the infobox appearance!
    • Many other minor fixes.

    v2.1.4 - 10/25/20

    • Added an infobox component. Thank you to thepaperpilot for this contribution!
    • Layer type is now optional, and defaults to "none".
    • Improved the look of bars and tab buttons.
    • Improved spacing between layer nodes (also thanks to thepaperpilot!)
    • Fixed the "blank" component breaking if only specifying the height.
    • Fixed some numbers not displaying with enough digits.
    • Made a few more things able to be functions.
    • A few other minor fixes.

    v2.1.3.1 - 10/21/20

    • Fixed the update function.

    v2.1.3 - 10/21/20

    • gainMult and gainExp are now optional.
    • Layer unlocking is now kept on reset.
    • Game should start up faster.
    • Layer updates now have a determined order and starts with earlier-rowed layers.
    • Automation now has a determined order and starts with later-rowed layers.
    • Fixed issues with resetting clickables and challenges.
    • Commas should no longer appear in the decimal places of a number.
    • Fixed potential issue in displaying the tree.

    v2.1.2 - 10/19/20

    • Added buyUpgrade function (buyUpg still works though)
    • Added author name to modInfo.
    • Fix to crash caused when the name of a subtab or microtab is changed.
    • Fixes to outdated information in docs.
    • Improvements to Discord links.
    • Thank you to thepaperpilot for contributing to this update!

    v2.1.1 - 10/17/20

    • Added resource-display component, which displays the base currency for the prestige layer, as well as the best and/or total of this layer's prestige currency.
    • Fixed the value for the base currency not updating in resource-display.

    v2.1: We should have thought of this sooner! - 10/17/20

    • Moved most of the code users will want to edit to mod.js, added documentation for it.
      • Specifically, modInfo, VERSION, canGenPoints, getPointGen, and maxTickLength
    • Added getStartPoints()
    • Added the ability to store non-layer-related data
    • Added the ability to display more things at the top of the tree tab below points.
    • Made the endgame condition customizable
    • Added "sell one" and "sell all" buttons for buyables.
    • Moved the old "game" to demo.js, and replaced it with a minimal game that won't cause issues when edited.
    • Fixed issues with version number
    • Fixed number formatting issue making things like "10e9" appear.

    v2.0.5 - 10/16/20

    • Made more features (including prestige parameters) able to be dynamic.
    • Layer nodes can be hidden but still take up space with "ghost" visibility
    • Added clickableEffect for real.
    • Fixed some visual issues with bars.
    • A few other minor tweaks and improvements.

    v2.0.4 - 10/16/20

    • Fixed HTML on buttons interfering with clicking on them.

    v2.0.3 - 10/16/20

    • Fixed hotkeys not displaying in info.
    • Fixed the game supressing all external hotkeys.
    • You can use more things as currencies for upgrade costs and challenge goals using currencyLocation.
    • Added maxTickLength, which can be used to prevent offline time or tab-switching from breaking time-limit based mechanics.
    • Made buyable respec buttons and clickable "master" buttons their own components, and gave them a hide/show feature.
    • Added a general "tooltip" feature for achievements.

    v2.0.2 - 10/15/20

    • Branches are now dynamic (they can be functions).
    • Fixed a crash related to offline time.
    • Fixed links being too wide.

    v2.0.1 - 10/15/20

    • Fixed side layers appearing multiple times.

    v2.0: The Pinnacle of Achievement Mountain - 10/15/20

    • Added progress bars, which are highly customizable and can be horizontal or vertical!
    • Added "side layers", displayed smaller and off to the side, and don't get reset by default. They can be used for global achievements and statistics. Speaking of which...
    • Added achievements!
    • Added clickables, a more generalized variant of buyables.
    • Almost every value in layer data can be either a function or a constant value!
    • Added support for multiple completions of challenges.
    • Added "none" prestige type, which removes the need for any other prestige-related features.
    • The points display and other gui elements stay at the top of the screen when the tree scrolls.
    • Added getter/setter functions for the amounts and effects of most Big Features
    • Moved modInfo to game.js, added a spot in modInfo for a Discord link, changelog link. Also added a separate mod version from the TMT version in VERSION.
    • Tree structure is based on layer data, no index.html editing is needed.
    • Tmp does not need to be manually updated.
    • You don't have to have the same amount of upgrades in every row (and challs and buyables)
    • "unlocked" is optional for all Big Components (defaults to true).
    • All displays will update correctly.
    • Changelog is no longer in index.html at all.
    • Generation of Points now happens in the main game loop
    • Changed the reset functions to make keeping things easier
    • Renamed many things to increase readability (see the list in the link below)
    • Improved documentation based on feedback

    v1.3.5:

    • Completely automated convertToDecimal, now you never have to worry about it again.
    • Branches can be defined without a color id. But they can also use hex values for color ids!
    • Created a tutorial for getting started with TMT and Github.
    • Page title is now automatically taken from mod name.

    v1.3.4 - 10/8/20

    • Added "midsection" feature to add things to a tab's layout while still keeping the standard layout.
    • Fix for being able to buy more buyables than you should.

    v1.3.3 - 10/7/20

    • Fix for the "order of operations" issue in temp.

    v1.3.1 - 10/7/20

    • Added custom CSS and tooltips for Layer Nodes.
    • Added custom CSS for upgrades, buyables, milestones, and challenges, both individually and layer-wide.
    • You can now use HTML in most display text!
    • You can now make milestones unlockable and not display immediately.
    • Fixed importing saves, and issue with upgrades not appearing, and probably more.
    • Optional "name" layer feature, used in confirmation messages.

    v1.3: Tabception... ception! - 10/7/20

    • Added subtabs! And also a Micro-tab component to let you make smaller subtab-esque areas anywhere.
    • Added a "custom" prestige formula type, and a number of features to support it.
    • Added points/sec display (can be disabled).
    • Added h-line, v-line and image-display components, plus components for individual upgrades, challenges, and milestones.
    • Added upgEffect, buyableEffect, and challEffect functions.
    • Added "hide completed challenges" setting.
    • Moved old changelogs to a separate place.
    • Fixed hasMilestone and incr_order.
    • Static layers now show the currency amount needed for the next one if you can buy max.

    v1.2.4 - 10/4/20

    • Layers are now highlighted if you can buy an upgrade, and a new feature, shouldNotify, lets you make it highlight other ways.
    • Fixed bugs with hasUpg, hasChall, hasMilestone, and inChallenge.
    • Changed the sample code to use the above functions for convenience.

    v1.2.3 - 10/3/20

    • Added a row component, which displays a list of objects in a row.
    • Added a column component, which displays a list of objects in a column (useful within a row).
    • Changed blanks to have a customizable width and height.

    v1.2: This Changes Everything! - 10/3/20

    • Many layer features can now be static values or functions. (This made some formats change, which will break old things)
    • You can now use the "this" keyword, to make code easier to transfer when making new layers.
    • Also added "this.layer", which is the current layer's name, and works on existing subfeatures (e.g. individual upgrades) as well! Subfeatures also have "this.id".
    • Fixed a big save issue. If you use a unique mod id, your save will never conflict with other mods.
    • Added a configurable offline time limit in modinfo at the top of index.html. (default 1 hour)
    • Added a few minor features, and updated the docs with new information.

    v1.1.1:

    • You can define hotkeys directly from layer config.

    v1.1: Enhanced Edition

    • Added "Buyables", which can function like Space Buildings or Enhancers.
    • Custom CSS can now be used on any component! Make the third argument an object with CSS parameters.
    • Lots of minor good things.

    v1.0:

    • First release.
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    The Modding Tree changelog:

    v2.π: Incrementally Updated - 2/5/21

    • Performance improvements.
    • Fixed tooltips overlapping with the top display.
    • Clicking a popup dismisses it immediately.
    • Added support for bulk challenge completions.
    • "Best" is updated automatically.
    • Fixed keeping Decimal values on reset.
    • Code reorganization and style improvements by fudo.

    v2.3.5 - 12/21/20

    • Added resetTime, which tracks the time since a layer prestiged or was reset.
    • A layer node will be highlighted red if one of its subtabs is highlighted red.
    • Fixed issues with keeping challenges, buyables, and clickables on reset.
    • Improved the unlocking of custom layers.
    • Other minor fixes.

    v2.3.4 - 12/16/20

    • Added a node image feature.
    • Resource display now always shows the amount of the currency the layer's gain is based on.
    • Added spacing between tree nodes.
    • Another attempt to fix tooltip flickering.

    v2.3.3 - 12/13/20

    • Fixed the first node in a row always taking up space.
    • layerShown is now optional.
    • All prestige types can now use features for custom prestige types.

    v2.3.2 - 12/13/20

    • Fixed achievement/milestone popups.

    v2.3.1 - 12/12/20

    • Another attempt to fix flickering tooltips.
    • The "this" keyword should work everywhere except tabFormat arrays (although I may have missed some things).
    • Fixed tree branches not updating when scrolling on the right-side tab.
    • Fixed a spacing issue when a node's symbol is ""
    • Removed some old, unneeded files.

    v2.3: Cooler and Newer Edition - 12/10/20

    • Added achievement/milestone popups (thank you to Jacorb for this contribution!)
    • The changelog tab is back, and can be set in mod.js.
    • Layer nodes and respec buttons will not be clicked by pressing "enter".
    • Possible fix for flickering tooltips and strange transitions.
    • The victory screen text is configurable.
    • Added image and textStyle features to achievements.
    • Added an argument to use specific rows in an "upgrades" component.
    • Fixed the comma appearing in the main display when there was no effectDescription
    • Added the ability to easily make a tab that is a collection of layers in subtabs.
    • Improved spacing for embedding layers with subtabs into subtabs.

    v2.2.8 - 12/03/20

    • Double-clicking a layer node brings you to the main subtab for that layer.
    • Attempted to fix challenges visually updating a different way.
    • Added a softcap function for use in formulas.
    • Added displayRow feature, which lets layers be shown somewhere separate from where they are in the reset order (e.g. side layers)
    • Fixed autoupgrade issue.

    v2.2.7 - 11/30/20

    • Added autoUpgrade feature.
    • resource-display now shows resource gain per second if passiveGain is active.
    • Fixed formatting issues on some large numbers.
    • Better support for using classed objects in player and in layers/tmp.
    • Made hard resetting more effective.
    • Removed Herobrine from getStartClickables.

    v2.2.6 - 11/30/20

    • Added goalDescription for challenges and made the new "canComplete" system the standard.
    • Another attempt to fix challenges not visually updating.
    • Fixed side layers not appearing.
    • Fixed getStartClickables again.

    v2.2.5 - 11/29/20

    • Added features for overriding the displays and costs/goals of upgrades and challenges to make them fully custom.
    • best, total, and unlocked are always automatically added to layerData (but best and total will only display if you add them yourself).
    • Fixed getStartClickables.

    v2.2.4 - 11/28/20

    • Added softcap and softcapPower features (for Normal layers)
    • Offline time limit and default max tick length were fixed (previously the limits were 1000x too large)
    • Added fixOldSaves.
    • You can use HTML in main-display.
    • Fixed a number of minor oddities.

    v2.2.3 - 11/28/20

    • Layers will be highlighted if you can finish a challenge.
    • The "can complete challenge" color now overrides the "already completed" color.
    • Button nodes now work as side "layers".
    • Setting a tooltip to "" hides it entirely.

    v2.2.2 - 11/22/20

    • Fixed right half of the screen being unclickable in some circumstances.
    • Fixed tree branches being offset.
    • Fix to lastSafeTab.

    v2.2.1 - 11/7/20

    • Added a small highlight to layers you can meaningfully prestige on.
    • Added passiveGeneration and autoPrestige features to standardize prestige automation. (The old ways still work, but the new ones work better with other things)
    • Improved milestones visually a bit.
    • "best" and "total" are now only displayed if present in startData.
    • Fixed issues with things not updating visually. (Thank you to to Jacorb!)
    • Side layers and button nodes can now be highlighted.
    • Updated docs on the new tree-related features.

    v2.2: Uprooted - 11/7/20

    • You can now embed a layer inside of a subtab or microtab!
    • Added support for hiding or reformatting the tree tab
    • Added non-layer button nodes
    • Added shouldNotify to subtab/microtab buttons. (You can make them highlighted)
    • Added commas to large exponents.
    • Upgrades now only show "currently" if they have an effectDisplay (so not for constant effects).
    • Achievements are part of the default tab format.
    • NaN is now handled more intelligently.
    • Renamed files, and moved less relevant ones to another folder.
    • The "hide completed challenges" setting now only hides challenges at max completions.
    • Thank you to thepaperpilot for fixing errors in docs and improving the infobox appearance!
    • Many other minor fixes.

    v2.1.4 - 10/25/20

    • Added an infobox component. Thank you to thepaperpilot for this contribution!
    • Layer type is now optional, and defaults to "none".
    • Improved the look of bars and tab buttons.
    • Improved spacing between layer nodes (also thanks to thepaperpilot!)
    • Fixed the "blank" component breaking if only specifying the height.
    • Fixed some numbers not displaying with enough digits.
    • Made a few more things able to be functions.
    • A few other minor fixes.

    v2.1.3.1 - 10/21/20

    • Fixed the update function.

    v2.1.3 - 10/21/20

    • gainMult and gainExp are now optional.
    • Layer unlocking is now kept on reset.
    • Game should start up faster.
    • Layer updates now have a determined order and starts with earlier-rowed layers.
    • Automation now has a determined order and starts with later-rowed layers.
    • Fixed issues with resetting clickables and challenges.
    • Commas should no longer appear in the decimal places of a number.
    • Fixed potential issue in displaying the tree.

    v2.1.2 - 10/19/20

    • Added buyUpgrade function (buyUpg still works though)
    • Added author name to modInfo.
    • Fix to crash caused when the name of a subtab or microtab is changed.
    • Fixes to outdated information in docs.
    • Improvements to Discord links.
    • Thank you to thepaperpilot for contributing to this update!

    v2.1.1 - 10/17/20

    • Added resource-display component, which displays the base currency for the prestige layer, as well as the best and/or total of this layer's prestige currency.
    • Fixed the value for the base currency not updating in resource-display.

    v2.1: We should have thought of this sooner! - 10/17/20

    • Moved most of the code users will want to edit to mod.js, added documentation for it.
      • Specifically, modInfo, VERSION, canGenPoints, getPointGen, and maxTickLength
    • Added getStartPoints()
    • Added the ability to store non-layer-related data
    • Added the ability to display more things at the top of the tree tab below points.
    • Made the endgame condition customizable
    • Added "sell one" and "sell all" buttons for buyables.
    • Moved the old "game" to demo.js, and replaced it with a minimal game that won't cause issues when edited.
    • Fixed issues with version number
    • Fixed number formatting issue making things like "10e9" appear.

    v2.0.5 - 10/16/20

    • Made more features (including prestige parameters) able to be dynamic.
    • Layer nodes can be hidden but still take up space with "ghost" visibility
    • Added clickableEffect for real.
    • Fixed some visual issues with bars.
    • A few other minor tweaks and improvements.

    v2.0.4 - 10/16/20

    • Fixed HTML on buttons interfering with clicking on them.

    v2.0.3 - 10/16/20

    • Fixed hotkeys not displaying in info.
    • Fixed the game supressing all external hotkeys.
    • You can use more things as currencies for upgrade costs and challenge goals using currencyLocation.
    • Added maxTickLength, which can be used to prevent offline time or tab-switching from breaking time-limit based mechanics.
    • Made buyable respec buttons and clickable "master" buttons their own components, and gave them a hide/show feature.
    • Added a general "tooltip" feature for achievements.

    v2.0.2 - 10/15/20

    • Branches are now dynamic (they can be functions).
    • Fixed a crash related to offline time.
    • Fixed links being too wide.

    v2.0.1 - 10/15/20

    • Fixed side layers appearing multiple times.

    v2.0: The Pinnacle of Achievement Mountain - 10/15/20

    • Added progress bars, which are highly customizable and can be horizontal or vertical!
    • Added "side layers", displayed smaller and off to the side, and don't get reset by default. They can be used for global achievements and statistics. Speaking of which...
    • Added achievements!
    • Added clickables, a more generalized variant of buyables.
    • Almost every value in layer data can be either a function or a constant value!
    • Added support for multiple completions of challenges.
    • Added "none" prestige type, which removes the need for any other prestige-related features.
    • The points display and other gui elements stay at the top of the screen when the tree scrolls.
    • Added getter/setter functions for the amounts and effects of most Big Features
    • Moved modInfo to game.js, added a spot in modInfo for a Discord link, changelog link. Also added a separate mod version from the TMT version in VERSION.
    • Tree structure is based on layer data, no index.html editing is needed.
    • Tmp does not need to be manually updated.
    • You don't have to have the same amount of upgrades in every row (and challs and buyables)
    • "unlocked" is optional for all Big Components (defaults to true).
    • All displays will update correctly.
    • Changelog is no longer in index.html at all.
    • Generation of Points now happens in the main game loop
    • Changed the reset functions to make keeping things easier
    • Renamed many things to increase readability (see the list in the link below)
    • Improved documentation based on feedback

    v1.3.5:

    • Completely automated convertToDecimal, now you never have to worry about it again.
    • Branches can be defined without a color id. But they can also use hex values for color ids!
    • Created a tutorial for getting started with TMT and Github.
    • Page title is now automatically taken from mod name.

    v1.3.4 - 10/8/20

    • Added "midsection" feature to add things to a tab's layout while still keeping the standard layout.
    • Fix for being able to buy more buyables than you should.

    v1.3.3 - 10/7/20

    • Fix for the "order of operations" issue in temp.

    v1.3.1 - 10/7/20

    • Added custom CSS and tooltips for Layer Nodes.
    • Added custom CSS for upgrades, buyables, milestones, and challenges, both individually and layer-wide.
    • You can now use HTML in most display text!
    • You can now make milestones unlockable and not display immediately.
    • Fixed importing saves, and issue with upgrades not appearing, and probably more.
    • Optional "name" layer feature, used in confirmation messages.

    v1.3: Tabception... ception! - 10/7/20

    • Added subtabs! And also a Micro-tab component to let you make smaller subtab-esque areas anywhere.
    • Added a "custom" prestige formula type, and a number of features to support it.
    • Added points/sec display (can be disabled).
    • Added h-line, v-line and image-display components, plus components for individual upgrades, challenges, and milestones.
    • Added upgEffect, buyableEffect, and challEffect functions.
    • Added "hide completed challenges" setting.
    • Moved old changelogs to a separate place.
    • Fixed hasMilestone and incr_order.
    • Static layers now show the currency amount needed for the next one if you can buy max.

    v1.2.4 - 10/4/20

    • Layers are now highlighted if you can buy an upgrade, and a new feature, shouldNotify, lets you make it highlight other ways.
    • Fixed bugs with hasUpg, hasChall, hasMilestone, and inChallenge.
    • Changed the sample code to use the above functions for convenience.

    v1.2.3 - 10/3/20

    • Added a row component, which displays a list of objects in a row.
    • Added a column component, which displays a list of objects in a column (useful within a row).
    • Changed blanks to have a customizable width and height.

    v1.2: This Changes Everything! - 10/3/20

    • Many layer features can now be static values or functions. (This made some formats change, which will break old things)
    • You can now use the "this" keyword, to make code easier to transfer when making new layers.
    • Also added "this.layer", which is the current layer's name, and works on existing subfeatures (e.g. individual upgrades) as well! Subfeatures also have "this.id".
    • Fixed a big save issue. If you use a unique mod id, your save will never conflict with other mods.
    • Added a configurable offline time limit in modinfo at the top of index.html. (default 1 hour)
    • Added a few minor features, and updated the docs with new information.

    v1.1.1:

    • You can define hotkeys directly from layer config.

    v1.1: Enhanced Edition

    • Added "Buyables", which can function like Space Buildings or Enhancers.
    • Custom CSS can now be used on any component! Make the third argument an object with CSS parameters.
    • Lots of minor good things.

    v1.0:

    • First release.
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/!general-info.html b/public/lit/docs/!general-info.html index 1d482627..87fe73ee 100644 --- a/public/lit/docs/!general-info.html +++ b/public/lit/docs/!general-info.html @@ -6,12 +6,12 @@ The-Modding-Tree | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    The-Modding-Tree

    The main way to add content is through creating layers. You can either add a layer directly in the layers object in layerSupport.js, or declare it in another file and register it by calling addLayer(layername, layerdata). There is an example layer registration in layers.js showing the recommended method. It is just an example and can be freely deleted. You can also use it as a reference or a base for your own layers.

    The first thing you need to do is fill out the modInfo object at the top of mod.js to set your mod's name, ID (a string), and other information. A unique modId will prevent your mod's saves from conflicting with other mods. Note that changing this after people have started playing will reset their saves.

    Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to, for example to add new Vue components in v.js.

    The Modding Tree uses break_eternity.js to store large values. This means that many numbers are Decimal objects, and must be treated differently. For example, you have to use new Decimal(x) to create a Decimal value instead of a plain number, and perform operations on them by calling functions. e.g, instead of x = x + y, use x = x.add(y). Keep in mind this also applies to comparison operators, which should be replaced with calling the .gt, .gte, .lt, .lte, .eq, and .neq functions. See the break_eternity.js docs for more details on working with Decimal values.

    Almost all values can be either a constant value, or a dynamic value. Dynamic values are defined by putting a function that returns what the value should be at any given time.

    All display text can use basic HTML elements (But you can't use most Vue features there).

    While reading this documentation, the following key will be used when describing features:

    • No label: This is required and the game may crash if it isn't included.
    • sometimes required: This is may be required, depending on other things in the layer.
    • optional: You can leave this out if you don't intend to use that feature for the layer.
    • assigned automagically: This value will be set automatically and override any value you set.
    • deprecated: This feature is not recommended to be used anymore, and may be removed in future versions of TMT.

    Table of Contents

    General

    • Getting Started: Getting your own copy of the code set up with Github Desktop.
    • Main mod info: How to set up general things for your mod in mod.js.
    • Basic layer breakdown: Breaking down the components of a layer with minimal features.
    • Layer features: Explanations of all of the different properties that you can give a layer.
    • Custom Tab Layouts: An optional way to give your tabs a different layout. You can even create entirely new components to use.
    • Custom game layouts: You can get rid of the tree tab, add buttons and other things to the tree, or even customize the tab's layout like a layer tab.
    • Updating TMT: Using Github Desktop to update your mod's version of TMT.

    Common components

    • Upgrades: How to create upgrades for a layer.
    • Milestones: How to create milestones for a layer.
    • Buyables: Create rebuyable upgrades for your layer (with the option to make them respec-able). Can be used to make Enhancers or Space Buildings.
    • Clickables: A more generalized variant of buyables, for any kind of thing that is sometimes clickable. Between these and Buyables, you can do just about anything.

    Other components and features

    • Challenges: How to create challenges for a layer.
    • Bars: Display some information as a progress bar, gauge, or similar. They are highly customizable, and can be horizontal and vertical as well.
    • Subtabs and Microtabs: Create subtabs for your tabs, as well as "microtab" components that you can put inside the tabs. You can even use them to embed a layer inside another layer!
    • Achievements: How to create achievements for a layer (or for the whole game).
    • Infoboxes: Boxes containing text that can be shown or hidden.
    • Trees: Make your own trees. You can make non-layer button nodes too!
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    The-Modding-Tree

    The main way to add content is through creating layers. You can either add a layer directly in the layers object in layerSupport.js, or declare it in another file and register it by calling addLayer(layername, layerdata). There is an example layer registration in layers.js showing the recommended method. It is just an example and can be freely deleted. You can also use it as a reference or a base for your own layers.

    The first thing you need to do is fill out the modInfo object at the top of mod.js to set your mod's name, ID (a string), and other information. A unique modId will prevent your mod's saves from conflicting with other mods. Note that changing this after people have started playing will reset their saves.

    Most of the time, you won't need to dive deep into the code to create things, but you still can if you really want to, for example to add new Vue components in v.js.

    The Modding Tree uses break_eternity.js to store large values. This means that many numbers are Decimal objects, and must be treated differently. For example, you have to use new Decimal(x) to create a Decimal value instead of a plain number, and perform operations on them by calling functions. e.g, instead of x = x + y, use x = x.add(y). Keep in mind this also applies to comparison operators, which should be replaced with calling the .gt, .gte, .lt, .lte, .eq, and .neq functions. See the break_eternity.js docs for more details on working with Decimal values.

    Almost all values can be either a constant value, or a dynamic value. Dynamic values are defined by putting a function that returns what the value should be at any given time.

    All display text can use basic HTML elements (But you can't use most Vue features there).

    While reading this documentation, the following key will be used when describing features:

    • No label: This is required and the game may crash if it isn't included.
    • sometimes required: This is may be required, depending on other things in the layer.
    • optional: You can leave this out if you don't intend to use that feature for the layer.
    • assigned automagically: This value will be set automatically and override any value you set.
    • deprecated: This feature is not recommended to be used anymore, and may be removed in future versions of TMT.

    Table of Contents

    General

    • Getting Started: Getting your own copy of the code set up with Github Desktop.
    • Main mod info: How to set up general things for your mod in mod.js.
    • Basic layer breakdown: Breaking down the components of a layer with minimal features.
    • Layer features: Explanations of all of the different properties that you can give a layer.
    • Custom Tab Layouts: An optional way to give your tabs a different layout. You can even create entirely new components to use.
    • Custom game layouts: You can get rid of the tree tab, add buttons and other things to the tree, or even customize the tab's layout like a layer tab.
    • Updating TMT: Using Github Desktop to update your mod's version of TMT.

    Common components

    • Upgrades: How to create upgrades for a layer.
    • Milestones: How to create milestones for a layer.
    • Buyables: Create rebuyable upgrades for your layer (with the option to make them respec-able). Can be used to make Enhancers or Space Buildings.
    • Clickables: A more generalized variant of buyables, for any kind of thing that is sometimes clickable. Between these and Buyables, you can do just about anything.

    Other components and features

    • Challenges: How to create challenges for a layer.
    • Bars: Display some information as a progress bar, gauge, or similar. They are highly customizable, and can be horizontal and vertical as well.
    • Subtabs and Microtabs: Create subtabs for your tabs, as well as "microtab" components that you can put inside the tabs. You can even use them to embed a layer inside another layer!
    • Achievements: How to create achievements for a layer (or for the whole game).
    • Infoboxes: Boxes containing text that can be shown or hidden.
    • Trees: Make your own trees. You can make non-layer button nodes too!
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/achievements.html b/public/lit/docs/achievements.html index aef7b040..bf6f165f 100644 --- a/public/lit/docs/achievements.html +++ b/public/lit/docs/achievements.html @@ -6,12 +6,12 @@ Achievements | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Achievements

    Achievements are awarded to the player when they meet a certain goal, and optionally give some benefit. Currently they are pretty basic, but additional features will be added later to help.

    You can make global achievements by putting them in a side layer by making its row equal to "side" instead of a number.

    Useful functions for dealing with achievements and implementing their effects:

    • hasAchievement(layer, id): determine if the player has the Achievement.
    • achievementEffect(layer, id): Returns the current effects of the achievement, if any.

    Achievements should be formatted like this:

    js
    achievements: {
    +    
    Skip to content

    Achievements

    Achievements are awarded to the player when they meet a certain goal, and optionally give some benefit. Currently they are pretty basic, but additional features will be added later to help.

    You can make global achievements by putting them in a side layer by making its row equal to "side" instead of a number.

    Useful functions for dealing with achievements and implementing their effects:

    • hasAchievement(layer, id): determine if the player has the Achievement.
    • achievementEffect(layer, id): Returns the current effects of the achievement, if any.

    Achievements should be formatted like this:

    js
    achievements: {
         rows: # of rows,
         cols: # of columns,
         11: {
    @@ -42,8 +42,8 @@
             more features
         },
         etc
    -}

    Each achievement should have an id where the first digit is the row and the second digit is the column.

    Individual achievement can have these features:

    • name: optional. displayed at the top of the achievement. The only visible text. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the achievement should be awarded.

    • tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML. Setting this to "" disables the tooltip.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the achievement. Can return a value or an object containing multiple values.

    • unlocked(): optional. A function returning a bool to determine if the achievement is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the achievement is completed.

    • image: optional, puts the image from the given URL (relative or absolute) in the achievement

    • style: optional. Applies CSS to this achievement, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • textStyle: optional. Applies CSS to the text, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the achievement was stored under, for convenient access. The achievement in the example's id is 11.

    • goalTooltip: optional, deprecated. Appears when the achievement is hovered over and locked, overrides the basic tooltip. This is to display the goal (or a hint). It can also be a function that returns updating text. Can use basic HTML.

    • doneTooltip: optional, deprecated. Appears when the achievement is hovered over and completed, overrides the basic tooltip. This can display what the player achieved (the goal), and the rewards, if any. It can also be a function that returns updating text. Can use basic HTML.

    Disable achievement popups by adding achievementsPopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Each achievement should have an id where the first digit is the row and the second digit is the column.

    Individual achievement can have these features:

    • name: optional. displayed at the top of the achievement. The only visible text. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the achievement should be awarded.

    • tooltip: Default tooltip for the achievement, appears when it is hovered over. Should convey the goal and any reward for completing the achievement. It can also be a function that returns updating text. Can use basic HTML. Setting this to "" disables the tooltip.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the achievement. Can return a value or an object containing multiple values.

    • unlocked(): optional. A function returning a bool to determine if the achievement is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the achievement is completed.

    • image: optional, puts the image from the given URL (relative or absolute) in the achievement

    • style: optional. Applies CSS to this achievement, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • textStyle: optional. Applies CSS to the text, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the achievement was stored under, for convenient access. The achievement in the example's id is 11.

    • goalTooltip: optional, deprecated. Appears when the achievement is hovered over and locked, overrides the basic tooltip. This is to display the goal (or a hint). It can also be a function that returns updating text. Can use basic HTML.

    • doneTooltip: optional, deprecated. Appears when the achievement is hovered over and completed, overrides the basic tooltip. This can display what the player achieved (the goal), and the rewards, if any. It can also be a function that returns updating text. Can use basic HTML.

    Disable achievement popups by adding achievementsPopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/bars.html b/public/lit/docs/bars.html index 7d492cc8..7bb9f41c 100644 --- a/public/lit/docs/bars.html +++ b/public/lit/docs/bars.html @@ -6,12 +6,12 @@ Bars | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Bars

    Bars let you display information in a more direct way. It can be a progress bar, health bar, capacity gauge, or anything else.

    Bars are defined like other Big Features:

    js
    bars: {
    +    
    Skip to content

    Bars

    Bars let you display information in a more direct way. It can be a progress bar, health bar, capacity gauge, or anything else.

    Bars are defined like other Big Features:

    js
    bars: {
         bigBar: {
             direction: RIGHT,
             width: 200,
    @@ -43,8 +43,8 @@
             etc
         },
         etc
    -}

    Features:

    • direction: UP, DOWN, LEFT, or RIGHT (not strings). Determines the direction that the bar is filled as it progresses. RIGHT means from left to right.

    • width, height: The size in pixels of the bar, but as numbers (no "px" at the end).

    • progress(): A function that returns the portion of the bar that is filled, from "empty" at 0 to "full" at 1, updating automatically. (Nothing bad happens if the value goes out of these bounds, and it can be a number or Decimal)

    • display(): optional. A function that returns text to be displayed on top of the bar, can use HTML.

    • unlocked(): optional. A function returning a bool to determine if the bar is visible or not. Default is unlocked.

    • baseStyle, fillStyle, borderStyle, textStyle: Optional, Apply CSS to the unfilled portion, filled portion, border, and display text on the bar, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • direction: UP, DOWN, LEFT, or RIGHT (not strings). Determines the direction that the bar is filled as it progresses. RIGHT means from left to right.

    • width, height: The size in pixels of the bar, but as numbers (no "px" at the end).

    • progress(): A function that returns the portion of the bar that is filled, from "empty" at 0 to "full" at 1, updating automatically. (Nothing bad happens if the value goes out of these bounds, and it can be a number or Decimal)

    • display(): optional. A function that returns text to be displayed on top of the bar, can use HTML.

    • unlocked(): optional. A function returning a bool to determine if the bar is visible or not. Default is unlocked.

    • baseStyle, fillStyle, borderStyle, textStyle: Optional, Apply CSS to the unfilled portion, filled portion, border, and display text on the bar, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The bar in the example's id is "bigBar".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/basic-layer-breakdown.html b/public/lit/docs/basic-layer-breakdown.html index 30475b4c..1bde7a2d 100644 --- a/public/lit/docs/basic-layer-breakdown.html +++ b/public/lit/docs/basic-layer-breakdown.html @@ -6,12 +6,12 @@ Basic layer breakdown | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Basic layer breakdown

    This is a very minimal layer with minimal features. Most things will require additional features.

    js
    addLayer("p", {
    +    
    Skip to content

    Basic layer breakdown

    This is a very minimal layer with minimal features. Most things will require additional features.

    js
    addLayer("p", {
         startData() { return {                  // startData is a function that returns default data for a layer. 
             unlocked: true,                     // You can add more variables here to add them to your layer.
             points: new Decimal(0),             // "points" is the internal name for the main resource of the layer.
    @@ -61,8 +61,8 @@
         },
     
         layerShown() { return true }            // Returns a bool for if this layer's node should be visible in the tree.
    -})
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +})
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/buyables.html b/public/lit/docs/buyables.html index 5b30e071..4b357fec 100644 --- a/public/lit/docs/buyables.html +++ b/public/lit/docs/buyables.html @@ -6,12 +6,12 @@ Buyables | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Buyables

    Buyables are usually things that can be bought multiple times with scaling costs. If you set a respec function, the player can reset the purchases to get their currency back.

    The amount of a buyable owned is a Decimal.

    Useful functions for dealing with buyables and implementing their effects:

    • getBuyableAmount(layer, id): get the amount of the buyable the player has
    • setBuyableAmount(layer, id, amount): set the amount of the buyable the player has
    • buyableEffect(layer, id): Returns the current effects of the buyable, if any.

    Buyables should be formatted like this:

    js
    buyables: {
    +    
    Skip to content

    Buyables

    Buyables are usually things that can be bought multiple times with scaling costs. If you set a respec function, the player can reset the purchases to get their currency back.

    The amount of a buyable owned is a Decimal.

    Useful functions for dealing with buyables and implementing their effects:

    • getBuyableAmount(layer, id): get the amount of the buyable the player has
    • setBuyableAmount(layer, id, amount): set the amount of the buyable the player has
    • buyableEffect(layer, id): Returns the current effects of the buyable, if any.

    Buyables should be formatted like this:

    js
    buyables: {
         rows: # of rows,
         cols: # of columns,
         11: {
    @@ -48,8 +48,8 @@
             etc
         },
         etc
    -}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • cost(): cost for buying the next buyable. Can have an optional argument "x" to calculate the cost of the x+1th object, but needs to use "current amount" as a default value for x. (x is a Decimal). Can return an object if there are multiple currencies.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this buyable. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the buyable after the title, likely including the description, amount bought, cost, and current effect. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the buyable is visible or not. Default is unlocked.

    • canAfford(): A function returning a bool to determine if you can buy one of the buyables.

    • buy(): A function that implements buying one of the buyable, including spending the currency.

    • buyMax(): optional. A function that implements buying as many of the buyable as possible.

    • style: optional. Applies CSS to this buyable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the buyable was stored under, for convenient access. The buyable in the example's id is 11.

    Sell One/Sell All:

    Including a sellOne or sellAll function will cause an additional button to appear beneath the buyable. They are functionally identical, but "sell one" appears above "sell all". You can also use them for other things.

    • sellOne/sellAll(): optional. Called when the button is pressed. The standard use would be to decrease/reset the amount of the buyable, and possibly return some currency to the player.

    • canSellOne/canSellAll(): optional. booleans determining whether or not to show the buttons. If "canSellOne/All" is absent but "sellOne/All" is present, the appropriate button will always show.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • cost(): cost for buying the next buyable. Can have an optional argument "x" to calculate the cost of the x+1th object, but needs to use "current amount" as a default value for x. (x is a Decimal). Can return an object if there are multiple currencies.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this buyable. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the buyable after the title, likely including the description, amount bought, cost, and current effect. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the buyable is visible or not. Default is unlocked.

    • canAfford(): A function returning a bool to determine if you can buy one of the buyables.

    • buy(): A function that implements buying one of the buyable, including spending the currency.

    • buyMax(): optional. A function that implements buying as many of the buyable as possible.

    • style: optional. Applies CSS to this buyable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the buyable was stored under, for convenient access. The buyable in the example's id is 11.

    Sell One/Sell All:

    Including a sellOne or sellAll function will cause an additional button to appear beneath the buyable. They are functionally identical, but "sell one" appears above "sell all". You can also use them for other things.

    • sellOne/sellAll(): optional. Called when the button is pressed. The standard use would be to decrease/reset the amount of the buyable, and possibly return some currency to the player.

    • canSellOne/canSellAll(): optional. booleans determining whether or not to show the buttons. If "canSellOne/All" is absent but "sellOne/All" is present, the appropriate button will always show.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/challenges.html b/public/lit/docs/challenges.html index 52783f48..07f6c8ce 100644 --- a/public/lit/docs/challenges.html +++ b/public/lit/docs/challenges.html @@ -6,12 +6,12 @@ Challenges | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Challenges

    Challenges can have fully customizable win conditions. Useful functions for dealing with Challenges and implementing their effects:

    • inChallenge(layer, id): determine if the player is in a given challenge (or another challenge on the same layer that counts as this one).
    • hasChallenge(layer, id): determine if the player has completed the challenge.
    • challengeCompletions(layer, id): determine how many times the player completed the challenge.
    • challengeEffect(layer, id): Returns the current effects of the challenge, if any.

    Challenges are stored in the following format:

    js
    challenges: {
    +    
    Skip to content

    Challenges

    Challenges can have fully customizable win conditions. Useful functions for dealing with Challenges and implementing their effects:

    • inChallenge(layer, id): determine if the player is in a given challenge (or another challenge on the same layer that counts as this one).
    • hasChallenge(layer, id): determine if the player has completed the challenge.
    • challengeCompletions(layer, id): determine how many times the player completed the challenge.
    • challengeEffect(layer, id): Returns the current effects of the challenge, if any.

    Challenges are stored in the following format:

    js
    challenges: {
         rows: # of rows,
         cols: # of columns,
         11: {
    @@ -44,8 +44,8 @@
             etc
         },
         etc
    -}

    Each challenge should have an id where the first digit is the row and the second digit is the column.

    Individual Challenges can have these features:

    • name: Name of the challenge, can be a string or a function. Can use basic HTML.

    • challengeDescription: A description of what makes the challenge a challenge. You will need to implement these elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • goalDescription: A description of the win condition for the challenge. It can also be a function that returns updating text. Can use basic HTML. (Optional if using the old goal system)

    • canComplete(): A function that returns true if you meet the win condition for the challenge. Returning a number will allow bulk completing the challenge. (Optional if using the old goal system)

    • rewardDescription: A description of the reward's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • rewardEffect(): optional. A function that calculates and returns the current values of any bonuses from the reward. Can return a value or an object containing multiple values. Can use basic HTML.

    • rewardDisplay(): optional. A function that returns a display of the current effects of the reward with formatting. Default behavior is to just display the a number appropriately formatted.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the challenge. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the challenge is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the challenge is completed when previously incomplete.

    • countsAs: optional. If a challenge combines the effects of other challenges in this layer, you can use this. An array of challenge ids. The player is effectively in all of those challenges when in the current one.

    • completionLimit: optional. the amount of times you can complete this challenge. Default is 1 completion.

    • style: optional. Applies CSS to this challenge, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the challenge was stored under, for convenient access. The challenge in the example's id is 11.

    The old goal system uses these features:

    • goal: deprecated, A Decimal for the amount of currency required to beat the challenge. By default, the goal is in basic Points. The goal can also be a function if its value changes.

    • currencyDisplayName: deprecated. the name to display for the currency for the goal

    • currencyInternalName: deprecated. the internal name for that currency

    • currencyLayer: deprecated. the internal name of the layer that currency is stored in. If it's not in a layer, omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation(): deprecated. if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Each challenge should have an id where the first digit is the row and the second digit is the column.

    Individual Challenges can have these features:

    • name: Name of the challenge, can be a string or a function. Can use basic HTML.

    • challengeDescription: A description of what makes the challenge a challenge. You will need to implement these elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • goalDescription: A description of the win condition for the challenge. It can also be a function that returns updating text. Can use basic HTML. (Optional if using the old goal system)

    • canComplete(): A function that returns true if you meet the win condition for the challenge. Returning a number will allow bulk completing the challenge. (Optional if using the old goal system)

    • rewardDescription: A description of the reward's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • rewardEffect(): optional. A function that calculates and returns the current values of any bonuses from the reward. Can return a value or an object containing multiple values. Can use basic HTML.

    • rewardDisplay(): optional. A function that returns a display of the current effects of the reward with formatting. Default behavior is to just display the a number appropriately formatted.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the challenge. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the challenge is visible or not. Default is unlocked.

    • onComplete() - optional. this function will be called when the challenge is completed when previously incomplete.

    • countsAs: optional. If a challenge combines the effects of other challenges in this layer, you can use this. An array of challenge ids. The player is effectively in all of those challenges when in the current one.

    • completionLimit: optional. the amount of times you can complete this challenge. Default is 1 completion.

    • style: optional. Applies CSS to this challenge, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the challenge was stored under, for convenient access. The challenge in the example's id is 11.

    The old goal system uses these features:

    • goal: deprecated, A Decimal for the amount of currency required to beat the challenge. By default, the goal is in basic Points. The goal can also be a function if its value changes.

    • currencyDisplayName: deprecated. the name to display for the currency for the goal

    • currencyInternalName: deprecated. the internal name for that currency

    • currencyLayer: deprecated. the internal name of the layer that currency is stored in. If it's not in a layer, omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation(): deprecated. if your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/clickables.html b/public/lit/docs/clickables.html index 10f28d89..1c8e8e98 100644 --- a/public/lit/docs/clickables.html +++ b/public/lit/docs/clickables.html @@ -6,12 +6,12 @@ Clickables | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Clickables

    Clickables are any kind of thing that you can click for an effect. They're a more generalized version of Buyables.

    DO NOT USE THESE TO MAKE THINGS THAT YOU CLICK REPEATEDLY FOR A BONUS BECAUSE THOSE ARE AWFUL.

    There are several differences between the two. One is that a buyable's saved data is its amount as a Decimal, while Clickables store a "state" which can be a number or string, but not Decimal, array, or object). Buyables have a number of extra features which you can see on their page. Clickables also have a smaller default size.

    Useful functions for dealing with achievements and implementing their effects:

    • getClickableState(layer, id): get the state of the clickable the player has
    • setClickableState(layer, id, state): set the state of the buyable the player has
    • clickableEffect(layer, id): Returns the current effects of the clickable, if any.

    Clickables should be formatted like this:

    js
    clickables: {
    +    
    Skip to content

    Clickables

    Clickables are any kind of thing that you can click for an effect. They're a more generalized version of Buyables.

    DO NOT USE THESE TO MAKE THINGS THAT YOU CLICK REPEATEDLY FOR A BONUS BECAUSE THOSE ARE AWFUL.

    There are several differences between the two. One is that a buyable's saved data is its amount as a Decimal, while Clickables store a "state" which can be a number or string, but not Decimal, array, or object). Buyables have a number of extra features which you can see on their page. Clickables also have a smaller default size.

    Useful functions for dealing with achievements and implementing their effects:

    • getClickableState(layer, id): get the state of the clickable the player has
    • setClickableState(layer, id, state): set the state of the buyable the player has
    • clickableEffect(layer, id): Returns the current effects of the clickable, if any.

    Clickables should be formatted like this:

    js
    clickables: {
         rows: # of rows,
         cols: # of columns,
         11: {
    @@ -42,8 +42,8 @@
             etc
         }
         etc
    -}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this clickable. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the clickable after the title, likely changing based on its state. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the clickable is visible or not. Default is unlocked.

    • canClick(): A function returning a bool to determine if you can click the clickable.

    • onClick(): A function that implements clicking one of the clickable.

    • style: optional. Applies CSS to this clickable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the clickable was stored under, for convenient access. The clickable in the example's id is 11.

    You can also use these features on the clickables object to add a button above all the clickables, for implementing a respec button or similar.

    • masterButtonPress(): optional. If present, an additional button will appear above the clickables. Pressing it will call this function.

    • masterButtonText: optional. Text to display on the Master Button.

    • showMasterButton(): optional. A function determining whether or not to show the button. Defaults to true if absent.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • title: optional. displayed at the top in a larger font. It can also be a function that returns updating text.

    • effect(): optional. A function that calculates and returns the current values of bonuses of this clickable. Can return a value or an object containing multiple values.

    • display(): A function returning everything that should be displayed on the clickable after the title, likely changing based on its state. Can use basic HTML.

    • unlocked(): optional. A function returning a bool to determine if the clickable is visible or not. Default is unlocked.

    • canClick(): A function returning a bool to determine if you can click the clickable.

    • onClick(): A function that implements clicking one of the clickable.

    • style: optional. Applies CSS to this clickable, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the clickable was stored under, for convenient access. The clickable in the example's id is 11.

    You can also use these features on the clickables object to add a button above all the clickables, for implementing a respec button or similar.

    • masterButtonPress(): optional. If present, an additional button will appear above the clickables. Pressing it will call this function.

    • masterButtonText: optional. Text to display on the Master Button.

    • showMasterButton(): optional. A function determining whether or not to show the button. Defaults to true if absent.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/custom-tab-layouts.html b/public/lit/docs/custom-tab-layouts.html index fd503984..4aca62e8 100644 --- a/public/lit/docs/custom-tab-layouts.html +++ b/public/lit/docs/custom-tab-layouts.html @@ -6,12 +6,12 @@ Custom tab layouts | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Custom tab layouts

    Note: If you are using subtabs, tabFormat is used differently, but you still use the same format within each subtabs. See here for more on subtabs.

    Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:

    js
    tabFormat: [
    +    
    Skip to content

    Custom tab layouts

    Note: If you are using subtabs, tabFormat is used differently, but you still use the same format within each subtabs. See here for more on subtabs.

    Custom tab layouts can be used to do basically anything in a tab window, especially combined with the "style" layer feature. The tabFormat feature is an array of things, like this:

    js
    tabFormat: [
         "main-display",
         ["prestige-button", function() { return "Melt your points into " }],
         "blank",
    @@ -47,8 +47,8 @@
         "blank",
         "blank",
         "upgrades"
    -]

    It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) applies a CSS style to it with a "CSS object", where the keys are CSS attributes.

    These are the existing components, but you can create more in components.js:

    • display-text: Displays some text (can use basic HTML). The argument is the text to display. It can also be a function that returns updating text.

    • raw-html: Displays some basic HTML, can also be a function.

    • blank: Adds empty space. The default dimensions are 8px x 17px. The argument changes the dimensions. If it's a single value (e.g. "20px"), that determines the height. If you have a pair of arguments, the first is width and the second is height.

    • row: Display a list of components horizontally. The argument is an array of components in the tab layout format.

    • column: Display a list of components vertically. The argument is an array of components in the tab layout format. This is useful to display columns within a row.

    • main-display: The text that displays the main currency for the layer and its effects.

    • resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in startData for this layer).

    • prestige-button: The argument is a string that the prestige button should say before the amount of currency you will gain. It can also be a function that returns updating text.

    • upgrades: The layer's upgrades. The argument is optional, and is a the list of rows this component should include, if it doesn't have all of them.

    • milestones, challenges, achievements: Display the upgrades, milestones, and challenges for a layer, as appropriate.

    • buyables, clickables: Display all of the buyables/clickables for this layer, as appropriate. The argument is optional and is the size of the boxes in pixels.

    • microtabs: Display a set of subtabs for an area. The argument is the name of the set of microtabs in the "microtabs" feature.

    • bar: Display a bar. The argument is the id of the bar to display.

    • infobox: Display an infobox. The argument is the id of the infobox to display.

    • tree: Displays a tree. The argument is an array of arrays containing the names of the nodes in the tree (first by row, then by column) See here for more information on tree layouts and nodes!

    • toggle: A toggle button that toggles a bool value. The data is a pair that identifies what bool to toggle, e.g. [layer, id]

    The rest of the components are sub-components. They can be used just like other components, but are typically part of another component.

    • upgrade, milestone, challenge, buyable, clickable, achievement: An individual upgrade, challenge, etc. The argument is the id. This can be used if you want to have upgrades split up across multiple subtabs, for example.

    • respec-button, master-button: The respec and master buttons for buyables and clickables, respectively.

    • sell-one, sell-all: The "sell one" and "sell all" for buyables, respectively. The argument is the id of the buyable.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +]

    It is a list of components, which can be either just a name, or an array with arguments. If it's an array, the first item is the name of the component, the second is the data passed into it, and the third (optional) applies a CSS style to it with a "CSS object", where the keys are CSS attributes.

    These are the existing components, but you can create more in components.js:

    • display-text: Displays some text (can use basic HTML). The argument is the text to display. It can also be a function that returns updating text.

    • raw-html: Displays some basic HTML, can also be a function.

    • blank: Adds empty space. The default dimensions are 8px x 17px. The argument changes the dimensions. If it's a single value (e.g. "20px"), that determines the height. If you have a pair of arguments, the first is width and the second is height.

    • row: Display a list of components horizontally. The argument is an array of components in the tab layout format.

    • column: Display a list of components vertically. The argument is an array of components in the tab layout format. This is useful to display columns within a row.

    • main-display: The text that displays the main currency for the layer and its effects.

    • resource-display: The text that displays the currency that this layer is based on, as well as the best and/or total values for this layer's prestige currency (if they are put in startData for this layer).

    • prestige-button: The argument is a string that the prestige button should say before the amount of currency you will gain. It can also be a function that returns updating text.

    • upgrades: The layer's upgrades. The argument is optional, and is a the list of rows this component should include, if it doesn't have all of them.

    • milestones, challenges, achievements: Display the upgrades, milestones, and challenges for a layer, as appropriate.

    • buyables, clickables: Display all of the buyables/clickables for this layer, as appropriate. The argument is optional and is the size of the boxes in pixels.

    • microtabs: Display a set of subtabs for an area. The argument is the name of the set of microtabs in the "microtabs" feature.

    • bar: Display a bar. The argument is the id of the bar to display.

    • infobox: Display an infobox. The argument is the id of the infobox to display.

    • tree: Displays a tree. The argument is an array of arrays containing the names of the nodes in the tree (first by row, then by column) See here for more information on tree layouts and nodes!

    • toggle: A toggle button that toggles a bool value. The data is a pair that identifies what bool to toggle, e.g. [layer, id]

    The rest of the components are sub-components. They can be used just like other components, but are typically part of another component.

    • upgrade, milestone, challenge, buyable, clickable, achievement: An individual upgrade, challenge, etc. The argument is the id. This can be used if you want to have upgrades split up across multiple subtabs, for example.

    • respec-button, master-button: The respec and master buttons for buyables and clickables, respectively.

    • sell-one, sell-all: The "sell one" and "sell all" for buyables, respectively. The argument is the id of the buyable.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/getting-started.html b/public/lit/docs/getting-started.html index 15006592..97ba4d32 100644 --- a/public/lit/docs/getting-started.html +++ b/public/lit/docs/getting-started.html @@ -6,12 +6,12 @@ Getting started | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    Getting started

    Welcome to The Modding Tree!

    Using the Modding Tree, at its simplest level, just requires getting a copy of it onto your computer. However, if you do it the right way, it will help in many ways.

    Don't let the word "Github" scare you away. It's actually much easier to use than most people think, especially because most people use it the hard way. The key is Github Desktop, which lets you do everything you need to, without even touching the command line.

    The benefits of using Github:

    • It makes it much, much easier to update The Modding Tree.
    • You can share your work without any extra effort using githack, or with a bit more effort, set up a github.io site.
    • It lets you undo changes to your code, and to have multiple versions of it.
    • It lets you collaborate with other people, if you want to.

    Getting set up with Github Desktop, Visual Studio Code, and The Modding Tree:

    1. Install Github Desktop and Visual Studio Code.

    2. Make a Github account. You can handle this on your own.

    3. Log in on your browser, and go back to The Modding Tree page. At the top right, there should be a button that says "fork". Click on it, and then on your username. You now have your own fork, or copy, of The Modding Tree.

    4. Open Github Desktop and log in. Ignore everything else and choose "clone a repository". A "repository" is basically a "Github project", like The Modding Tree. "Cloning" is downloading a copy of the repository to your computer.

    5. Look for The Modding Tree in the list of repositiories (it should be the only one) and click "clone".

    6. Select that you're using it for your own purposes, and click continue. It will download the files and handle everything.

    Using your repository

    1. Click on "show in explorer/finder" to the right, and then open the index.html file in the folder. The page should open up on your browser. This will let you view and test your project locally!

    2. To edit your project, click "open in VSCode" in Github Desktop.

    3. Open mod.js in VSCode, and look at the top part where it has a "modInfo" object. Fill in your mod's name to whatever you want, and change the id as well. (It can be any string value, and it's used to determine where the savefile is. Make it something that's probably unique, and don't change it again later or else it'll effectively wipe existing saves)

    4. Save mod.js, and then reload index.html in your browser. The title on the tab, as well as on the info page, will now be updated! You can reload the page every time you change the code to test it quickly and easily.

    5. Go back to Github Desktop. It's time to save your changes into the git system by making a "commit". This basically saves your work and creates a snapshot of what your code looks like at this moment, allowing you to look back at it later.

    6. At the bottom right corner, add a summary of your changes, and then click "commit to master".

    7. Finally, at the top middle, click "push origin" to push your changes out onto the online repository.

    8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html

    And now, you have successfully used Github! You can look at the documentation to see how The Modding Tree's system works and to make your mod a reality.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    Getting started

    Welcome to The Modding Tree!

    Using the Modding Tree, at its simplest level, just requires getting a copy of it onto your computer. However, if you do it the right way, it will help in many ways.

    Don't let the word "Github" scare you away. It's actually much easier to use than most people think, especially because most people use it the hard way. The key is Github Desktop, which lets you do everything you need to, without even touching the command line.

    The benefits of using Github:

    • It makes it much, much easier to update The Modding Tree.
    • You can share your work without any extra effort using githack, or with a bit more effort, set up a github.io site.
    • It lets you undo changes to your code, and to have multiple versions of it.
    • It lets you collaborate with other people, if you want to.

    Getting set up with Github Desktop, Visual Studio Code, and The Modding Tree:

    1. Install Github Desktop and Visual Studio Code.

    2. Make a Github account. You can handle this on your own.

    3. Log in on your browser, and go back to The Modding Tree page. At the top right, there should be a button that says "fork". Click on it, and then on your username. You now have your own fork, or copy, of The Modding Tree.

    4. Open Github Desktop and log in. Ignore everything else and choose "clone a repository". A "repository" is basically a "Github project", like The Modding Tree. "Cloning" is downloading a copy of the repository to your computer.

    5. Look for The Modding Tree in the list of repositiories (it should be the only one) and click "clone".

    6. Select that you're using it for your own purposes, and click continue. It will download the files and handle everything.

    Using your repository

    1. Click on "show in explorer/finder" to the right, and then open the index.html file in the folder. The page should open up on your browser. This will let you view and test your project locally!

    2. To edit your project, click "open in VSCode" in Github Desktop.

    3. Open mod.js in VSCode, and look at the top part where it has a "modInfo" object. Fill in your mod's name to whatever you want, and change the id as well. (It can be any string value, and it's used to determine where the savefile is. Make it something that's probably unique, and don't change it again later or else it'll effectively wipe existing saves)

    4. Save mod.js, and then reload index.html in your browser. The title on the tab, as well as on the info page, will now be updated! You can reload the page every time you change the code to test it quickly and easily.

    5. Go back to Github Desktop. It's time to save your changes into the git system by making a "commit". This basically saves your work and creates a snapshot of what your code looks like at this moment, allowing you to look back at it later.

    6. At the bottom right corner, add a summary of your changes, and then click "commit to master".

    7. Finally, at the top middle, click "push origin" to push your changes out onto the online repository.

    8. You can view your project on line, or share it with others, by going to https://raw.githack.com/[YOUR-GITHUB-USERNAME]/The-Modding-Tree/master/index.html

    And now, you have successfully used Github! You can look at the documentation to see how The Modding Tree's system works and to make your mod a reality.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/infoboxes.html b/public/lit/docs/infoboxes.html index a2873394..024bbe87 100644 --- a/public/lit/docs/infoboxes.html +++ b/public/lit/docs/infoboxes.html @@ -6,12 +6,12 @@ Infoboxes | The Paper Pilot - + - + - + @@ -34,15 +34,15 @@ -
    Skip to content

    Infoboxes

    Infoboxes are good for displaying "lore", or story elements, as well as for explaining complicated things.

    In the default tab layout, the first infobox will be displayed at the very top of the tab.

    Infoboxes are defined like other Big Features:

    js
    infoboxes: {
    +    
    Skip to content

    Infoboxes

    Infoboxes are good for displaying "lore", or story elements, as well as for explaining complicated things.

    In the default tab layout, the first infobox will be displayed at the very top of the tab.

    Infoboxes are defined like other Big Features:

    js
    infoboxes: {
         lore: {
             title: "foo",
             body() { return "bar" },
             etc
         },
         etc
    -}

    Features:

    • title: The text displayed above the main box. Can be a function to be dynamic, and can use basic HTML.

    • body: The text displayed inside the box. Can be a function to be dynamic, and can use basic HTML.

    • style, titleStyle, bodyStyle: optional. Apply CSS to the infobox, or to the title button or body of the infobox, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a bool to determine if the infobox is visible or not. Default is unlocked.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The infobox in the example's id is "lore".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Features:

    • title: The text displayed above the main box. Can be a function to be dynamic, and can use basic HTML.

    • body: The text displayed inside the box. Can be a function to be dynamic, and can use basic HTML.

    • style, titleStyle, bodyStyle: optional. Apply CSS to the infobox, or to the title button or body of the infobox, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a bool to determine if the infobox is visible or not. Default is unlocked.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar

    • id: assigned automagically. It's the "key" which the bar was stored under, for convenient access. The infobox in the example's id is "lore".

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/layer-features.html b/public/lit/docs/layer-features.html index 21176d54..1a24fd2f 100644 --- a/public/lit/docs/layer-features.html +++ b/public/lit/docs/layer-features.html @@ -6,12 +6,12 @@ Layer Features | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Layer Features

    This is a more comprehensive list of established features to add to layers. You can add more freely, if you want to have other functions or values associated with your layer. These have special functionality, though.

    You can make almost any value dynamic by using a function in its place, including all display strings and styling/color features.

    Layer Definition features

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar to access the saved value. It makes copying code to new layers easier. It is also assigned to all upgrades and buyables and such.

    • name: optional. used in reset confirmations (and the default infobox title). If absent, it just uses the layer's id.

    • startData(): A function to return the default save data for this layer. Add any variables you have to it. Make sure to use Decimal values rather than normal numbers.

      Standard values: - Required: - unlocked: a bool determining if this layer is unlocked or not - points: a Decimal, the main currency for the layer - Optional: - total: A Decimal, tracks total amount of main prestige currency. Always tracked, but only shown if you add it here. - best: A Decimal, tracks highest amount of main prestige currency. Always tracked, but only shown if you add it here. - unlockOrder: used to keep track of relevant layers unlocked before this one. - resetTime: A number, time since this layer was last prestiged (or reset by another layer)

    • color: A color associated with this layer, used in many places. (A string in hex format with a #)

    • row: The row of the layer, starting at 0. This affects where the node appears on the standard tree, and which resets affect the layer.

      Using "side" instead of a number will cause the layer to appear off to the side as a smaller node (useful for achievements and statistics). Side layers are not affected by resets unless you add a doReset to them.

    • displayRow: OVERRIDE Changes where the layer node appears without changing where it is in the reset order.

    • resource: Name of the main currency you gain by resetting on this layer.

    • effect(): optional. A function that calculates and returns the current values of any bonuses inherent to the main currency. Can return a value or an object containing multiple values. You will also have to implement the effect where it is applied.

    • effectDescription: optional. A function that returns a description of this effect. If the text stays constant, it can just be a string.

    • layerShown(): optional, A function returning a bool which determines if this layer's node should be visible on the tree. It can also return "ghost", which will hide the layer, but its node will still take up space in the tree. Defaults to true.

    • hotkeys: optional. An array containing information on any hotkeys associated with this layer:

      js
      hotkeys: [
      +    
      Skip to content

      Layer Features

      This is a more comprehensive list of established features to add to layers. You can add more freely, if you want to have other functions or values associated with your layer. These have special functionality, though.

      You can make almost any value dynamic by using a function in its place, including all display strings and styling/color features.

      Layer Definition features

      • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar to access the saved value. It makes copying code to new layers easier. It is also assigned to all upgrades and buyables and such.

      • name: optional. used in reset confirmations (and the default infobox title). If absent, it just uses the layer's id.

      • startData(): A function to return the default save data for this layer. Add any variables you have to it. Make sure to use Decimal values rather than normal numbers.

        Standard values: - Required: - unlocked: a bool determining if this layer is unlocked or not - points: a Decimal, the main currency for the layer - Optional: - total: A Decimal, tracks total amount of main prestige currency. Always tracked, but only shown if you add it here. - best: A Decimal, tracks highest amount of main prestige currency. Always tracked, but only shown if you add it here. - unlockOrder: used to keep track of relevant layers unlocked before this one. - resetTime: A number, time since this layer was last prestiged (or reset by another layer)

      • color: A color associated with this layer, used in many places. (A string in hex format with a #)

      • row: The row of the layer, starting at 0. This affects where the node appears on the standard tree, and which resets affect the layer.

        Using "side" instead of a number will cause the layer to appear off to the side as a smaller node (useful for achievements and statistics). Side layers are not affected by resets unless you add a doReset to them.

      • displayRow: OVERRIDE Changes where the layer node appears without changing where it is in the reset order.

      • resource: Name of the main currency you gain by resetting on this layer.

      • effect(): optional. A function that calculates and returns the current values of any bonuses inherent to the main currency. Can return a value or an object containing multiple values. You will also have to implement the effect where it is applied.

      • effectDescription: optional. A function that returns a description of this effect. If the text stays constant, it can just be a string.

      • layerShown(): optional, A function returning a bool which determines if this layer's node should be visible on the tree. It can also return "ghost", which will hide the layer, but its node will still take up space in the tree. Defaults to true.

      • hotkeys: optional. An array containing information on any hotkeys associated with this layer:

        js
        hotkeys: [
             {
                 key: "p", // What the hotkey button is. Use uppercase if it's combined with shift, or "ctrl+x" for holding down ctrl.
                 description: "p: reset your points for prestige points", // The description of the hotkey that is displayed in the game's How To Play tab
        @@ -43,8 +43,8 @@
         ]
      • style: optional. a "CSS object" where the keys are CSS attributes, containing any CSS that should affect this layer's entire tab.

      • tabFormat: optional. use this if you want to add extra things to your tab or change the layout. See here for more info.

      • midsection: optional, an alternative to tabFormat, which is inserted in between Milestones and Buyables in the standard tab layout. (cannot do subtabs)

      Big features (all optional)

      • upgrades: A grid of one-time purchases which can have unique upgrade conditions, currency costs, and bonuses. See here for more info.

      • milestones: A list of bonuses gained upon reaching certain thresholds of a resource. Often used for automation/QOL. See here for more info.

      • challenges: The player can enter challenges, which make the game harder. If they reach a goal and beat the challenge, they recieve a bonus. See here for more info.

      • buyables: Effectively upgrades that can be bought multiple times, and are optionally respeccable. Many uses. See here for more info.

      • clickables: Extremely versatile and generalized buttons which can only be clicked sometimes. See here for more info.

      • microtabs: An area that functions like a set of subtabs, with buttons at the top changing the content within. (Advanced) See here for more info.

      • bars: Display some information as a progress bar, gague, or similar. They are highly customizable, and can be vertical as well. See here for more info.

      • achievements: Kind of like milestones, but with a different display style and some other differences. Extra features are on the way at a later date! See here for more info.

      • infoboxes: Displays some text in a box that can be shown or hidden. See here for more info.

      • achievementPopups, milestonePopups: optional, If false, disables popup message when you get the achievement/milestone. True by default.

      Prestige formula features

      • type: optional. Determines which prestige formula you use. Defaults to "none".

        • "normal": The amount of currency you gain is independent of its current amount (like Prestige). The formula before bonuses is based on baseResource^exponent
        • "static": The cost is dependent on your total after reset. The formula before bonuses is based on base^(x^exponent)
        • "custom": You can define everything, from the calculations to the text on the button, yourself. (See more at the bottom)
        • "none": This layer does not prestige, and therefore does not need any of the other features in this section.
      • baseResource: The name of the resource that determines how much of the main currency you gain on reset.

      • baseAmount(): A function that gets the current value of the base resource.

      • requires: A Decimal, the amount of the base needed to gain 1 of the prestige currency. Also the amount required to unlock the layer. You can instead make this a function, to make it harder if another layer was unlocked first (based on unlockOrder).

      • exponent: Used as described above.

      • base: sometimes required. required for "static" layers, used as described above. If absent, defaults to 2. Must be greater than 1.

      • roundUpCost: optional. a bool, which is true if the resource cost needs to be rounded up. (use if the base resource is a "static" currency.)

      • gainMult(), gainExp(): optional. Functions that calculate the multiplier and exponent on resource gain from upgrades and boosts and such. Plug in any bonuses here.

      • softcap, softcapPower: optional. For normal layers, gain beyond [softcap] points is put to the [softcapPower]th power Default for softcap is e1e7, and for power is 0.5.

      • canBuyMax(): sometimes required. required for static layers, function used to determine if buying max is permitted.

      • onPrestige(gain): optional. A function that triggers when this layer prestiges, just before you gain the currency. Can be used to have secondary resource gain on prestige, or to recalculate things or whatnot.

      • resetDescription: optional. Use this to replace "Reset for " on the Prestige button with something else.

      • prestigeButtonText(): sometimes required. Use this to make the entirety of the text a Prestige button contains. Only required for custom layers, but usable by all types.

      • passiveGeneration(): optional, returns a regular number. You automatically generate your gain times this number every second (does nothing if absent) This is good for automating Normal layers.

      • autoPrestige(): optional, returns a boolean, if true, the layer will always automatically do a prestige if it can. This is good for automating Static layers.

      Tree/node features

      • symbol: optional. The text that appears on this layer's node. Default is the layer id with the first letter capitalized.

      • image: override. The url (local or global) of an image that goes on the node. (Overrides symbol)

      • position: optional. Determines the horizontal position of the layer in its row in a standard tree. By default, it uses the layer id, and layers are sorted in alphabetical order.

      • branches: optional. An array of layer/node ids. On a tree, a line will appear from this layer to all of the layers in the list. Alternatively, an entry in the array can be a 2-element array consisting of the layer id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors).

      • nodeStyle: optional. A CSS object, where the keys are CSS attributes, which styles this layer's node on the tree.

      • tooltip() / tooltipLocked(): optional. Functions that return text, which is the tooltip for the node when the layer is unlocked or locked, respectively. By default the tooltips behave the same as in the original Prestige Tree. If the value is "", the tooltip will be disabled.

      Other features

      • doReset(resettingLayer): optional. Is triggered when a layer on a row greater than or equal to this one does a reset. The default behavior is to reset everything on the row, but only if it was triggered by a layer in a higher row. doReset is always called for side layers, but for these the default behavior is to reset nothing.

        If you want to keep things, determine what to keep based on resettingLayer, milestones, and such, then call layerDataReset(layer, keep), where layer is this layer, and keep is an array of the names of things to keep. It can include things like "points", "best", "total" (for this layer's prestige currency), "upgrades", any unique variables like "generatorPower", etc. If you want to only keep specific upgrades or something like that, save them in a separate variable, then call layerDataReset, and then set player[this.layer].upgrades to the saved upgrades.

      • update(diff): optional. This function is called every game tick. Use it for any passive resource production or time-based things. diff is the time since the last tick.

      • autoUpgrade: optional, a boolean value, if true, the game will attempt to buy this layer's upgrades every tick. Defaults to false.

      • automate(): optional. This function is called every game tick, after production. Use it to activate automation things that aren't otherwise supported.

      • resetsNothing: optional. Returns true if this layer shouldn't trigger any resets when you prestige.

      • increaseUnlockOrder: optional. An array of layer ids. When this layer is unlocked for the first time, the unlockOrder value for any not-yet-unlocked layers in this list increases. This can be used to make them harder to unlock.

      • shouldNotify: optional. A function to return true if this layer should be highlighted in the tree. The layer will automatically be highlighted if you can buy an upgrade whether you have this or not.

      • componentStyles: optional. An object that contains a set of functions returning CSS objects. Each of these will be applied to any components on the layer with the type of its id. Example:

      js
      componentStyles: {
           "challenge"() { return {'height': '200px'} },
           "prestige-button"() { return {'color': '#AA66AA'} }
      -}

      Custom Prestige type

      (All of these can also be used by other prestige types)

      • getResetGain(): mostly for custom prestige type. Returns how many points you should get if you reset now. You can call getResetGain(this.layer, useType = "static") or similar to calculate what your gain would be under another prestige type (provided you have all of the required features in the layer).

      • getNextAt(canMax=false): mostly for custom prestige type. Returns how many of the base currency you need to get to the next point. canMax is an optional variable used with Static-ish layers to differentiate between if it's looking for the first point you can reset at, or the requirement for any gain at all (Supporting both is good). You can also call getNextAt(this.layer, canMax=false, useType = "static") or similar to calculate what your next at would be under another prestige type (provided you have all of the required features in the layer).

      • canReset(): mostly for custom prestige type. Return true only if you have the resources required to do a prestige here.

      • prestigeNotify(): mostly for custom prestige types, returns true if this layer should be subtly highlighted to indicate you can prestige for a meaningful gain.

      Any and all opinions listed here are my own and not representative of my employers; future, past and present.
      Resume (not actively seeking new opportunities).
      Site built from this commit on .
      - +}

      Custom Prestige type

      (All of these can also be used by other prestige types)

      • getResetGain(): mostly for custom prestige type. Returns how many points you should get if you reset now. You can call getResetGain(this.layer, useType = "static") or similar to calculate what your gain would be under another prestige type (provided you have all of the required features in the layer).

      • getNextAt(canMax=false): mostly for custom prestige type. Returns how many of the base currency you need to get to the next point. canMax is an optional variable used with Static-ish layers to differentiate between if it's looking for the first point you can reset at, or the requirement for any gain at all (Supporting both is good). You can also call getNextAt(this.layer, canMax=false, useType = "static") or similar to calculate what your next at would be under another prestige type (provided you have all of the required features in the layer).

      • canReset(): mostly for custom prestige type. Return true only if you have the resources required to do a prestige here.

      • prestigeNotify(): mostly for custom prestige types, returns true if this layer should be subtly highlighted to indicate you can prestige for a meaningful gain.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/main-mod-info.html b/public/lit/docs/main-mod-info.html index ed144244..68a6fa56 100644 --- a/public/lit/docs/main-mod-info.html +++ b/public/lit/docs/main-mod-info.html @@ -6,12 +6,12 @@ mod.js | The Paper Pilot - + - + - + @@ -34,12 +34,12 @@ -
    Skip to content

    mod.js

    All of the non-layer code and data that you're likely to edit is here in mod.js! Everything in mod.js will not be altered by updates, besides the addition of new things.

    Here's a breakdown of what's in it:

    • modInfo is where most of the basic configuration for the mod is. It contains:

      • name: The name of your mod. (a string)

      • id: The id for your mod, a unique string that is used to determine savefile location. Setting it is important!

      • author: The name of the author, displayed in the info tab.

      • pointsName: This changes what is displayed instead of "points" for the main currency. (It does not affect it in the code.)

      • discordName, discordLink: If you have a Discord server or other discussion place, you can add a link to it.

        "discordName" is the text on the link, and "discordLink" is the url of an invite. If you're using a Discord invite, please make sure it's set to never expire.

      • offlineLimit: The maximum amount of offline time that the player can accumulate, in hours. Any extra time is lost. (a number)

        This is useful because most of these mods are fast-paced enough that too much offline time ruins the balance, such as the time in between updates. That is why I suggest developers disable offline time on their own savefile.

      • initialStartPoints: A Decimal for the amount of points a new player should start with.

    • VERSION is used to describe the current version of your mod. It contains:

      • num: The mod's version number, displayed at the top right of the tree tab.
      • name: The version's name, displayed alongside the number in the info tab.
    • changelog is the HTML displayed in the changelog tab.

    • doNotCallTheseFunctionsEveryTick is very important. TMT calls every function anywhere in "layers" every tick to store the result, unless specifically told not to. Functions that have are used to do an action need to be identified. "Official" functions (those in the documentation) are all fine, but if you make any new ones, add their names to this array.

    js
    // (The ones here are examples, all official functions are already taken care of)
    +    
    Skip to content

    mod.js

    All of the non-layer code and data that you're likely to edit is here in mod.js! Everything in mod.js will not be altered by updates, besides the addition of new things.

    Here's a breakdown of what's in it:

    • modInfo is where most of the basic configuration for the mod is. It contains:

      • name: The name of your mod. (a string)

      • id: The id for your mod, a unique string that is used to determine savefile location. Setting it is important!

      • author: The name of the author, displayed in the info tab.

      • pointsName: This changes what is displayed instead of "points" for the main currency. (It does not affect it in the code.)

      • discordName, discordLink: If you have a Discord server or other discussion place, you can add a link to it.

        "discordName" is the text on the link, and "discordLink" is the url of an invite. If you're using a Discord invite, please make sure it's set to never expire.

      • offlineLimit: The maximum amount of offline time that the player can accumulate, in hours. Any extra time is lost. (a number)

        This is useful because most of these mods are fast-paced enough that too much offline time ruins the balance, such as the time in between updates. That is why I suggest developers disable offline time on their own savefile.

      • initialStartPoints: A Decimal for the amount of points a new player should start with.

    • VERSION is used to describe the current version of your mod. It contains:

      • num: The mod's version number, displayed at the top right of the tree tab.
      • name: The version's name, displayed alongside the number in the info tab.
    • changelog is the HTML displayed in the changelog tab.

    • doNotCallTheseFunctionsEveryTick is very important. TMT calls every function anywhere in "layers" every tick to store the result, unless specifically told not to. Functions that have are used to do an action need to be identified. "Official" functions (those in the documentation) are all fine, but if you make any new ones, add their names to this array.

    js
    // (The ones here are examples, all official functions are already taken care of)
     var doNotCallTheseFunctionsEveryTick = ["doReset", "buy", "onPurchase", "blowUpEverything"]
    • getStartPoints(): A function to determine the amount of points the player starts with after a reset. (returns a Decimal value)

    • canGenPoints(): A function returning a boolean for if points should be generated. Use this if you want an upgrade to unlock generating points.

    • getPointGen(): A function that calculates your points per second. Anything that affects your point gain should go into the calculation here.

    • addedPlayerData(): A function that returns any non-layer-related data that you want to be added to the save data and "player" object.

    js
    function addedPlayerData() { return {
     	weather: "Yes",
     	happiness: new Decimal(72),
    -}}
    • displayThings: An array of functions used to display extra things at the top of the tree tab. Each function returns a string, which is a line to display (with basic HTML support). If a function returns nothing, nothing is displayed (and it doesn't take up a line).

    • isEndgame(): A function to determine if the player has reached the end of the game, at which point the "you win!" screen appears.

    Less important things beyond this point!

    • maxTickLength(): Returns the maximum tick length, in milliseconds. Only really useful if you have something that reduces over time, which long ticks mess up (usually a challenge).
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}}
    • displayThings: An array of functions used to display extra things at the top of the tree tab. Each function returns a string, which is a line to display (with basic HTML support). If a function returns nothing, nothing is displayed (and it doesn't take up a line).

    • isEndgame(): A function to determine if the player has reached the end of the game, at which point the "you win!" screen appears.

    Less important things beyond this point!

    • maxTickLength(): Returns the maximum tick length, in milliseconds. Only really useful if you have something that reduces over time, which long ticks mess up (usually a challenge).
    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/milestones.html b/public/lit/docs/milestones.html index f0273069..78e2374b 100644 --- a/public/lit/docs/milestones.html +++ b/public/lit/docs/milestones.html @@ -6,12 +6,12 @@ Milestones | The Paper Pilot - + - + - + @@ -34,15 +34,15 @@ -
    Skip to content

    Milestones

    Milestones are awarded to the player when they meet a certain goal, and give some benefit. Milestones should be formatted like this:

    js
    milestones: {
    +    
    Skip to content

    Milestones

    Milestones are awarded to the player when they meet a certain goal, and give some benefit. Milestones should be formatted like this:

    js
    milestones: {
         0: {
             requirementDescription: "123 waffles",
             effectDescription: "blah",
             done() { return player.w.points.gte(123) }
         }
         etc
    -}

    You can use hasMilestone(layer, id) to determine if the player has a given milestone

    Milestone features:

    • requirementDescription: A string describing the requirement for unlocking this milestone. Suggestion: Use a "total". It can also be a function that returns updating text. Can use basic HTML.

    • effectDescription: A string describing the reward for having the milestone. You will have to implement the reward elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the milestone should be awarded.

    • toggles: optional. Creates toggle buttons that appear on the milestone when it is unlocked. The toggles can toggle a given boolean value in a layer. It is defined as an array of paired items, one pair per toggle. The first is the internal name of the layer the value being toggled is stored in, and the second is the internal name of the variable to toggle. (e.g. [["b", "auto"], ["g", "auto"])

      Tip: Toggles are not de-set if the milestone becomes locked! In this case, you should also check if the player has the milestone.

    • style: optional. Applies CSS to this milestone, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a boolean to determine if the milestone should be shown. If absent, it is always shown.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the milestone was stored under, for convenient access. The milestone in the example's id is 0.

    Disaable milestone popups by adding milestonePopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    You can use hasMilestone(layer, id) to determine if the player has a given milestone

    Milestone features:

    • requirementDescription: A string describing the requirement for unlocking this milestone. Suggestion: Use a "total". It can also be a function that returns updating text. Can use basic HTML.

    • effectDescription: A string describing the reward for having the milestone. You will have to implement the reward elsewhere. It can also be a function that returns updating text. Can use basic HTML.

    • done(): A function returning a boolean to determine if the milestone should be awarded.

    • toggles: optional. Creates toggle buttons that appear on the milestone when it is unlocked. The toggles can toggle a given boolean value in a layer. It is defined as an array of paired items, one pair per toggle. The first is the internal name of the layer the value being toggled is stored in, and the second is the internal name of the variable to toggle. (e.g. [["b", "auto"], ["g", "auto"])

      Tip: Toggles are not de-set if the milestone becomes locked! In this case, you should also check if the player has the milestone.

    • style: optional. Applies CSS to this milestone, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • unlocked(): optional. A function returning a boolean to determine if the milestone should be shown. If absent, it is always shown.

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the milestone was stored under, for convenient access. The milestone in the example's id is 0.

    Disaable milestone popups by adding milestonePopups: false to the layer.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/subtabs-and-microtabs.html b/public/lit/docs/subtabs-and-microtabs.html index 6d954c5c..eabb3ec6 100644 --- a/public/lit/docs/subtabs-and-microtabs.html +++ b/public/lit/docs/subtabs-and-microtabs.html @@ -6,12 +6,12 @@ Subtabs and Microtabs | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Subtabs and Microtabs

    Subtabs are separate sections of a tab that you can view by selecting one at the top of the tab. Microtabs are smaller areas that function in much the same way. You can also embed layers inside of subtabs/microtabs.

    Subtabs are defined by using the tab format like this, where each element of tabFormat is given the name of that subtab:

    js
    tabFormat: {
    +    
    Skip to content

    Subtabs and Microtabs

    Subtabs are separate sections of a tab that you can view by selecting one at the top of the tab. Microtabs are smaller areas that function in much the same way. You can also embed layers inside of subtabs/microtabs.

    Subtabs are defined by using the tab format like this, where each element of tabFormat is given the name of that subtab:

    js
    tabFormat: {
         "Main tab": {
             content: [tab format things],
             *subtab features*
    @@ -58,8 +58,8 @@
         otherStuff: {
             // There could be another set of microtabs here
         }
    -}

    Normal subtabs and microtab subtabs both use the same features:

    Features:

    • content: The tab layout code for the subtab, in the tab layout format.

    • style: optional. Applies CSS to the whole subtab when switched to, in the form of an "CSS Object", where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • buttonStyle: optional. A CSS object, which affects the appearance of the button for that subtab.

    • unlocked(): optional. a function to determine if the button for this subtab should be visible. By default, a subtab is always unlocked. You can't use the "this" keyword in this function.

    • shouldNotify(): optional, if true, the tab button will be highlighted to notify the player that there is something there.

    • embedLayer: SIGNIFICANT, the id of another layer. If you have this, it will override "content", "style" and "shouldNotify", instead displaying the entire layer in the subtab.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Normal subtabs and microtab subtabs both use the same features:

    Features:

    • content: The tab layout code for the subtab, in the tab layout format.

    • style: optional. Applies CSS to the whole subtab when switched to, in the form of an "CSS Object", where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • buttonStyle: optional. A CSS object, which affects the appearance of the button for that subtab.

    • unlocked(): optional. a function to determine if the button for this subtab should be visible. By default, a subtab is always unlocked. You can't use the "this" keyword in this function.

    • shouldNotify(): optional, if true, the tab button will be highlighted to notify the player that there is something there.

    • embedLayer: SIGNIFICANT, the id of another layer. If you have this, it will override "content", "style" and "shouldNotify", instead displaying the entire layer in the subtab.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/trees-and-tree-customization.html b/public/lit/docs/trees-and-tree-customization.html index b670e91d..a581c243 100644 --- a/public/lit/docs/trees-and-tree-customization.html +++ b/public/lit/docs/trees-and-tree-customization.html @@ -6,12 +6,12 @@ Trees and tree customization | The Paper Pilot - + - + - + @@ -34,10 +34,10 @@ -
    Skip to content

    Trees and tree customization

    If you want to have something beyond the standard tree on the left tab, you can do that in tree.js. You can change the layout of the tree, including making non-layer nodes, change it into something other than a tree, or hide the left tab altogether. This also introduces the "tree" component, which can be used in your layers as well.

    layoutInfo

    The most important part is layoutInfo, containing:

    • startTab: The id of the default tab to show on the left at the start.
    • showTree: True if the tree tab should be shown at the start of the game. (The other tab will fill the whole page)
    • treeLayout: If present, overrides the tree layout and places nodes as you describe instead (explained in the next section).

    Additionally, if you want the main layout to not be a tree, you can edit the "tree-tab" layer at the bottom of tree.js to modify it just like a normal layer's tab. You can even switch between left tabs, using showNavTab(layer) to make that layer appear on the left.

    Trees

    The tree component is defined as an array of arrays of names of layers or nodes to show in the tree. They work just like layers/ nodes in the main tree (but branches between nodes will only work on the first node if you have duplicates.)

    Here is an example tree:

    js
    [["p"],
    +    
    Skip to content

    Trees and tree customization

    If you want to have something beyond the standard tree on the left tab, you can do that in tree.js. You can change the layout of the tree, including making non-layer nodes, change it into something other than a tree, or hide the left tab altogether. This also introduces the "tree" component, which can be used in your layers as well.

    layoutInfo

    The most important part is layoutInfo, containing:

    • startTab: The id of the default tab to show on the left at the start.
    • showTree: True if the tree tab should be shown at the start of the game. (The other tab will fill the whole page)
    • treeLayout: If present, overrides the tree layout and places nodes as you describe instead (explained in the next section).

    Additionally, if you want the main layout to not be a tree, you can edit the "tree-tab" layer at the bottom of tree.js to modify it just like a normal layer's tab. You can even switch between left tabs, using showNavTab(layer) to make that layer appear on the left.

    Trees

    The tree component is defined as an array of arrays of names of layers or nodes to show in the tree. They work just like layers/ nodes in the main tree (but branches between nodes will only work on the first node if you have duplicates.)

    Here is an example tree:

    js
    [["p"],
      ["left", "blank", "right", "blank"]
    - ["a", "b", "blank", "c", "weirdButton"]]

    Nodes

    Nodes are non-layer buttons that can go in trees. They are defined similarly to layers, but with addNode instead of addLayer.

    Features:

    • color: optional, The node's color. (A string in hex format with a #)

    • symbol: optional The text on the button (The id capitalized by default)

    • canClick(): Returns true if the player can click the node. ()

    • onClick(): The function called when the node is clicked.

    • layerShown(): optional, A function returning a bool which determines if this node should be visible. It can also return "ghost", which will hide the layer, but its node will still take up space in its tree.

    • branches: optional. An array of layer/node ids. On a tree, a line will appear from this node to all of the nodes in the list. Alternatively, an entry in the array can be a 2-element array consisting of the id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors).

    • nodeStyle: optional. A CSS object, where the keys are CSS attributes, which styles this node on the tree.

    • tooltip() / tooltipLocked(): optional. Functions that return text, which is the tooltip for the node when the layer is unlocked or locked, respectively. By default the tooltips behave the same as in the original Prestige Tree.

    • row: optional, the row that this node appears in (for the default tree).

    • position: optional, Determines the horizontal position of the layer in its row in a default tree. By default, it uses the id, and layers/nodes are sorted in alphabetical order.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - + ["a", "b", "blank", "c", "weirdButton"]]

    Nodes

    Nodes are non-layer buttons that can go in trees. They are defined similarly to layers, but with addNode instead of addLayer.

    Features:

    • color: optional, The node's color. (A string in hex format with a #)

    • symbol: optional The text on the button (The id capitalized by default)

    • canClick(): Returns true if the player can click the node. ()

    • onClick(): The function called when the node is clicked.

    • layerShown(): optional, A function returning a bool which determines if this node should be visible. It can also return "ghost", which will hide the layer, but its node will still take up space in its tree.

    • branches: optional. An array of layer/node ids. On a tree, a line will appear from this node to all of the nodes in the list. Alternatively, an entry in the array can be a 2-element array consisting of the id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors).

    • nodeStyle: optional. A CSS object, where the keys are CSS attributes, which styles this node on the tree.

    • tooltip() / tooltipLocked(): optional. Functions that return text, which is the tooltip for the node when the layer is unlocked or locked, respectively. By default the tooltips behave the same as in the original Prestige Tree.

    • row: optional, the row that this node appears in (for the default tree).

    • position: optional, Determines the horizontal position of the layer in its row in a default tree. By default, it uses the id, and layers/nodes are sorted in alphabetical order.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/updating-tmt.html b/public/lit/docs/updating-tmt.html index 22745bc3..6e81f193 100644 --- a/public/lit/docs/updating-tmt.html +++ b/public/lit/docs/updating-tmt.html @@ -6,12 +6,12 @@ Updating The Modding Tree | The Paper Pilot - + - + - + @@ -34,8 +34,8 @@ -
    Skip to content

    Updating The Modding Tree

    This tutorial assumes that you have used the Getting Started Tutorial, and are using Github Desktop and VSCode for your mod.

    Here's what you have to do when there's a TMT update:

    1. Look at the changelog. It will warn you if the update will break anything or require any changes. Decide if you want to try to update.

    2. Open Github Desktop, and at the top middle, click "fetch origin". This will make Github Desktop get information about the update.

    3. Click where it says "current branch: master" at the top middle, and at the bottom of the thing that appears, click "choose a branch to merge into master".

    4. Select upstream/master. It will likely say there are conflicts, but you have tools to resolve them. Click "Merge upstream/master into master".

    5. A conflict happens when the things you're trying to merge have both made changes in the same place. Click "open in Visual Studio Code" next to the first file.

    6. Scroll down through the file, and look for the parts highlighted in red and green. One of these is your code, and the other is some code that will be modified by the update. Do your best to try to edit things to keep the updated changes, but keep your content.

    7. Continue to do this for all remaining changes.

    8. Do any other changes required by the update, run the game, fix issues, etc.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +
    Skip to content

    Updating The Modding Tree

    This tutorial assumes that you have used the Getting Started Tutorial, and are using Github Desktop and VSCode for your mod.

    Here's what you have to do when there's a TMT update:

    1. Look at the changelog. It will warn you if the update will break anything or require any changes. Decide if you want to try to update.

    2. Open Github Desktop, and at the top middle, click "fetch origin". This will make Github Desktop get information about the update.

    3. Click where it says "current branch: master" at the top middle, and at the bottom of the thing that appears, click "choose a branch to merge into master".

    4. Select upstream/master. It will likely say there are conflicts, but you have tools to resolve them. Click "Merge upstream/master into master".

    5. A conflict happens when the things you're trying to merge have both made changes in the same place. Click "open in Visual Studio Code" next to the first file.

    6. Scroll down through the file, and look for the parts highlighted in red and green. One of these is your code, and the other is some code that will be modified by the update. Do your best to try to edit things to keep the updated changes, but keep your content.

    7. Continue to do this for all remaining changes.

    8. Do any other changes required by the update, run the game, fix issues, etc.

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file diff --git a/public/lit/docs/upgrades.html b/public/lit/docs/upgrades.html index 742c4569..45c9eaed 100644 --- a/public/lit/docs/upgrades.html +++ b/public/lit/docs/upgrades.html @@ -6,12 +6,12 @@ Upgrades | The Paper Pilot - + - + - + @@ -34,7 +34,7 @@ -
    Skip to content

    Upgrades

    Useful functions for dealing with Upgrades and implementing their effects:

    • hasUpgrade(layer, id): determine if the player has the upgrade
    • upgradeEffect(layer, id): Returns the current effects of the upgrade, if any
    • buyUpgrade(layer, id): Buys an upgrade directly (if affordable)

    Hint: Basic point gain is calculated in mod.js's "getPointGen" function.

    Upgrades are stored in the following format:

    js
    upgrades: {
    +    
    Skip to content

    Upgrades

    Useful functions for dealing with Upgrades and implementing their effects:

    • hasUpgrade(layer, id): determine if the player has the upgrade
    • upgradeEffect(layer, id): Returns the current effects of the upgrade, if any
    • buyUpgrade(layer, id): Buys an upgrade directly (if affordable)

    Hint: Basic point gain is calculated in mod.js's "getPointGen" function.

    Upgrades are stored in the following format:

    js
    upgrades: {
         rows: # of rows,
         cols: # of columns,
         11: {
    @@ -43,8 +43,8 @@
             etc
         },
         etc
    -}

    Each upgrade should have an id where the first digit is the row and the second digit is the column.

    Individual upgrades can have these features:

    • title: optional. Displayed at the top in a larger font. It can also be a function that returns updating text. Can use basic HTML.

    • description: A description of the upgrade's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the upgrade. Can return a value or an object containing multiple values.

    • effectDisplay(): optional. A function that returns a display of the current effects of the upgrade with formatting. Default displays nothing. Can use basic HTML.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the upgrade. Can use basic HTML.

    • cost: A Decimal for the cost of the upgrade. By default, upgrades cost the main prestige currency for the layer.

    • unlocked(): optional. A function returning a bool to determine if the upgrade is visible or not. Default is unlocked.

    • onPurchase(): optional. This function will be called when the upgrade is purchased. Good for upgrades like "makes this layer act like it was unlocked first".

    • style: optional. Applies CSS to this upgrade, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the upgrade was stored under, for convenient access. The upgrade in the example's id is 11.

    By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

    • currencyDisplayName: optional. The name to display for the currency for the upgrade.

    • currencyInternalName: optional. The internal name for that currency.

    • currencyLayer: optional. The internal name of the layer that currency is stored in. If it's not in a layer (like Points), omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation: optional. If your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    If you want to do something more complicated like upgrades that cost two currencies, you can override the purchase system with these (and you need to use fullDisplay as well)

    • canAfford(): OVERRIDE, a function determining if you are able to buy the upgrade

    • pay(): OVERRIDE, a function that reduces your currencies when you buy the upgrade

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    - +}

    Each upgrade should have an id where the first digit is the row and the second digit is the column.

    Individual upgrades can have these features:

    • title: optional. Displayed at the top in a larger font. It can also be a function that returns updating text. Can use basic HTML.

    • description: A description of the upgrade's effect. You will also have to implement the effect where it is applied. It can also be a function that returns updating text. Can use basic HTML.

    • effect(): optional. A function that calculates and returns the current values of any bonuses from the upgrade. Can return a value or an object containing multiple values.

    • effectDisplay(): optional. A function that returns a display of the current effects of the upgrade with formatting. Default displays nothing. Can use basic HTML.

    • fullDisplay(): OVERRIDE. Overrides the other displays and descriptions, and lets you set the full text for the upgrade. Can use basic HTML.

    • cost: A Decimal for the cost of the upgrade. By default, upgrades cost the main prestige currency for the layer.

    • unlocked(): optional. A function returning a bool to determine if the upgrade is visible or not. Default is unlocked.

    • onPurchase(): optional. This function will be called when the upgrade is purchased. Good for upgrades like "makes this layer act like it was unlocked first".

    • style: optional. Applies CSS to this upgrade, in the form of an object where the keys are CSS attributes, and the values are the values for those attributes (both as strings).

    • layer: assigned automagically. It's the same value as the name of this layer, so you can do player[this.layer].points or similar.

    • id: assigned automagically. It's the "key" which the upgrade was stored under, for convenient access. The upgrade in the example's id is 11.

    By default, upgrades use the main prestige currency for the layer. You can include these to change them (but it needs to be a Decimal):

    • currencyDisplayName: optional. The name to display for the currency for the upgrade.

    • currencyInternalName: optional. The internal name for that currency.

    • currencyLayer: optional. The internal name of the layer that currency is stored in. If it's not in a layer (like Points), omit. If it's not stored directly in a layer, instead use the next feature.

    • currencyLocation: optional. If your currency is stored in something inside a layer (e.g. a buyable's amount), you can access it this way. This is a function returning the object in "player" that contains the value (like player[this.layer].buyables)

    If you want to do something more complicated like upgrades that cost two currencies, you can override the purchase system with these (and you need to use fullDisplay as well)

    • canAfford(): OVERRIDE, a function determining if you are able to buy the upgrade

    • pay(): OVERRIDE, a function that reduces your currencies when you buy the upgrade

    Any and all opinions listed here are my own and not representative of my employers; future, past and present.
    Resume (not actively seeking new opportunities).
    Site built from this commit on .
    + \ No newline at end of file