├── .gitattributes
├── CNAME
├── LICENSE
├── README.md
├── css
└── font.css
├── favicon.ico
├── help
├── doc.md
├── docsify.js
└── index.html
├── index.html
├── js
├── beautify.js
├── dec.js
├── functions.js
└── uglifyjs.js
├── res
├── AndaleMo.ttf
└── SAO_Regular.ttf
└── upd.html
/.gitattributes:
--------------------------------------------------------------------------------
1 | *.js linguist-language=html
2 |
--------------------------------------------------------------------------------
/CNAME:
--------------------------------------------------------------------------------
1 | jsdec.js.org
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 liulihaocai
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Now Supported
2 | ## Eval
3 |
4 | ## Packer
5 |
6 | ## AAEncode
7 |
8 | ## JJEncode
9 |
10 | ## JSFuck
11 |
12 | ## Sojson v4
13 |
14 | ## Sojson Premium
15 |
16 | ## Sojson v5(default)
17 |
18 | ## JSjiami v6 (default)
19 | Decode support is not well.
20 |
21 | ## JS-obfuscator default
22 |
23 | # Thanks
24 |
25 | ## enkhee-Osiris
26 | 4 the jsf decoder
--------------------------------------------------------------------------------
/css/font.css:
--------------------------------------------------------------------------------
1 | @font-face {
2 | font-family:SAOF;
3 | src:url("https://cdn.jsdelivr.net/gh/liulihaocai/JSDec/res/SAO_Regular.ttf");
4 | }
5 | @font-face {
6 | font-family:CodeF;
7 | src:url("https://cdn.jsdelivr.net/gh/liulihaocai/JSDec/res/AndaleMo.ttf");
8 | }
9 | .saof{
10 | font-family:SAOF;
11 | }
12 | .codef{
13 | font-family:CodeF;
14 | }
--------------------------------------------------------------------------------
/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hax0r31337/JSDec/b8c02eec44dd5a42ac4d824dc6704d20b621974a/favicon.ico
--------------------------------------------------------------------------------
/help/doc.md:
--------------------------------------------------------------------------------
1 | # JSDec Help
2 |
3 | # 中文(简体)
4 |
5 | ## Q&A
6 |
7 | ### 破解后代码是一行
8 | 试试 *优化结果 -> 美化*
9 |
10 | ### 自动识别破解失败/报错
11 | 尝试手动选择破解方式,如果方式正确选择后仍不能破解,请到[Github](https://github.com/liulihaocai/JSDec/issues)发送issue.
12 |
13 | ### 破解后变量名混乱
14 | 尝试*优化结果 -> Uglify-名称*进行变量名重新命名
15 |
16 | ### 希望支持新的混淆方式
17 | 请到[Github](https://github.com/liulihaocai/JSDec/issues)发送issue让我知道
18 |
19 | ### 破解后有很多死代码
20 | 尝试使用*优化结果 -> Uglify-优化*来去除死代码并进行代码格式化
21 |
22 | # 中文(繁體)
23 |
24 | ## Q&A
25 |
26 | ### 破解後代碼是一行
27 | 試試 *優化結果 -> 美化*
28 |
29 | ### 自動識別破解失敗/報錯
30 | 嘗試手動選擇破解方式,如果方式正確選擇後仍不能破解,請到[Github](https://github.com/liulihaocai/JSDec/issues)發送issue.
31 |
32 | ### 破解後變量名混亂
33 | 嘗試*優化結果 -> Uglify-名稱*進行變量名重新命名
34 |
35 | ### 希望支持新的混淆方式
36 | 請到[Github](https://github.com/liulihaocai/JSDec/issues)發送issue讓我知道
37 |
38 | ### 破解後有很多死代碼
39 | 嘗試使用*優化結果 -> Uglify-優化*來去除死代碼並進行代碼格式化
40 |
41 | # EN(US)
42 |
43 | ## Q&A
44 |
45 | ### Code is in a line when decoded
46 | try to use *Progcess Result -> Beautify*.
47 |
48 | ### Auto Scan Failed / Failed
49 | try to select a type, if you select a true type , Please send a issue on [Github](https://github.com/liulihaocai/JSDec/issues).
50 |
51 | ### Fname is in Chaos when Decoded
52 | try to use *Progcess Result -> Uglify-names* to rename fnames.
53 |
54 | ### Want to support a new obfuscator
55 | please send a issue on [Github](https://github.com/liulihaocai/JSDec/issues) to let me know.
56 |
57 | ### Many Death Code in the result
58 | try to use *Progcess Result -> Uglify-Better* to delete death codes.
59 |
--------------------------------------------------------------------------------
/help/docsify.js:
--------------------------------------------------------------------------------
1 | /*
2 | MIT License
3 |
4 | Copyright (c) 2016 - present cinwell.li
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy
7 | of this software and associated documentation files (the "Software"), to deal
8 | in the Software without restriction, including without limitation the rights
9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 | copies of the Software, and to permit persons to whom the Software is
11 | furnished to do so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.
23 | */
24 | !function(){function s(n){var r=Object.create(null);return function(e){var t=c(e)?e:JSON.stringify(e);return r[t]||(r[t]=n(e))}}var a=s(function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),l=Object.prototype.hasOwnProperty,h=Object.assign||function(e){for(var t=arguments,n=1;n/gm),Ge=i(/^data-[\-\w.\u00B7-\uFFFF]/),Ye=i(/^aria-[\-\w]+$/),Ve=i(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xe=i(/^(?:\w+script|data):/i),Ke=i(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Je(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t"+e:r=(t=Ee(e,/^[\s]+/))&&t[0];var i,a=b?b.createHTML(e):e;if(o)try{n=(new v).parseFromString(a,"text/html")}catch(e){}return s&&Me(U,["title"]),n&&n.documentElement||((i=(n=x.createHTMLDocument("")).body).parentNode.removeChild(i.parentNode.firstElementChild),i.outerHTML=a),e&&r&&n.body.insertBefore(l.createTextNode(r),n.body.childNodes[0]||null),_.call(n,X?"html":"body")[0]}var F,O=Ze,$=We,M=Ge,N=Ye,z=Xe,P=Ke,j=Ve,D=null,H=Me({},[].concat(Je(ze),Je(Pe),Je(je),Je(De),Je(He))),q=null,I=Me({},[].concat(Je(qe),Je(Ie),Je(Ue),Je(Be))),U=null,B=null,Z=!0,W=!0,G=!1,Y=!1,V=!1,X=!1,K=!1,Q=!1,J=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!0,ae=!1,oe=Me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),se=Me({},["audio","video","img","source","image"]),le=null,ce=Me({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ue=null,pe=l.createElement("form");p.isSupported&&(function(){try{R('
"+k(e.message+"",!0)+" ";throw e}}p.exec=p,g.options=g.setOptions=function(e){return h(g.defaults,e),g},g.defaults=(g.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new r,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}})(),g.Parser=c,g.parser=c.parse,g.Renderer=r,g.TextRenderer=i,g.Lexer=l,g.lexer=l.lex,g.InlineLexer=u,g.inlineLexer=u.output,g.Slugger=t,g.parse=g,m.exports=g}()});function st(e,t){if(void 0===t&&(t=''),!e||!e.length)return"";var n="";return e.forEach(function(e){n+=''+e.title+" ",e.children&&(n+=st(e.children,t))}),t.replace("{inner}",n)}function lt(e,t){return''+t.slice(5).trim()+"
"}function ct(e,r){var i=[],a={};return e.forEach(function(e){var t=e.level||1,n=t-1;r?@[\]^`{|}~]/g;function dt(e){return e.toLowerCase()}function ht(e){if("string"!=typeof e)return"";var t=e.trim().replace(/[A-Z]+/g,dt).replace(/<[^>\d]+>/g,"").replace(pt,"").replace(/\s/g,"-").replace(/-+/g,"-").replace(/^(\d)/,"_$1"),n=ut[t],n=l.call(ut,t)?n+1:0;return(ut[t]=n)&&(t=t+"-"+n),t}function ft(e,t){return' '}function gt(e){void 0===e&&(e="");var r={};return{str:e=e&&e.replace(/^'/,"").replace(/'$/,"").replace(/(?:^|\s):([\w-]+:?)=?([\w-%]+)?/g,function(e,t,n){return-1===t.indexOf(":")?(r[t]=n&&n.replace(/"/g,"")||!0,""):e}).trim(),config:r}}ht.clear=function(){ut={}};var mt,vt=at(function(e){var c=function(c){var u=/\blang(?:uage)?-([\w-]+)\b/i,t=0,F={manual:c.Prism&&c.Prism.manual,disableWorkerMessageHandler:c.Prism&&c.Prism.disableWorkerMessageHandler,util:{encode:function(e){return e instanceof O?new O(e.type,F.util.encode(e.content),e.alias):Array.isArray(e)?e.map(F.util.encode):e.replace(/&/g,"&").replace(/e.length)return;if(!(b instanceof O)){if(f&&v!=t.length-1){if(p.lastIndex=y,!(S=p.exec(e)))break;for(var k=S.index+(h&&S[1]?S[1].length:0),x=S.index+S[0].length,w=v,_=y,A=t.length;w"+r.content+""+r.tag+">"},!c.document)return c.addEventListener&&(F.disableWorkerMessageHandler||c.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,r=t.code,i=t.immediateClose;c.postMessage(F.highlight(r,F.languages[n],n)),i&&c.close()},!1)),F;var e,n=F.util.currentScript();function r(){F.manual||F.highlightAll()}return n&&(F.filename=n.src,n.hasAttribute("data-manual")&&(F.manual=!0)),F.manual||("loading"===(e=document.readyState)||"interactive"===e&&n&&n.defer?document.addEventListener("DOMContentLoaded",r):window.requestAnimationFrame?window.requestAnimationFrame(r):window.setTimeout(r,16)),F}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=c),void 0!==it&&(it.Prism=c),c.languages.markup={comment://,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!)*\]\s*)?>/i,greedy:!0},cdata://i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/?[\da-z]{1,8};/i},c.languages.markup.tag.inside["attr-value"].inside.entity=c.languages.markup.entity,c.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(c.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^$)/i,lookbehind:!0,inside:c.languages[t]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:c.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,e),"i"),lookbehind:!0,greedy:!0,inside:r},c.languages.insertBefore("markup","cdata",i)}}),c.languages.xml=c.languages.extend("markup",{}),c.languages.html=c.languages.markup,c.languages.mathml=c.languages.markup,c.languages.svg=c.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/@[\w-]+/}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(c),c.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},c.languages.javascript=c.languages.extend("clike",{"class-name":[c.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),c.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,c.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:c.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:c.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:c.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:c.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),c.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:c.languages.javascript}},string:/[\s\S]+/}}}),c.languages.markup&&c.languages.markup.tag.addInlined("script","javascript"),c.languages.js=c.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach(function(e){if(!e.hasAttribute("data-src-loaded")){for(var t,n,r=e.getAttribute("data-src"),i=e,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;i&&(n=(e.className.match(a)||[,""])[1]),n||(t=(r.match(/\.(\w+)$/)||[,""])[1],n=l[t]||t);var o=document.createElement("code");o.className="language-"+n,e.textContent="",o.textContent="Loading…",e.appendChild(o);var s=new XMLHttpRequest;s.open("GET",r,!0),s.onreadystatechange=function(){4==s.readyState&&(s.status<400&&s.responseText?(o.textContent=s.responseText,c.highlightElement(o),e.setAttribute("data-src-loaded","")):400<=s.status?o.textContent="✖ Error "+s.status+" while fetching file: "+s.statusText:o.textContent="✖ Error: File does not exist or is empty")},s.send(null)}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))});function yt(e,t){return"___"+e.toUpperCase()+t+"___"}mt=Prism,Object.defineProperties(mt.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,e,a){var o;r.language===i&&(o=r.tokenStack=[],r.code=r.code.replace(e,function(e){if("function"==typeof a&&!a(e))return e;for(var t,n=o.length;-1!==r.code.indexOf(t=yt(i,n));)++n;return o[n]=e,t}),r.grammar=mt.languages.markup)}},tokenizePlaceholders:{value:function(h,f){var g,m;h.language===f&&h.tokenStack&&(h.grammar=mt.languages[f],g=0,m=Object.keys(h.tokenStack),function e(t){for(var n=0;n=m.length);n++){var r,i,a,o,s,l,c,u,p,d=t[n];"string"==typeof d||d.content&&"string"==typeof d.content?(r=m[g],i=h.tokenStack[r],a="string"==typeof d?d:d.content,o=yt(f,r),-1<(s=a.indexOf(o))&&(++g,l=a.substring(0,s),c=new mt.Token(f,mt.tokenize(i,h.grammar),"language-"+f,i),u=a.substring(s+o.length),p=[],l&&p.push.apply(p,e([l])),p.push(c),u&&p.push.apply(p,e([u])),"string"==typeof d?t.splice.apply(t,[n,1].concat(p)):d.content=p)):d.content&&e(d.content)}return t}(h.tokens))}}});var bt={},kt={markdown:function(e){return{url:e}},mermaid:function(e){return{url:e}},iframe:function(e,t){return{html:'"}},video:function(e,t){return{html:'Not Support "}},audio:function(e,t){return{html:'Not Support "}},code:function(e,t){var n=e.match(/\.(\w+)$/);return"md"===(n=t||n&&n[1])&&(n="markdown"),{url:e,lang:n}}},xt=function(i,e){var a=this;this.config=i,this.router=e,this.cacheTree={},this.toc=[],this.cacheTOC={},this.linkTarget=i.externalLinkTarget||"_blank",this.linkRel="_blank"===this.linkTarget?i.externalLinkRel||"noopener":"",this.contentBase=e.getBasePath();var t=this._initRenderer();this.heading=t.heading;var n=i.markdown||{},o=u(n)?n(ot,t):(ot.setOptions(h(n,{renderer:h(t,n.renderer)})),ot);this._marked=o,this.compile=function(n){var r=!0,e=s(function(e){r=!1;var t="";return n?(t=c(n)?o(n):o.parser(n),t=i.noEmoji?t:t.replace(/:\+1:/g,":thumbsup:").replace(/:-1:/g,":thumbsdown:").replace(/<(pre|template|code)[^>]*?>[\s\S]+?<\/(pre|template|code)>/g,function(e){return e.replace(/:/g,"__colon__")}).replace(/:(\w+?):/gi,window.emojify||ft).replace(/__colon__/g,":"),ht.clear(),t):n})(n),t=a.router.parse().file;return r?a.toc=a.cacheTOC[t]:a.cacheTOC[t]=[].concat(a.toc),e}};xt.prototype.compileEmbed=function(e,t){var n,r,i,a=gt(t),o=a.str,s=a.config;if(t=o,s.include)return Q(e)||(e=re(this.contentBase,ee(this.router.getCurrentPath()),e)),s.type&&(r=kt[s.type])?(n=r.call(this,e,t)).type=s.type:(i="code",/\.(md|markdown)/.test(e)?i="markdown":/\.mmd/.test(e)?i="mermaid":/\.html?/.test(e)?i="iframe":/\.(mp4|ogg)/.test(e)?i="video":/\.mp3/.test(e)&&(i="audio"),(n=kt[i].call(this,e,t)).type=i),n.fragment=s.fragment,n},xt.prototype._matchNotCompileLink=function(e){for(var t=this.config.noCompileLinks||[],n=0;n'+r+" "},m.code={renderer:i}.renderer.code=function(e,t){void 0===t&&(t="");var n=vt.languages[t]||vt.languages.markup;return''+vt.highlight(e.replace(/@DOCSIFY_QM@/g,"`"),n)+"
"},m.link=(t=(e={renderer:i,router:h,linkTarget:a,linkRel:o,compilerClass:g}).renderer,s=e.router,l=e.linkTarget,c=e.linkRel,u=e.compilerClass,t.link=function(e,t,n){void 0===t&&(t="");var r=[],i=gt(t),a=i.str,o=i.config;return l=o.target||l,c="_blank"===l?u.config.externalLinkRel||"noopener":"",t=a,Q(e)||u._matchNotCompileLink(e)||o.ignore?(!Q(e)&&e.startsWith("./")&&(e=document.URL.replace(/\/(?!.*\/).*/,"/").replace("#/./","")+e),r.push(0===e.indexOf("mailto:")?"":'target="'+l+'"'),r.push(0!==e.indexOf("mailto:")&&""!==c?' rel="'+c+'"':"")):(e===u.config.homepage&&(e="README"),e=s.toURL(e,null,s.getCurrentPath())),o.crossorgin&&"_self"===l&&"history"===u.config.routerMode&&-1===u.config.crossOriginLinks.indexOf(e)&&u.config.crossOriginLinks.push(e),o.disabled&&(r.push("disabled"),e="javascript:void(0)"),o.class&&r.push('class="'+o.class+'"'),o.id&&r.push('id="'+o.id+'"'),t&&r.push('title="'+t+'"'),'"+n+" "}),m.paragraph={renderer:i}.renderer.paragraph=function(e){var t=/^!>/.test(e)?lt("tip",e):/^\?>/.test(e)?lt("warn",e):""+e+"
";return t},m.image=(r=(n={renderer:i,contentBase:f,router:h}).renderer,p=n.contentBase,d=n.router,r.image=function(e,t,n){var r,i,a,o=e,s=[],l=gt(t),c=l.str,u=l.config;return t=c,u["no-zoom"]&&s.push("data-no-zoom"),t&&s.push('title="'+t+'"'),u.size&&(i=(r=u.size.split("x"))[0],(a=r[1])?s.push('width="'+i+'" height="'+a+'"'):s.push('width="'+i+'"')),u.class&&s.push('class="'+u.class+'"'),u.id&&s.push('id="'+u.id+'"'),Q(e)||(o=re(p,ee(d.getCurrentPath()),e)),0 ":' "}),m.list={renderer:i}.renderer.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+" "+[//.test(e.split('class="task-list"')[0])?'class="task-list"':"",n&&1"+e+""+r+">"},m.listitem={renderer:i}.renderer.listitem=function(e){return/^(]*>)/.test(e)?''+e+" ":""+e+" "},i.origin=m,i},xt.prototype.sidebar=function(e,t){var n=this.toc,r=this.router.getCurrentPath(),i="";if(e)i=this.compile(e);else{for(var a=0;a{inner}");this.cacheTree[r]=l}return i},xt.prototype.subSidebar=function(e){if(e){var t=this.router.getCurrentPath(),n=this.cacheTree,r=this.toc;r[0]&&r[0].ignoreAllSubs&&r.splice(0),r[0]&&1===r[0].level&&r.shift();for(var i=0;i\n'+e+"\n"}]).links={}:(t=[{type:"html",text:e}]).links={}),o({token:a,embedToken:t}),++c>=l&&o({})}}(t);t.embed.url?I(t.embed.url).then(r):r(t.embed.html)}}({compile:s,embedTokens:c,fetch:t},function(e){var t,n=e.embedToken,r=e.token;r?(t=r.index,d.forEach(function(e){t>e.start&&(t+=e.length)}),h(p,n.links),l=l.slice(0,t).concat(n,l.slice(t+1)),d.push({start:t,length:n.length-1})):(_t[a]=l.concat(),l.links=_t[a].links=p,i(l))})}function St(){var t,e=_(".markdown-section>script").filter(function(e){return!/template/.test(e.type)})[0];!e||(t=e.innerText.trim())&&setTimeout(function(e){window.__EXECUTE_RESULT__=new Function(t)()},0)}function Tt(e,t,n){var r,i,a,o;return t="function"==typeof n?n(t):"string"==typeof n?(a=[],o=0,(r=n).replace(L,function(t,e,n){a.push(r.substring(o,n-1)),o=n+=t.length+1,a.push(i&&i[t]||function(e){return("00"+("string"==typeof C[t]?e[C[t]]():C[t](e))).slice(-t.length)})}),o!==r.length&&a.push(r.substring(o)),function(e){for(var t="",n=0,r=e||new Date;n404 - Not found",this._renderTo(".markdown-section",e),this.config.loadSidebar||this._renderSidebar(),!1===this.config.executeScript||void 0===window.Vue||St()?this.config.executeScript&&St():setTimeout(function(e){var t=window.__EXECUTE_RESULT__;t&&t.$destroy&&t.$destroy(),window.__EXECUTE_RESULT__=(new window.Vue).$mount("#main")},0)}function Lt(e){var t=e.config;e.compiler=new xt(t,e.router),window.__current_docsify_compiler__=e.compiler;var n,r,i,a,o,s,l,c,u,p,d,h=t.el||"#app",f=w("nav")||A("nav"),g=w(h),m="",v=k;g?(t.repo&&(m+=(c=t.repo,u=t.cornerExternalLinkTarge,c?(/\/\//.test(c)||(c="https://github.com/"+c),' '):"")),t.coverpage&&(m+=(l=", 100%, 85%",'')),t.logo&&(n=/^data:image/.test(t.logo),r=/(?:http[s]?:)?\/\//.test(t.logo),i=/^\./.test(t.logo),n||r||i||(t.logo=re(e.router.getBasePath(),t.logo))),m+=(o=(a=t).name?a.name:"",s='',(y?s+"":""+s)+' '),e._renderTo(g,m,!0)):e.rendered=!0,t.mergeNavbar&&y?v=w(".sidebar"):(f.classList.add("app-nav"),t.repo||f.classList.add("no-badge")),t.loadNavbar&&S(v,f),t.themeColor&&(b.head.appendChild(A("div","").firstElementChild),p=t.themeColor,window.CSS&&window.CSS.supports&&window.CSS.supports("(--v:red)")||(d=_("style:not(.inserted),link"),[].forEach.call(d,function(e){if("STYLE"===e.nodeName)U(e,p);else if("LINK"===e.nodeName){var t=e.getAttribute("href");if(!/\.css$/.test(t))return;I(t).then(function(e){var t=A("style",e);x.appendChild(t),U(t,p)})}}))),e._updateRender(),T(k,"ready")}var Ct={};function Rt(e){this.config=e}function Ft(e){var t=location.href.indexOf("#");location.replace(location.href.slice(0,0<=t?t:0)+"#"+e)}Rt.prototype.getBasePath=function(){return this.config.basePath},Rt.prototype.getFile=function(e,t){void 0===e&&(e=this.getCurrentPath());var n,r,i=this.config,a=this.getBasePath(),o="string"==typeof i.ext?i.ext:".md";return e=i.alias?function e(t,n,r){var i=Object.keys(n).filter(function(e){return(Ct[e]||(Ct[e]=new RegExp("^"+e+"$"))).test(t)&&t!==r})[0];return i?e(t.replace(Ct[i],n[i]),n,t):t}(e,i.alias):e,n=e,r=o,e=(e=new RegExp("\\.("+r.replace(/^\./,"")+"|html)$","g").test(n)?n:/\/$/g.test(n)?n+"README"+r:""+n+r)==="/README"+o&&i.homepage||e,e=Q(e)?e:re(a,e),t&&(e=e.replace(new RegExp("^"+a),"")),e},Rt.prototype.onchange=function(e){void 0===e&&(e=d),e()},Rt.prototype.getCurrentPath=function(){},Rt.prototype.normalize=function(){},Rt.prototype.parse=function(){},Rt.prototype.toURL=function(e,t,n){var r,i=n&&"#"===e[0],a=this.parse(ie(e));if(a.query=h({},a.query,t),e=(e=a.path+K(a.query)).replace(/\.md(\?)|\.md$/,"$1"),i&&(e=(0<(r=n.indexOf("?"))?n.substring(0,r):n)+e),this.config.relativePath&&0!==e.indexOf("/")){var o=n.substring(0,n.lastIndexOf("/")+1);return te(ne(o+e))}return te("/"+e)};var Ot=function(r){function e(e){r.call(this,e),this.mode="hash"}return r&&(e.__proto__=r),((e.prototype=Object.create(r&&r.prototype)).constructor=e).prototype.getBasePath=function(){var e=window.location.pathname||"",t=this.config.basePath;return/^(\/|https?:)/g.test(t)?t:te(e+"/"+t)},e.prototype.getCurrentPath=function(){var e=location.href,t=e.indexOf("#");return-1===t?"":e.slice(t+1)},e.prototype.onchange=function(n){void 0===n&&(n=d);var r=!1;f("click",function(e){var t="A"===e.target.tagName?e.target:e.target.parentNode;"A"!==t.tagName||/_blank/.test(t.target)||(r=!0)}),f("hashchange",function(e){var t=r?"navigate":"history";r=!1,n({event:e,source:t})})},e.prototype.normalize=function(){var e=this.getCurrentPath();if("/"===(e=ie(e)).charAt(0))return Ft(e);Ft("/"+e)},e.prototype.parse=function(e){void 0===e&&(e=location.href);var t="",n=e.indexOf("#");0<=n&&(e=e.slice(n+1));var r=e.indexOf("?");return 0<=r&&(t=e.slice(r+1),e=e.slice(0,r)),{path:e,file:this.getFile(e,!0),query:X(t)}},e.prototype.toURL=function(e,t,n){return"#"+r.prototype.toURL.call(this,e,t,n)},e}(Rt),$t=function(t){function e(e){t.call(this,e),this.mode="history"}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.getCurrentPath=function(){var e=this.getBasePath(),t=window.location.pathname;return e&&0===t.indexOf(e)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash},e.prototype.onchange=function(r){var i=this;void 0===r&&(r=d),f("click",function(e){var t,n="A"===e.target.tagName?e.target:e.target.parentNode;"A"!==n.tagName||/_blank/.test(n.target)||(e.preventDefault(),t=n.href,-1!==i.config.crossOriginLinks.indexOf(t)?window.open(t,"_self"):window.history.pushState({key:t},"",t),r({event:e,source:"navigate"}))}),f("popstate",function(e){r({event:e,source:"history"})})},e.prototype.parse=function(e){void 0===e&&(e=location.href);var t="",n=e.indexOf("?");0<=n&&(t=e.slice(n+1),e=e.slice(0,n));var r=re(location.origin),i=e.indexOf(r);return-1([^<]*?)
$'))&&("color"===r[2]?a.style.background=r[1]+(r[3]||""):(i=r[1],T(a,"add","has-mask"),Q(r[1])||(i=re(this.router.getBasePath(),r[1])),a.style.backgroundImage="url("+i+")",a.style.backgroundSize="cover",a.style.backgroundPosition="center center"),n=n.replace(r[0],"")),this._renderTo(".cover-main",n),W()):T(a,"remove","show")},Ht._updateRender=function(){var e,t,n,r,i;e=this,n=m(".app-name-link"),r=e.config.nameLink,i=e.route.path,n&&(c(e.config.nameLink)?n.setAttribute("href",r):"object"==typeof r&&(t=Object.keys(r).filter(function(e){return-1
2 |
3 |
4 |
5 |
6 |
7 | JSDec_Help
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | JSDec - Liulihaocai
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 | {{ item.fgt }}
41 |
42 |
43 |
44 |
45 |
46 |
47 |
52 |
53 | JSDec
54 |
55 |
56 | mdi-translate {{ lang.nowlang }}
57 |
58 |
59 |
64 | {{ item.title }}
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | {{ lang.al.t }}
74 | {{ lang.al.t }}
75 | {{ lang.al.t }}
76 | {{ lang.al.t }}
77 |
78 |
79 |
80 |
81 |
82 |
87 |
91 |
92 |
93 |
94 |
95 |
96 | {{ lang.startdec }} {{ lang.upload }} {{ lang.copyres }} {{ lang.clearres }} {{ lang.downres }}
97 |
98 |
99 | {{ lang.prores }}mdi-menu-down
100 |
101 |
102 |
107 | {{ item.title }}
108 |
109 |
110 |
111 |
112 |
118 |
119 |
120 |
121 |
122 |
123 |
127 | JSDec by liulihaocai
128 |
129 | © {{ fullyear }}
130 |
131 |
132 |
133 |
134 |
135 |
203 |
204 |
--------------------------------------------------------------------------------
/js/beautify.js:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | The MIT License (MIT)
4 |
5 | Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
6 |
7 | Permission is hereby granted, free of charge, to any person
8 | obtaining a copy of this software and associated documentation files
9 | (the "Software"), to deal in the Software without restriction,
10 | including without limitation the rights to use, copy, modify, merge,
11 | publish, distribute, sublicense, and/or sell copies of the Software,
12 | and to permit persons to whom the Software is furnished to do so,
13 | subject to the following conditions:
14 |
15 | The above copyright notice and this permission notice shall be
16 | included in all copies or substantial portions of the Software.
17 |
18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
22 | BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23 | ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 | SOFTWARE.
26 | */
27 |
28 | !function(){var u,n;function i(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return u[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var t=(n={},i.m=u=[function(t,e,u){"use strict";var n=u(1).Beautifier,i=u(5).Options;t.exports=function(t,e){return new n(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,u){"use strict";var n=u(2).Output,i=u(3).Token,o=u(4),_=u(5).Options,s=u(7).Tokenizer,p=u(7).line_starters,l=u(7).positionable_operators,f=u(7).TOKEN;function c(t,e){return-1!==e.indexOf(t)}function a(t,e){return t&&t.type===f.RESERVED&&t.text===e}function d(t,e){return t&&t.type===f.RESERVED&&c(t.text,e)}var b=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},u=0;uu&&(u=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new i(f.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:u,alignment:0,line_indent_level:t?t.line_indent_level:u,start_line_index:this._output.get_line_number(),ternary_depth:0}},T.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new n(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(k);var u=new s(t,this._options);return this._tokens=u.tokenize(),t},T.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&o.lineBreak.test(t||"")&&(e=t.match(o.lineBreak)[0]));for(var u=this._tokens.next();u;)this.handle_token(u),this._last_last_text=this._flags.last_token.text,this._flags.last_token=u,u=this._tokens.next();return this._output.get_code(e)},T.prototype.handle_token=function(t,e){t.type===f.START_EXPR?this.handle_start_expr(t):t.type===f.END_EXPR?this.handle_end_expr(t):t.type===f.START_BLOCK?this.handle_start_block(t):t.type===f.END_BLOCK?this.handle_end_block(t):t.type===f.WORD||t.type===f.RESERVED?this.handle_word(t):t.type===f.SEMICOLON?this.handle_semicolon(t):t.type===f.STRING?this.handle_string(t):t.type===f.EQUALS?this.handle_equals(t):t.type===f.OPERATOR?this.handle_operator(t):t.type===f.COMMA?this.handle_comma(t):t.type===f.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===f.COMMENT?this.handle_comment(t,e):t.type===f.DOT?this.handle_dot(t):t.type===f.EOF?this.handle_eof(t):(t.type,f.UNKNOWN,this.handle_unknown(t,e))},T.prototype.handle_whitespace_and_comments=function(t,e){var u=t.newlines,n=this._options.keep_array_indentation&&O(this._flags.mode);if(t.comments_before)for(var i=t.comments_before.next();i;)this.handle_whitespace_and_comments(i,e),this.handle_token(i,e),i=t.comments_before.next();if(n)for(var _=0;_this._options.max_preserve_newlines&&(u=this._options.max_preserve_newlines),this._options.preserve_newlines&&1this._flags.parent.indentation_level)&&(--this._flags.indentation_level,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},T.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},T.prototype.restore_mode=function(){0"!==this._flags.last_token.text)&&(c(this._flags.last_token.type,[f.EQUALS,f.START_EXPR,f.COMMA,f.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"]))?this.set_mode(r):this.set_mode(k);var n=!e.comments_before&&"}"===e.text,i=n&&"function"===this._flags.last_word&&this._flags.last_token.type===f.END_EXPR;if(this._options.brace_preserve_inline){var _=0,s=null;this._flags.inline_frame=!0;do{if(_+=1,(s=this._tokens.peek(_-1)).newlines){this._flags.inline_frame=!1;break}}while(s.type!==f.EOF&&(s.type!==f.END_BLOCK||s.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==f.OPERATOR&&(i||this._flags.last_token.type===f.EQUALS||d(this._flags.last_token,b)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!O(this._previous_flags.mode)||this._flags.last_token.type!==f.START_EXPR&&this._flags.last_token.type!==f.COMMA||(this._flags.last_token.type!==f.COMMA&&!this._options.space_in_paren||(this._output.space_before_token=!0),(this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==f.OPERATOR&&this._flags.last_token.type!==f.START_EXPR&&(this._flags.last_token.type!==f.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},T.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===w;)this.restore_mode();var e=this._flags.last_token.type===f.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(O(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},T.prototype.handle_word=function(t){if(t.type===f.RESERVED&&(c(t.text,["set","get"])&&this._flags.mode!==r||"import"===t.text&&"("===this._tokens.peek().text||c(t.text,["as","from"])&&!this._flags.import_block||this._flags.mode===r&&":"===this._tokens.peek().text)&&(t.type=f.WORD),this.start_of_statement(t)?d(this._flags.last_token,["var","let","const"])&&t.type===f.WORD&&(this._flags.declaration_statement=!0):!t.newlines||R(this._flags.mode)||this._flags.last_token.type===f.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===f.EQUALS||!this._options.preserve_newlines&&d(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(a(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&a(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===w;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==f.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==f.COMMA&&this._flags.last_token.type!==f.START_EXPR&&this._flags.last_token.type!==f.EQUALS&&this._flags.last_token.type!==f.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),a(t,"function"))return(c(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!c(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==f.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,A)||a(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===f.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(R(this._flags.mode)||O(this._flags.mode))||this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";this._flags.last_token.type===f.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":!d(t,["else","catch","finally","from"])||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):this._flags.last_token.type===f.SEMICOLON&&this._flags.mode===k?e="NEWLINE":this._flags.last_token.type===f.SEMICOLON&&R(this._flags.mode)?e="SPACE":this._flags.last_token.type===f.STRING?e="NEWLINE":this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD||"*"===this._flags.last_token.text&&(c(this._last_last_text,["function","yield"])||this._flags.mode===r&&c(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===f.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===f.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),d(t,p)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(t,["else","catch","finally"])?(this._flags.last_token.type!==f.END_BLOCK||this._previous_flags.mode!==k||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===e?d(this._flags.last_token,b)||"declare"===this._flags.last_token.text&&d(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==f.END_EXPR?this._flags.last_token.type===f.START_EXPR&&d(t,["var","let","const"])||":"===this._flags.last_token.text||(a(t,"if")&&a(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(t,p)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===e&&(this._output.space_before_token=!0),!t.previous||t.previous.type!==f.WORD&&t.previous.type!==f.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===f.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&a(t,"from")&&(this._flags.import_block=!1))},T.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==w||this._flags.if_block&&a(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},T.prototype.handle_string=function(t){this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===f.RESERVED||this._flags.last_token.type===f.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===f.COMMA||this._flags.last_token.type===f.START_EXPR||this._flags.last_token.type===f.EQUALS||this._flags.last_token.type===f.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},T.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},T.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(R(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===r||this._flags.mode===w&&this._flags.parent.mode===r?(this._flags.mode===w&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},T.prototype.handle_operator=function(t){var e,u="*"===t.text&&(d(this._flags.last_token,["function","yield"])||c(this._flags.last_token.type,[f.START_BLOCK,f.COMMA,f.END_BLOCK,f.SEMICOLON])),n=c(t.text,["-","+"])&&(c(this._flags.last_token.type,[f.START_BLOCK,f.START_EXPR,f.EQUALS,f.OPERATOR])||c(this._flags.last_token.text,p)||","===this._flags.last_token.text);if(this.start_of_statement(t)||(e=!u,this.handle_whitespace_and_comments(t,e)),d(this._flags.last_token,b))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==f.DOT)if("::"!==t.text){if(this._flags.last_token.type===f.OPERATOR&&c(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==f.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var i,_=!0,s=!0,a=!1;if(":"===t.text?0===this._flags.ternary_depth?_=!1:(--this._flags.ternary_depth,a=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!u&&this._options.preserve_newlines&&c(t.text,l)){var o=":"===t.text,r=o&&a,h=o&&!a;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!h,this.print_token(t),o&&!r||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!o||r?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case g.preserve_newline:return h||this.allow_wrap_or_preserved_newline(t),_=!(this._output.just_added_newline()||h),this._output.space_before_token=_,this.print_token(t),void(this._output.space_before_token=!0)}}u?(this.allow_wrap_or_preserved_newline(t),_=!1,s=(i=this._tokens.peek())&&c(i.type,[f.WORD,f.RESERVED])):"..."===t.text?(this.allow_wrap_or_preserved_newline(t),_=this._flags.last_token.type===f.START_BLOCK,s=!1):(c(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==f.COMMA&&this._flags.last_token.type!==f.START_EXPR||this.allow_wrap_or_preserved_newline(t),s=_=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&R(this._flags.mode)&&(_=!0),this._flags.last_token.type===f.RESERVED?_=!0:this._flags.last_token.type===f.END_EXPR?_=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===f.OPERATOR&&(_=c(t.text,["--","-","++","+"])&&c(this._flags.last_token.text,["--","-","++","+"]),c(t.text,["+","-"])&&c(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==k||this._flags.inline_frame)&&this._flags.mode!==w||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()),this._output.space_before_token=this._output.space_before_token||_,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},T.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):o.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},T.prototype.print_block_commment=function(t,e){var u,n,i,_=function(t){for(var e=[],u=(t=t.replace(o.allLineBreaks,"\n")).indexOf("\n");-1!==u;)e.push(t.substring(0,u)),u=(t=t.substring(u+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),s=t.whitespace_before,a=s.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(_[0]),this.print_newline(!1,e),1<_.length){for(n=function(t,e){for(var u=0;uthis.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),--t.__character_count),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){0=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,u="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,u=new Array(t+1).join(this.__indent_string)),e&&(u+=new Array(e+1).join(" ")),this.__cache.push(u)},_.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},_.prototype.get_line_number=function(){return this.__lines.length},_.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},_.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},_.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},_.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},_.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var u=this.__lines.join("\n");return"\n"!==t&&(u=u.replace(/[\n]/g,t)),u},_.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},_.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),1>> === !== << && >= ** != == <= >> || |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=(g="\\?\\.(?!\\d) "+(g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");function m(t,e){i.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var u=new a(this._input),n=new o(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(r.identifier).matching(r.identifierMatch),number:u.matching(f),punct:u.matching(w),comment:u.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:u.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:u.matching(//),include:u.starting_with(/#include/).until_after(r.lineBreak),shebang:u.starting_with(/#!/).until_after(r.lineBreak),xml:u.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}}var k,w=new RegExp(g),y="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),x=y.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),v=new RegExp("^(?:"+x.join("|")+")$");(m.prototype=new i)._is_comment=function(t){return t.type===p.COMMENT||t.type===p.BLOCK_COMMENT||t.type===p.UNKNOWN},m.prototype._is_opening=function(t){return t.type===p.START_BLOCK||t.type===p.START_EXPR},m.prototype._is_closing=function(t,e){return(t.type===p.END_BLOCK||t.type===p.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},m.prototype._reset=function(){k=!1},m.prototype._get_next_token=function(t,e){this._readWhitespace();var u=this._input.peek();return null===u?this._create_token(p.EOF,""):this._read_non_javascript(u)||this._read_string(u)||this._read_word(t)||this._read_singles(u)||this._read_comment(u)||this._read_regexp(u,t)||this._read_xml(u,t)||this._read_punctuation()||this._create_token(p.UNKNOWN,this._input.next())},m.prototype._read_word=function(t){var e=this.__patterns.identifier.read();return""!==e?(e=e.replace(r.allLineBreaks,"\n"),t.type!==p.DOT&&(t.type!==p.RESERVED||"set"!==t.text&&"get"!==t.text)&&v.test(e)?"in"===e||"of"===e?this._create_token(p.OPERATOR,e):this._create_token(p.RESERVED,e):this._create_token(p.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(p.WORD,e):void 0},m.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(p.START_EXPR,t):")"===t||"]"===t?e=this._create_token(p.END_EXPR,t):"{"===t?e=this._create_token(p.START_BLOCK,t):"}"===t?e=this._create_token(p.END_BLOCK,t):";"===t?e=this._create_token(p.SEMICOLON,t):"."===t&&d.test(this._input.peek(1))?e=this._create_token(p.DOT,t):","===t&&(e=this._create_token(p.COMMA,t)),e&&this._input.next(),e},m.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(p.EQUALS,t):"?."===t?this._create_token(p.DOT,t):this._create_token(p.OPERATOR,t)},m.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(p.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(p.UNKNOWN,e.trim()+"\n");t=this._input.next();var u="#";if(this._input.hasNext()&&this._input.testChar(c)){for(;u+=t=this._input.next(),this._input.hasNext()&&"#"!==t&&"="!==t;);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(u+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(u+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,u)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(r.newline);)e+=this._input.next();return k=!0,this._create_token(p.COMMENT,e)}}else if(k&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return k=!1,this._create_token(p.COMMENT,e);return null},m.prototype._read_comment=function(t){var e,u,n=null;return"/"===t&&(e="","*"===this._input.peek(1)?(e=this.__patterns.block_comment.read(),(u=l.get_directives(e))&&"start"===u.ignore&&(e+=l.readIgnored(this._input)),e=e.replace(r.allLineBreaks,"\n"),(n=this._create_token(p.BLOCK_COMMENT,e)).directives=u):"/"===this._input.peek(1)&&(e=this.__patterns.comment.read(),n=this._create_token(p.COMMENT,e))),n},m.prototype._read_string=function(t){if("`"!==t&&"'"!==t&&'"'!==t)return null;var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){var e="",u=0,n=new _(t),i=null;for(;n.hasNext();)if((i=n.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=i[0]),"\\"===n.peek()){if(n.next(),"x"===n.peek())i=n.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==n.peek()){e+="\\",n.hasNext()&&(e+=n.next());continue}i=n.match(/u([0-9A-Fa-f]{4})/g)}if(!i)return t;if(126<(u=parseInt(i[1],16))&&u<=255&&0===i[0].indexOf("x"))return t;if(0<=u&&u<32){e+="\\"+i[0];continue}e+=34===u||39===u||92===u?"\\"+String.fromCharCode(u):String.fromCharCode(u)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(r.allLineBreaks,"\n"),this._create_token(p.STRING,e)},m.prototype._allow_regexp_or_xml=function(t){return t.type===p.RESERVED&&h(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===p.END_EXPR&&")"===t.text&&t.opened.previous.type===p.RESERVED&&h(t.opened.previous.text,["if","while","for"])||h(t.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},m.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var u=this._input.next(),n=!1,i=!1;this._input.hasNext()&&(n||i||this._input.peek()!==t)&&!this._input.testChar(r.newline);)u+=this._input.peek(),n?n=!1:(n="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===t&&(u+=this._input.next(),u+=this._input.read(r.identifier)),this._create_token(p.STRING,u)}return null},m.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var u="",n=this.__patterns.xml.read_match();if(n){for(var i=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),_=0===i.indexOf("{"),s=0;n;){var a=!!n[1],o=n[2];if(!(!!n[n.length-1]||"![CDATA["===o.slice(0,8))&&(o===i||_&&o.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(a?--s:++s),u+=n[0],s<=0)break;n=this.__patterns.xml.read_match()}return n||(u+=this._input.match(/[\s\S]*/g)[0]),u=u.replace(r.allLineBreaks,"\n"),this._create_token(p.STRING,u)}}return null},m.prototype._read_string_recursive=function(t,e,u){var n,i;"'"===t?i=this.__patterns.single_quote:'"'===t?i=this.__patterns.double_quote:"`"===t?i=this.__patterns.template_text:"}"===t&&(i=this.__patterns.template_expression);for(var _=i.read(),s="";this._input.hasNext();){if((s=this._input.next())===t||!e&&r.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?("x"===(n=this._input.peek())||"u"===n?this.has_char_escapes=!0:"\r"===n&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):u&&("${"===u&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),u===s&&(s+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(s+=this._input.next()))),_+=s+=i.read()}return _},t.exports.Tokenizer=m,t.exports.TOKEN=p,t.exports.positionable_operators=b.slice(),t.exports.line_starters=y.slice()},function(t,e,u){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,u){"use strict";function n(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)}var i=u(8).InputScanner,_=u(3).Token,s=u(10).TokenStream,a=u(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};n.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();for(var e=new _(o.START,""),u=null,n=[],i=new s;e.type!==o.EOF;){for(t=this._get_next_token(e,u);this._is_comment(t);)i.add(t),t=this._get_next_token(e,u);i.isEmpty()||(t.comments_before=i,i=new s),t.parent=u,this._is_opening(t)?(n.push(u),u=t):u&&this._is_closing(t,u)&&((t.opened=u).closed=t,u=n.pop(),t.parent=u),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,e){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(o.RAW,u):this._create_token(o.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,e){return!1},n.prototype._create_token=function(t,e){return new _(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=n,t.exports.TOKEN=o},function(t,e,u){"use strict";function n(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}n.prototype.restart=function(){this.__position=0},n.prototype.isEmpty=function(){return 0===this.__tokens_length},n.prototype.hasNext=function(){return this.__position/),erb:u.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:u.starting_with(/{%/).until_after(/%}/),django_value:u.starting_with(/{{/).until_after(/}}/),django_comment:u.starting_with(/{#/).until_after(/#}/)}}(_.prototype=new n)._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},_.prototype.read_options=function(t){var e=this._create();for(var u in i)e._disabled[u]=-1===t.templating.indexOf(u);return e._update(),e},_.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},_.prototype.read=function(){for(var t="",t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},_.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},_.prototype._read_template=function(){var t,e="",u=this._input.peek();return"<"===u?(t=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==t||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==t||(e=e||this.__patterns.erb.read())):"{"===u&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read()))),e},t.exports.TemplatablePattern=_}],i.c=n,i.d=function(t,e,u){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:u})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(u,n,function(t){return e[t]}.bind(null,n));return u},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0));"function"==typeof define&&define.amd?define([],function(){return{js_beautify:t}}):"undefined"!=typeof exports?exports.js_beautify=t:"undefined"!=typeof window?window.js_beautify=t:"undefined"!=typeof global&&(global.js_beautify=t)}();
--------------------------------------------------------------------------------
/js/dec.js:
--------------------------------------------------------------------------------
1 | function autoscan(jsf){
2 | function checklist(f){
3 | if((f.indexOf(",")!=-1)&&(f.indexOf("=")!=-1)&&(f.indexOf("[")!=-1)&&(f.indexOf("]")!=-1)&&(f.indexOf("var ")!=-1)){return true}
4 | }
5 | if(jsf.indexOf("['sojson.v4']")!=-1){return decsojson4(jsf)}
6 | else if(jsf.indexOf("var __encode ='sojson.com")!=-1){return decsojsonp(jsf)}
7 | else if(jsf.indexOf("var encode_version = 'sojson.v5',")!=-1){return dec_sojsonv5_default(jsf)}
8 | else if(jsf.indexOf("'jsjiami.com.v6'")!=-1){return dec_jsjiamiv6_default(jsf)}
9 | else if(jsf.indexOf("'];(function(_0x")!=-1){return obdec_default(jsf)}
10 | else if(checklist(jsf.substring(0,jsf.indexOf(";")))){return dec_list(jsf)}
11 | else if(jsf.substring(0,100).replace(/ /g,"").replace(/\(/g,"").replace(/\)/g,"").replace(/\[/g,"").replace(/\]/g,"").replace(/\+/g,"").replace(/!/g,"")==""){return decjsf(jsf)}
12 | else if(jsf.substring(0,50).indexOf("eval")!=-1){return uneval(jsf)}
13 | var jstmp=aadecode(jsf)
14 | if(jstmp!="Failed!\nGiven code is not encoded as aaencode."){return jstmp}
15 | jstmp=jjdecode(jsf)
16 | if(jstmp!="Failed!\nGiven code is not encoded as jjencode."){return jstmp}
17 | return "Failed!\nAuto-Scan Failed."
18 | }
19 | function uneval(jsf) {
20 | var s=jsf.indexOf("eval"),f=jsf.lastIndexOf(")");
21 | eval("jsf=String"+jsf.substring(s+4,f+1))
22 | return jsf
23 | }
24 | function decsojson4(jsf) {
25 | var head="['sojson.v4']"
26 | if(jsf.indexOf(head)==-1){return "Failed!\nGiven code is not encoded as Sojson v4."}
27 | args=jsf.substring(240,jsf.length-58).split(/[a-zA-Z]{1,}/)
28 | var str="";
29 | for(var i=0;i 1){
218 | if (0 == data.indexOf(str_l)) {
219 | data = data.substr(str_l.length);
220 | ch_lotux = "l";
221 | break;
222 | } else if (0 == data.indexOf(str_o)) {
223 | data = data.substr(str_o.length);
224 | ch_lotux = "o";
225 | break;
226 | } else if (0 == data.indexOf(str_t)) {
227 | data = data.substr(str_t.length);
228 | ch_lotux = "t";
229 | break;
230 | } else if (0 == data.indexOf(str_u)) {
231 | data = data.substr(str_u.length);
232 | ch_lotux = "u";
233 | break;
234 | }
235 | }
236 | if (0 == data.indexOf(gvsig)) {
237 | temp = data.substr(gvsig.length);
238 | for (k = 0; k < 8; k++){
239 | if (0 == temp.indexOf(b[k])) {
240 | if (parseInt(ch_str + k + "", 8) > 128) {
241 | b_checkR1 = 1;
242 | break;
243 | }
244 | ch_str += k + "";
245 | data = data.substr(gvsig.length);
246 | data = data.substr(b[k].length);
247 | break;
248 | }
249 | }
250 | if (1 == b_checkR1) {
251 | if (0 == data.indexOf(str_hex)){
252 | data = data.substr(str_hex.length);
253 | var i = 0;
254 | for (i = 0; i < b.length; i++) {
255 | if (0 == data.indexOf(b[i])) {
256 | data = data.substr((b[i]).length);
257 | ch_lotux = i.toString(16);
258 | break;
259 | }
260 | }
261 | break;
262 | }
263 | }
264 | } else {
265 | break;
266 | }
267 | }
268 | jjvalue+=String.fromCharCode(parseInt(ch_str, 8)) + ch_lotux
269 | continue;
270 | } else{
271 | var match = 0;
272 | var n;
273 | while (true) {
274 | n = data.charCodeAt(0);
275 | if (0 == data.indexOf(str_quote)) {
276 | data = data.substr(str_quote.length);
277 | jjvalue+='"'
278 | match += 1;
279 | continue;
280 | } else if (0 == data.indexOf(str_slash)) {
281 | data = data.substr(str_slash.length);
282 | jjvalue+='\\'
283 | match += 1;
284 | continue;
285 | } else if (0 == data.indexOf(str_end)){
286 | if (match == 0) {
287 | alert("+ no match S block: " + data);
288 | return;
289 | }
290 | data = data.substr(str_end.length);
291 | break;
292 | } else if (0 == data.indexOf(str_upper)){
293 | if (match == 0) {
294 | alert("no match S block n>128: " + data);
295 | return;
296 | }
297 | data = data.substr(str_upper.length);
298 | var ch_str = "";
299 | var ch_lotux = "";
300 | for (j = 0; j < 10; j++) {
301 | if (j > 1) {
302 | if (0 == data.indexOf(str_l)) {
303 | data = data.substr(str_l.length);
304 | ch_lotux = "l";
305 | break;
306 | } else if (0 == data.indexOf(str_o)) {
307 | data = data.substr(str_o.length);
308 | ch_lotux = "o";
309 | break;
310 | } else if (0 == data.indexOf(str_t)) {
311 | data = data.substr(str_t.length);
312 | ch_lotux = "t";
313 | break;
314 | } else if (0 == data.indexOf(str_u)) {
315 | data = data.substr(str_u.length);
316 | ch_lotux = "u";
317 | break;
318 | }
319 | }
320 | if (0 == data.indexOf(gvsig)) {
321 | data = data.substr(gvsig.length);
322 | for (k = 0; k < b.length; k++){
323 | if (0 == data.indexOf(b[k])) {
324 | data = data.substr(b[k].length);
325 | ch_str += k.toString(16) + "";
326 | break;
327 | }
328 | }
329 | } else {
330 | break;
331 | }
332 | }
333 | jjvalue+=String.fromCharCode(parseInt(ch_str, 16))
334 | break;
335 | } else if (0 == data.indexOf(str_lower)){
336 | if (match == 0) {
337 | alert("no match S block n<128: " + data);
338 | return;
339 | }
340 | data = data.substr(str_lower.length);
341 | var ch_str = "";
342 | var ch_lotux = ""
343 | var temp = "";
344 | var b_checkR1 = 0;
345 | for (j = 0; j < 3; j++) {
346 | if (j > 1){
347 | if (0 == data.indexOf(str_l)) {
348 | data = data.substr(str_l.length);
349 | ch_lotux = "l";
350 | break;
351 | } else if (0 == data.indexOf(str_o)) {
352 | data = data.substr(str_o.length);
353 | ch_lotux = "o";
354 | break;
355 | } else if (0 == data.indexOf(str_t)) {
356 | data = data.substr(str_t.length);
357 | ch_lotux = "t";
358 | break;
359 | } else if (0 == data.indexOf(str_u)) {
360 | data = data.substr(str_u.length);
361 | ch_lotux = "u";
362 | break;
363 | }
364 | }
365 | if (0 == data.indexOf(gvsig)) {
366 | temp = data.substr(gvsig.length);
367 | for (k = 0; k < 8; k++) {
368 | if (0 == temp.indexOf(b[k])) {
369 | if (parseInt(ch_str + k + "", 8) > 128) {
370 | b_checkR1 = 1;
371 | break;
372 | }
373 | ch_str += k + "";
374 | data = data.substr(gvsig.length);
375 | data = data.substr(b[k].length);
376 | break;
377 | }
378 | }
379 | if (1 == b_checkR1) {
380 | if (0 == data.indexOf(str_hex)){
381 | data = data.substr(str_hex.length);
382 | var i = 0;
383 | for (i = 0; i < b.length; i++) {
384 | if (0 == data.indexOf(b[i])) {
385 | data = data.substr((b[i]).length);
386 | ch_lotux = i.toString(16);
387 | break;
388 | }
389 | }
390 | }
391 | }
392 | } else {
393 | break;
394 | }
395 | }
396 | jjvalue+=String.fromCharCode(parseInt(ch_str, 8)) + ch_lotux
397 | break;
398 | } else if ((0x21 <= n && n <= 0x2f) || (0x3A <= n && n <= 0x40) || (0x5b <= n && n <= 0x60) || (0x7b <= n && n <= 0x7f)) {
399 | jjvalue+=data.charAt(0)
400 | data = data.substr(1);
401 | match += 1;
402 | }
403 | }
404 | continue;
405 | }
406 | }
407 | break;
408 | }
409 | if(jjvalue!=""){return jjvalue;}
410 | else{return "Failed!\nGiven code is not encoded as jjencode."}
411 | }
412 | function decjsf(js) {
413 | function patternCreator(prefix, postfix) {
414 | replacedPrefix = prefix.replace(/[\[\]\(\)\+\!]/g, '\\$&');
415 | replacedPostfix = postfix.replace(/[\[\]\(\)\+\!]/g, '\\$&');
416 | return replacedPrefix + '(.*)' + replacedPostfix;
417 | }
418 | function isMatching(string, pattern) {
419 | var result = string.match(new RegExp(pattern));
420 | if (result) return result[1];
421 | return null;
422 | }
423 | function decodejsf() {
424 | var prefix = '[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(+![]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(+![]+[![]]+([]+[])[([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]](!+[]+!+[]+!+[]+[!+[]+!+[]])+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]])()(';
425 | var postfix = ')';
426 | var result = isMatching(code, patternCreator(prefix, postfix));
427 | if (result) {
428 | code = eval(result);
429 | return;
430 | }
431 | prefix = '[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(![]+[])[!+[]+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](';
432 | postfix = ')()';
433 | result = isMatching(code, patternCreator(prefix, postfix));
434 | if (result) {
435 | code = eval(result);
436 | return;
437 | }
438 | prefix = '[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]][([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]](';
439 | postfix = ')()';
440 | result = isMatching(code, patternCreator(prefix, postfix));
441 | if (result) {
442 | code = eval(result);
443 | return;
444 | }
445 | code = eval(code);
446 | }
447 | try{var code = js;decodejsf();return code}
448 | catch(e){return "Failed\n"+e}
449 | }
--------------------------------------------------------------------------------
/js/functions.js:
--------------------------------------------------------------------------------
1 | var timer=Math.round(new Date());
2 | function setCookie(name,value){
3 | document.cookie = name + "="+ escape (value);
4 | }
5 | function getCookie(name){
6 | var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
7 | if(arr=document.cookie.match(reg))
8 | return unescape(arr[2]);
9 | else
10 | return null;
11 | }
12 | function stimer(){
13 | timer=Math.round(new Date())
14 | }
15 | function st(t){
16 | if((t.substr(0,4).toUpperCase()!='FAIL')&&(t.replace(/ /g,'')!='')&&(t.substr(0,27)!='/*\n *Progcessed By JSDec in')){
17 | t='/*\n *Progcessed By JSDec in '+String(((Math.round(new Date())-timer)/1000).toFixed(2))+'s\n *JSDec - JSDec.js.org\n */\n'+t
18 | }
19 | document.getElementById("encres").value=t;
20 | }
21 | switch (getCookie("lang")){
22 | case "zh_cn":
23 | var thislang={nowlang:"中文(简体)",tools:"功能",jsdecode:"JS解码",about:"关于",updlog:"更新日志",gh:"Github",decresult:"破解结果",inputsth:"请粘贴js文件",copyres:"复制结果",downres:"下载结果",upload:"上传文件",startdec:"开始破解",clearres:"清除输入框",prores:"优化结果",help:"帮助",enc:["自动识别","美化","UglifyJS","Eval(包含packer)","AAEncode","JJEncode","JSF*ck","sojson v4","sojson高级版","JavaScript Obfuscator(普通版)","列表混淆变量名","sojson v5(默认配置)","jsjiami v6(默认配置)"],p:{beautify:"美化",uglify1:"Uglify-名称",uglify2:"Uglify-优化"},updlogs:{upd18:"重写多语言架构 修复bug 性能优化",upd17:"修复bug 支持破解Sojson v5和jsjiami v6的默认配置 优化js-obfuscator破解的破解成功率",upd16:"修复bug UI优化 加入自动识别js混淆类型,UglifyJS专项处理",upd15:"修复bug 支持UglifyJS处理 UI优化",upd14:"UI优化 修复bug 支持破解JS-obfuscator普通版",upd13:"支持破解Sojson v4及Sojson高级版 多语言支持",upd12:"性能优化 支持上传文件",upd11:"修复bug 支持美化js,破解JSF*ck,一键美化破解结果",upd10:"第一个版本,支持eval/aaencode/jjencode的js解密"},al:{t:""/*,warning:true*/}};
24 | break;
25 | case "en_us":
26 | var thislang={nowlang:"EN(US)",tools:"Tools",jsdecode:"JS Decode",about:"About",updlog:"Update Logs",gh:"Github",decresult:"Decode Result",inputsth:"Plz paste your js code in the textarea.",copyres:"Copy Result",downres:"Download Result",clearres:"Clear Textarea",upload:"Upload",startdec:"Decode",prores:"Progcess Result",help:"help",enc:["Auto Scan","Beautify","UglifyJS","Eval(packer)","AAEncode","JJEncode","JSF*ck","sojson v4","sojson Premium","JavaScript Obfuscator(Default)","list names","sojson v5(Default)","jsjiami v6(Default)"],p:{beautify:"Beautify",uglify1:"Uglify-names",uglify2:"Uglify-Better",uglify3:"Uglify-Properties"},updlogs:{upd18:"Update Multi-Language Support fix bugs Performance optimization",upd17:"fix bugs Sojson v5(default) and jsjiami v6(default) supported upgraded js-obfuscator decode success rate",upd16:"fix bugs UI Update added Auto Scan js encode type,UglifyJS detail progcess",upd15:"fix bugs UglifyJS progcess supported UI Update",upd14:"UI Update fix bugs supported JS-obfuscator default",upd13:"Sojson v4 and Sojson Premium decode supported Multi Language supported",upd12:"optimization Supported upload",upd11:"fix bugs JS_Beautify and decode JSF*ck supported",upd10:"first version eval/aaencode/jjencode decode supported"},al:{t:""/*,warning:true*/}};
27 | break;
28 | case "zh_tw":
29 | var thislang={nowlang:"中文(繁體)",tools:"功能",jsdecode:"JS解碼",about:"關於",updlog:"更新日誌",gh:"Github",decresult:"破解結果",inputsth:"請貼上js文件",copyres:"複製結果",downres:"下載結果",upload:"上傳文件",startdec:"開始破解",clearres:"清除輸入框",prores: "優化結果",help:"使用手冊",enc:["自動識別","美化","UglifyJS","Eval(包含packer)","AAEncode","JJEncode","JSF*ck", "sojson v4","sojson高級版","JavaScript Obfuscator(普通版)","列表混淆變量名","sojson v5(默認配置)","jsjiami v6(默認配置)"],p:{beautify :"美化",uglify1:"Uglify-名稱",uglify2:"Uglify-優化"},updlogs:{upd18:"重寫多語言架構 修復bug 性能優化",upd17:"修復bug 支援破解Sojson v5和jsjiami v6的默認配置 優化js-obfuscator破解的破解成功率",upd16:"修復bug UI優化 加入自動識別js混淆類型,UglifyJS專項處理",upd15:"修復bug 支援UglifyJS處理 UI優化",upd14:"UI優化 修復bug 支援破解JS-obfuscator普通版" ,upd13:"支援破解Sojson v4及Sojson高級版 多語言支援",upd12:"性能優化 支援上傳文件",upd11:"修復bug 支援美化js,破解JSF*ck,一鍵美化破解結果",upd10:"第一個版本,支援eval/aaencode/jjencode的js解密"},al:{t:""/*,warning:true*/}};
30 | break;
31 | default:
32 | switch (navigator.language.toLowerCase()){
33 | case 'zh-cn':
34 | setCookie("lang=zh_cn;")
35 | break;
36 | case 'en-uk':
37 | case 'en-us':
38 | default:
39 | setCookie("lang=en_us;")
40 | break;
41 | case 'zh-hk':
42 | case 'zh-hant':
43 | case 'zh-tw':
44 | setCookie("lang=zh_tw;")
45 | break;
46 | }
47 | location.reload(true)
48 | }
49 | var Wlangs=[
50 | {title:"中文(简体)",onc:function(){setCookie("lang=zh_cn;");location.reload(true)}},
51 | {title:"中文(繁體)",onc:function(){setCookie("lang=zh_tw;");location.reload(true)}},
52 | {title:"EN(US)",onc:function(){setCookie("lang=en_us;");location.reload(true)}}
53 | ],
54 | updlist=[
55 | {ver:'v1.8',date:'2020-07-18',tell:thislang.updlogs.upd18},
56 | {ver:'v1.7',date:'2020-07-06',tell:thislang.updlogs.upd17},
57 | {ver:'v1.6',date:'2020-06-24',tell:thislang.updlogs.upd16},
58 | {ver:'v1.5',date:'2020-06-23',tell:thislang.updlogs.upd15},
59 | {ver:'v1.4',date:'2020-06-22',tell:thislang.updlogs.upd14},
60 | {ver:'v1.3',date:'2020-06-19',tell:thislang.updlogs.upd13},
61 | {ver:'v1.2',date:'2020-06-18',tell:thislang.updlogs.upd12},
62 | {ver:'v1.1',date:'2020-06-17',tell:thislang.updlogs.upd11},
63 | {ver:'v1.0',date:'2020-06-17',tell:thislang.updlogs.upd10},
64 | ];
--------------------------------------------------------------------------------
/res/AndaleMo.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hax0r31337/JSDec/b8c02eec44dd5a42ac4d824dc6704d20b621974a/res/AndaleMo.ttf
--------------------------------------------------------------------------------
/res/SAO_Regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hax0r31337/JSDec/b8c02eec44dd5a42ac4d824dc6704d20b621974a/res/SAO_Regular.ttf
--------------------------------------------------------------------------------
/upd.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | {{ item.fgt }}
35 |
36 |
37 |
38 |
39 |
40 |
41 |
46 |
47 | JSDec
48 |
49 |
50 | mdi-translate {{ lang.nowlang }}
51 |
52 |
53 |
58 | {{ item.title }}
59 |
60 |
61 |
62 |
63 |
64 |
65 | {{ item.ver }} - {{ item.date }}
66 |
67 |
68 |
72 | JSDec by liulihaocai
73 |
74 | © {{ fullyear }}
75 |
76 |
77 |
78 |
79 |
80 |
104 |
105 |
--------------------------------------------------------------------------------