t2-mapper/docs/_next/static/chunks/7dcb40c178014bc9.js

1 line
12 KiB
JavaScript
Raw Normal View History

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81847,e=>{e.v({Actions:"GameDialog-module__C6hZDW__Actions",Dialog:"GameDialog-module__C6hZDW__Dialog",DialogButton:"GameDialog-module__C6hZDW__DialogButton",Overlay:"GameDialog-module__C6hZDW__Overlay",Secondary:"GameDialog-module__C6hZDW__Secondary GameDialog-module__C6hZDW__DialogButton"})},66438,e=>{e.v({Bullet:"GuiMarkup-module__CLgNnq__Bullet",GuiMarkup:"GuiMarkup-module__CLgNnq__GuiMarkup"})},41973,e=>{e.v({Body:"MapInfoDialog-module__m0lXla__Body",CloseButton:"MapInfoDialog-module__m0lXla__CloseButton "+e.i(81847).DialogButton,Dialog:"MapInfoDialog-module__m0lXla__Dialog "+e.i(81847).Dialog,Footer:"MapInfoDialog-module__m0lXla__Footer",Hint:"MapInfoDialog-module__m0lXla__Hint",Left:"MapInfoDialog-module__m0lXla__Left",MapBlurb:"MapInfoDialog-module__m0lXla__MapBlurb",MapMeta:"MapInfoDialog-module__m0lXla__MapMeta",MapPlanet:"MapInfoDialog-module__m0lXla__MapPlanet",MapQuote:"MapInfoDialog-module__m0lXla__MapQuote",MusicButton:"MapInfoDialog-module__m0lXla__MusicButton",MusicTrack:"MapInfoDialog-module__m0lXla__MusicTrack",MusicTrackName:"MapInfoDialog-module__m0lXla__MusicTrackName",Overlay:"MapInfoDialog-module__m0lXla__Overlay "+e.i(81847).Overlay,PreviewImage:"MapInfoDialog-module__m0lXla__PreviewImage",PreviewImageFloating:"MapInfoDialog-module__m0lXla__PreviewImageFloating",Section:"MapInfoDialog-module__m0lXla__Section",SectionTitle:"MapInfoDialog-module__m0lXla__SectionTitle",Title:"MapInfoDialog-module__m0lXla__Title"})},94247,e=>{"use strict";var t=e.i(43476),a=e.i(932),l=e.i(71645),o=e.i(11152),i=e.i(66027),n=e.i(12979),r=e.i(91996),s=e.i(66438);let u=new Set(["spop","spush","lmargin","font","color","bitmap","a","/a"]),c=new Map;function m(e){let l,o=(0,a.c)(5),{name:i}=e;o[0]!==i?(l=function(e){let t;if(c.has(e))return c.get(e);try{t=(0,n.getUrlForPath)((0,r.getStandardTextureResourceKey)(`textures/gui/${e}`))}catch{t=null}return c.set(e,t),t}(i),o[0]=i,o[1]=l):l=o[1];let u=l;if(u){let e;return o[2]!==u?(e=(0,t.jsx)("img",{src:u,alt:"",className:s.default.Bitmap}),o[2]=u,o[3]=e):e=o[3],e}if(/bullet/i.test(i)){let e;return o[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,t.jsx)("span",{className:s.default.Bullet,children:"•"}),o[4]=e):e=o[4],e}return null}let p=/<(?:font|color|bitmap|just|lmargin|a):/i;function d(e){let o,i,n=(0,a.c)(4),{markup:r}=e;n[0]!==r?(o=function(e){let a=e.split(/<([^><]+)>/g).map((e,t)=>{if(t%2==0)return e?{type:"text",value:e}:null;{let[t,...a]=e.split(":");return u.has(t.toLowerCase())?{type:"tag",name:t,args:a}:{type:"text",value:`<${e}>`}}}).filter(e=>null!=e),o={type:"span",source:"root",style:{},children:[]},i=o,n=[i],r=e=>null!=e.children&&e.children.some(e=>"string"==typeof e||r(e));for(let e of a)switch(e.type){case"text":i.children.push(e.value);break;case"tag":switch(e.name){case"spush":{let e={type:"span",source:"spush",style:{},children:[]};i.children.push(e),i=e,n.push(i);break}case"spop":if("root"!==i.source){let e=n.pop();for(;"spush"!==e.source;)e=n.pop();i=n[n.length-1]}break;case"lmargin":break;case"font":{let t=function(e){let[t,a]=e;return{fontDescription:t,fontSize:a?Math.max(11,Math.min(parseInt(a.trim(),10),16)):void 0}}(e.args).fontSize;if(r(i)){let e={type:"span",source:"spush",style:{fontSize:t},children:[]};i.children.push(e),i=e,n.push(i)}else i.style.fontSize=t;break}case"color":if(r(i)){let t={type:"span",source:"spush",style:{color:`#${e.args[0].trim()}`},children:[]};i.children.push(t),i=t,n.push(i)}else i.style.color=`#${e.args[0].trim()}`;break;case"bitmap":{let t={type:"bitmap",value:e.args[0]};i.children.push(t);break}case"a":{let t=e.args[0].trim().split(" "),a=2===t.length&&"wwwlink"===t[0]?t[1]:t[0],l={type:"a",source:"a",value:`http://${a}`,style:{},children:[]};i.children.push(l),i=l,n.push(i);break}case"/a":{let e=n.pop();for(;"a"!==e.source;)e=n.pop();i=n[n.length-1]}}}return function e(a){switch(a.type){case"span":return l.default.createElement("span",{style:0===Object.keys(a.style).length?void 0:a.style},...a.childr