1 line
No EOL
28 KiB
JavaScript
1 line
No EOL
28 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{247:function(t,n,e){"use strict";e.d(n,"b",(function(){return s}));var r=e(271),o=e(256),i=e(252),c=e(249),f=e(257),u=e(254),a=e(258);function s(t){if(null==t)return null;try{return JSON.parse(t)}catch{return null}}n.a={InstantRestart:r.b,qft:o.default,qfst:i.default,CustomizedDisplay:c.default,PatternSelector:f.default,AttemptCounter:u.default,controller:a.default}},248:function(t,n,e){"use strict";e.d(n,"b",(function(){return s})),e.d(n,"a",(function(){return p})),e.d(n,"g",(function(){return g})),e.d(n,"i",(function(){return y})),e.d(n,"h",(function(){return h})),e.d(n,"e",(function(){return A})),e.d(n,"f",(function(){return C})),e.d(n,"d",(function(){return F})),e.d(n,"c",(function(){return m}));e(91),e(272),e(273),e(274),e(275);var r=e(310),o=e(311),i=e(312);const c=(t,n,e,r)=>(63&t)<<26|(31&n)<<21|(31&e)<<16|65535&r,f=(t,n,e,r,o,i)=>(63&t)<<26|(31&n)<<21|(31&e)<<16|(31&r)<<11|(1023&o)<<1|i,u=t=>(n,e,r)=>c(t,n,e,r),a=t=>(n,e,r,o,i,c)=>((t,n,e,r,o,i,c)=>(63&t)<<26|(31&e)<<21|(31&n)<<16|(31&r)<<11|(31&o)<<6|(31&i)<<1|c)(t,n,e,r,o,i,+c),s={stb:u(38),sth:u(44),stw:u(36),stfs:u(52),stfd:u(54),stwu:u(37),lbz:u(34),lhz:u(40),lha:u(42),lwz:u(32),lfs:u(48),lfd:u(50),add:(d=31,l=266,(t,n,e,r=0)=>f(d,t,n,e,l,+r)),addi:u(14),li:(t,n)=>c(14,t,0,n),addis:u(15),lis:(t,n)=>c(15,t,0,n),ori:(t=>(n,e,r)=>c(t,n,e,r))(24),or:((t,n)=>(e,r,o,i)=>f(t,e,r,o,n,+i))(31,444),mr:(t,n,e=0)=>f(31,n,t,n,444,e),rlwinm:a(21),rlwimi:a(20),b:(t=>(n,e,r=0)=>((t,n,e,r)=>(63&t)<<26|(16777215&n)<<2|(1&e)<<1|1&r)(t,n>>2,+r,+e))(18),bctr:(t=0)=>f(19,20,0,0,528,t?1:0),mflr:t=>f(31,t,8,0,339,0),mfctr:t=>f(31,t,9,0,339,0),mtlr:t=>f(31,t,8,0,467,0),mtctr:t=>f(31,t,9,0,467,0),crset:t=>f(19,t,t,t,289,0),crclr:t=>f(19,t,t,t,193,0),fmr:(t,n,e=0)=>f(63,t,0,n,72,e)};var d,l;const p={8:s.lbz,16:s.lhz,32:s.lwz,[-16]:s.lha,[-32]:s.lwz,float:s.lfs};s.stb,s.sth,s.stw,s.sth,s.stw,s.stfs,s.stfd;function g(t,n){if(-32768<=n&&n<32768)return[s.li(t,n)];if(0==(65535&n))return[s.lis(t,n>>>16)];{const e=n>>>16,r=65535&n;return[s.lis(t,e),s.ori(t,t,r)]}}function b(t,n){const e=n.startsWith("GMSJ")?r:"GMSE01"===n?i:o,c=Array.from(t).flatMap(t=>{var n,r;const o=null!==(n=null===(r=e[t])||void 0===r?void 0:r.code)&&void 0!==n?n:t.charCodeAt(0);return o>=256?[o>>8,255&o]:[o]});return c.push(0),c}const y=(t,n)=>b(t,n).map(t=>t.toString(16).toUpperCase().padStart(2,"0")).join("");const h=(t,n="")=>({pc:t,hex:n,b(t,n=!1){this.push(s.b(t-this.pc,n))},bl(t){this.b(t,!0)},push(...t){this.hex+=t.map(A).join(""),this.pc+=t.length<<2},pushHex(t){this.hex+=t,this.pc+=t.length>>1},align(){const t=this.pc%4;if(t){const n=4-t;this.hex+="".padEnd(n<<1,"0"),this.pc+=n}}}),A=t=>(t>>>0).toString(16).toUpperCase().padStart(8,"0"),C=t=>t.map(A).join(""),F=({x:t,y:n,fontSize:e,bgRGB:r,bgA:o,bgLeft:i,bgRight:c,bgTop:f,bgBot:u},{width:a,height:s})=>[t-i,n-e-f,t+Math.ceil(a*e/20)+c,n-e+Math.ceil(s*e/20)+u,r<<8|o];function m({x:t,y:n,fontSize:e,fgRGB:r,fgA:o,fgRGB2:i,fgA2:c}){const f=r<<8|o;return[(65535&t)<<16|65535&n,e,f,null==i||null==c?f:i<<8|o]}},249:function(t,n,e){"use strict";e.r(n),e.d(n,"lskey",(function(){return C})),e.d(n,"defaultConfig",(function(){return F})),e.d(n,"format2previewText",(function(){return m})),e.d(n,"getConfig",(function(){return S})),e.d(n,"default",(function(){return v}));e(91);var r=e(247),o=e(248),i=e(253),c=e(269),f=(e(92),e(241));const u=(t,n)=>(e,r)=>{const{type:i}=r,c=n(e);if("reg"==i){const{num:n}=r;return"float"===t?1===n?c:[...c,o.b.fmr(n,1)]:3===n?c:[...c,o.b.mr(n,3)]}{const{off:n}=r;return[...c,"float"===t?o.b.stfd(1,1,n):o.b.stw(3,1,n)]}},a={...Object.fromEntries(Object.entries(c.b).map(([t,n])=>[t,(t,e)=>[o.b.lwz(t,13,n[e])]]))},s=[{id:"x",base:"gpMarioOriginal",dtype:"float",offset:16,fmt:"%.0f",preview:426.39},{id:"y",base:"gpMarioOriginal",dtype:"float",offset:20,fmt:"%.0f",preview:-427.39},{id:"z",base:"gpMarioOriginal",dtype:"float",offset:24,fmt:"%.0f",preview:428.39},{id:"angle",base:"gpMarioOriginal",dtype:16,offset:150,fmt:"%hu",preview:1207},{id:"HSpd",base:"gpMarioOriginal",dtype:"float",offset:176,fmt:"%.2f",preview:15.15},{id:"VSpd",base:"gpMarioOriginal",dtype:"float",offset:168,fmt:"%.2f",preview:-31.17},{id:"QF",base:"gpMarDirector",dtype:32,offset:88,fmt:"%u",preview:0,postprocess:t=>[o.b.rlwinm(t,t,0,30,31,!1)]},{id:"CAngle",base:"gpCamera",dtype:16,offset:166,fmt:"%hu",preview:9,postprocess:t=>[o.b.addi(t,t,-32768)]},{id:"invinc",base:"gpMarioOriginal",dtype:16,offset:332,fmt:"%hd",preview:30,postprocess:t=>[o.b.rlwinm(t,t,30,2,31,!1)]},{id:"goop",fmt:"%d",preview:600,...(d=-32,l=t=>[{type:"call",addr:c.a.getPollutionDegree[t],prep:[o.b.lwz(3,13,c.b.gpPollution[t])]}],{dtype:d,asm:u(d,l),calling:!0})},{id:"spin",fmt:"%s",preview:t=>String.fromCharCode(t.startsWith("GMSJ")?65312:64),dtype:32,calling:!0,asm:(t,n)=>[{type:"call",addr:c.a.checkStickRotate[t],prep:[o.b.lwz(3,13,c.b.gpMarioOriginal[t]),o.b.stwu(1,1,-16),o.b.addi(4,1,8)]},{type:"struct",reg:12,hex:t.startsWith("GMSJ")?"00819700":"004000"},..."stack"===n.type?[o.b.add(3,12,3),o.b.stw(3,1,n.off)]:[o.b.add(n.num,12,3)],o.b.addi(1,1,16)]}];var d,l;const p=Object.fromEntries(s.map(t=>[t.id.toLowerCase(),t])),g={8:{prefix:"hh",mask:255},16:{prefix:"h",mask:65535},32:{prefix:"",mask:4294967295},[-16]:{prefix:"h",mask:65535},[-32]:{prefix:"",mask:4294967295}};function b(t,n){const e=/<(.*?)>/g;let r="",o="";const i=[];let c=null,f=0;for(;c=e.exec(t);){const{index:e}=c,u=t.slice(f,e);r+=u,o+=u.replace(/%/g,"%%");const[a,s,d]=c[1].split("|"),l=p[a.toLowerCase()];if(l){const{dtype:t}=l;let e,c;if("function"==typeof l.preview)e=l.fmt,c=l.preview(n);else{const n=s||l.fmt;let r=+d;d&&isFinite(r)||(r=l.preview);let o="";if("float"===t){const t=n.trim().match(/^(?:%?(\d*)\.)?(\d+)([eEf]?)$/);o=(null==t?void 0:t[1])||"";const i=+((null==t?void 0:t[2])||0),f=(null==t?void 0:t[3])||"f";e=`%${o}.${i}${f}`,c=r["f"===f?"toFixed":"toExponential"](i),"E"===f&&(c=c.toUpperCase())}else{const{prefix:i,mask:f}=g[t];r&=f;const u=n.trim().match(/^%?(\d*)h{,2}([dioxXu])$/);o=(null==u?void 0:u[1])||"";const a=(null==u?void 0:u[2])||(t>0?"u":"d");e=`%${o}${i}${a}`,"di".includes(a)?(r>f>>>1&&(r-=f),c=r.toString(10)):c="o"===a?(r>>>0).toString(8):"xX".includes(a)?(r>>>0).toString(16):(r>>>0).toString(10)}c=c.padStart(+o,"0"===o[0]?"0":" ")}r+=c,o+=e,i.push(l)}else r+=c[0],o+=c[0].replace(/%/g,"%%");f=e+c[0].length}const u=t.slice(f);return r+=u,o+=u.replace(/%/g,"%%"),{preview:r,format:o,fields:i}}function y(t,n,e,r){const i=[];let f=5,u=1,s=8;const d=new Map,l=[],p=[],g=[];for(const t of r){const{dtype:n}=t,e="float"===n;let r;if(e&&u<=8?r={type:"reg",num:u++}:!e&&f<=10?r={type:"reg",num:f++}:(e&&(s=s+7>>3<<3),r={type:"stack",off:s},s+=e?8:4),"asm"in t){const{asm:e,calling:o}=t;(o?"stack"===r.type?l:p:g).push({dtype:n,asm:e,dst:r})}else{const{base:e,offset:o,postprocess:i}=t,c={dst:r,dtype:n,offset:o,postprocess:i},f=d.get(e);null==f?d.set(e,[c]):f.push(c)}}i.push(...l.flatMap(n=>n.asm(t,n.dst)));const b=p.pop(),y=[];p.forEach(n=>{const e="float"===n.dtype;e&&(s=s+7>>3<<3),i.push(...n.asm(t,{type:"stack",off:s})),y.push((e?o.b.lfd:o.b.lwz)(n.dst.num,1,s)),s+=e?8:4}),b&&i.push(...b.asm(t,b.dst)),i.push(...y),i.push(...g.flatMap(n=>n.asm(t,n.dst)));for(const[n,e]of d.entries()){i.push(...a[n](3,t));for(const{dtype:t,offset:n,dst:r,postprocess:c}of e){var h,A;if("stack"===r.type)i.push(o.a[t](12,3,n),...null!==(h=null==c?void 0:c(12))&&void 0!==h?h:[],("float"===t?o.b.stfd:o.b.stw)(12,1,r.off));else i.push(o.a[t](r.num,3,n),...null!==(A=null==c?void 0:c(r.num))&&void 0!==A?A:[])}}return i.push({type:"struct",reg:3,hex:Object(o.f)(Object(o.c)(n))}),i.push({type:"struct",reg:4,hex:Object(o.i)(e,t)}),i.push({type:"call",addr:c.a.drawText}),{insts:i,sp:s}}const h=(t,n,e)=>[{type:"struct",reg:3,hex:Object(o.f)(Object(o.d)(n,e))},{type:"call",addr:c.a.fillRect[t],prep:[o.b.addi(4,3,16)]}];var A=e(276);const C="config/CustomizedDisplay",F=[A.a.PAS],m=(t,n)=>b(t,n).preview;function S(t){const n="undefined"!=typeof localStorage&&Object(r.b)(localStorage.getItem(C));return(n instanceof Array?n:F).map(({fmt:n,...e})=>({...F[0],...e,fmt:n,text:m(n,t)}))}function v(t){const n=S(t);let e=0;const r=[];for(const o of n){const{fmt:n,bgA:c}=o,{preview:f,format:u,fields:a}=b(n,t);if(c&&r.push(...h(t,o,Object(i.a)(f,t))),u.trim()){const{insts:n,sp:i}=y(t,o,u,a);e=Math.max(e,i),r.push(...n)}}let u=function(t,n){const e=Object(o.h)(0),r=new Map,i=new Set;let c=!1,u=0,a=0;for(const n of t){if("number"==typeof n)continue;const{type:t}=n;if("call"===t){const{addr:t,prep:e=[]}=n,i=Object(o.f)(e),f=r.get(t);var s;if(null==f)r.set(t,new Map([[i,1]]));else f.set(i,(null!==(s=f.get(i))&&void 0!==s?s:0)+1),c=!0}else if("struct"===t){const{hex:t}=n;i.add(t),u++,a+=2+(t.length+7>>>3)}}const d=c||r.size>2,l=(Array.from(i.entries()).reduce((t,[n])=>t+n.length,0)+7>>>3)+u+(n>0?0:2)+(d?0:1)+3<a,p=new Map;let g=null;const b=new Map;if(d){let t=0;const n=[];for(const[e,i]of r.entries()){if(Array.from(i).reduce((t,[n,e])=>t+e,0)<=1)continue;const r=new Map,c=Array.from(i.keys()).filter(t=>""!==t);let f="";if(1===c.length){const[n]=c;r.set(n,t),f+=n}p.set(e,{fallback:t+f.length/2,preps:r}),f+=Object(o.f)(Object(o.g)(12,e)),t+=4+f.length/2,n.push(f)}const i=Math.max(0,t-4);g=i,n.forEach((t,n,r)=>{e.pushHex(t),n<r.length-1&&e.b(i)}),e.push(o.b.mtctr(12),o.b.bctr())}if(l){const[t,n]=Object(f.i)(i,t=>t.length%8==0);for(const r of[t,n])for(const t of r)b.set(t,e.pc),e.pushHex(t);e.align()}const y=e.pc;l&&e.push(o.b.mflr(31));for(const n of t)if("number"==typeof n)e.push(n);else if("call"===n.type){const{prep:t=[],addr:r}=n,i=Object(o.f)(t),c=p.get(r);if(null==c)e.push(...t,...Object(o.g)(12,r)),null==g?e.push(o.b.mtctr(12),o.b.bctr(!0)):e.bl(g);else{const{fallback:t,preps:n}=c,r=n.get(i);null==r?(e.pushHex(i),e.bl(t)):e.bl(r)}}else if("struct"===n.type){const{reg:t,hex:r}=n,i=b.get(r);if(null==i){const n=r.length+7>>3<<2;e.push(o.b.b(4+n,!0)),e.pushHex(r),e.align(),e.push(o.b.mflr(t))}else e.push(o.b.addi(t,31,i))}const h=[];l&&(n+=4),n>0&&(n=n+15>>4<<4,h.push(o.b.stwu(1,1,-n)),l&&h.push(o.b.stw(31,1,n-4))),(d||l)&&h.push(o.b.b(4+y,!0));const A=[];return n>0&&(l&&A.push(o.b.lwz(31,1,n-4)),A.push(o.b.addi(1,1,n))),Object(o.f)(h)+e.hex+Object(o.f)(A)}(r,e);u.length%16==0&&(u+="60000000"),u+="00000000";return[3254779904|536870911&c.a.drawWater[t]-44,u.length>>>4].flatMap(t=>t).map(o.e).join("")+u}},252:function(t,n,e){"use strict";e.r(n),e.d(n,"lskey",(function(){return c})),e.d(n,"defaultConfig",(function(){return f})),e.d(n,"getPreviewText",(function(){return u})),e.d(n,"getConfig",(function(){return a})),e.d(n,"default",(function(){return s}));var r=e(247),o=e(248),i=e(253);const c="config/qfst",f={x:533,y:150,fontSize:13,fgRGB:16777215,fgA:255,fgRGB2:null,fgA2:null,bgRGB:0,bgA:64,bgLeft:4,bgRight:3,bgTop:4,bgBot:2},u=()=>" 0.426\n 0.427\n 0.428\n 1.515\n 3.117\n39.000\n 9.999\n11.111\n22.222\n33.333\n44.444\n55.555\n66.666\n77.777\n88.888\n99.999";function a(){const t="undefined"!=typeof localStorage&&Object(r.b)(localStorage.getItem(c))||{};return{...f,...t,text:u()}}function s(t,n){if(!n)return"";const e=a();let r=n;return r+="077F039C 0000002C",r+=Object(o.f)(Object(o.d)(e,Object(i.a)(u(),t))),r+=Object(o.f)(Object(o.c)(e)),r+="2532642E 25303364 00000000",r.replace(/\s/g,"")}},254:function(t,n,e){"use strict";e.r(n),e.d(n,"lskey",(function(){return f})),e.d(n,"defaultConfig",(function(){return u})),e.d(n,"getPreviewText",(function(){return a})),e.d(n,"getConfig",(function(){return s})),e.d(n,"default",(function(){return d}));var r=e(247),o=e(248),i=e(253),c=e(241);const f="config/AttemptCounter",u={x:152,y:125,fontSize:32,fgRGB:16777113,fgA:255,fgRGB2:null,fgA2:null,bgRGB:0,bgA:64,bgLeft:4,bgRight:6,bgTop:4,bgBot:3,duration:60},a=()=>"88\n99";function s(){const t="undefined"!=typeof localStorage&&Object(r.b)(localStorage.getItem(f))||{};return{...u,...t,text:a()}}function d(t,n){if(!n)return"";const e=s();let r=n;return r+="077F0479 0000002B",r+=Object(c.c)(e.duration,1),r+="25640A256400",r+=Object(o.f)(Object(o.c)(e)),r+=Object(o.f)(Object(o.d)(e,Object(i.a)(a(),t))),r+="0000000000",r.replace(/\s/g,"")}},256:function(t,n,e){"use strict";e.r(n),e.d(n,"lskey",(function(){return E})),e.d(n,"getPreviewText",(function(){return w})),e.d(n,"defaultConfig",(function(){return x})),e.d(n,"getConfig",(function(){return M})),e.d(n,"codes",(function(){return B})),e.d(n,"statusKeys",(function(){return O})),e.d(n,"default",(function(){return D}));var r={};e.r(r),e.d(r,"r13off",(function(){return s})),e.d(r,"onChangeStatusAddr",(function(){return d})),e.d(r,"freezeCodeHooks",(function(){return l}));var o={};e.r(o),e.d(o,"r13off",(function(){return p})),e.d(o,"onChangeStatusAddr",(function(){return g})),e.d(o,"freezeCodeHooks",(function(){return b}));var i={};e.r(i),e.d(i,"r13off",(function(){return y})),e.d(i,"onChangeStatusAddr",(function(){return h})),e.d(i,"freezeCodeHooks",(function(){return A}));var c={};e.r(c),e.d(c,"r13off",(function(){return C})),e.d(c,"onChangeStatusAddr",(function(){return F})),e.d(c,"freezeCodeHooks",(function(){return m}));e(91);var f=e(247),u=e(248),a=e(241);const s=-26648,d=2148742584,l={yellowCoin:2149149872,redCoin:2149147588,blueCoin:2149146920,item:2149151240,talk:2149666560,demo:2148456604,cleaned:2149032916,bowser:2149397376,yoshi:2148857904,take:{addr:2148657892,orig:2149516164},drop:{addr:2148673892,orig:939524096}},p=-24648,g=2149925320,b={yellowCoin:2149314064,redCoin:2149311780,blueCoin:2149311112,item:2149315524,talk:2148874804,demo:2150212376,cleaned:2149669996,bowser:2149562284,yoshi:2150040788,take:{addr:2149841320,orig:2149516164},drop:{addr:2149857236,orig:939524096}},y=-24864,h=2149891924,A={yellowCoin:2149280968,redCoin:2149278684,blueCoin:2149278016,item:2149282428,talk:2148829620,demo:2150179248,cleaned:2149636944,bowser:2149529232,yoshi:2150007392,take:{addr:2149807924,orig:2149516164},drop:{addr:2149823840,orig:939524096}},C=-24968,F=2149793560,m={yellowCoin:2149182360,redCoin:2149180076,blueCoin:2149179408,item:2149183820,talk:2148748888,demo:2150080456,cleaned:2149538572,bowser:2149430608,yoshi:2149909028,take:{addr:2149709552,orig:2149516164},drop:{addr:2149725468,orig:939524096}};var S=e(253),v={put:[2147484551],tripleJump:[2178],spinJump:[2197,2198],ledgeGrab:[939524939],wallKick:[33556614],bounce:[2180],ropeJump:[2194,2195]};const E="config/qft",w=()=>"0:00.000",x={x:16,y:456,fontSize:20,fgRGB:16777215,fgA:255,fgRGB2:null,fgA2:null,bgRGB:0,bgA:128,bgLeft:0,bgRight:2,bgTop:2,bgBot:0,freezeDuration:30,freeze:{yellowCoin:!1,redCoin:!0,blueCoin:!0,item:!0,talk:!0,demo:!0,cleaned:!0,bowser:!0,yoshi:!0,take:!0,drop:!0,put:!0,tripleJump:!0,spinJump:!0,ledgeGrab:!0,wallKick:!0,ropeJump:!0,bounce:!0}};function M(){const t="undefined"!=typeof localStorage&&Object(f.b)(localStorage.getItem(E))||{};return{...x,...t,freeze:{...x.freeze,...t.freeze},text:w()}}const j=t=>(t>>>0).toString(16).toUpperCase().padStart(8,"0"),B={GMSJ01:r,GMSE01:o,GMSP01:i,GMSJ0A:c},G=v,O=Object.keys(v);function D(t,n){var e,r,o;if(!n)return"";const i=M(),{freezeCodeHooks:c,r13off:f,onChangeStatusAddr:s}=null!==(e=B[t])&&void 0!==e?e:{};let d=n;const{freezeDuration:l}=i,p=[],g=[];if(l>0)for(const[t,n]of Object.entries(i.freeze)){var b;if(!n)continue;g.push(...null!==(b=G[t])&&void 0!==b?b:[]);const e=c[t];if(e)if("blueCoin"===t){d+=[3254779904+(33554431&e),5,2080572280,2158166108,950337539,1419771962,1017151871,2416246968,939524096|65535&l,2416246972,1610612736,0].map(j).join("")}else if("number"==typeof e){const t=e;p.push(t)}else{const{addr:t,orig:n}=e;d+=[3254779904+(33554431&t),3,1031831935,1636565832,2106065830,1317011489,n,0].map(j).join("")}}if(p.length<=1&&0===g.length)d+=p.flatMap(t=>[3254779904+(33554431&t),4,2171404288|65535&f,1031831935,2171273308,2439774392,962592768|65535&l,2439774396,1610612736,0]).map(j).join("");else{d+=[...p.flatMap(t=>[3321888768|33554431&t,2172584776]),...[125764424,28,2171404288|65535&f,1031831935,2171273308,2439774392,962592768|65535&l,2439774396,1317011488,0]].map(j).join("")}if(g.length){const t=[...g.flatMap((t,n)=>{const e=n>0?8388608:0,r=t<65536?[672989184+e+t]:[1006632960+(t>>>16),1610612736+(65535&t),2082275392+e];return n>0&&r.push(1279406978),r}),1031831935,1636565832,2106065830,1300365345,939524096];t.length%2==0&&t.push(1610612736),t.push(0),d+=[3254779904+(33554431&s),t.length>>1,...t].map(j).join("")}const{x:y,y:h,fontSize:A,bgLeft:C,bgRight:F,bgTop:m,bgBot:v}=i,E=Object(u.d)(i,Object(S.a)(w(),t)),[x]=E.splice(-1);d+="077F0094 0000001D",d+=E.map(j).join(""),d+="25753a253032752e2530337500000000",d+="077F0110 00000014";const O=256*(16777215&i.fgRGB)+(255&i.fgA),D=256*(16777215&(null!==(r=i.fgRGB2)&&void 0!==r?r:i.fgRGB))+(255&(null!==(o=i.fgA2)&&void 0!==o?o:i.fgA));return d+=[y,h].map(t=>Object(a.c)(t,2)).join(""),d+=[A,O,D,x].map(j).join(""),d+="00000000",d.replace(/\s/g,"")}},257:function(t,n,e){"use strict";e.r(n),e.d(n,"lskey",(function(){return b})),e.d(n,"defaultConfig",(function(){return y})),e.d(n,"getConfig",(function(){return h})),e.d(n,"getPreviewText",(function(){return A})),e.d(n,"default",(function(){return C}));var r={};e.r(r),e.d(r,"code04",(function(){return a})),e.d(r,"codeBase",(function(){return s}));var o={};e.r(o),e.d(o,"code04",(function(){return d})),e.d(o,"codeBase",(function(){return l}));var i={};e.r(i),e.d(i,"code04",(function(){return p})),e.d(i,"codeBase",(function(){return g}));var c=e(247),f=e(248),u=e(253);e(241),e(269);const a="\n0424F32C 495A9CD5\n042069DC 495F26B8\n",s="\n801F0000 3D00817F\n61089147 3D40817F\n614A0024 3D80803D\n618CA9C0 7C006040\n41820048 3D80803D\n618C87C0 7C006040\n40820034 819F0004\n898C0013 508C442E\n39280031 88080007\n7CEA00AE A0080005\n7C006040 41820024\n39080007 7C084840\n4180FFE4 4AA671C0\n2C05FFFF 4082FFF8\n88EA0000 39080031\n7CE73B79 4182FFE8\n7C0838AE 280000FF\n4182FFDC 7C030378\n4E800020 3C808040\nA4040D82 3C60817F\n85630024 70000040\n41A20050 88840019\n548007FE 7D605850\n5480FFFE 7D6B0214\n556B07BE 5480F7BF\n41A20030 280B0003\n41A00008 39600000\n5480EFFE 5080077A\n7D8358AE 7D8C0214\n280C0005 41A00008\n398CFFFB 7D8359AE\n99630003 3C002020\n60002023 556C183E\n5C00603E 5405063E\n5407C63E 5409863E\n88C30000 89030001\n89430002 3C60817F\n60639138 38830045\n4BFF7109 4AA0D8AC\n",d="\n04027900 497D1701\n04125548 496D3B4C\n",l="\n801F0000 3D00817F\n61089147 3D40817F\n614A0024 3D80803A\n618C6D70 7C006040\n41820048 3D80803A\n618C4B80 7C006040\n40820034 819F0004\n898C0013 508C442E\n39280031 88080007\n7CEA00AE A0080005\n7C006040 41820024\n39080007 7C084840\n4180FFE4 4A83F620\n2C05FFFF 4082FFF8\n88EA0000 39080031\n7CE73B79 4182FFE8\n7C0838AE 280000FF\n4182FFDC 7C030378\n4E800020 3C80803F\nA404545A 3C60817F\n85630024 70000040\n41A20050 88840019\n548007FE 7D605850\n5480FFFE 7D6B0214\n556B07BE 5480F7BF\n41A20030 280B0003\n41A00008 39600000\n5480EFFE 5080077A\n7D8358AE 7D8C0214\n280C0005 41A00008\n398CFFFB 7D8359AE\n99630003 3C002020\n60002023 556C183E\n5C00603E 5405063E\n5407C63E 5409863E\n88C30000 89030001\n89430002 3C60817F\n60639138 38830045\n4BFF7109 4A92C418\n",p="\n0403B54C 497BDAB5\n04138DF8 496C029C\n",g="\n801F0000 3D00817F\n61089147 3D40817F\n614A0024 3D80803A\n618CDF98 7C006040\n41820048 3D80803A\n618CBDA8 7C006040\n40820034 819F0004\n898C0013 508C442E\n39280031 88080007\n7CEA00AE A0080005\n7C006040 41820024\n39080007 7C084840\n4180FFE4 4A8531C4\n2C05FFFF 4082FFF8\n88EA0000 39080031\n7CE73B79 4182FFE8\n7C0838AE 280000FF\n4182FFDC 7C030378\n4E800020 3C808040\nA404BC26 3C60817F\n85630024 70000040\n41A20050 88840019\n548007FE 7D605850\n5480FFFE 7D6B0214\n556B07BE 5480F7BF\n41A20030 280B0003\n41A00008 39600000\n5480EFFE 5080077A\n7D8358AE 7D8C0214\n280C0005 41A00008\n398CFFFB 7D8359AE\n99630003 3C002020\n60002023 556C183E\n5C00603E 5405063E\n5407C63E 5409863E\n88C30000 89030001\n89430002 3C60817F\n60639138 38830045\n4BFF7109 4A93FCC8\n",b="config/PatternSelector",y={x:498,y:462,fontSize:14,fgRGB:16777215,fgA:255,fgRGB2:null,fgA2:null,bgRGB:0,bgA:128,bgLeft:2,bgRight:4,bgTop:2,bgBot:2};function h(){const t="undefined"!=typeof localStorage&&Object(c.b)(localStorage.getItem(b))||{};return{...{...y,...t},text:A()}}const A=()=>"#0 0 0";function C(t,n){const e=h();let r=n;return r+="077F0410 00000066",r+=Object(f.f)(Object(f.d)(e,Object(u.a)(A(),t))),r+=Object(f.f)(Object(f.c)(e)),r+="25632558256325582563255800",r+="452020 FF213200\nFF621CFF 1D320050\n25252526 3001FF45\n20202130 01FFFF62\n1C1D3001 510707FF\n083102FF 3601FF02\n31021E6E 20FF0000\n",r.replace(/\s/g,"")}},258:function(t,n,e){"use strict";e.r(n),e.d(n,"lskey",(function(){return a})),e.d(n,"defaultConfig",(function(){return s})),e.d(n,"getConfig",(function(){return d})),e.d(n,"default",(function(){return l}));var r=e(247),o=e(241),i=e(277);const c={Z:28,R:27,L:26,A:24,B:23,X:22,Y:21,S:20},f=(t,n,e,r)=>[t,n,e,r].map(t=>Object(o.c)(t,1)).join(""),u=(t,n,e,r,i)=>[t,n,e,r].map(t=>Object(o.c)(t,1)).join("")+Object(o.c)(i,4),a="config/controller",s={x:16,y:314,lw:20,height:120,bgRGB:0,bgA:127};function d(){const t="undefined"!=typeof localStorage&&Object(r.b)(localStorage.getItem(a))||{};return{...s,...t,...i.a}}function l(t,n){if(!n)return"";const{x:e,y:r,lw:i,height:a,bgRGB:s,bgA:l,bgLeft:p,bgRight:g,bgTop:b,bgBot:y,buttons:h,cTF:A,cTS:C,triggers:F,sticks:m}=d();let S=n;return S+="077F04C3 0000007D",S+=[Object(o.c)(i,1),Object(o.b)(2**-6*a/120),Object(o.c)(e,2),Object(o.c)(r-16,2),Object(o.c)(s<<8|l,4),Object(o.c)(A,4),Object(o.c)(C,4)].join(""),S+=f(p,b,g,y),S+=h.map(t=>u(t.x,t.y,t.r,c[t.id],t.c)).join(""),S+=F.flatMap(t=>{return[f(t.x,t.y0,t.x+t.w,t.y1),(n=c[t.id],e=t.wa,[n,e].map(t=>Object(o.c)(t,1)).join("")),f(t.x,t.y0,t.x+t.w,t.y1)];var n,e}).join(""),S+=m.flatMap(t=>[u(-1,-1,t.rF,t.rMove,t.cF),u(t.x,t.y,t.rS,-1,t.cS)]).join(""),S+="000000",S.replace(/\s/g,"")}},268:function(t,n,e){"use strict";var r,o,i,c=e(357),f=e(4),u=e(3),a=e(0),s=e(8),d=e(7),l=e(101),p=e(95),g=e(12),b=e(96),y=e(16).f,h=e(44),A=e(358),C=e(52),F=e(24),m=e(51),S=e(97),v=S.enforce,E=S.get,w=u.Int8Array,x=w&&w.prototype,M=u.Uint8ClampedArray,j=M&&M.prototype,B=w&&A(w),G=x&&A(x),O=Object.prototype,D=u.TypeError,R=F("toStringTag"),T=m("TYPED_ARRAY_TAG"),k=c&&!!C&&"Opera"!==l(u.opera),z=!1,J={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},P={BigInt64Array:8,BigUint64Array:8},I=function(t){var n=A(t);if(s(n)){var e=E(n);return e&&d(e,"TypedArrayConstructor")?e.TypedArrayConstructor:I(n)}},L=function(t){if(!s(t))return!1;var n=l(t);return d(J,n)||d(P,n)};for(r in J)(i=(o=u[r])&&o.prototype)?v(i).TypedArrayConstructor=o:k=!1;for(r in P)(i=(o=u[r])&&o.prototype)&&(v(i).TypedArrayConstructor=o);if((!k||!a(B)||B===Function.prototype)&&(B=function(){throw D("Incorrect invocation")},k))for(r in J)u[r]&&C(u[r],B);if((!k||!G||G===O)&&(G=B.prototype,k))for(r in J)u[r]&&C(u[r].prototype,G);if(k&&A(j)!==G&&C(j,G),f&&!d(G,R))for(r in z=!0,y(G,R,{get:function(){return s(this)?this[T]:void 0}}),J)u[r]&&g(u[r],T,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:k,TYPED_ARRAY_TAG:z&&T,aTypedArray:function(t){if(L(t))return t;throw D("Target is not a typed array")},aTypedArrayConstructor:function(t){if(a(t)&&(!C||h(B,t)))return t;throw D(p(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,n,e,r){if(f){if(e)for(var o in J){var i=u[o];if(i&&d(i.prototype,t))try{delete i.prototype[t]}catch(e){try{i.prototype[t]=n}catch(t){}}}G[t]&&!e||b(G,t,e?n:k&&x[t]||n,r)}},exportTypedArrayStaticMethod:function(t,n,e){var r,o;if(f){if(C){if(e)for(r in J)if((o=u[r])&&d(o,t))try{delete o[t]}catch(t){}if(B[t]&&!e)return;try{return b(B,t,e?n:k&&B[t]||n)}catch(t){}}for(r in J)!(o=u[r])||o[t]&&!e||b(o,t,n)}},getTypedArrayConstructor:I,isView:function(t){if(!s(t))return!1;var n=l(t);return"DataView"===n||d(J,n)||d(P,n)},isTypedArray:L,TypedArray:B,TypedArrayPrototype:G}},269:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return o}));const r={drawText:2172584504,drawWater:{GMSJ01:2149607936,GMSJ0A:2148685164,GMSE01:2148811232,GMSP01:2148765212},fillRect:{GMSJ01:2149588648,GMSJ0A:2148669024,GMSE01:2148795280,GMSP01:2148749068},setup2D:{GMSJ01:2147701288,GMSJ0A:2150411980,GMSE01:2150545084,GMSP01:2150512740},getPollutionDegree:{GMSJ01:2149512888,GMSE01:2149178144,GMSP01:2149147560,GMSJ0A:2149048940},checkStickRotate:{GMSJ01:2148730712,GMSE01:2149913348,GMSP01:2149879952,GMSJ0A:2149781588}},o={gpMarioOriginal:{GMSJ01:-26440,GMSE01:-24792,GMSP01:-25008,GMSJ0A:-25112},gpMarDirector:{GMSJ01:-26648,GMSE01:-24648,GMSP01:-24864,GMSJ0A:-24968},gpCamera:{GMSJ01:-22352,GMSE01:-28952,GMSP01:-29016,GMSJ0A:-22376},gpPollution:{GMSJ01:-25880,GMSE01:-25328,GMSP01:-25544,GMSJ0A:-25648}}},271:function(t,n,e){"use strict";e.d(n,"e",(function(){return o})),e.d(n,"a",(function(){return i})),e.d(n,"c",(function(){return f})),e.d(n,"d",(function(){return u})),e.d(n,"b",(function(){return a}));var r=e(247);const o="config/InstantRestart",i={START:4096,Y:2048,X:1024,B:512,A:256,L:64,R:32,Z:16,DU:8,DD:4,DR:2,DL:1},c={GMSJ01:"040EB02460000000",GMSE01:"04297A6860000000",GMSP01:"0428F90060000000",GMSJ0A:"0427771060000000"},f={button:i.B|i.DU};function u(){var t;return{...f,...null!==(t=Object(r.b)(localStorage.getItem(o)))&&void 0!==t?t:{}}}function a(t,n){const{button:e}=u();let r=n.slice(0,36)+e.toString(16).padStart(4,"0")+n.slice(40);return e&i.Z&&(r+=c[t]),r}},272:function(t,n,e){"use strict";var r=e(268),o=e(27),i=e(48),c=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var n=c(this),e=o(n),r=i(t),f=r>=0?r:e+r;return f<0||f>=e?void 0:n[f]}))},273:function(t,n,e){"use strict";var r=e(268),o=e(309).findLast,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},274:function(t,n,e){"use strict";var r=e(268),o=e(309).findLastIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},275:function(t,n,e){"use strict";var r=e(3),o=e(23),i=e(268),c=e(27),f=e(362),u=e(25),a=e(2),s=r.RangeError,d=r.Int8Array,l=d&&d.prototype,p=l&&l.set,g=i.aTypedArray,b=i.exportTypedArrayMethod,y=!a((function(){var t=new Uint8ClampedArray(2);return o(p,t,{length:1,0:3},1),3!==t[1]})),h=y&&i.NATIVE_ARRAY_BUFFER_VIEWS&&a((function(){var t=new d(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));b("set",(function(t){g(this);var n=f(arguments.length>1?arguments[1]:void 0,1),e=u(t);if(y)return o(p,this,e,n);var r=this.length,i=c(e),a=0;if(i+n>r)throw s("Wrong length");for(;a<i;)this[n+a]=e[a++]}),!y||h)},276:function(t,n,e){"use strict";const r={fontSize:20,fgRGB:16777215,fgA:255,fgRGB2:null,fgA2:null,bgRGB:0,bgA:0,bgLeft:0,bgRight:0,bgTop:0,bgBot:0};n.a={PAS:{...r,x:16,y:200,fmt:"X Pos <x|.0|39.39>\nY Pos <y|.0|1207.39>\nZ Pos <z|.0|-4193.6>\nAngle <angle||65535>\nH Spd <HSpd|.2|15.15>\nV Spd <VSpd|.2|-31.17>"},speed:{...r,x:16,y:240,fmt:"H Spd <HSpd|.2|15.15>\nV Spd <VSpd|.2|-31.17>"},detailed:{...r,x:16,y:192,fontSize:16,fmt:"X <x|.0|39.39>\nY <y|.0|1207.39>\nZ <z|.0|-4193.6>\nA <angle||65535>\nC <CAngle||9>\nH <HSpd|.2|15.15>\nV <VSpd|.2|-31.17>\nQF <QF||0>\nI <invinc||30>\nG <goop||36368>\nSpin <spin||>"},rect:{...r,x:32,y:48,fontSize:0,fmt:"",bgRight:536,bgBot:384,bgA:127}}},277:function(t,n,e){"use strict";n.a={bgLeft:0,bgRight:182,bgTop:0,bgBot:120,cTF:3755990975,cTS:4008636095,buttons:[{x:138,y:66,r:18,id:"A",c:786806975},{x:113,y:89,r:9,id:"B",c:4279900863},{x:164,y:50,r:8,id:"X",c:4008636095},{x:119,y:41,r:8,id:"Y",c:4008636095},{x:144,y:34,r:6,id:"Z",c:2492792767},{x:91,y:64,r:5,id:"S",c:4008636095}],triggers:[{id:"L",x:12,y0:10,y1:18,w:64,wa:56},{id:"R",x:170,y0:10,y1:18,w:-64,wa:-56}],sticks:[{id:"M",x:32,y:52,rMove:14,rS:19,cS:4008636143,rF:12,cF:4008636143},{id:"C",x:64,y:92,rMove:14,rS:19,cS:4292018415,rF:12,cF:4292018415}]}},309:function(t,n,e){var r=e(360),o=e(49),i=e(25),c=e(27),f=function(t){var n=1==t;return function(e,f,u){for(var a,s=i(e),d=o(s),l=r(f,u),p=c(d);p-- >0;)if(l(a=d[p],p,s))switch(t){case 0:return a;case 1:return p}return n?-1:void 0}};t.exports={findLast:f(0),findLastIndex:f(1)}},357:function(t,n){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},358:function(t,n,e){var r=e(7),o=e(0),i=e(25),c=e(98),f=e(359),u=c("IE_PROTO"),a=Object,s=a.prototype;t.exports=f?a.getPrototypeOf:function(t){var n=i(t);if(r(n,u))return n[u];var e=n.constructor;return o(e)&&n instanceof e?e.prototype:n instanceof a?s:null}},359:function(t,n,e){var r=e(2);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},360:function(t,n,e){var r=e(361),o=e(50),i=e(29),c=r(r.bind);t.exports=function(t,n){return o(t),void 0===n?t:i?c(t,n):function(){return t.apply(n,arguments)}}},361:function(t,n,e){var r=e(15),o=e(1);t.exports=function(t){if("Function"===r(t))return o(t)}},362:function(t,n,e){var r=e(363),o=RangeError;t.exports=function(t,n){var e=r(t);if(e%n)throw o("Wrong offset");return e}},363:function(t,n,e){var r=e(48),o=RangeError;t.exports=function(t){var n=r(t);if(n<0)throw o("The argument can't be less than 0");return n}}}]); |