mx pak1%? background.js<$7&A common.js&-֚def.json1#Jicons\icon_32.png4.Uicons\icon_48.png=j ^#ަicons\icon_64.pngqJk index.htmlc]L injected.js1^9 lib\codemirror\codemirror.cssxm ؄lib\codemirror\codemirror.jsUM!lib\codemirror\continuecomment.js85lib\codemirror\javascript.jsR9JTc#lib\codemirror\match-highlighter.jsX/K)plib\codemirror\matchbrackets.js^plib\codemirror\search.jsf" x3lib\codemirror\searchcursor.jsp I_*lib\codemirror\tomorrow-night-eighties.csszvKlib\zip.js\deflate.jsD^m!)lib\zip.js\inflate.jsn0WRAlib\zip.js\zip.js@(?=E locale\cs.iniE d| locale\en.iniS elocale\fr-fr.iniX * locale\pl.inieKlocale\ru-ru.inis( )locale\zh-cn.inic'locale_html\dataloss_en.html>aŽlocale_html\dataloss_zh-cn.htmlqᚌlocale_html\oldversion_en.html\ @!locale_html\oldversion_zh-cn.html_ƿ options.htmlPfQ} options.js+J popup.htmlhpopup.js  ܧthemes\dark.css"{themes\default.cssw.themes\layout.cssZ function getMeta(t){return{id:t.id,custom:t.custom,meta:t.meta,enabled:t.enabled,update:t.update}}function older(t,e){t=(t||"").split("."),e=(e||"").split(".");for(var a=/(\d*)([a-z]*)(\d*)([a-z]*)/i;t.length&&e.length;){var s=t.shift().match(a),i=e.shift().match(a);for(s.shift(),i.shift(),s[0]=parseInt(s[0]||0,10),s[2]=parseInt(s[2]||0,10),i[0]=parseInt(i[0]||0,10),i[2]=parseInt(i[2]||0,10);s.length&&i.length;){var n=s.shift(),c=i.shift();if(n!=c)return c>n}}return e.length}function init(){getItem("showDetails",!0),getItem("installFile",!0),getItem("withData",!0),getString("search",_("Search$1")),autoUpdate=getItem("autoUpdate",!0),isApplied=getItem("isApplied",!0),lastUpdate=getItem("lastUpdate",0),gExc=getItem("gExc",[])}function newScript(t){var e={custom:{},enabled:1,update:1,code:"// ==UserScript==\n// @name New Script\n// ==/UserScript==\n"};return e.meta=parseMeta(e.code),e.id=Date.now()+Math.random().toString().substr(1),t&&saveScript(e),e}function saveIDs(){setItem("ids",ids)}function saveScript(t){map[t.id]||(ids.push(t.id),saveIDs()),setItem("vm:"+t.id,map[t.id]=t)}function removeScript(t){t=ids.splice(t,1)[0],saveIDs(),delete map[t],localStorage.removeItem("vm:"+t)}function str2RE(t){return t.replace(/(\.|\?|\/)/g,"\\$1").replace(/\*/g,".*?")}function autoReg(t,e){return e||"/"!=t[0]||"/"!=t.slice(-1)?RegExp("^"+str2RE(t)+"$"):RegExp(t.slice(1,-1))}function matchTest(t,e){var a=t.match(match_reg);if(!a)return!1;if("*"==a[1]){if("http"!=e[1]&&"https"!=e[1])return!1}else if(a[1]!=e[1])return!1;if("*"!=a[2])if("*."==a[2].slice(0,2)){if(e[2]!=a[2].slice(2)&&e[2].slice(1-a[2].length)!=a[2].slice(1))return!1}else if(a[2]!=e[2])return!1;return autoReg(a[3],1).test(e[3])?!0:!1}function testURL(t,e){var a,s=!0,i=[],n=[],c=[],r=t.match(match_reg);if(0!=e.custom._match&&e.meta.match&&(c=c.concat(e.meta.match)),e.custom.match&&(c=c.concat(e.custom.match)),0!=e.custom._include&&e.meta.include&&(i=i.concat(e.meta.include)),e.custom.include&&(i=i.concat(e.custom.include)),0!=e.custom._exclude&&e.meta.exclude&&(n=n.concat(e.meta.exclude)),e.custom.exclude&&(n=n.concat(e.custom.exclude)),c.length)for(a=0;a"+_("New version found.")+"",rt.post("UpdateItem",s)}var a=map[ids[t]],s={item:t,hideUpdate:1,status:2};if(a.update){var i=a.custom.updateURL||a.meta.updateURL;i&&(s.message=_("Checking for updates..."),rt.post("UpdateItem",s),fetchURL(i,function(){if(s.message=_("Failed fetching update information."),200==this.status)try{var t=parseMeta(this.responseText);if(older(a.meta.version,t.version))return e();s.message=_("No update found.")}catch(i){}delete s.hideUpdate,rt.post("UpdateItem",s)}))}}function checkUpdateAll(){setItem("lastUpdate",lastUpdate=Date.now());for(var t=0;te&&"==UserScript=="==s?e=1:"==/UserScript=="==s&&(e=0),1==e&&"@"==s[0]&&(s=s.slice(1),i=i.replace(/^\s+|\s+$/g,""),a[s]&&a[s].push?a[s].push(i):s in a||(a[s]=i))}),a.resource.forEach(function(t){e=t.match(/^(\w+)\s+(.*)/),e&&(a.resources[e[1]]=e[2])}),delete a.resource,a}function fetchURL(t,e,a){var s=new XMLHttpRequest;s.open("GET",t,!0),a&&(s.responseType=a),e&&(s.onloadend=e),s.send()}function fetchCache(t){fetchURL(t,function(){if(200==this.status){var e=new FileReader;e.onload=function(e){setString("cache:"+t,e.target.result)},e.readAsBinaryString(this.response)}},"blob")}function parseScript(t,e,a){var s,i=null,n={status:0};if(t?e?i=t.data:e=t.data:e.code||(a=e.script,e.code=a.code),n.message="message"in e?e.message:_("Script updated."),a&&(n.item=ids.indexOf(a.id)),e.status&&200!=e.status||!e.code)n.status=-1,n.message=_("Error fetching script!");else{var c=parseMeta(e.code);if(!a&&e.id&&(a=map[e.id]),a)s=ids.indexOf(a.id);else{if(c.name){for(c.namespace||(c.namespace=""),s=0;ss?newScript():map[ids[s]]}if(0>s&&(n.status=1,n.message=_("Script installed."),s=ids.length),a.meta=c,a.code=e.code,n.item=s,n.obj=getMeta(a),e.data)for(s in e.data)a[s]=e.data[s];t&&(e.custom?a.custom=e.custom:(a.meta.homepage||a.custom.homepage||/^(file|data):/.test(t.origin)||(a.custom.homepage=t.origin),!i||a.meta.downloadURL||a.custom.downloadURL||(a.custom.downloadURL=i))),saveScript(a),c.require.forEach(fetchCache);for(e in c.resources)fetchCache(c.resources[e]);c.icon&&fetchCache(c.icon)}t&&rt.post(t.source,{topic:"ShowMessage",data:n.message}),rt.post("UpdateItem",n)}function autoCheck(t){function e(){autoUpdate?(Date.now()-lastUpdate>=864e5&&checkUpdateAll(),setTimeout(e,36e5)):checking=!1}checking||(checking=!0,setTimeout(e,t||0))}!function(t,e){function a(t,e){mx.locale();var a=mx.getSystemLocale(),s=t.indexOf(a);0>s&&(a=t[0]||"en"),br.tabs.newTab({url:rt.getPrivateUrl()+"locale_html/"+e+"_"+a+".html",activate:!0})}older(t,e)&&(setString("lastVersion",e),older(e,"4.1.1.1600")?a(["en","zh-cn"],"oldversion"):t&&older(t,"4.1.1.1600")&&a(["en","zh-cn"],"dataloss"))}(getString("lastVersion",""),window.external.mxVersion);var isApplied,ids,map,gExc,lastUpdate,autoUpdate,settings={o:["showDetails","installFile","withData","autoUpdate","isApplied","lastUpdate","gExc"],s:["search","theme"]};!function(){function t(t,e){t.forEach(function(t){t in a&&e(t,a[t])})}if(!getString("ids")){var e,a,s;if(a=rt.storage.getConfig("data"))try{rt.storage.setConfig("data",null),a=JSON.parse(a),setItem("ids",a.ids),t(settings.o,setItem),t(settings.s,setString);for(e in a.map)s=a.map[e],s.values&&(setItem("val:"+getNameURI(s),s.values),delete s.values),setItem("vm:"+e,s);for(e in a.cache)setString("cache:"+e,a.cache[e]);setString("search",a.search)}catch(i){}}}(),init(),ids=[],map={},getItem("ids",[]).forEach(function(t){var e=getItem("vm:"+t);e&&(ids.push(t),map[t]=e)}),rt.listen("Vacuum",function(){var t,e,a,s={},i={};ids.forEach(function(e){if(t=map[e],t.meta.icon&&(s[t.meta.icon]=1),t.meta.require&&t.meta.require.forEach(function(t){s[t]=1}),t.meta.resources)for(e in t.meta.resources)s[e]=1;i[getNameURI(t)]=1});for(a in s)null==localStorage.getItem("cache:"+a)&&fetchCache(a);for(a=0;t=localStorage.key(a);a++)(e=t.match(/^val:([^:]*:[^:]*:[^:]*)/))&&!i[e[1]]?localStorage.removeItem(t):(e=t.match(/^cache:(.*)/))&&!s[e[1]]?localStorage.removeItem(t):a++;rt.post("Vacuumed")});var match_reg=/(.*?):\/\/([^\/]*)\/(.*)/;rt.listen("CheckUpdate",checkUpdate),rt.listen("CheckUpdateAll",checkUpdateAll),rt.listen("NewScript",function(){rt.post("AddScript",newScript(!0))}),rt.listen("EnableScript",function(t,e){t.id?(e=map[t.id],e.enabled=t.data,saveScript(e),rt.post("UpdateItem",{item:ids.indexOf(t.id),obj:getMeta(e),status:0})):setItem("isApplied",isApplied=t.data)}),rt.listen("SetValue",function(t){setItem("val:"+getNameURI(map[t.data.id]),t.data.data)}),rt.listen("RemoveScript",removeScript),rt.listen("FindScript",function(t){function e(t){n[t]=getString("cache:"+t)}var a,s=[],i={},n={},c={},r=t.origin;if(t.data)for(a=0;a|G´+;=C(xR!XTQJ;JiꉃQJ0 }ȆlKb3{o\kGKm@S߿*x,3`҈OhKZp.j|6G[g)6O9[K,|)O+ n&hJi>ffSb5r4 ԻcW-^gXQ?!B'>;gVm-4ZZykqM/CBs߰lM`/?UU] Q.eB6mk|-U(h$phn Y۟u]m^הbٍR4n/)Ge*kלXCWw #9u-*k\jug{劢@et߸N(`Y5$K'b-]B` @JҴ$m yF2{#pc,=eY(at 4^B ~p$ D,ǁ<*q3H#G♳+*@)Latr19XEamUm|) >MSd"oJ20;LiNJ X,}fw:.JQK3uP9?a 9~x#2󖏃jR]Tfu.@@˅a=E bQRL`j| "tN~Sv;8Lhx2\n*6WO!#+8ާ*jMem=|zlhق [&ؖ ,@;@jWUT؎݋7dzWj?`.K 00l@YE;6l(rxiv L4^_`ძAVYt /] Z 7oMH(_nn8_F;,WU&WX"ngӪ )Gqk%*|OqeayLZ(Ȩd+UU,KN<{#2 &brc>ر%$(Lb:!cVR ˴cWcx4 㹝a29صQ(8q==ܜ<\OL%/͹‟/Grn^~ڿ 9PQQ-`0Mk]8‘(N҂i@4[S]8v{7WOb& v_:©Re5 4[*[kKJo 0\.›tH8r5캍Hw:}\t|ydRٮD#]T0'i"i oF*x+Uf;Fw_ K;# @15ZJP\J :`/r(aBfͤ1=J}d.~7za0>D)Vͱ˩ݬowolrYqӷ'g I[5!D_&;k6\4ڋ͜DΎ2cєrkd6[JitMqb`|,ƞ4% x[^IENDB`PNG  IHDR00WsBIT|d pHYs a aJ%tEXtSoftwarewww.inkscape.org< IDAThZkpuⱋ7P ~P$lɒ_n,%qӉNv3iLLfU&HImQMQ"%>H@bwo bIQ{ν;sYPJDq)U]xb k*:tB- !f R>NzFX GwSZft"Tt ]՞F7=w:xݾk7G Rp_A&!ĥP%|uS= u.RSb@*@pF } _RN*h)ٗ !fu Pr?XWh"QD\i% Ik3r=ˠf`zmu`]d!\|s"ԕ.νP]XWck"K!!p%9c1b`RiBR;!zJk'@1;+vYsϟט1s?Fh\aiRb;BXJV{Lϲ/ յPU}c"I۱SknQ2@֛Zq ַPQSyy( vvFl!]aV#  `|t8/pP lEA$ĕ(PdYD8.;-6;Ԭ'?d$;E31B Fyya&㴠~VUUq ؼ^m :LMGCptbbl$ >(tRyǎ@g0x;Dӽĥ&  B ;'kwQٸ6/CU@)*g2D#tR?_(S?}4(Dz$Gt,:17Y =Q;|H>NAa1G)$YjKEmZRH4 F#`:$\.0P9zw6IMTt([V/0x :ԃtTUݻq]w MMMp\)ZeY͊SE ld$ CQ)IJg?7-W0X{qdx/Y,bEmQwvuB8IK\g2eOiB FN ϗuZ!W@Rt8~db)GW ɷOOrBٽ <3AP&Os[u8VV7!LX.N^s)N#J"!VQGFBC~X1Yz;ϽSi7 ^w.Ho0R$-*#*~s!d`z$K)-g lqo*T߷f_^$Y _4dRRg7 Y1 .ckڭ*,ˤ- &eP@eM/- baY~ݭV p #SVT"D?K۔ґUwnMhxؔOIENDB`PNG  IHDR@@iqsBIT|d pHYs B(xtEXtSoftwarewww.inkscape.org<oIDATx[ypTUtCBHH ( uqtĥqye<w "@}tN:?t۝R>;|s/|D)=oy/>!DHu:T2\㙣xB`;!$|(4.Br!rJbа53)!\6Rgq@5,!<6BQOSFK'&y0|ћaLq/"$MK7͆HǸh ex:BxtV=/LsLyS R0Nޫae7Bt11#grXtW[UɱV8p QO=Xk2[;8=c!7#ϸXPJK@ò\9.s2ώX5DBa.9KRr 3 IOT֮@Y2jYMQL)sX$EZtGFͨ=P |Kkhou4Y KSL&- BvWtwdYRK~жDB#5ܚ[.H7Ɋe=U]<*X N3=6,ǁR OW':]5  IU{rG5fe%3+M(VQؗfdrE@e'N.@`Yu'ՉӥP9 H!˥epES (j|?fNEɮndy *%"}I _ {jt@HaA{{{P~8fyP> sQ%Q钣h ˢ tgP% aJLirnU4ĸjdo <}] $t^eB^(y̘;cVK!2P4*yD1jZÖq_A 40U](Yzt3= H'ЏfčYnҲQ.+EQPaOÃ?)kG $BT)'YN2&" ͢[LEjF&2'BPS.܁ϗ?A$H&IpzG&ƓKu<˲(YHP8!7,+Ƈ֮#=h?xibsptX̞ijqG"zb́0 -[d'~La6}L޴V3~}aw{dq] JP_TÞEzaj3&x%G=oQ(ǫ|{WYg_ڌk]I _hJ܂„ʎ%]p1|8'^f$'' 6KtL|RY˱ޠii0aV T-7~Qrn;.(" G>Qhe]P!{*D U34B)U6U{Mhu{ө{n)I Hd?ώx#$1ߡz5u.G64{eaSݱ s*p;1g\,[,pyi{QkSxs DU s߯fEΦS@d$l~Wŏy^̞Ep$pp,;zQAIU#Yƪ+qm#33:IJlT"V .:gn5{)ː/kCpo@'⳵SgD ]hoek!bAWmB I;/⭷Š+~2 УCm].v]Ls}Oo@UsHH5Wǚ7.B bKfcc⶿^݌\;vKv|u+. ]- ;+XF:AQ~We Bu5 '㍷7_W1LKKDk_źb:[vgR3"_yRᆁ(,rœ㩿<.\ xc4,U2JOH0(4(*~p'K~JfRz ?u;|E\u ̘oضmv}5}uL]U)SnJ;BAI.M[P3Br(2R,صn̴*7qQπܽwxe58>5g.k': i$%)񱶠OPıȚSccd(,'N56̞ b#ۓGEf%.)r$vJ~Yo!RJq~t;ʹ[Njw[4v YfY?>v3ZpN(9tp*Pc/; Ԯ%.ɷv`9?l,cx)T7f*_0`Y'JJmhmiA[ ][~HLQ=-MQIʒx@LB:9},7?Y90}<0*Z:{ Զu JiÔ,; (rBMH##ǾIsV1B\ |%نHa0uXSgH B8Þw_Hs[{AAl@Yao(N5]Vm'&N-$QDme9*!+`ӮZO;$+RJ00j:sqqӜtڍjCnA!lvgK "?p D+;xaO_  $!Īi/4#z$%[2P('B(n0$)ߔ';!IYG)}Nŗc?2>~qvSXpc/=ez/PJՃg6ڙN݅9VƤ=7"JQcmޖP[PT~761N fаψ";Y/\kI>$zGz 0uAAzNFPx\ϳȊrQRA#;<0kVjYD}b'.ӰLi@Q¯73M 4<I—g(EGYu IENDB` ViolentMonkey function utf8decode(e){for(var t="",n=0,o=0,r=0,a=0;no?(t+=String.fromCharCode(o),n++):o>191&&224>o?(r=e.charCodeAt(n+1),t+=String.fromCharCode((31&o)<<6|63&r),n+=2):(r=e.charCodeAt(n+1),a=e.charCodeAt(n+2),t+=String.fromCharCode((15&o)<<12|(63&r)<<6|63&a),n+=3);return t}function post(e,t,n){n||(n={}),n.source||(n.source=id),n.origin||(n.origin=window.location.href),n.data=t,rt.post(e,n)}function setPopup(){post("SetPopup",[menu,ids])}function showMessage(e){function t(){document.body.removeChild(n),delete n}var n=document.createElement("div");n.setAttribute("style","position:fixed;border-radius:5px;background:orange;padding:20px;z-index:9999;box-shadow:5px 10px 15px rgba(0,0,0,0.4);transition:opacity 1s linear;opacity:0;text-align:left;"),document.body.appendChild(n),n.innerHTML=e,n.style.top=(window.innerHeight-n.offsetHeight)/2+"px",n.style.left=(window.innerWidth-n.offsetWidth)/2+"px",n.onclick=t,setTimeout(function(){n.style.opacity=1},1),setTimeout(function(){n.style.opacity=0,setTimeout(t,1e3)},3e3)}function confirmInstall(e){e&&confirm(e)&&(installCallback?installCallback():post("ParseScript",{code:document.body.innerText}))}function run_code(c){var w=new wrapper(c),require=c.meta.require||[],i,r,code=[];for(elements.forEach(function(e){code.push(e+"=window."+e)}),code=["(function(){var "+code.join(",")+";"],i=0;i0&&(e.stack=e.stack.slice(0,i).replace(/eval at run_code \(mxaddon-pkg:[^\)]*\), /g,"")),e.message="Error running script: "+(c.custom.name||c.meta.name||c.id),console.log(e+"\n"+e.stack)}}function runStart(){for(;start.length;)new run_code(start.shift())}function runBody(){if(document.body)for(window.removeEventListener("DOMNodeInserted",runBody,!0);body.length;)new run_code(body.shift())}function runEnd(){for(;end.length;)new run_code(end.shift())}function loadScript(e){var t;(ids=e.ids).forEach(function(n){if(n=e.map[n],n&&n.enabled){switch(n.custom["run-at"]||n.meta["run-at"]){case"document-start":t=start;break;case"document-body":t=body;break;default:t=end}t.push(n)}}),cache=e.cache,values=e.values,runStart(),window.addEventListener("DOMNodeInserted",runBody,!0),window.addEventListener("DOMContentLoaded",runEnd,!1),runBody(),"complete"==document.readyState&&runEnd(),post("GetPopup")}function propertyToString(){return"Property for Violentmonkey: designed by Gerald"}function wrapper(e){function t(e,t,n){var o=function(){var o;try{o=Function.apply.apply(e[t],[e,arguments])}catch(r){console.log("Error calling "+t+": \n"+r.stack)}return n&&(o=n(o)),o};return o.__proto__=e[t],o.prototype=e[t].prototype,o}function o(e){return e==window?c:e}function r(e){try{"function"==typeof window[e]?c[e]=u?u(window,e,o):window[e]:Object.defineProperty(c,e,{get:function(){return o(window[e])},set:function(t){window[e]=t}})}catch(t){}}function a(e){for(var t in s)if(e==t)return cache[s[t]]}function i(e,t,n){"value"in t&&(t.writable=!1),t.configurable=!1,n||(n=c,elements.push(e)),Object.defineProperty(n,e,t),"function"==typeof n[e]&&(n[e].toString=propertyToString)}var c=this,d=values[e.id];d||(d={});var u=null;for(Object.getOwnPropertyNames(window).forEach(r),u=t,n=window;n=Object.getPrototypeOf(n);)Object.getOwnPropertyNames(n).forEach(r);var s=e.meta.resources||{};elements=[],i("XMLHttpRequest",{value:unsafeWindow.XMLHttpRequest}),i("GM_info",{get:function(){var t=e.code.match(/\/\/\s+==UserScript==\s+([\s\S]*?)\/\/\s+==\/UserScript==\s/),n={description:e.meta.description||"",excludes:e.meta.exclude.concat(),includes:e.meta.include.concat(),matches:e.meta.match.concat(),name:e.meta.name||"",namespace:e.meta.namespace||"",resources:{},"run-at":e.meta["run-at"]||"document-end",unwrap:!1,version:e.meta.version||""},o={};i("script",{value:{}},o),i("scriptMetaStr",{value:t?t[1]:""},o),i("scriptWillUpdate",{value:e.update},o),i("version",{value:void 0},o);for(t in n)i(t,{value:n[t]},o.script);for(t in e.meta.resources)i(t,{value:e.meta.resources[t]},o.script.resources);return o}}),i("GM_deleteValue",{value:function(t){delete d[t],post("SetValue",{id:e.id,data:d})}}),i("GM_getValue",{value:function(e,t){var n=d[e];if(n)switch(e=n[0],n=n.slice(1),e){case"n":t=Number(n);break;case"b":t="true"==n;break;case"o":try{t=JSON.parse(n)}catch(o){console.log(o)}break;default:t=n}return t}}),i("GM_listValues",{value:function(){return Object.getOwnPropertyNames(d)}}),i("GM_setValue",{value:function(t,n){var o=(typeof n)[0];switch(o){case"o":n=o+JSON.stringify(n);break;default:n=o+n}d[t]=n,post("SetValue",{id:e.id,data:d})}}),i("GM_getResourceText",{value:function(e){var t=a(e);return t&&(t=utf8decode(t)),t}}),i("GM_getResourceURL",{value:function(e){var t=a(e);return t&&(t="data:;base64,"+window.btoa(t)),t}}),i("GM_addStyle",{value:function(e){if(document.head){var t=document.createElement("style");return t.innerHTML=e,document.head.appendChild(t),t}}}),i("GM_log",{value:console.log}),i("GM_openInTab",{value:function(e){window.open(e)}}),i("GM_registerMenuCommand",{value:function(e,t,n){menu.push([e,n]),command[e]=t,post("GetPopup")}}),i("GM_xmlhttpRequest",{value:function(e){function t(t){var o=e["on"+t.type];o&&o(n)}var n=new XMLHttpRequest;if(n.open(e.method,e.url,!e.synchronous,e.user,e.password),e.headers)for(var o in e.headers)n.setRequestHeader(o,e.headers[o]);return e.overrideMimeType&&n.overrideMimeType(e.overrideMimeType),["abort","error","load","progress","readystatechange","timeout"].forEach(function(e){n["on"+e]=t}),n.send(e.data||""),n}})}var rt=window.external.mxGetRuntime(),id=Date.now()+Math.random().toString().slice(1);rt.listen(id,function(e,t){"FoundScript"==e.topic?loadScript(e):"Command"==e.topic?(t=command[e.data],t&&t()):"ConfirmInstall"==e.topic?confirmInstall(e.data):"ShowMessage"==e.topic&&showMessage(e.data)});var installCallback=null;/\.user\.js$/.test(window.location.href)?function(){function e(){document&&document.body&&!document.querySelector("title")&&post("InstallScript")}"complete"!=document.readyState?window.addEventListener("load",e,!1):e()}():["userscripts.org","j.mozest.com"].indexOf(window.location.host)>=0&&window.addEventListener("click",function(e){for(var t=e.target;t&&"A"!=t.tagName;)t=t.parentNode;t&&/\.user\.js$/.test(t.href)&&(e.preventDefault(),installCallback=function(){post("InstallScript",t.href)},post("InstallScript"))},!1);var p=document.createElement("p");p.setAttribute("onclick","return window;");var unsafeWindow=p.onclick();delete p;var start=[],body=[],end=[],cache,values,ids=[],menu=[],command={},elements;post("FindScript",window.location.href);/* BASICS */ .CodeMirror { /* Set height, width, borders, and global font properties here */ font-family: monospace; height: 300px; } .CodeMirror-scroll { /* Set scrolling behaviour here */ overflow: auto; } /* PADDING */ .CodeMirror-lines { padding: 4px 0; /* Vertical padding around content */ } .CodeMirror pre { padding: 0 4px; /* Horizontal padding of content */ } .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { background-color: white; /* The little square between H and V scrollbars */ } /* GUTTER */ .CodeMirror-gutters { border-right: 1px solid #ddd; background-color: #f7f7f7; white-space: nowrap; } .CodeMirror-linenumbers {} .CodeMirror-linenumber { padding: 0 3px 0 5px; min-width: 20px; text-align: right; color: #999; } /* CURSOR */ .CodeMirror div.CodeMirror-cursor { border-left: 1px solid black; z-index: 3; } /* Shown when moving in bi-directional text */ .CodeMirror div.CodeMirror-secondarycursor { border-left: 1px solid silver; } .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor { width: auto; border: 0; background: #7e7; z-index: 1; } /* Can style cursor different in overwrite (non-insert) mode */ .CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {} .cm-tab { display: inline-block; } /* DEFAULT THEME */ .cm-s-default .cm-keyword {color: #708;} .cm-s-default .cm-atom {color: #219;} .cm-s-default .cm-number {color: #164;} .cm-s-default .cm-def {color: #00f;} .cm-s-default .cm-variable {color: black;} .cm-s-default .cm-variable-2 {color: #05a;} .cm-s-default .cm-variable-3 {color: #085;} .cm-s-default .cm-property {color: black;} .cm-s-default .cm-operator {color: black;} .cm-s-default .cm-comment {color: #a50;} .cm-s-default .cm-string {color: #a11;} .cm-s-default .cm-string-2 {color: #f50;} .cm-s-default .cm-meta {color: #555;} .cm-s-default .cm-error {color: #f00;} .cm-s-default .cm-qualifier {color: #555;} .cm-s-default .cm-builtin {color: #30a;} .cm-s-default .cm-bracket {color: #997;} .cm-s-default .cm-tag {color: #170;} .cm-s-default .cm-attribute {color: #00c;} .cm-s-default .cm-header {color: blue;} .cm-s-default .cm-quote {color: #090;} .cm-s-default .cm-hr {color: #999;} .cm-s-default .cm-link {color: #00c;} .cm-negative {color: #d44;} .cm-positive {color: #292;} .cm-header, .cm-strong {font-weight: bold;} .cm-em {font-style: italic;} .cm-link {text-decoration: underline;} .cm-invalidchar {color: #f00;} div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} /* STOP */ /* The rest of this file contains styles related to the mechanics of the editor. You probably shouldn't touch them. */ .CodeMirror { line-height: 1; position: relative; overflow: hidden; background: white; color: black; } .CodeMirror-scroll { /* 30px is the magic margin used to hide the element's real scrollbars */ /* See overflow: hidden in .CodeMirror */ margin-bottom: -30px; margin-right: -30px; padding-bottom: 30px; padding-right: 30px; height: 100%; outline: none; /* Prevent dragging from highlighting the element */ position: relative; } .CodeMirror-sizer { position: relative; } /* The fake, visible scrollbars. Used to force redraw during scrolling before actuall scrolling happens, thus preventing shaking and flickering artifacts. */ .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { position: absolute; z-index: 6; display: none; } .CodeMirror-vscrollbar { right: 0; top: 0; overflow-x: hidden; overflow-y: scroll; } .CodeMirror-hscrollbar { bottom: 0; left: 0; overflow-y: hidden; overflow-x: scroll; } .CodeMirror-scrollbar-filler { right: 0; bottom: 0; } .CodeMirror-gutter-filler { left: 0; bottom: 0; } .CodeMirror-gutters { position: absolute; left: 0; top: 0; padding-bottom: 30px; z-index: 3; } .CodeMirror-gutter { white-space: normal; height: 100%; padding-bottom: 30px; margin-bottom: -32px; display: inline-block; /* Hack to make IE7 behave */ *zoom:1; *display:inline; } .CodeMirror-gutter-elt { position: absolute; cursor: default; z-index: 4; } .CodeMirror-lines { cursor: text; } .CodeMirror pre { /* Reset some styles that the rest of the page might have set */ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; border-width: 0; background: transparent; font-family: inherit; font-size: inherit; margin: 0; white-space: pre; word-wrap: normal; line-height: inherit; color: inherit; z-index: 2; position: relative; overflow: visible; } .CodeMirror-wrap pre { word-wrap: break-word; white-space: pre-wrap; word-break: normal; } .CodeMirror-code pre { border-right: 30px solid transparent; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; } .CodeMirror-wrap .CodeMirror-code pre { border-right: none; width: auto; } .CodeMirror-linebackground { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 0; } .CodeMirror-linewidget { position: relative; z-index: 2; overflow: auto; } .CodeMirror-widget { } .CodeMirror-wrap .CodeMirror-scroll { overflow-x: hidden; } .CodeMirror-measure { position: absolute; width: 100%; height: 0px; overflow: hidden; visibility: hidden; } .CodeMirror-measure pre { position: static; } .CodeMirror div.CodeMirror-cursor { position: absolute; visibility: hidden; border-right: none; width: 0; } .CodeMirror-focused div.CodeMirror-cursor { visibility: visible; } .CodeMirror-selected { background: #d9d9d9; } .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } .cm-searching { background: #ffa; background: rgba(255, 255, 0, .4); } /* IE7 hack to prevent it from returning funny offsetTops on the spans */ .CodeMirror span { *vertical-align: text-bottom; } @media print { /* Hide the cursor when printing */ .CodeMirror div.CodeMirror-cursor { visibility: hidden; } } window.CodeMirror=function(){"use strict";function t(r,n){if(!(this instanceof t))return new t(r,n);this.options=n=n||{};for(var i in no)!n.hasOwnProperty(i)&&no.hasOwnProperty(i)&&(n[i]=no[i]);h(n);var o="string"==typeof n.value?0:n.value.first,l=this.display=e(r,o);l.wrapper.CodeMirror=this,u(this),n.autofocus&&!Pi&&de(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,draggingText:!1,highlight:new Xn},s(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap");var a=n.value;"string"==typeof a&&(a=new yo(n.value,n.mode)),oe(this,cn)(this,a),ki&&setTimeout(ti(he,this,!0),20),ge(this);var c;try{c=document.activeElement==l.input}catch(f){}c||n.autofocus&&!Pi?setTimeout(ti(We,this),20):De(this),oe(this,function(){for(var t in ro)ro.propertyIsEnumerable(t)&&ro[t](this,n[t],io);for(var e=0;ee.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}function h(t){for(var e=!1,r=0;re.scroller.clientWidth+1,l=i>e.scroller.clientHeight+1;l?(e.scrollbarV.style.display="block",e.scrollbarV.style.bottom=o?ui(e.measure)+"px":"0",e.scrollbarV.firstChild.style.height=i-e.scroller.clientHeight+e.scrollbarV.clientHeight+"px"):(e.scrollbarV.style.display="",e.scrollbarV.firstChild.style.height="0"),o?(e.scrollbarH.style.display="block",e.scrollbarH.style.right=l?ui(e.measure)+"px":"0",e.scrollbarH.firstChild.style.width=e.scroller.scrollWidth-e.scroller.clientWidth+e.scrollbarH.clientWidth+"px"):(e.scrollbarH.style.display="",e.scrollbarH.firstChild.style.width="0"),o&&l?(e.scrollbarFiller.style.display="block",e.scrollbarFiller.style.height=e.scrollbarFiller.style.width=ui(e.measure)+"px"):e.scrollbarFiller.style.display="",o&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(e.gutterFiller.style.display="block",e.gutterFiller.style.height=ui(e.measure)+"px",e.gutterFiller.style.width=e.gutters.offsetWidth+"px"):e.gutterFiller.style.display="",Oi&&0===ui(e.measure)&&(e.scrollbarV.style.minWidth=e.scrollbarH.style.minHeight=Ei?"18px":"12px")}function p(t,e,r){var n=t.scroller.scrollTop,i=t.wrapper.clientHeight;"number"==typeof r?n=r:r&&(n=r.top,i=r.bottom-r.top),n=Math.floor(n-I(t));var o=Math.ceil(n+i);return{from:mn(e,n),to:mn(e,o)}}function g(t){var e=t.display;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=y(e)-e.scroller.scrollLeft+t.doc.scrollLeft,n=e.gutters.offsetWidth,i=r+"px",o=e.lineDiv.firstChild;o;o=o.nextSibling)if(o.alignable)for(var l=0,s=o.alignable;l=t.display.showingFrom&&s.to<=t.display.showingTo));)e=[];return i&&(Gn(t,"update",t),(t.display.showingFrom!=o||t.display.showingTo!=l)&&Gn(t,"viewportChange",t,t.display.showingFrom,t.display.showingTo)),i}function x(t,e,r,n){var i=t.display,o=t.doc;if(!i.wrapper.clientWidth)return i.showingFrom=i.showingTo=o.first,i.viewOffset=0,void 0;if(!(!n&&0==e.length&&r.from>i.showingFrom&&r.tof&&i.showingTo-f<20&&(f=Math.min(u,i.showingTo)),Yi)for(c=gn(Fr(o,fn(o,c)));u>f&&Rr(o,fn(o,f));)++f;var h=[{from:Math.max(i.showingFrom,o.first),to:Math.min(i.showingTo,u)}];if(h=h[0].from>=h[0].to?[]:L(h,e),Yi)for(var a=0;ap.from)){h.splice(a--,1);break}p.to=g}for(var v=0,a=0;af&&(p.to=f),p.from>=p.to?h.splice(a--,1):v+=p.to-p.from}if(!n&&v==f-c&&c==i.showingFrom&&f==i.showingTo)return w(t),void 0;h.sort(function(t,e){return t.from-e.from});try{var y=document.activeElement}catch(b){}.7*(f-c)>v&&(i.lineDiv.style.display="none"),S(t,c,f,h,s),i.lineDiv.style.display="",y&&document.activeElement!=y&&y.offsetHeight&&y.focus();var x=c!=i.showingFrom||f!=i.showingTo||i.lastSizeC!=i.wrapper.clientHeight;return x&&(i.lastSizeC=i.wrapper.clientHeight,D(t,400)),i.showingFrom=c,i.showingTo=f,C(t),w(t),!0}}function C(t){for(var e,r=t.display,n=r.lineDiv.offsetTop,i=r.lineDiv.firstChild;i;i=i.nextSibling)if(i.lineObj){if(Si){var o=i.offsetTop+i.offsetHeight;e=o-n,n=o}else{var l=si(i);e=l.bottom-l.top}var s=i.lineObj.height-e;if(2>e&&(e=ee(r)),s>.001||-.001>s){pn(i.lineObj,e);var a=i.lineObj.widgets;if(a)for(var u=0;ur;++r){for(var i=e[r],o=[],l=i.diff||0,s=0,a=t.length;a>s;++s){var u=t[s];i.to<=u.from&&i.diff?o.push({from:u.from+l,to:u.to+l}):i.to<=u.from||i.from>=u.to?o.push(u):(i.from>u.from&&o.push({from:u.from,to:i.from}),i.toh){for(;c.lineObj!=e;)c=o(c);a&&h>=i&&c.lineNumber&&li(c.lineNumber,v(t.options,h)),c=c.nextSibling}else{if(e.widgets)for(var m,y=0,b=c;b&&20>y;++y,b=b.nextSibling)if(b.lineObj==e&&/div/i.test(b.nodeName)){m=b;break}var x=M(t,e,h,l,m);if(x!=m)u.insertBefore(x,c);else{for(;c!=m;)c=o(c);c=c.nextSibling}x.lineObj=e}++h});c;)c=o(c)}function M(t,e,r,n,i){var o,l=Qr(t,e),s=e.gutterMarkers,a=t.display;if(!(t.options.lineNumbers||s||e.bgClass||e.wrapClass||e.widgets))return l;if(i){i.alignable=null;for(var u,c=!0,f=0,h=null,d=i.firstChild;d;d=u)if(u=d.nextSibling,/\bCodeMirror-linewidget\b/.test(d.className)){for(var p=0;pe&&(e=0),l.appendChild(ni("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px; top: "+e+"px; width: "+(null==r?s-t:r)+"px; height: "+(n-e)+"px"))}function r(r,n,o){function l(e,n){return Z(t,Ue(r,e),"div",f,n)}var u,c,f=fn(i,r),h=f.text.length;return fi(yn(f),n||0,null==o?h:o,function(t,r,i){var f,d,p,g=l(t,"left");if(t==r)f=g,d=p=g.left;else{if(f=l(r-1,"right"),"rtl"==i){var m=g;g=f,f=m}d=g.left,p=f.right}null==n&&0==t&&(d=a),f.top-g.top>3&&(e(d,g.top,null,g.bottom),d=a,g.bottomc.bottom||f.bottom==c.bottom&&f.right>c.right)&&(c=f),a+1>d&&(d=a),e(d,f.top,p-d,f.bottom)}),{start:u,end:c}}var n=t.display,i=t.doc,o=t.doc.sel,l=document.createDocumentFragment(),s=n.lineSpace.offsetWidth,a=F(t.display);if(o.from.line==o.to.line)r(o.from.line,o.from.ch,o.to.ch);else{var u=fn(i,o.from.line),c=fn(i,o.to.line),f=Fr(i,u)==Fr(i,c),h=r(o.from.line,o.from.ch,f?u.text.length:null).end,d=r(o.to.line,f?0:null,o.to.ch).start;f&&(h.top=t.display.showingTo)){var r,n=+new Date+t.options.workTime,i=mr(e.mode,z(t,e.frontier)),o=[];e.iter(e.frontier,Math.min(e.first+e.size,t.display.showingTo+500),function(l){if(e.frontier>=t.display.showingFrom){var s=l.styles;l.styles=$r(t,l,i);for(var a=!s||s.length!=l.styles.length,u=0;!a&&un?(D(t,t.options.workDelay),!0):void 0}),o.length&&oe(t,function(){for(var t=0;ta;--s){if(s<=o.first)return o.first;var u=fn(o,s-1);if(u.stateAfter&&(!r||s<=o.frontier))return s;var c=_n(u.text,null,t.options.tabSize);(null==i||n>c)&&(i=s-1,n=c)}return i}function z(t,e,r){var n=t.doc,i=t.display;if(!n.mode.startState)return!0;var o=E(t,e,r),l=o>n.first&&fn(n,o-1).stateAfter;return l=l?mr(n.mode,l):vr(n.mode),n.iter(o,e,function(r){qr(t,r,l);var s=o==e-1||0==o%5||o>=i.showingFrom&&oo&&0==l&&(o=1)}return i=l>r?"left":r>l?"right":i,"left"==i&&s.leftSide?s=s.leftSide:"right"==i&&s.rightSide&&(s=s.rightSide),{left:r>l?s.right:s.left,right:l>r?s.left:s.right,top:s.top,bottom:s.bottom}}function G(t,e){for(var r=t.display.measureLineCache,n=0;nv&&(r=v),0>e&&(e=0);for(var n=g.length-2;n>=0;n-=2){var i=g[n],o=g[n+1];if(!(i>r||e>o)&&(e>=i&&o>=r||i>=e&&r>=o||Math.min(r,o)-Math.max(e,i)>=r-e>>1)){g[n]=Math.min(e,i),g[n+1]=Math.max(r,o);break}}return 0>n&&(n=g.length,g.push(e,r)),{left:t.left-p.left,right:t.right-p.left,top:n,bottom:null}}function n(t){t.bottom=g[t.top+1],t.top=g[t.top]}var i=t.display,o=Qn(e.text.length),l=Qr(t,e,o,!0);if(ki&&!Si&&!t.options.lineWrapping&&l.childNodes.length>100){for(var s=document.createDocumentFragment(),a=10,u=l.childNodes.length,c=0,f=Math.ceil(u/a);f>c;++c){for(var h=ni("div",null,null,"display: inline-block"),d=0;a>d&&u;++d)h.appendChild(l.firstChild),--u;s.appendChild(h)}l.appendChild(s)}oi(i.measure,l);var p=si(i.lineDiv),g=[],m=Qn(e.text.length),v=l.offsetHeight;Mi&&i.measure.first!=l&&oi(i.measure,l);for(var y,c=0;c1&&(x=m[c]=r(C[0]),x.rightSide=r(C[C.length-1]))}x||(x=m[c]=r(si(b))),y.measureRight&&(x.right=si(y.measureRight).left),y.leftSide&&(x.leftSide=r(si(y.leftSide)))}ii(t.display.measure);for(var y,c=0;cr.from?o(t-1):o(t,n)}n=n||fn(t.doc,e.line),i||(i=V(t,n));var s=yn(n),a=e.ch;if(!s)return o(a);var u=bi(s,a),c=l(a,u);return null!=zo&&(c.other=l(a,zo)),c}function J(t,e,r,n){var i=new Ue(t,e);return i.xRel=n,r&&(i.outside=!0),i}function Q(t,e,r){var n=t.doc;if(r+=t.display.viewOffset,0>r)return J(n.first,0,!0,-1);var i=mn(n,r),o=n.first+n.size-1;if(i>o)return J(n.first+n.size-1,fn(n,o).text.length,!0,1);for(0>e&&(e=0);;){var l=fn(n,i),s=te(t,l,i,e,r),a=Pr(l),u=a&&a.find();if(!a||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;i=u.to.line}}function te(t,e,r,n,i){function o(n){var i=q(t,Ue(r,n),"line",e,u);return s=!0,l>i.bottom?i.left-a:lm)return J(r,d,v,1);for(;;){if(c?d==h||d==Ci(e,h,1):1>=d-h){for(var y=p>n||m-n>=n-p?h:d,b=n-(y==h?p:m);To.test(e.text.charAt(y));)++y;var x=J(r,y,y==h?g:v,0>b?-1:b?1:0);return x}var C=Math.ceil(f/2),w=h+C;if(c){w=h;for(var L=0;C>L;++L)w=Ci(e,w,1)}var k=o(w);k>n?(d=w,m=k,(v=s)&&(m+=1e3),f=C):(h=w,p=k,g=s,f-=C)}}function ee(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Bi){Bi=ni("pre");for(var e=0;49>e;++e)Bi.appendChild(document.createTextNode("x")),Bi.appendChild(ni("br"));Bi.appendChild(document.createTextNode("x"))}oi(t.measure,Bi);var r=Bi.offsetHeight/50;return r>3&&(t.cachedTextHeight=r),ii(t.measure),r||1}function re(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=ni("span","x"),r=ni("pre",[e]);oi(t.measure,r);var n=e.offsetWidth;return n>2&&(t.cachedCharWidth=n),n||10}function ne(t){t.curOp={changes:[],forceUpdate:!1,updateInput:null,userSelChange:null,textChanged:null,selectionChanged:!1,cursorActivity:!1,updateMaxLine:!1,updateScrollPos:!1,id:++ji},wo++||(Co=[])}function ie(t){var e=t.curOp,r=t.doc,n=t.display;if(t.curOp=null,e.updateMaxLine&&f(t),n.maxLineChanged&&!t.options.lineWrapping&&n.maxLine){var i=U(t,n.maxLine);n.sizer.style.minWidth=Math.max(0,i+3+Lo)+"px",n.maxLineChanged=!1;var o=Math.max(0,n.sizer.offsetLeft+n.sizer.offsetWidth-n.scroller.clientWidth);os&&r.charCodeAt(s)==o.charCodeAt(s);)++s;var u=i.from,c=i.to;s1e3||o.indexOf("\n")>-1?e.value=t.display.prevInput="":t.display.prevInput=o,l&&ie(t),t.state.pasteIncoming=!1,!0}function he(t,e){var r,n,i=t.doc;if(Xe(i.sel.from,i.sel.to))e&&(t.display.prevInput=t.display.input.value="",ki&&!Mi&&(t.display.inputHasSelection=null));else{t.display.prevInput="",r=Oo&&(i.sel.to.line-i.sel.from.line>100||(n=t.getSelection()).length>1e3);var o=r?"-":n||t.getSelection();t.display.input.value=o,t.state.focused&&$n(t.display.input),ki&&!Mi&&(t.display.inputHasSelection=o)}t.display.inaccurateSelection=r}function de(t){"nocursor"==t.options.readOnly||Pi&&document.activeElement==t.display.input||t.display.input.focus()}function pe(t){return t.options.readOnly||t.doc.cantEdit}function ge(t){function e(){t.state.focused&&setTimeout(ti(de,t),0)}function r(){null==s&&(s=setTimeout(function(){s=null,l.cachedCharWidth=l.cachedTextHeight=No=null,X(t),se(t,ti(ae,t))},100))}function n(){for(var t=l.wrapper.parentNode;t&&t!=document.body;t=t.parentNode);t?setTimeout(n,5e3):Fn(window,"resize",r)}function i(e){Bn(t,e)||t.options.onDragEvent&&t.options.onDragEvent(t,Hn(e))||En(e)}function o(){l.inaccurateSelection&&(l.prevInput="",l.inaccurateSelection=!1,l.input.value=t.getSelection(),$n(l.input))}var l=t.display;Pn(l.scroller,"mousedown",oe(t,ye)),ki?Pn(l.scroller,"dblclick",oe(t,function(e){if(!Bn(t,e)){var r=ve(t,e);if(r&&!be(t,e)&&!me(t.display,e)){Wn(e);var n=dr(fn(t.doc,r.line).text,r);Je(t.doc,n.from,n.to)}}})):Pn(l.scroller,"dblclick",function(e){Bn(t,e)||Wn(e)}),Pn(l.lineSpace,"selectstart",function(t){me(l,t)||Wn(t)}),Xi||Pn(l.scroller,"contextmenu",function(e){Oe(t,e)}),Pn(l.scroller,"scroll",function(){l.scroller.clientHeight&&(we(t,l.scroller.scrollTop),Le(t,l.scroller.scrollLeft,!0),Rn(t,"scroll",t))}),Pn(l.scrollbarV,"scroll",function(){l.scroller.clientHeight&&we(t,l.scrollbarV.scrollTop)}),Pn(l.scrollbarH,"scroll",function(){l.scroller.clientHeight&&Le(t,l.scrollbarH.scrollLeft)}),Pn(l.scroller,"mousewheel",function(e){ke(t,e)}),Pn(l.scroller,"DOMMouseScroll",function(e){ke(t,e)}),Pn(l.scrollbarH,"mousedown",e),Pn(l.scrollbarV,"mousedown",e),Pn(l.wrapper,"scroll",function(){l.wrapper.scrollTop=l.wrapper.scrollLeft=0});var s;Pn(window,"resize",r),setTimeout(n,5e3),Pn(l.input,"keyup",oe(t,function(e){Bn(t,e)||t.options.onKeyEvent&&t.options.onKeyEvent(t,Hn(e))||16==e.keyCode&&(t.doc.sel.shift=!1)})),Pn(l.input,"input",ti(ce,t)),Pn(l.input,"keydown",oe(t,Ne)),Pn(l.input,"keypress",oe(t,He)),Pn(l.input,"focus",ti(We,t)),Pn(l.input,"blur",ti(De,t)),t.options.dragDrop&&(Pn(l.scroller,"dragstart",function(e){Ce(t,e)}),Pn(l.scroller,"dragenter",i),Pn(l.scroller,"dragover",i),Pn(l.scroller,"drop",oe(t,xe))),Pn(l.scroller,"paste",function(e){me(l,e)||(de(t),ce(t))}),Pn(l.input,"paste",function(){if(Ti&&!t.state.fakedLastChar){var e=l.input.selectionStart,r=l.input.selectionEnd;l.input.value+="$",l.input.selectionStart=e,l.input.selectionEnd=r,t.state.fakedLastChar=!0}t.state.pasteIncoming=!0,ce(t)}),Pn(l.input,"cut",o),Pn(l.input,"copy",o),Di&&Pn(l.sizer,"mouseup",function(){document.activeElement==l.input&&l.input.blur(),de(t)})}function me(t,e){for(var r=zn(e);r!=t.wrapper;r=r.parentNode)if(!r||r.ignoreEvents||r.parentNode==t.sizer&&r!=t.mover)return!0}function ve(t,e,r){var n=t.display;if(!r){var i=zn(e);if(i==n.scrollbarH||i==n.scrollbarH.firstChild||i==n.scrollbarV||i==n.scrollbarV.firstChild||i==n.scrollbarFiller||i==n.gutterFiller)return null}var o,l,s=si(n.lineSpace);try{o=e.clientX,l=e.clientY}catch(e){return null}return Q(t,o-s.left,l-s.top)}function ye(t){function e(t){if(!Xe(v,t)){if(v=t,"single"==c)return Je(i.doc,$e(l,a),t),void 0;if(g=$e(l,g),m=$e(l,m),"double"==c){var e=dr(fn(l,t.line).text,t);_e(t,g)?Je(i.doc,e.from,m):Je(i.doc,g,e.to)}else"triple"==c&&(_e(t,g)?Je(i.doc,m,$e(l,Ue(t.line,0))):Je(i.doc,g,$e(l,Ue(t.line+1,0))))}}function r(t){var n=++b,s=ve(i,t,!0);if(s)if(Xe(s,h)){var a=t.clientYy.bottom?20:0;a&&setTimeout(oe(i,function(){b==n&&(o.scroller.scrollTop+=a,r(t))}),50)}else{i.state.focused||We(i),h=s,e(s);var u=p(o,l);(s.line>=u.to||s.lineu-400&&Xe(Ki.pos,a))c="triple",Wn(t),setTimeout(ti(de,i),20),pr(i,a.line);else if(Vi&&Vi.time>u-400&&Xe(Vi.pos,a)){c="double",Ki={time:u,pos:a},Wn(t);var f=dr(fn(l,a.line).text,a);Je(i.doc,f.from,f.to)}else Vi={time:u,pos:a};var h=a;if(i.options.dragDrop&&Ao&&!pe(i)&&!Xe(s.from,s.to)&&!_e(a,s.from)&&!_e(s.to,a)&&"single"==c){var d=oe(i,function(e){Ti&&(o.scroller.draggable=!1),i.state.draggingText=!1,Fn(document,"mouseup",d),Fn(o.scroller,"drop",d),Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)<10&&(Wn(e),Je(i.doc,a),de(i))});return Ti&&(o.scroller.draggable=!0),i.state.draggingText=d,o.scroller.dragDrop&&o.scroller.dragDrop(),Pn(document,"mouseup",d),Pn(o.scroller,"drop",d),void 0}Wn(t),"single"==c&&Je(i.doc,$e(l,a));var g=s.from,m=s.to,v=a,y=si(o.wrapper),b=0,x=oe(i,function(t){ki||In(t)?r(t):n(t)}),C=oe(i,n);Pn(document,"mousemove",x),Pn(document,"mouseup",C)}}}function be(t,e){var r=t.display;try{var n=e.clientX,i=e.clientY}catch(e){return!1}if(n>=Math.floor(si(r.gutters).right))return!1;if(Wn(e),!Kn(t,"gutterClick"))return!0;var o=si(r.lineDiv);if(i>o.bottom)return!0;i-=o.top-r.viewOffset;for(var l=0;l=n){var a=mn(t.doc,i),u=t.options.gutters[l];Gn(t,"gutterClick",t,a,u,e);break}}return!0}function xe(t){var e=this;if(!(Bn(e,t)||me(e.display,t)||e.options.onDragEvent&&e.options.onDragEvent(e,Hn(t)))){Wn(t),ki&&($i=+new Date);var r=ve(e,t,!0),n=t.dataTransfer.files;if(r&&!pe(e))if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),l=0,s=function(t,n){var s=new FileReader;s.onload=function(){o[n]=s.result,++l==i&&(r=$e(e.doc,r),Pe(e.doc,{from:r,to:r,text:Wo(o.join("\n")),origin:"paste"},"around"))},s.readAsText(t)},a=0;i>a;++a)s(n[a],a);else{if(e.state.draggingText&&!_e(r,e.doc.sel.from)&&!_e(e.doc.sel.to,r))return e.state.draggingText(t),setTimeout(ti(de,e),20),void 0;try{var o=t.dataTransfer.getData("Text");if(o){var u=e.doc.sel.from,c=e.doc.sel.to;tr(e.doc,r,r),e.state.draggingText&&Ke(e.doc,"",u,c,"paste"),e.replaceSelection(o,null,"paste"),de(e),We(e)}}catch(t){}}}}function Ce(t,e){if(ki&&(!t.state.draggingText||+new Date-$i<100))return En(e),void 0;if(!Bn(t,e)&&!me(t.display,e)){var r=t.getSelection();if(e.dataTransfer.setData("Text",r),e.dataTransfer.setDragImage&&!Wi){var n=ni("img",null,null,"position: fixed; left: 0; top: 0;");Hi&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),Hi&&n.parentNode.removeChild(n)}}}function we(t,e){Math.abs(t.doc.scrollTop-e)<2||(t.doc.scrollTop=e,Li||b(t,[],e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e),t.display.scrollbarV.scrollTop!=e&&(t.display.scrollbarV.scrollTop=e),Li&&b(t,[]),D(t,100))}function Le(t,e,r){(r?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)||(e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),t.doc.scrollLeft=e,g(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbarH.scrollLeft!=e&&(t.display.scrollbarH.scrollLeft=e))}function ke(t,e){var r=e.wheelDeltaX,n=e.wheelDeltaY;null==r&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta);var i=t.display,o=i.scroller;if(r&&o.scrollWidth>o.clientWidth||n&&o.scrollHeight>o.clientHeight){if(n&&Fi&&Ti)for(var l=e.target;l!=o;l=l.parentNode)if(l.lineObj){t.display.currentWheelTarget=l;break}if(r&&!Li&&!Hi&&null!=qi)return n&&we(t,Math.max(0,Math.min(o.scrollTop+n*qi,o.scrollHeight-o.clientHeight))),Le(t,Math.max(0,Math.min(o.scrollLeft+r*qi,o.scrollWidth-o.clientWidth))),Wn(e),i.wheelStartX=null,void 0;if(n&&null!=qi){var s=n*qi,a=t.doc.scrollTop,u=a+i.wrapper.clientHeight;0>s?a=Math.max(0,a+s-50):u=Math.min(t.doc.height,u+s+50),b(t,[],{top:a,bottom:u})}20>Zi&&(null==i.wheelStartX?(i.wheelStartX=o.scrollLeft,i.wheelStartY=o.scrollTop,i.wheelDX=r,i.wheelDY=n,setTimeout(function(){if(null!=i.wheelStartX){var t=o.scrollLeft-i.wheelStartX,e=o.scrollTop-i.wheelStartY,r=e&&i.wheelDY&&e/i.wheelDY||t&&i.wheelDX&&t/i.wheelDX;i.wheelStartX=i.wheelStartY=null,r&&(qi=(qi*Zi+r)/(Zi+1),++Zi)}},200)):(i.wheelDX+=r,i.wheelDY+=n))}}function Se(t,e,r){if("string"==typeof e&&(e=co[e],!e))return!1;t.display.pollingFast&&fe(t)&&(t.display.pollingFast=!1);var n=t.doc,i=n.sel.shift,o=!1;try{pe(t)&&(t.state.suppressEdits=!0),r&&(n.sel.shift=!1),o=e(t)!=ko}finally{n.sel.shift=i,t.state.suppressEdits=!1}return o}function Me(t){var e=t.state.keyMaps.slice(0);return t.options.extraKeys&&e.push(t.options.extraKeys),e.push(t.options.keyMap),e}function Te(t,e){var r=yr(t.options.keyMap),n=r.auto;clearTimeout(Ji),n&&!xr(e)&&(Ji=setTimeout(function(){yr(t.options.keyMap)==r&&(t.options.keyMap=n.call?n.call(null,t):n,l(t))},50));var i=Cr(e,!0),o=!1;if(!i)return!1;var s=Me(t);return o=e.shiftKey?br("Shift-"+i,s,function(e){return Se(t,e,!0)})||br(i,s,function(e){return("string"==typeof e?/^go[A-Z]/.test(e):e.motion)?Se(t,e):void 0}):br(i,s,function(e){return Se(t,e)}),o&&(Wn(e),W(t),Mi&&(e.oldKeyCode=e.keyCode,e.keyCode=0),Gn(t,"keyHandled",t,i,e)),o}function Ae(t,e,r){var n=br("'"+r+"'",Me(t),function(e){return Se(t,e,!0)});return n&&(Wn(e),W(t),Gn(t,"keyHandled",t,"'"+r+"'",e)),n}function Ne(t){var e=this;if(e.state.focused||We(e),!(Bn(e,t)||e.options.onKeyEvent&&e.options.onKeyEvent(e,Hn(t)))){ki&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.doc.sel.shift=16==r||t.shiftKey;var n=Te(e,t);Hi&&(to=n?r:null,!n&&88==r&&!Oo&&(Fi?t.metaKey:t.ctrlKey)&&e.replaceSelection(""))}}function He(t){var e=this;if(!(Bn(e,t)||e.options.onKeyEvent&&e.options.onKeyEvent(e,Hn(t)))){var r=t.keyCode,n=t.charCode;if(Hi&&r==to)return to=null,Wn(t),void 0;if(!(Hi&&(!t.which||t.which<10)||Di)||!Te(e,t)){var i=String.fromCharCode(null==n?r:n);this.options.electricChars&&this.doc.mode.electricChars&&this.options.smartIndent&&!pe(this)&&this.doc.mode.electricChars.indexOf(i)>-1&&setTimeout(oe(e,function(){ur(e,e.doc.sel.to.line,"smart")}),75),Ae(e,t,i)||(ki&&!Mi&&(e.display.inputHasSelection=null),ce(e))}}}function We(t){"nocursor"!=t.options.readOnly&&(t.state.focused||(Rn(t,"focus",t),t.state.focused=!0,-1==t.display.wrapper.className.search(/\bCodeMirror-focused\b/)&&(t.display.wrapper.className+=" CodeMirror-focused"),t.curOp||(he(t,!0),Ti&&setTimeout(ti(he,t,!0),0))),ue(t),W(t))}function De(t){t.state.focused&&(Rn(t,"blur",t),t.state.focused=!1,t.display.wrapper.className=t.display.wrapper.className.replace(" CodeMirror-focused","")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.doc.sel.shift=!1)},150)}function Oe(t,e){function r(){if(null!=i.input.selectionStart){var t=i.input.value=" "+(Xe(o.from,o.to)?"":i.input.value);i.prevInput=" ",i.input.selectionStart=1,i.input.selectionEnd=t.length}}function n(){if(i.inputDiv.style.position="relative",i.input.style.cssText=a,Mi&&(i.scrollbarV.scrollTop=i.scroller.scrollTop=s),ue(t),null!=i.input.selectionStart){(!ki||Mi)&&r(),clearTimeout(Qi);var e=0,n=function(){" "==i.prevInput&&0==i.input.selectionStart?oe(t,co.selectAll)(t):e++<10?Qi=setTimeout(n,500):he(t)};Qi=setTimeout(n,200)}}if(!Bn(t,e,"contextmenu")){var i=t.display,o=t.doc.sel;if(!me(i,e)){var l=ve(t,e),s=i.scroller.scrollTop;if(l&&!Hi){(Xe(o.from,o.to)||_e(l,o.from)||!_e(l,o.to))&&oe(t,tr)(t.doc,l,l);var a=i.input.style.cssText;if(i.inputDiv.style.position="absolute",i.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(e.clientY-5)+"px; left: "+(e.clientX-5)+"px; z-index: 1000; background: white; outline: none;"+"border-width: 0; outline: none; overflow: hidden; opacity: .05; -ms-opacity: .05; filter: alpha(opacity=5);",de(t),he(t,!0),Xe(o.from,o.to)&&(i.input.value=i.prevInput=" "),ki&&!Mi&&r(),Xi){En(e);var u=function(){Fn(window,"mouseup",u),setTimeout(n,20)};Pn(window,"mouseup",u)}else setTimeout(n,50)}}}}function Ee(t,e,r){if(!_e(e.from,r))return $e(t,r);var n=e.text.length-1-(e.to.line-e.from.line);if(r.line>e.to.line+n){var i=r.line-n,o=t.first+t.size-1;return i>o?Ue(o,fn(t,o).text.length):Ze(r,fn(t,i).text.length)}if(r.line==e.to.line+n)return Ze(r,jn(e.text).length+(1==e.text.length?e.from.ch:0)+fn(t,e.to.line).text.length-e.to.ch);var l=r.line-e.from.line;return Ze(r,e.text[l].length+(l?0:e.from.ch))}function ze(t,e,r){if(r&&"object"==typeof r)return{anchor:Ee(t,e,r.anchor),head:Ee(t,e,r.head)};if("start"==r)return{anchor:e.from,head:e.from};var n=eo(e);if("around"==r)return{anchor:e.from,head:n};if("end"==r)return{anchor:n,head:n};var i=function(t){if(_e(t,e.from))return t;if(!_e(e.to,t))return n;var r=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=n.ch-e.to.ch),Ue(r,i)};return{anchor:i(t.sel.anchor),head:i(t.sel.head)}}function Ie(t,e,r){var n={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){this.canceled=!0}};return r&&(n.update=function(e,r,n,i){e&&(this.from=$e(t,e)),r&&(this.to=$e(t,r)),n&&(this.text=n),void 0!==i&&(this.origin=i)}),Rn(t,"beforeChange",t,n),t.cm&&Rn(t.cm,"beforeChange",t.cm,n),n.canceled?null:{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Pe(t,e,r,n){if(t.cm){if(!t.cm.curOp)return oe(t.cm,Pe)(t,e,r,n);if(t.cm.state.suppressEdits)return}if(!(Kn(t,"beforeChange")||t.cm&&Kn(t.cm,"beforeChange"))||(e=Ie(t,e,!0))){var i=_i&&!n&&Er(t,e.from,e.to);if(i){for(var o=i.length-1;o>=1;--o)Fe(t,{from:i[o].from,to:i[o].to,text:[""]});i.length&&Fe(t,{from:i[0].from,to:i[0].to,text:e.text},r)}else Fe(t,e,r)}}function Fe(t,e,r){var n=ze(t,e,r);wn(t,e,n,t.cm?t.cm.curOp.id:0/0),Be(t,e,n,Dr(t,e));var i=[];un(t,function(t,r){r||-1!=Zn(i,t.history)||(An(t.history,e),i.push(t.history)),Be(t,e,null,Dr(t,e))})}function Re(t,e){if(!t.cm||!t.cm.state.suppressEdits){var r=t.history,n=("undo"==e?r.done:r.undone).pop();if(n){var i={changes:[],anchorBefore:n.anchorAfter,headBefore:n.headAfter,anchorAfter:n.anchorBefore,headAfter:n.headBefore,generation:r.generation};("undo"==e?r.undone:r.done).push(i),r.generation=n.generation||++r.maxGeneration;for(var o=Kn(t,"beforeChange")||t.cm&&Kn(t.cm,"beforeChange"),l=n.changes.length-1;l>=0;--l){var s=n.changes[l];if(s.origin=e,o&&!Ie(t,s,!1))return("undo"==e?r.done:r.undone).length=0,void 0;i.changes.push(Cn(t,s));var a=l?ze(t,s,null):{anchor:n.anchorBefore,head:n.headBefore};Be(t,s,a,Or(t,s));var u=[];un(t,function(t,e){e||-1!=Zn(u,t.history)||(An(t.history,s),u.push(t.history)),Be(t,s,null,Or(t,s))})}}}}function Ge(t,e){function r(t){return Ue(t.line+e,t.ch)}t.first+=e,t.cm&&ae(t.cm,t.first,t.first,e),t.sel.head=r(t.sel.head),t.sel.anchor=r(t.sel.anchor),t.sel.from=r(t.sel.from),t.sel.to=r(t.sel.to)}function Be(t,e,r,n){if(t.cm&&!t.cm.curOp)return oe(t.cm,Be)(t,e,r,n);if(e.to.linet.lastLine())){if(e.from.lineo&&(e={from:e.from,to:Ue(o,fn(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=hn(t,e.from,e.to),r||(r=ze(t,e,null)),t.cm?Ve(t.cm,e,n,r):ln(t,e,n,r)}}function Ve(t,e,r,n){var o=t.doc,l=t.display,s=e.from,a=e.to,u=!1,f=s.line;t.options.lineWrapping||(f=gn(Fr(o,fn(o,s.line))),o.iter(f,a.line+1,function(t){return t==l.maxLine?(u=!0,!0):void 0})),_e(o.sel.head,e.from)||_e(e.to,o.sel.head)||(t.curOp.cursorActivity=!0),ln(o,e,r,n,i(t)),t.options.lineWrapping||(o.iter(f,s.line+e.text.length,function(t){var e=c(o,t);e>l.maxLineLength&&(l.maxLine=t,l.maxLineLength=e,l.maxLineChanged=!0,u=!1)}),u&&(t.curOp.updateMaxLine=!0)),o.frontier=Math.min(o.frontier,s.line),D(t,400);var h=e.text.length-(a.line-s.line)-1;if(ae(t,s.line,a.line+1,h),Kn(t,"change")){var d={from:s,to:a,text:e.text,removed:e.removed,origin:e.origin};if(t.curOp.textChanged){for(var p=t.curOp.textChanged;p.next;p=p.next);p.next=d}else t.curOp.textChanged=d}}function Ke(t,e,r,n,i){if(n||(n=r),_e(n,r)){var o=n;n=r,r=o}"string"==typeof e&&(e=Wo(e)),Pe(t,{from:r,to:n,text:e,origin:i},null)}function Ue(t,e){return this instanceof Ue?(this.line=t,this.ch=e,void 0):new Ue(t,e)}function Xe(t,e){return t.line==e.line&&t.ch==e.ch}function _e(t,e){return t.liner?Ue(r,fn(t,r).text.length):Ze(e,fn(t,e.line).text.length)}function Ze(t,e){var r=t.ch;return null==r||r>e?Ue(t.line,e):0>r?Ue(t.line,0):t}function qe(t,e){return e>=t.first&&e=o.ch:u.to>o.ch))){if(n&&(Rn(c,"beforeCursorEnter"),c.explicitlyCleared)){if(s.markedSpans){--a;continue}break}if(!c.atomic)continue;var f=c.find()[0>l?"from":"to"];if(Xe(f,o)&&(f.ch+=l,f.ch<0?f=f.line>t.first?$e(t,Ue(f.line-1)):null:f.ch>s.text.length&&(f=f.line(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!zi){var o="none"==r.cursor.style.display;o&&(r.cursor.style.display="",r.cursor.style.left=e.left+"px",r.cursor.style.top=e.top-r.viewOffset+"px"),r.cursor.scrollIntoView(i),o&&(r.cursor.style.display="none")}}}function ir(t,e,r){for(null==r&&(r=0);;){var n=!1,i=q(t,e),o=lr(t,i.left,i.top-r,i.left,i.bottom+r),l=t.doc.scrollTop,s=t.doc.scrollLeft;if(null!=o.scrollTop&&(we(t,o.scrollTop),Math.abs(t.doc.scrollTop-l)>1&&(n=!0)),null!=o.scrollLeft&&(Le(t,o.scrollLeft),Math.abs(t.doc.scrollLeft-s)>1&&(n=!0)),!n)return i}}function or(t,e,r,n,i){var o=lr(t,e,r,n,i);null!=o.scrollTop&&we(t,o.scrollTop),null!=o.scrollLeft&&Le(t,o.scrollLeft)}function lr(t,e,r,n,i){var o=t.display,l=ee(t.display);0>r&&(r=0);var s=o.scroller.clientHeight-Lo,a=o.scroller.scrollTop,u={},c=t.doc.height+P(o),f=l>r,h=i>c-l;if(a>r)u.scrollTop=f?0:r;else if(i>a+s){var d=Math.min(r,(h?c:i)-s);d!=a&&(u.scrollTop=d)}var p=o.scroller.clientWidth-Lo,g=o.scroller.scrollLeft;e+=o.gutters.offsetWidth,n+=o.gutters.offsetWidth;var m=o.gutters.offsetWidth,v=m+10>e;return g+m>e||v?(v&&(e=0),u.scrollLeft=Math.max(0,e-10-m)):n>p+g-3&&(u.scrollLeft=n+10-p),u}function sr(t,e,r){t.curOp.updateScrollPos={scrollLeft:null==e?t.doc.scrollLeft:e,scrollTop:null==r?t.doc.scrollTop:r}}function ar(t,e,r){var n=t.curOp.updateScrollPos||(t.curOp.updateScrollPos={scrollLeft:t.doc.scrollLeft,scrollTop:t.doc.scrollTop}),i=t.display.scroller;n.scrollTop=Math.max(0,Math.min(i.scrollHeight-i.clientHeight,n.scrollTop+r)),n.scrollLeft=Math.max(0,Math.min(i.scrollWidth-i.clientWidth,n.scrollLeft+e))}function ur(t,e,r,n){var i=t.doc;if(null==r&&(r="add"),"smart"==r)if(t.doc.mode.indent)var o=z(t,e);else r="prev";var l,s=t.options.tabSize,a=fn(i,e),u=_n(a.text,null,s),c=a.text.match(/^\s*/)[0];if("smart"==r&&(l=t.doc.mode.indent(o,a.text.slice(c.length),a.text),l==ko)){if(!n)return;r="prev"}"prev"==r?l=e>i.first?_n(fn(i,e-1).text,null,s):0:"add"==r?l=u+t.options.indentUnit:"subtract"==r?l=u-t.options.indentUnit:"number"==typeof r&&(l=u+r),l=Math.max(0,l);var f="",h=0;if(t.options.indentWithTabs)for(var d=Math.floor(l/s);d;--d)h+=s,f+=" ";l>h&&(f+=Yn(l-h)),f!=c&&Ke(t.doc,f,Ue(e,0),Ue(e,c.length),"+input"),a.stateAfter=null}function cr(t,e,r){var n=e,i=e,o=t.doc;return"number"==typeof e?i=fn(o,je(o,e)):n=gn(e),null==n?null:r(i,n)?(ae(t,n,n+1),i):null}function fr(t,e,r,n,i){function o(){var e=s+r;return e=t.first+t.size?f=!1:(s=e,c=fn(t,e))}function l(t){var e=(i?Ci:wi)(c,a,r,!0);if(null==e){if(t||!o())return f=!1;a=i?(0>r?gi:pi)(c):0>r?c.text.length:0}else a=e;return!0}var s=e.line,a=e.ch,u=r,c=fn(t,s),f=!0;if("char"==n)l();else if("column"==n)l(!0);else if("word"==n||"group"==n)for(var h=null,d="group"==n,p=!0;!(0>r)||l(!p);p=!1){var g=c.text.charAt(a)||"\n",m=ei(g)?"w":d?/\s/.test(g)?null:"p":null;if(h&&h!=m){0>r&&(r=1,l());break}if(m&&(h=m),r>0&&!l(!p))break}var v=rr(t,Ue(s,a),u,!0);return f||(v.hitSide=!0),v}function hr(t,e,r,n){var i,o=t.doc,l=e.left;if("page"==n){var s=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);i=e.top+r*(s-(0>r?1.5:.5)*ee(t.display))}else"line"==n&&(i=r>0?e.bottom+3:e.top-3);for(;;){var a=Q(t,l,i);if(!a.outside)break;if(0>r?0>=i:i>=o.height){a.hitSide=!0;break}i+=5*r}return a}function dr(t,e){var r=e.ch,n=e.ch;if(t){(e.xRel<0||n==t.length)&&r?--r:++n;for(var i=t.charAt(r),o=ei(i)?ei:/\s/.test(i)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!ei(t)};r>0&&o(t.charAt(r-1));)--r;for(;nl;++l){var a=n(o[l]);if(a)return a}return!1}for(var i=0;i=e:o.to>e);(n||(n=[])).push({from:o.from,to:a?null:o.to,marker:l})}}return n}function Wr(t,e,r){if(t)for(var n,i=0;i=e:o.to>e);if(s||"bookmark"==l.type&&o.from==e&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=e:o.from0&&s)for(var f=0;ff;++f)p.push(g);p.push(a)}return p}function Or(t,e){var r=kn(t,e),n=Dr(t,e);if(!r)return n;if(!n)return r;for(var i=0;ie)&&(!r||r.widtht.options.maxHighlightLength?(o=!1,u.pos=Math.min(e.length,u.start+5e4),l=null):l=r.token(u,n),o&&a==l||(ss;){var i=n[l];i>t&&n.splice(l,1,t,n[l+1],i),l+=2,s=Math.min(t,i)}if(e)if(o.opaque)n.splice(r,l-r,t,e),l=r+2;else for(;l>r;r+=2){var a=n[r+1];n[r+1]=a?a+" "+e:e}})}return n}function Zr(t,e){return e.styles&&e.styles[0]==t.state.modeGen||(e.styles=$r(t,e,e.stateAfter=z(t,gn(e)))),e.styles}function qr(t,e,r){var n=t.doc.mode,i=new wr(e.text,t.options.tabSize);for(""==e.text&&n.blankLine&&n.blankLine(r);!i.eol()&&i.pos<=t.options.maxHighlightLength;)n.token(i,r),i.start=i.pos}function Jr(t){return t?go[t]||(go[t]="cm-"+t.replace(/ +/g," cm-")):null}function Qr(t,e,r,n){for(var i,o=e,l=!0;i=Ir(o);)o=fn(t.doc,i.find().from.line);var s={pre:ni("pre"),col:0,pos:0,measure:null,measuredSomething:!1,cm:t,copyWidgets:n};o.textClass&&(s.pre.className=o.textClass);do{o.text&&(l=!1),s.measure=o==e&&r,s.pos=0,s.addToken=s.measure?en:tn,(ki||Ti)&&t.getOption("lineWrapping")&&(s.addToken=rn(s.addToken));var a=on(o,s,Zr(t,o));r&&o==e&&!s.measuredSomething&&(r[0]=s.pre.appendChild(ci(t.display.measure)),s.measuredSomething=!0),a&&(o=fn(t.doc,a.to.line))}while(a);!r||s.measuredSomething||r[0]||(r[0]=s.pre.appendChild(l?ni("span"," "):ci(t.display.measure))),s.pre.firstChild||Rr(t.doc,e)||s.pre.appendChild(document.createTextNode(" "));var u;if(r&&ki&&(u=yn(o))){var c=u.length-1;u[c].from==u[c].to&&--c;var f=u[c],h=u[c-1];if(f.from+1==f.to&&h&&f.level=""&&"">s&&ld)?(null!=b.to&&m>b.to&&(m=b.to,a=""),x.className&&(s+=" "+x.className),x.startStyle&&b.from==d&&(u+=" "+x.startStyle),x.endStyle&&b.to==m&&(a+=" "+x.endStyle),x.title&&!c&&(c=x.title),x.collapsed&&(!f||f.marker.sized&&m>b.from&&(m=b.from),"bookmark"==x.type&&b.from==d&&x.replacedWith&&v.push(x)}if(f&&(f.from||0)==d&&(nn(e,(null==f.to?h:f.to)-d,f.marker,null==f.from),null==f.to))return f.marker.find();if(!f&&v.length)for(var y=0;y=h)break;for(var C=Math.min(h,m);;){if(g){var w=d+g.length;if(!f){var L=w>C?g.slice(0,C-d):g;e.addToken(e,L,l?l+s:s,u,d+L.length==m?a:"",c)}if(w>=C){g=g.slice(C-d),d=C;break}d=w,u=""}g=i.slice(o,o=r[p++]),l=Jr(r[p++])}}else for(var p=1;pg;++g)v.push(new po(u[g],o(g),i));l(f,f.text,d),p&&t.remove(s.line,p),v.length&&t.insert(s.line,v)}else if(c==f)if(1==u.length)l(c,c.text.slice(0,s.ch)+h+c.text.slice(a.ch),d);else{for(var v=[],g=1,m=u.length-1;m>g;++g)v.push(new po(u[g],o(g),i));v.push(new po(h+c.text.slice(a.ch),d,i)),l(c,c.text.slice(0,s.ch)+u[0],o(0)),t.insert(s.line+1,v)}else if(1==u.length)l(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(a.ch),o(0)),t.remove(s.line+1,p);else{l(c,c.text.slice(0,s.ch)+u[0],o(0)),l(f,h+f.text.slice(a.ch),d);for(var g=1,m=u.length-1,v=[];m>g;++g)v.push(new po(u[g],o(g),i));p>1&&t.remove(s.line+1,p-1),t.insert(s.line+1,v)}Gn(t,"change",t,e),tr(t,n.anchor,n.head,null,!0)}function sn(t){this.lines=t,this.parent=null;for(var e=0,r=t.length,n=0;r>e;++e)t[e].parent=this,n+=t[e].height;this.height=n}function an(t){this.children=t;for(var e=0,r=0,n=0,i=t.length;i>n;++n){var o=t[n];e+=o.chunkSize(),r+=o.height,o.parent=this}this.size=e,this.height=r,this.parent=null}function un(t,e,r){function n(t,i,o){if(t.linked)for(var l=0;le){t=n;break}e-=i}return t.lines[e]}function hn(t,e,r){var n=[],i=e.line;return t.iter(e.line,r.line+1,function(t){var o=t.text;i==r.line&&(o=o.slice(0,r.ch)),i==e.line&&(o=o.slice(e.ch)),n.push(o),++i}),n}function dn(t,e,r){var n=[];return t.iter(e,r,function(t){n.push(t.text)}),n}function pn(t,e){for(var r=e-t.height,n=t;n;n=n.parent)n.height+=r}function gn(t){if(null==t.parent)return null;for(var e=t.parent,r=Zn(e.lines,t),n=e.parent;n;e=n,n=n.parent)for(var i=0;n.children[i]!=e;++i)r+=n.children[i].chunkSize();return r+e.first}function mn(t,e){var r=t.first;t:do{for(var n=0,i=t.children.length;i>n;++n){var o=t.children[n],l=o.height;if(l>e){t=o;continue t}e-=l,r+=o.chunkSize()}return r}while(!t.lines);for(var n=0,i=t.lines.length;i>n;++n){var s=t.lines[n],a=s.height;if(a>e)break;e-=a}return r+n}function vn(t,e){e=Fr(t.doc,e);for(var r=0,n=e.parent,i=0;io-t.cm.options.historyEventDelay||"*"==e.origin.charAt(0)))){var s=jn(l.changes);Xe(e.from,e.to)&&Xe(e.from,s.to)?s.to=eo(e):l.changes.push(Cn(t,e)),l.anchorAfter=r.anchor,l.headAfter=r.head}else for(l={changes:[Cn(t,e)],generation:i.generation,anchorBefore:t.sel.anchor,headBefore:t.sel.head,anchorAfter:r.anchor,headAfter:r.head},i.done.push(l),i.generation=++i.maxGeneration;i.done.length>i.undoDepth;)i.done.shift();i.lastTime=o,i.lastOp=n,i.lastOrigin=e.origin}function Ln(t){if(!t)return null;for(var e,r=0;r-1&&(jn(l)[c]=u[c],delete u[c])}}return n}function Mn(t,e,r,n){r0}function Un(t){t.prototype.on=function(t,e){Pn(this,t,e)},t.prototype.off=function(t,e){Fn(this,t,e)}}function Xn(){this.id=null}function _n(t,e,r,n,i){null==e&&(e=t.search(/[^\s\u00a0]/),-1==e&&(e=t.length));for(var o=n||0,l=i||0;e>o;++o)" "==t.charAt(o)?l+=r-l%r:++l;return l}function Yn(t){for(;So.length<=t;)So.push(jn(So)+" ");return So[t]}function jn(t){return t[t.length-1]}function $n(t){if(Ii)t.selectionStart=0,t.selectionEnd=t.value.length;else try{t.select()}catch(e){}}function Zn(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;++r)if(t[r]==e)return r;return-1}function qn(t,e){function r(){}r.prototype=t;var n=new r;return e&&Jn(e,n),n}function Jn(t,e){e||(e={});for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function Qn(t){for(var e=[],r=0;t>r;++r)e.push(void 0);return e}function ti(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function ei(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Mo.test(t))}function ri(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}function ni(t,e,r,n){var i=document.createElement(t);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof e)li(i,e);else if(e)for(var o=0;o0;--e)t.removeChild(t.firstChild);return t}function oi(t,e){return ii(t).appendChild(e)}function li(t,e){Mi?(t.innerHTML="",t.appendChild(document.createTextNode(e))):t.textContent=e}function si(t){return t.getBoundingClientRect()}function ai(){return!1}function ui(t){if(null!=No)return No;var e=ni("div",null,null,"width: 50px; height: 50px; overflow-x: scroll");return oi(t,e),e.offsetWidth&&(No=e.offsetHeight-e.clientHeight),No||0}function ci(t){if(null==Ho){var e=ni("span","​");oi(t,ni("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Ho=e.offsetWidth<=1&&e.offsetHeight>2&&!Si)}return Ho?ni("span","​"):ni("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px")}function fi(t,e,r,n){if(!t)return n(e,r,"ltr");for(var i=!1,o=0;oe||e==r&&l.to==e)&&(n(Math.max(l.from,e),Math.min(l.to,r),1==l.level?"rtl":"ltr"),i=!0)}i||n(e,r,"ltr")}function hi(t){return t.level%2?t.to:t.from}function di(t){return t.level%2?t.from:t.to}function pi(t){var e=yn(t);return e?hi(e[0]):0}function gi(t){var e=yn(t);return e?di(jn(e)):t.text.length}function mi(t,e){var r=fn(t.doc,e),n=Fr(t.doc,r);n!=r&&(e=gn(n));var i=yn(n),o=i?i[0].level%2?gi(n):pi(n):0;return Ue(e,o)}function vi(t,e){for(var r,n;r=Pr(n=fn(t.doc,e));)e=r.find().to.line;var i=yn(n),o=i?i[0].level%2?pi(n):gi(n):n.text.length;return Ue(e,o)}function yi(t,e,r){var n=t[0].level;return e==n?!0:r==n?!1:r>e}function bi(t,e){for(var r,n=0;ne)return zo=null,n;if(i.from==e||i.to==e){if(null!=r)return yi(t,i.level,t[r].level)?(zo=r,n):(zo=n,r);r=n}}return zo=null,r}function xi(t,e,r,n){if(!n)return e+r;do e+=r;while(e>0&&To.test(t.text.charAt(e)));return e}function Ci(t,e,r,n){var i=yn(t);if(!i)return wi(t,e,r,n);for(var o=bi(i,e),l=i[o],s=xi(t,e,l.level%2?-r:r,n);;){if(s>l.from&&s0==l.level%2?l.to:l.from);if(l=i[o+=r],!l)return null;s=r>0==l.level%2?xi(t,l.to,-1,n):xi(t,l.from,1,n)}}function wi(t,e,r,n){var i=e+r;if(n)for(;i>0&&To.test(t.text.charAt(i));)i+=r;return 0>i||i>t.text.length?null:i}var Li=/gecko\/\d/i.test(navigator.userAgent),ki=/MSIE \d/.test(navigator.userAgent),Si=ki&&(null==document.documentMode||document.documentMode<8),Mi=ki&&(null==document.documentMode||document.documentMode<9),Ti=/WebKit\//.test(navigator.userAgent),Ai=Ti&&/Qt\/\d+\.\d+/.test(navigator.userAgent),Ni=/Chrome\//.test(navigator.userAgent),Hi=/Opera\//.test(navigator.userAgent),Wi=/Apple Computer/.test(navigator.vendor),Di=/KHTML\//.test(navigator.userAgent),Oi=/Mac OS X 1\d\D([7-9]|\d\d)\D/.test(navigator.userAgent),Ei=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),zi=/PhantomJS/.test(navigator.userAgent),Ii=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),Pi=Ii||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),Fi=Ii||/Mac/.test(navigator.platform),Ri=/windows/i.test(navigator.platform),Gi=Hi&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);Gi&&(Gi=Number(Gi[1])),Gi&&Gi>=15&&(Hi=!1,Ti=!0);var Bi,Vi,Ki,Ui=Fi&&(Ai||Hi&&(null==Gi||12.11>Gi)),Xi=Li||ki&&!Mi,_i=!1,Yi=!1,ji=0,$i=0,Zi=0,qi=null;ki?qi=-.53:Li?qi=15:Ni?qi=-.7:Wi&&(qi=-1/3);var Ji,Qi,to=null,eo=t.changeEnd=function(t){return t.text?Ue(t.from.line+t.text.length-1,jn(t.text).length+(1==t.text.length?t.from.ch:0)):t.to};t.Pos=Ue,t.prototype={constructor:t,focus:function(){window.focus(),de(this),We(this),ce(this)},setOption:function(t,e){var r=this.options,n=r[t];(r[t]!=e||"mode"==t)&&(r[t]=e,ro.hasOwnProperty(t)&&oe(this,ro[t])(this,e,n))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](t)},removeKeyMap:function(t){for(var e=this.state.keyMaps,r=0;r=n;++n)ur(this,n,t)}),getTokenAt:function(t,e){var r=this.doc;t=$e(r,t);for(var n=z(this,t.line,e),i=this.doc.mode,o=fn(r,t.line),l=new wr(o.text,this.options.tabSize);l.pos>1;if((o?e[2*o-1]:0)>=i)n=o;else{if(!(e[2*o+1]n&&(t=n,r=!0);var i=fn(this.doc,t);return j(this,fn(this.doc,t),{top:0,left:0},e||"page").top+(r?i.height:0)},defaultTextHeight:function(){return ee(this.display)},defaultCharWidth:function(){return re(this.display)},setGutterMarker:oe(null,function(t,e,r){return cr(this,t,function(t){var n=t.gutterMarkers||(t.gutterMarkers={});return n[e]=r,!r&&ri(n)&&(t.gutterMarkers=null),!0})}),clearGutter:oe(null,function(t){var e=this,r=e.doc,n=r.first;r.iter(function(r){r.gutterMarkers&&r.gutterMarkers[t]&&(r.gutterMarkers[t]=null,ae(e,n,n+1),ri(r.gutterMarkers)&&(r.gutterMarkers=null)),++n})}),addLineClass:oe(null,function(t,e,r){return cr(this,t,function(t){var n="text"==e?"textClass":"background"==e?"bgClass":"wrapClass";if(t[n]){if(new RegExp("(?:^|\\s)"+r+"(?:$|\\s)").test(t[n]))return!1;t[n]+=" "+r}else t[n]=r;return!0})}),removeLineClass:oe(null,function(t,e,r){return cr(this,t,function(t){var n="text"==e?"textClass":"background"==e?"bgClass":"wrapClass",i=t[n];if(!i)return!1;if(null==r)t[n]=null;else{var o=i.match(new RegExp("(?:^|\\s+)"+r+"(?:$|\\s+)"));if(!o)return!1;var l=o.index+o[0].length;t[n]=i.slice(0,o.index)+(o.index&&l!=i.length?" ":"")+i.slice(l)||null}return!0})}),addLineWidget:oe(null,function(t,e,r){return Xr(this,t,e,r)}),removeLineWidget:function(t){t.clear()},lineInfo:function(t){if("number"==typeof t){if(!qe(this.doc,t))return null;var e=t;if(t=fn(this.doc,t),!t)return null}else{var e=gn(t);if(null==e)return null}return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},getViewport:function(){return{from:this.display.showingFrom,to:this.display.showingTo}},addWidget:function(t,e,r,n,i){var o=this.display;t=q(this,$e(this.doc,t));var l=t.bottom,s=t.left;if(e.style.position="absolute",o.sizer.appendChild(e),"over"==n)l=t.top;else if("above"==n||"near"==n){var a=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||t.bottom+e.offsetHeight>a)&&t.top>e.offsetHeight?l=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=a&&(l=t.bottom),s+e.offsetWidth>u&&(s=u-e.offsetWidth)}e.style.top=l+"px",e.style.left=e.style.right="","right"==i?(s=o.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-e.offsetWidth)/2),e.style.left=s+"px"),r&&or(this,s,l,s+e.offsetWidth,l+e.offsetHeight)},triggerOnKeyDown:oe(null,Ne),execCommand:function(t){return co[t](this)},findPosH:function(t,e,r,n){var i=1;0>e&&(i=-1,e=-e);for(var o=0,l=$e(this.doc,t);e>o&&(l=fr(this.doc,l,i,r,n),!l.hitSide);++o);return l},moveH:oe(null,function(t,e){var r,n=this.doc.sel;r=n.shift||n.extend||Xe(n.from,n.to)?fr(this.doc,n.head,t,e,this.options.rtlMoveVisually):0>t?n.from:n.to,Je(this.doc,r,r,t)}),deleteH:oe(null,function(t,e){var r=this.doc.sel;Xe(r.from,r.to)?Ke(this.doc,"",r.from,fr(this.doc,r.head,t,e,!1),"+delete"):Ke(this.doc,"",r.from,r.to,"+delete"),this.curOp.userSelChange=!0}),findPosV:function(t,e,r,n){var i=1,o=n;0>e&&(i=-1,e=-e);for(var l=0,s=$e(this.doc,t);e>l;++l){var a=q(this,s,"div");if(null==o?o=a.left:a.left=o,s=hr(this,a,i,r),s.hitSide)break}return s},moveV:oe(null,function(t,e){var r=this.doc.sel,n=q(this,r.head,"div");null!=r.goalColumn&&(n.left=r.goalColumn);var i=hr(this,n,t,e);"page"==e&&ar(this,0,Z(this,i,"div").top-n.top),Je(this.doc,i,i,t),r.goalColumn=n.left}),toggleOverwrite:function(t){(null==t||t!=this.state.overwrite)&&((this.state.overwrite=!this.state.overwrite)?this.display.cursor.className+=" CodeMirror-overwrite":this.display.cursor.className=this.display.cursor.className.replace(" CodeMirror-overwrite",""))},hasFocus:function(){return this.state.focused},scrollTo:oe(null,function(t,e){sr(this,t,e)}),getScrollInfo:function(){var t=this.display.scroller,e=Lo;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-e,width:t.scrollWidth-e,clientHeight:t.clientHeight-e,clientWidth:t.clientWidth-e}},scrollIntoView:oe(null,function(t,e){"number"==typeof t&&(t=Ue(t,0)),e||(e=0);var r=t;t&&null==t.line||(this.curOp.scrollToPos=t?$e(this.doc,t):this.doc.sel.head,this.curOp.scrollToPosMargin=e,r=q(this,this.curOp.scrollToPos));var n=lr(this,r.left,r.top-e,r.right,r.bottom+e);sr(this,n.scrollLeft,n.scrollTop)}),setSize:oe(null,function(t,e){function r(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t}null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&(this.display.measureLineCache.length=this.display.measureLineCachePos=0),this.curOp.forceUpdate=!0}),operation:function(t){return se(this,t)},refresh:oe(null,function(){X(this),sr(this,this.doc.scrollLeft,this.doc.scrollTop),ae(this)}),swapDoc:oe(null,function(t){var e=this.doc;return e.cm=null,cn(this,t),X(this),he(this,!0),sr(this,t.scrollLeft,t.scrollTop),e}),getInputField:function(){return this.display.input},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Un(t);var ro=t.optionHandlers={},no=t.defaults={},io=t.Init={toString:function(){return"CodeMirror.Init"}};gr("value","",function(t,e){t.setValue(e)},!0),gr("mode",null,function(t,e){t.doc.modeOption=e,r(t)},!0),gr("indentUnit",2,r,!0),gr("indentWithTabs",!1),gr("smartIndent",!0),gr("tabSize",4,function(t){r(t),X(t),ae(t)},!0),gr("electricChars",!0),gr("rtlMoveVisually",!Ri),gr("theme","default",function(t){s(t),a(t)},!0),gr("keyMap","default",l),gr("extraKeys",null),gr("onKeyEvent",null),gr("onDragEvent",null),gr("lineWrapping",!1,n,!0),gr("gutters",[],function(t){h(t.options),a(t)},!0),gr("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?y(t.display)+"px":"0",t.refresh()},!0),gr("coverGutterNextToScrollbar",!1,d,!0),gr("lineNumbers",!1,function(t){h(t.options),a(t)},!0),gr("firstLineNumber",1,a,!0),gr("lineNumberFormatter",function(t){return t},a,!0),gr("showCursorWhenSelecting",!1,A,!0),gr("readOnly",!1,function(t,e){"nocursor"==e?(De(t),t.display.input.blur()):e||he(t,!0)}),gr("dragDrop",!0),gr("cursorBlinkRate",530),gr("cursorScrollMargin",0),gr("cursorHeight",1),gr("workTime",100),gr("workDelay",100),gr("flattenSpans",!0),gr("pollInterval",100),gr("undoDepth",40,function(t,e){t.doc.history.undoDepth=e}),gr("historyEventDelay",500),gr("viewportMargin",10,function(t){t.refresh()},!0),gr("maxHighlightLength",1e4,function(t){r(t),t.refresh()},!0),gr("moveInputWithCursor",!0,function(t,e){e||(t.display.inputDiv.style.top=t.display.inputDiv.style.left=0)}),gr("tabindex",null,function(t,e){t.display.input.tabIndex=e||""}),gr("autofocus",null);var oo=t.modes={},lo=t.mimeModes={};t.defineMode=function(e,r){if(t.defaults.mode||"null"==e||(t.defaults.mode=e),arguments.length>2){r.dependencies=[];for(var n=2;n0&&e.ch=this.string.length},sol:function(){return 0==this.pos},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){return this.pose},eatSpace:function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},skipToEnd:function(){this.pos=this.string.length},skipTo:function(t){var e=this.string.indexOf(t,this.pos);return e>-1?(this.pos=e,!0):void 0},backUp:function(t){this.pos-=t},column:function(){return this.lastColumnPos0?null:(n&&e!==!1&&(this.pos+=n[0].length),n)}var i=function(t){return r?t.toLowerCase():t},o=this.string.substr(this.pos,t.length);return i(o)==i(t)?(e!==!1&&(this.pos+=t.length),!0):void 0},current:function(){return this.string.slice(this.start,this.pos)}},t.StringStream=wr,t.TextMarker=Lr,Un(Lr),Lr.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&ne(t),Kn(this,"clear")){var r=this.find();r&&Gn(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=a,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=n&&t&&ae(t,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&er(t)),e&&ie(t)}},Lr.prototype.find=function(){for(var t,e,r=0;r=e.display.showingFrom&&t.liner;++r){var i=this.lines[r];this.height-=i.height,Yr(i),Gn(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.splice.apply(t,[t.length,0].concat(this.lines))},insertInner:function(t,e,r){this.height+=r,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var n=0,i=e.length;i>n;++n)e[n].parent=this},iterN:function(t,e,r){for(var n=t+e;n>t;++t)if(r(this.lines[t]))return!0}},an.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var r=0;rt){var o=Math.min(e,i-t),l=n.height;if(n.removeInner(t,o),this.height-=l-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),0==(e-=o))break;t=0}else t-=i}if(this.size-e<25){var s=[];this.collapse(s),this.children=[new sn(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0,r=this.children.length;r>e;++e)this.children[e].collapse(t)},insertInner:function(t,e,r){this.size+=e.length,this.height+=r;for(var n=0,i=this.children.length;i>n;++n){var o=this.children[n],l=o.chunkSize(); if(l>=t){if(o.insertInner(t,e,r),o.lines&&o.lines.length>50){for(;o.lines.length>50;){var s=o.lines.splice(o.lines.length-25,25),a=new sn(s);o.height-=a.height,this.children.splice(n+1,0,a),a.parent=this}this.maybeSpill()}break}t-=l}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=t.children.splice(t.children.length-5,5),r=new an(e);if(t.parent){t.size-=r.size,t.height-=r.height;var n=Zn(t.parent.children,t);t.parent.children.splice(n+1,0,r)}else{var i=new an(t.children);i.parent=t,t.children=[i,r],t=i}r.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,r){for(var n=0,i=this.children.length;i>n;++n){var o=this.children[n],l=o.chunkSize();if(l>t){var s=Math.min(e,l-t);if(o.iterN(t,s,r))return!0;if(0==(e-=s))break;t=0}else t-=l}}};var vo=0,yo=t.Doc=function(t,e,r){if(!(this instanceof yo))return new yo(t,e,r);null==r&&(r=0),an.call(this,[new sn([new po("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.history=bn(),this.cleanGeneration=1,this.frontier=r;var n=Ue(r,0);this.sel={from:n,to:n,head:n,anchor:n,shift:!1,extend:!1,goalColumn:null},this.id=++vo,this.modeOption=e,"string"==typeof t&&(t=Wo(t)),ln(this,{from:n,to:n,text:t},null,{head:n,anchor:n})};yo.prototype=qn(an.prototype,{constructor:yo,iter:function(t,e,r){r?this.iterN(t-this.first,e-t,r):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var r=0,n=0,i=e.length;i>n;++n)r+=e[n].height;this.insertInner(t-this.first,e,r)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=dn(this,this.first,this.first+this.size);return t===!1?e:e.join(t||"\n")},setValue:function(t){var e=Ue(this.first,0),r=this.first+this.size-1;Pe(this,{from:e,to:Ue(r,fn(this,r).text.length),text:Wo(t),origin:"setValue"},{head:e,anchor:e},!0)},replaceRange:function(t,e,r,n){e=$e(this,e),r=r?$e(this,r):e,Ke(this,t,e,r,n)},getRange:function(t,e,r){var n=hn(this,$e(this,t),$e(this,e));return r===!1?n:n.join(r||"\n")},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},setLine:function(t,e){qe(this,t)&&Ke(this,e,Ue(t,0),$e(this,Ue(t)))},removeLine:function(t){t?Ke(this,"",$e(this,Ue(t-1)),$e(this,Ue(t))):Ke(this,"",Ue(0,0),$e(this,Ue(1,0)))},getLineHandle:function(t){return qe(this,t)?fn(this,t):void 0},getLineNumber:function(t){return gn(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=fn(this,t)),Fr(this,t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return $e(this,t)},getCursor:function(t){var e,r=this.sel;return e=null==t||"head"==t?r.head:"anchor"==t?r.anchor:"end"==t||t===!1?r.to:r.from,Ye(e)},somethingSelected:function(){return!Xe(this.sel.head,this.sel.anchor)},setCursor:le(function(t,e,r){var n=$e(this,"number"==typeof t?Ue(t,e||0):t);r?Je(this,n):tr(this,n,n)}),setSelection:le(function(t,e,r){tr(this,$e(this,t),$e(this,e||t),r)}),extendSelection:le(function(t,e,r){Je(this,$e(this,t),e&&$e(this,e),r)}),getSelection:function(t){return this.getRange(this.sel.from,this.sel.to,t)},replaceSelection:function(t,e,r){Pe(this,{from:this.sel.from,to:this.sel.to,text:Wo(t),origin:r},e||"around")},undo:le(function(){Re(this,"undo")}),redo:le(function(){Re(this,"redo")}),setExtending:function(t){this.sel.extend=t},historySize:function(){var t=this.history;return{undo:t.done.length,redo:t.undone.length}},clearHistory:function(){this.history=bn(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration()},changeGeneration:function(){return this.history.lastOp=this.history.lastOrigin=null,this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Sn(this.history.done),undone:Sn(this.history.undone)}},setHistory:function(t){var e=this.history=bn(this.history.maxGeneration);e.done=t.done.slice(0),e.undone=t.undone.slice(0)},markText:function(t,e,r){return kr(this,$e(this,t),$e(this,e),r,"range")},setBookmark:function(t,e){var r={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft};return t=$e(this,t),kr(this,t,t,r,"bookmark")},findMarksAt:function(t){t=$e(this,t);var e=[],r=fn(this,t.line).markedSpans;if(r)for(var n=0;n=t.ch)&&e.push(i.marker.parent||i.marker)}return e},getAllMarks:function(){var t=[];return this.iter(function(e){var r=e.markedSpans;if(r)for(var n=0;nt?(e=t,!0):(t-=i,++r,void 0)}),$e(this,Ue(r,e))},indexFromPos:function(t){t=$e(this,t);var e=t.ch;return t.linee&&(e=t.from),null!=t.to&&t.to1&&45==t.charCodeAt(e-1)){if(/\w/.test(t.charAt(e-2))&&/[^\-?\.]/.test(t.charAt(e)))return!0;if(e>2&&/[\d\.,]/.test(t.charAt(e-2))&&/[\d\.,]/.test(t.charAt(e)))return!1}return/[~!#%&*)=+}\]|\"\.>,:;][({[<]|-[^\-?\.\u2010-\u201f\u2026]|\?[\w~`@#$%\^&*(_=+{[|><]|…[\w~`@#$%\^&*(_=+{[><]/.test(t.slice(e-1,e+1))});var No,Ho,Wo=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,r=[],n=t.length;n>=e;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),e+=l+1):(r.push(o),e=i+1)}return r}:function(t){return t.split(/\r\n?|\n/)};t.splitLines=Wo;var Do=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(e){return!1}}:function(t){try{var e=t.ownerDocument.selection.createRange()}catch(r){}return e&&e.parentElement()==t?0!=e.compareEndPoints("StartToEnd",e):!1},Oo=function(){var t=ni("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),"function"==typeof t.oncopy)}(),Eo={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",91:"Mod",92:"Mod",93:"Mod",109:"-",107:"=",127:"Delete",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63276:"PageUp",63277:"PageDown",63275:"End",63273:"Home",63234:"Left",63232:"Up",63235:"Right",63233:"Down",63302:"Insert",63272:"Delete"};t.keyNames=Eo,function(){for(var t=0;10>t;t++)Eo[t+48]=String(t);for(var t=65;90>=t;t++)Eo[t]=String.fromCharCode(t);for(var t=1;12>=t;t++)Eo[t+111]=Eo[t+63235]="F"+t}();var zo,Io=function(){function t(t){return 255>=t?e.charAt(t):t>=1424&&1524>=t?"R":t>=1536&&1791>=t?r.charAt(t-1536):t>=1792&&2220>=t?"r":"L"}var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLL",r="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmmrrrrrrrrrrrrrrrrrr",n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,s=/[1n]/,a="L";return function(e){if(!n.test(e))return!1;for(var r,u=e.length,c=[],f=0;u>f;++f)c.push(r=t(e.charCodeAt(f)));for(var f=0,h=a;u>f;++f){var r=c[f];"m"==r?c[f]=h:h=r}for(var f=0,d=a;u>f;++f){var r=c[f];"1"==r&&"r"==d?c[f]="n":o.test(r)&&(d=r,"r"==r&&(c[f]="R"))}for(var f=1,h=c[0];u-1>f;++f){var r=c[f];"+"==r&&"1"==h&&"1"==c[f+1]?c[f]="1":","!=r||h!=c[f+1]||"1"!=h&&"n"!=h||(c[f]=h),h=r}for(var f=0;u>f;++f){var r=c[f];if(","==r)c[f]="N";else if("%"==r){for(var p=f+1;u>p&&"%"==c[p];++p);for(var g=f&&"!"==c[f-1]||u-1>p&&"1"==c[p]?"1":"N",m=f;p>m;++m)c[m]=g;f=p-1}}for(var f=0,d=a;u>f;++f){var r=c[f];"L"==d&&"1"==r?c[f]="L":o.test(r)&&(d=r)}for(var f=0;u>f;++f)if(i.test(c[f])){for(var p=f+1;u>p&&i.test(c[p]);++p);for(var v="L"==(f?c[f-1]:a),y="L"==(u-1>p?c[p]:a),g=v||y?"L":"R",m=f;p>m;++m)c[m]=g;f=p-1}for(var b,x=[],f=0;u>f;)if(l.test(c[f])){var C=f;for(++f;u>f&&l.test(c[f]);++f);x.push({from:C,to:f,level:0})}else{var w=f,L=x.length;for(++f;u>f&&"L"!=c[f];++f);for(var m=w;f>m;)if(s.test(c[m])){m>w&&x.splice(L,0,{from:w,to:m,level:1});var k=m;for(++m;f>m&&s.test(c[m]);++m);x.splice(L,0,{from:k,to:m,level:2}),w=m}else++m;f>w&&x.splice(L,0,{from:w,to:f,level:1})}return 1==x[0].level&&(b=e.match(/^\s+/))&&(x[0].from=b[0].length,x.unshift({from:0,to:b[0].length,level:0})),1==jn(x).level&&(b=e.match(/\s+$/))&&(jn(x).to-=b[0].length,x.push({from:u-b[0].length,to:u,level:0})),x[0].level!=jn(x).level&&x.push({from:u,to:u,level:x[0].level}),x}}();return t.version="3.15.1",t}();!function(){function e(e){var n,t=e.getCursor(),o=e.getTokenAt(t),r=CodeMirror.innerMode(e.getMode(),o.state).mode;if("comment"==o.type&&r.blockCommentStart){var i,m=o.string.indexOf(r.blockCommentEnd),l=e.getRange(CodeMirror.Pos(t.line,0),CodeMirror.Pos(t.line,o.end));if(-1!=m&&m==o.string.length-r.blockCommentEnd.length);else if(0==o.string.indexOf(r.blockCommentStart)){if(n=l.slice(0,o.start),!/^\s*$/.test(n)){n="";for(var s=0;so.start&&/^\s*$/.test(l.slice(0,i))&&(n=l.slice(0,i))}return null==n?CodeMirror.Pass:(e.replaceSelection("\n"+n+r.blockCommentContinue,"end"),void 0)}for(var n=["clike","css","javascript"],t=0;t=0;e--)Z.cc.push(arguments[e])}function p(){return f.apply(null,arguments),!0}function d(e){function t(t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}var r=Z.state;if(r.context){if(Z.marked="def",t(r.localVars))return;r.localVars={name:e,next:r.localVars}}else{if(t(r.globalVars))return;r.globalVars={name:e,next:r.globalVars}}}function v(){Z.state.context={prev:Z.state.context,vars:Z.state.localVars},Z.state.localVars=et}function m(){Z.state.localVars=Z.state.context.vars,Z.state.context=Z.state.context.prev}function y(e,t){var r=function(){var r=Z.state,n=r.indented;"stat"==r.lexical.type&&(n=r.lexical.indented),r.lexical=new l(n,Z.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function b(){var e=Z.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function h(e){return function(t){return t==e?p():";"==e?f():p(arguments.callee)}}function x(e){return"var"==e?p(y("vardef"),N,h(";"),b):"keyword a"==e?p(y("form"),k,x,b):"keyword b"==e?p(y("form"),x,b):"{"==e?p(y("}"),W,b):";"==e?p():"if"==e?p(y("form"),k,x,b,A):"function"==e?p(D):"for"==e?p(y("form"),h("("),y(")"),U,h(")"),b,x,b):"variable"==e?p(y("stat"),E):"switch"==e?p(y("form"),k,y("}","switch"),h("{"),W,b,b):"case"==e?p(k,h(":")):"default"==e?p(h(":")):"catch"==e?p(y("form"),v,h("("),F,h(")"),x,b,m):f(y("stat"),k,h(";"),b)}function k(e){return M(e,!1)}function g(e){return M(e,!0)}function M(e,t){var r=t?C:V;return Y.hasOwnProperty(e)?p(r):"function"==e?p(D):"keyword c"==e?p(t?j:w):"("==e?p(y(")"),w,h(")"),b,r):"operator"==e?p(t?g:k):"["==e?p(y("]"),P(g,"]"),b,r):"{"==e?p(y("}"),P(I,"}"),b,r):p()}function w(e){return e.match(/[;\}\)\],]/)?f():f(k)}function j(e){return e.match(/[;\}\)\],]/)?f():f(g)}function V(e,t){return","==e?p(k):C(e,t,!1)}function C(e,t,r){var n=0==r?V:C,a=0==r?k:g;return"operator"==e?/\+\+|--/.test(t)?p(n):"?"==t?p(k,h(":"),a):p(a):";"!=e?"("==e?p(y(")","call"),P(g,")"),b,n):"."==e?p(T,n):"["==e?p(y("]"),w,h("]"),b,n):void 0:void 0}function E(e){return":"==e?p(b,x):f(V,h(";"),b)}function T(e){return"variable"==e?(Z.marked="property",p()):void 0}function I(e,t){if("variable"==e){if(Z.marked="property","get"==t||"set"==t)return p(z)}else("number"==e||"string"==e)&&(Z.marked=e+" property");return Y.hasOwnProperty(e)?p(h(":"),g):void 0}function z(e){return":"==e?p(k):"variable"!=e?p(h(":"),k):(Z.marked="property",p(D))}function P(e,t){function r(n){if(","==n){var a=Z.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),p(e,r)}return n==t?p():p(h(t))}return function(n){return n==t?p():f(e,r)}}function W(e){return"}"==e?p():f(x,W)}function O(e){return":"==e?p(S):f()}function S(e){return"variable"==e?(Z.marked="variable-3",p()):f()}function N(e,t){return"variable"==e?(d(t),Q?p(O,$):p($)):f()}function $(e,t){return"="==t?p(g,$):","==e?p(N):void 0}function A(e,t){return"keyword b"==e&&"else"==t?p(y("form"),x,b):void 0}function U(e){return"var"==e?p(N,h(";"),q):";"==e?p(q):"variable"==e?p(_):f(k,h(";"),q)}function _(e,t){return"in"==t?p(k):p(V,q)}function q(e,t){return";"==e?p(B):"in"==t?p(k):f(k,h(";"),B)}function B(e){")"!=e&&p(k)}function D(e,t){return"variable"==e?(d(t),p(D)):"("==e?p(y(")"),v,P(F,")"),b,x,m):void 0}function F(e,t){return"variable"==e?(d(t),Q?p(O):p()):void 0}var G,H,J=e.indentUnit,K=t.statementIndent,L=t.json,Q=t.typescript,R=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("operator"),i={type:"atom",style:"atom"},o={"if":e("if"),"while":t,"with":t,"else":r,"do":r,"try":r,"finally":r,"return":n,"break":n,"continue":n,"new":n,"delete":n,"throw":n,"var":e("var"),"const":e("var"),let:e("var"),"function":e("function"),"catch":e("catch"),"for":e("for"),"switch":e("switch"),"case":e("case"),"default":e("default"),"in":a,"typeof":a,"instanceof":a,"true":i,"false":i,"null":i,undefined:i,NaN:i,Infinity:i,"this":e("this")};if(Q){var c={type:"variable",style:"variable-3"},l={"interface":e("interface"),"class":e("class"),"extends":e("extends"),constructor:e("constructor"),"public":e("public"),"private":e("private"),"protected":e("protected"),"static":e("static"),"super":e("super"),string:c,number:c,bool:c,any:c};for(var u in l)o[u]=l[u]}return o}(),X=/[+\-*&%=<>!?|~^]/,Y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0},Z={state:null,column:null,marked:null,cc:null},et={name:"this",next:{name:"arguments"}};return b.lex=!0,{startState:function(e){return{tokenize:i,lastType:null,cc:[],lexical:new l((e||0)-J,0,"block",!1),localVars:t.localVars,globalVars:t.globalVars,context:t.localVars&&{vars:t.localVars},indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),t.tokenize!=c&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==G?r:(t.lastType="operator"!=G||"++"!=H&&"--"!=H?G:"incdec",s(t,r,G,H,e))},indent:function(e,r){if(e.tokenize==c)return CodeMirror.Pass;if(e.tokenize!=i)return 0;for(var n=r&&r.charAt(0),a=e.lexical,o=e.cc.length-1;o>=0;--o){var l=e.cc[o];if(l==b)a=a.prev;else if(l!=A||/^else\b/.test(r))break}"stat"==a.type&&"}"==n&&(a=a.prev),K&&")"==a.type&&"stat"==a.prev.type&&(a=a.prev);var u=a.type,s=n==u;return"vardef"==u?a.indented+("operator"==e.lastType||","==e.lastType?4:0):"form"==u&&"{"==n?a.indented:"form"==u?a.indented+J:"stat"==u?a.indented+("operator"==e.lastType||","==e.lastType?K||J:0):"switch"!=a.info||s||0==t.doubleIndentSwitch?a.align?a.column+(s?0:1):a.indented+(s?0:J):a.indented+(/^(?:case|default)\b/.test(r)?J:2*J)},electricChars:":{}",blockCommentStart:L?null:"/*",blockCommentEnd:L?null:"*/",lineComment:L?null:"//",fold:"brace",helperType:L?"json":"javascript",jsonMode:L}}),CodeMirror.defineMIME("text/javascript","javascript"),CodeMirror.defineMIME("text/ecmascript","javascript"),CodeMirror.defineMIME("application/javascript","javascript"),CodeMirror.defineMIME("application/ecmascript","javascript"),CodeMirror.defineMIME("application/json",{name:"javascript",json:!0}),CodeMirror.defineMIME("application/x-json",{name:"javascript",json:!0}),CodeMirror.defineMIME("text/typescript",{name:"javascript",typescript:!0}),CodeMirror.defineMIME("application/typescript",{name:"javascript",typescript:!0});!function(){function t(t){"object"==typeof t&&(this.minChars=t.minChars,this.style=t.style,this.showToken=t.showToken,this.delay=t.delay),null==this.style&&(this.style=h),null==this.minChars&&(this.minChars=n),null==this.delay&&(this.delay=s),this.overlay=this.timeout=null}function e(t){var e=t.state.matchHighlighter;clearTimeout(e.timeout),e.timeout=setTimeout(function(){i(t)},e.delay)}function i(t){t.operation(function(){var e=t.state.matchHighlighter;if(e.overlay&&(t.removeOverlay(e.overlay),e.overlay=null),!t.somethingSelected()&&e.showToken){for(var i=e.showToken===!0?/[\w$]/:e.showToken,r=t.getCursor(),n=t.getLine(r.line),h=r.ch,s=h;h&&i.test(n.charAt(h-1));)--h;for(;sh&&t.addOverlay(e.overlay=o(n.slice(h,s),i,e.style)),void 0}if(t.getCursor("head").line==t.getCursor("anchor").line){var a=t.getSelection().replace(/^\s+|\s+$/g,"");a.length>=e.minChars&&t.addOverlay(e.overlay=o(a,!1,e.style))}})}function r(t,e){return!(t.start&&e.test(t.string.charAt(t.start-1))||t.pos!=t.string.length&&e.test(t.string.charAt(t.pos)))}function o(t,e,i){return{token:function(o){return!o.match(t)||e&&!r(o,e)?(o.next(),o.skipTo(t.charAt(0))||o.skipToEnd(),void 0):i}}}var n=2,h="matchhighlight",s=100;CodeMirror.defineOption("highlightSelectionMatches",!1,function(r,o,n){if(n&&n!=CodeMirror.Init){var h=r.state.matchHighlighter.overlay;h&&r.removeOverlay(h),clearTimeout(r.state.matchHighlighter.timeout),r.state.matchHighlighter=null,r.off("cursorActivity",e)}o&&(r.state.matchHighlighter=new t(o),i(r),r.on("cursorActivity",e))})}();!function(){function t(t,e,n){function r(e,n,r){if(e.text){var a=s?0:e.text.length-1,h=s?e.text.length:-1;if(e.text.length>c)return null;for(null!=r&&(a=r+m);a!=h;a+=m){var l=e.text.charAt(a);if(p.test(l)&&t.getTokenTypeAt(o(n,a+1))==g){var u=i[l];if(">"==u.charAt(1)==s)x.push(l);else{if(x.pop()!=u.charAt(0))return{pos:a,match:!1};if(!x.length)return{pos:a,match:!0}}}}}}var a=t.state.matchBrackets,c=a&&a.maxScanLineLength||1e4,h=e||t.getCursor(),l=t.getLineHandle(h.line),u=h.ch-1,f=u>=0&&i[l.text.charAt(u)]||i[l.text.charAt(++u)];if(!f)return null;var s=">"==f.charAt(1),m=s?1:-1;if(n&&s!=(u==h.ch))return null;for(var d,g=t.getTokenTypeAt(o(h.line,u+1)),x=[l.text.charAt(u)],p=/[(){}[\]]/,v=h.line,M=s?Math.min(v+100,t.lineCount()):Math.max(-1,v-100);v!=M&&!(d=v==h.line?r(l,v,u):r(t.getLineHandle(v),v));v+=m);return{from:o(h.line,u),to:d&&o(v,d.pos),match:d&&d.match,forward:s}}function e(e,n){var i=e.state.matchBrackets.maxHighlightLineLength||1e3,a=t(e);if(!(!a||e.getLine(a.from.line).length>i||a.to&&e.getLine(a.to.line).length>i)){var c=a.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket",h=e.markText(a.from,o(a.from.line,a.from.ch+1),{className:c}),l=a.to&&e.markText(a.to,o(a.to.line,a.to.ch+1),{className:c});r&&e.state.focused&&e.display.input.focus();var u=function(){e.operation(function(){h.clear(),l&&l.clear()})};return n?(setTimeout(u,800),void 0):u}}function n(t){t.operation(function(){a&&(a(),a=null),t.somethingSelected()||(a=e(t,!1))})}var r=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),o=CodeMirror.Pos,i={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},a=null;CodeMirror.defineOption("matchBrackets",!1,function(t,e,r){r&&r!=CodeMirror.Init&&t.off("cursorActivity",n),e&&(t.state.matchBrackets="object"==typeof e?e:{},t.on("cursorActivity",n))}),CodeMirror.defineExtension("matchBrackets",function(){e(this,!0)}),CodeMirror.defineExtension("findMatchingBracket",function(e,n){return t(this,e,n)})}();!function(){function e(e){return"string"==typeof e?{token:function(o){return o.match(e)?"searching":(o.next(),o.skipTo(e.charAt(0))||o.skipToEnd(),void 0)}}:{token:function(o){if(o.match(e))return"searching";for(;!o.eol()&&(o.next(),!o.match(e,!1)););}}}function o(){this.posFrom=this.posTo=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new o)}function n(e,o,r){return e.getSearchCursor(o,r,"string"==typeof o&&o==o.toLowerCase())}function t(e,o,r,n){e.openDialog?e.openDialog(o,n):n(prompt(r,""))}function i(e,o,r,n){e.openConfirm?e.openConfirm(o,n):confirm(r)&&n[0]()}function a(e){var o=e.match(/^\/(.*)\/([a-z]*)$/);return o?new RegExp(o[1],-1==o[2].indexOf("i")?"":"i"):e}function c(o,n){var i=r(o);return i.query?u(o,n):(t(o,p,"Search for:",function(r){o.operation(function(){r&&!i.query&&(i.query=a(r),o.removeOverlay(i.overlay),i.overlay=e(i.query),o.addOverlay(i.overlay),i.posFrom=i.posTo=o.getCursor(),u(o,n))})}),void 0)}function u(e,o){e.operation(function(){var t=r(e),i=n(e,t.query,o?t.posFrom:t.posTo);(i.find(o)||(i=n(e,t.query,o?CodeMirror.Pos(e.lastLine()):CodeMirror.Pos(e.firstLine(),0)),i.find(o)))&&(e.setSelection(i.from(),i.to()),t.posFrom=i.from(),t.posTo=i.to())})}function f(e){e.operation(function(){var o=r(e);o.query&&(o.query=null,e.removeOverlay(o.overlay))})}function s(e,o){t(e,l,"Replace:",function(r){r&&(r=a(r),t(e,m,"Replace with:",function(t){if(o)e.operation(function(){for(var o=n(e,r);o.findNext();)if("string"!=typeof r){var i=e.getRange(o.from(),o.to()).match(r);o.replace(t.replace(/\$(\d)/,function(e,o){return i[o]}))}else o.replace(t)});else{f(e);var a=n(e,r,e.getCursor()),c=function(){var o,t=a.from();!(o=a.findNext())&&(a=n(e,r),!(o=a.findNext())||t&&a.from().line==t.line&&a.from().ch==t.ch)||(e.setSelection(a.from(),a.to()),i(e,d,"Replace?",[function(){u(o)},c]))},u=function(e){a.replace("string"==typeof r?t:t.replace(/\$(\d)/,function(o,r){return e[r]})),c()};c()}}))})}var p='Search: (Use /re/ syntax for regexp search)',l='Replace: (Use /re/ syntax for regexp search)',m='With: ',d="Replace? ";CodeMirror.commands.find=function(e){f(e),c(e)},CodeMirror.commands.findNext=c,CodeMirror.commands.findPrev=function(e){c(e,!0)},CodeMirror.commands.clearSearch=f,CodeMirror.commands.replace=s,CodeMirror.commands.replaceAll=function(e){s(e,!0)}}();!function(){function e(e,n,i,r){if(this.atOccurrence=!1,this.doc=e,null==r&&"string"==typeof n&&(r=!1),i=i?e.clipPos(i):t(0,0),this.pos={from:i,to:i},"string"!=typeof n)n.global||(n=new RegExp(n.source,n.ignoreCase?"ig":"g")),this.matches=function(i,r){if(i){n.lastIndex=0;for(var o,s,h=e.getLine(r.line).slice(0,r.ch),c=0;;){n.lastIndex=c;var l=n.exec(h);if(!l)break;if(o=l,s=o.index,c=o.index+(o[0].length||1),c==h.length)break}var f=o&&o[0].length||0;f||(0==s&&0==h.length?o=void 0:s!=e.getLine(r.line).length&&f++)}else{n.lastIndex=r.ch;var h=e.getLine(r.line),o=n.exec(h),f=o&&o[0].length||0,s=o&&o.index;s+f==h.length||f||(f=1)}return o&&f?{from:t(r.line,s),to:t(r.line,s+f),match:o}:void 0};else{r&&(n=n.toLowerCase());var o=r?function(e){return e.toLowerCase()}:function(e){return e},s=n.split("\n");this.matches=1==s.length?n.length?function(i,r){var s,h=o(e.getLine(r.line)),c=n.length;return(i?r.ch>=c&&-1!=(s=h.lastIndexOf(n,r.ch-c)):-1!=(s=h.indexOf(n,r.ch)))?{from:t(r.line,s),to:t(r.line,s+c)}:void 0}:function(){}:function(n,i){var r=i.line,h=n?s.length-1:0,c=s[h],l=o(e.getLine(r)),f=n?l.indexOf(c)+c.length:l.lastIndexOf(c);if(!(n?f>=i.ch||f!=c.length:f<=i.ch||f!=l.length-c.length))for(;;){if(n?!r:r==e.lineCount()-1)return;if(l=o(e.getLine(r+=n?-1:1)),c=s[n?--h:++h],!(h>0&&h=r;r++)e.bl_count[r]=0;for(d[2*e.heap[e.heap_max]+1]=0,t=e.heap_max+1;h>t;t++)n=e.heap[t],r=d[2*d[2*n+1]+1]+1,r>c&&(r=c,p++),d[2*n+1]=r,n>a.max_code||(e.bl_count[r]++,_=0,n>=s&&(_=l[n-s]),o=d[2*n],e.opt_len+=o*(r+_),f&&(e.static_len+=o*(f[2*n+1]+_)));if(0!==p){do{for(r=c-1;0===e.bl_count[r];)r--;e.bl_count[r]--,e.bl_count[r+1]+=2,e.bl_count[c]--,p-=2}while(p>0);for(r=c;0!==r;r--)for(n=e.bl_count[r];0!==n;)i=e.heap[--t],i>a.max_code||(d[2*i+1]!=r&&(e.opt_len+=(r-d[2*i+1])*d[2*i],d[2*i+1]=r),n--)}}function t(e,t){var n=0;do n|=1&e,e>>>=1,n<<=1;while(--t>0);return n>>>1}function n(e,n,a){var i,r,_,o=[],d=0;for(i=1;u>=i;i++)o[i]=d=d+a[i-1]<<1;for(r=0;n>=r;r++)_=e[2*r+1],0!==_&&(e[2*r]=t(o[_]++,_))}var a=this;a.build_tree=function(t){var i,r,_,o=a.dyn_tree,u=a.stat_desc.static_tree,d=a.stat_desc.elems,f=-1;for(t.heap_len=0,t.heap_max=h,i=0;d>i;i++)0!==o[2*i]?(t.heap[++t.heap_len]=f=i,t.depth[i]=0):o[2*i+1]=0;for(;t.heap_len<2;)_=t.heap[++t.heap_len]=2>f?++f:0,o[2*_]=1,t.depth[_]=0,t.opt_len--,u&&(t.static_len-=u[2*_+1]);for(a.max_code=f,i=Math.floor(t.heap_len/2);i>=1;i--)t.pqdownheap(o,i);_=d;do i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],t.pqdownheap(o,1),r=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=r,o[2*_]=o[2*i]+o[2*r],t.depth[_]=Math.max(t.depth[i],t.depth[r])+1,o[2*i+1]=o[2*r+1]=_,t.heap[1]=_++,t.pqdownheap(o,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],e(t),n(o,a.max_code,t.bl_count)}}function n(e,t,n,a,i){var r=this;r.static_tree=e,r.extra_bits=t,r.extra_base=n,r.elems=a,r.max_length=i}function a(e,t,n,a,i){var r=this;r.good_length=e,r.max_lazy=t,r.nice_length=n,r.max_chain=a,r.func=i}function i(e,t,n,a){var i=e[2*t],r=e[2*n];return r>i||i==r&&a[t]<=a[n]}function r(){function e(){var e;for(Dt=2*Et,Pt[Lt-1]=0,e=0;Lt-1>e;e++)Pt[e]=0;Tt=J[Vt].max_lazy,Xt=J[Vt].good_length,Yt=J[Vt].nice_length,Rt=J[Vt].max_chain,Kt=0,Ft=0,Ot=0,Gt=Qt=tt-1,Jt=0,St=0}function a(){var e;for(e=0;c>e;e++)Zt[2*e]=0;for(e=0;d>e;e++)$t[2*e]=0;for(e=0;f>e;e++)en[2*e]=0;Zt[2*p]=1,tn.opt_len=tn.static_len=0,un=fn=0}function r(){nn.dyn_tree=Zt,nn.stat_desc=n.static_l_desc,an.dyn_tree=$t,an.stat_desc=n.static_d_desc,rn.dyn_tree=en,rn.stat_desc=n.static_bl_desc,sn=0,cn=0,ln=8,a()}function _(e,t){var n,a,i=-1,r=e[1],_=0,o=7,u=4;for(0===r&&(o=138,u=3),e[2*(t+1)+1]=65535,n=0;t>=n;n++)a=r,r=e[2*(n+1)+1],++__?en[2*a]+=_:0!==a?(a!=i&&en[2*a]++,en[2*v]++):10>=_?en[2*b]++:en[2*g]++,_=0,i=a,0===r?(o=138,u=3):a==r?(o=6,u=3):(o=7,u=4))}function o(){var e;for(_(Zt,nn.max_code),_($t,an.max_code),rn.build_tree(tn),e=f-1;e>=3&&0===en[2*t.bl_order[e]+1];e--);return tn.opt_len+=3*(e+1)+5+5+4,e}function u(e){tn.pending_buf[tn.pending++]=e}function l(e){u(255&e),u(255&e>>>8)}function h(e){u(255&e>>8),u(255&(255&e))}function x(e,t){var n,a=t;cn>w-a?(n=e,sn|=65535&n<>>w-cn,cn+=a-w):(sn|=65535&e<=n;n++)if(a=r,r=e[2*(n+1)+1],!(++__){do j(a,en);while(0!==--_)}else 0!==a?(a!=i&&(j(a,en),_--),j(v,en),x(_-3,2)):10>=_?(j(b,en),x(_-3,3)):(j(g,en),x(_-11,7));_=0,i=a,0===r?(o=138,u=3):a==r?(o=6,u=3):(o=7,u=4)}}function rt(e,n,a){var i;for(x(e-257,5),x(n-1,5),x(a-4,4),i=0;a>i;i++)x(en[2*t.bl_order[i]+1],3);it(Zt,e-1),it($t,n-1)}function _t(){16==cn?(l(sn),sn=0,cn=0):cn>=8&&(u(255&sn),sn>>>=8,cn-=8)}function ot(){x($<<1,3),j(p,n.static_ltree),_t(),9>1+ln+10-cn&&(x($<<1,3),j(p,n.static_ltree),_t()),ln=7}function ut(e,n){var a,i,r;if(tn.pending_buf[dn+2*un]=255&e>>>8,tn.pending_buf[dn+2*un+1]=255&e,tn.pending_buf[_n+un]=255&n,un++,0===e?Zt[2*n]++:(fn++,e--,Zt[2*(t._length_code[n]+s+1)]++,$t[2*t.d_code(e)]++),0===(8191&un)&&Vt>2){for(a=8*un,i=Kt-Ft,r=0;d>r;r++)a+=$t[2*r]*(5+t.extra_dbits[r]);if(a>>>=3,fno);j(p,e),ln=e[2*p+1]}function ft(){cn>8?l(sn):cn>0&&u(255&sn),sn=0,cn=0}function lt(e,t,n){ft(),ln=8,n&&(l(t),l(~t)),tn.pending_buf.set(qt.subarray(e,e+t),tn.pending),tn.pending+=t}function st(e,t,n){x((Z<<1)+(n?1:0),3),lt(e,t,!0)}function ct(e,t,i){var r,_,u=0;Vt>0?(nn.build_tree(tn),an.build_tree(tn),u=o(),r=tn.opt_len+3+7>>>3,_=tn.static_len+3+7>>>3,r>=_&&(r=_)):r=_=t+5,r>=t+4&&-1!=e?st(e,t,i):_==r?(x(($<<1)+(i?1:0),3),dt(n.static_ltree,n.static_dtree)):(x((et<<1)+(i?1:0),3),rt(nn.max_code+1,an.max_code+1,u+1),dt(Zt,$t)),a(),i&&ft()}function ht(e){ct(Ft>=0?Ft:-1,Kt-Ft,e),Ft=Kt,mt.flush_pending()}function pt(){var e,t,n,a;do{if(a=Dt-Ot-Kt,0===a&&0===Kt&&0===Ot)a=Et;else if(-1==a)a--;else if(Kt>=Et+Et-at){qt.set(qt.subarray(Et,Et+Et),0),Nt-=Et,Kt-=Et,Ft-=Et,e=Lt,n=e;do t=65535&Pt[--n],Pt[n]=t>=Et?t-Et:0;while(0!==--e);e=Et,n=e;do t=65535&It[--n],It[n]=t>=Et?t-Et:0;while(0!==--e);a+=Et}if(0===mt.avail_in)return;e=mt.read_buf(qt,Kt+Ot,a),Ot+=e,Ot>=tt&&(St=255&qt[Kt],St=(St<Ot&&0!==mt.avail_in)}function xt(e){var t,n=65535;for(n>Mt-5&&(n=Mt-5);;){if(1>=Ot){if(pt(),0===Ot&&e==U)return N;if(0===Ot)break}if(Kt+=Ot,Ot=0,t=Ft+n,(0===Kt||Kt>=t)&&(Ot=Kt-t,Kt=t,ht(!1),0===mt.avail_out))return N;if(Kt-Ft>=Et-at&&(ht(!1),0===mt.avail_out))return N}return ht(e==z),0===mt.avail_out?e==z?Q:N:e==z?R:O}function vt(e){var t,n,a=Rt,i=Kt,r=Qt,_=Kt>Et-at?Kt-(Et-at):0,o=Yt,u=zt,d=Kt+nt,f=qt[i+r-1],l=qt[i+r];Qt>=Xt&&(a>>=2),o>Ot&&(o=Ot);do if(t=e,qt[t+r]==l&&qt[t+r-1]==f&&qt[t]==qt[i]&&qt[++t]==qt[i+1]){i+=2,t++;do;while(qt[++i]==qt[++t]&&qt[++i]==qt[++t]&&qt[++i]==qt[++t]&&qt[++i]==qt[++t]&&qt[++i]==qt[++t]&&qt[++i]==qt[++t]&&qt[++i]==qt[++t]&&qt[++i]==qt[++t]&&d>i);if(n=nt-(d-i),i=d-nt,n>r){if(Nt=e,r=n,n>=o)break;f=qt[i+r-1],l=qt[i+r]}}while((e=65535&It[e&u])>_&&0!==--a);return Ot>=r?r:Ot}function bt(e){for(var t,n=0;;){if(at>Ot){if(pt(),at>Ot&&e==U)return N;if(0===Ot)break}if(Ot>=tt&&(St=(St<=(65535&Kt-n)&&Wt!=M&&(Gt=vt(n)),Gt>=tt)if(t=ut(Kt-Nt,Gt-tt),Ot-=Gt,Tt>=Gt&&Ot>=tt){Gt--;do Kt++,St=(St<Ot){if(pt(),at>Ot&&e==U)return N;if(0===Ot)break}if(Ot>=tt&&(St=(St<Qt&&Et-at>=(65535&Kt-a)&&(Wt!=M&&(Gt=vt(a)),5>=Gt&&(Wt==y||Gt==tt&&Kt-Nt>4096)&&(Gt=tt-1)),Qt>=tt&&Qt>=Gt){n=Kt+Ot-tt,t=ut(Kt-1-Ht,Qt-tt),Ot-=Qt-1,Qt-=2;do++Kt<=n&&(St=(St<i||i>B||a!=Y||9>n||n>15||0>t||t>9||0>r||r>M?P:(e.dstate=tn,kt=n,Et=1<t||t>9||0>n||n>M?P:(J[Vt].func!=J[t].func&&0!==e.total_in&&(a=e.deflate(E)),Vt!=t&&(Vt=t,Tt=J[Vt].max_lazy,Xt=J[Vt].good_length,Yt=J[Vt].nice_length,Rt=J[Vt].max_chain),Wt=n,a)},tn.deflateSetDictionary=function(e,t,n){var a,i=n,r=0;if(!t||yt!=V)return P;if(tt>i)return q;for(i>Et-at&&(i=Et-at,r=n-i),qt.set(t.subarray(r,r+i),0),Kt=i,Ft=i,St=255&qt[0],St=(St<=a;a++)St=(St<z||0>t)return P;if(!e.next_out||!e.next_in&&0!==e.avail_in||yt==X&&t!=z)return e.msg=K[I-P],P;if(0===e.avail_out)return e.msg=K[I-L],L;if(mt=e,r=Ut,Ut=t,yt==V&&(a=Y+(kt-8<<4)<<8,i=(255&Vt-1)>>1,i>3&&(i=3),a|=i<<6,0!==Kt&&(a|=T),a+=31-a%31,yt=W,h(a)),0!==tn.pending){if(mt.flush_pending(),0===mt.avail_out)return Ut=-1,q}else if(0===mt.avail_in&&r>=t&&t!=z)return mt.msg=K[I-L],L;if(yt==X&&0!==mt.avail_in)return e.msg=K[I-L],L;if(0!==mt.avail_in||0!==Ot||t!=U&&yt!=X){switch(_=-1,J[Vt].func){case F:_=xt(t);break;case G:_=bt(t);break;case H:_=gt(t)}if((_==Q||_==R)&&(yt=X),_==N||_==Q)return 0===mt.avail_out&&(Ut=-1),q;if(_==O){if(t==E)ot();else if(st(0,0,!1),t==k)for(n=0;Lt>n;n++)Pt[n]=0;if(mt.flush_pending(),0===mt.avail_out)return Ut=-1,q}}return t!=z?q:D}}function _(){var e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}function o(e){var t=this,n=new _,a=512,i=U,r=new Uint8Array(a);"undefined"==typeof e&&(e=m),n.deflateInit(e),n.next_out=r,t.append=function(e,t){var _,o,u=[],d=0,f=0,l=0;if(e.length){n.next_in_index=0,n.next_in=e,n.avail_in=e.length;do{if(n.next_out_index=0,n.avail_out=a,_=n.deflate(i),_!=q)throw"deflating: "+n.msg;n.next_out_index&&(n.next_out_index==a?u.push(new Uint8Array(r)):u.push(new Uint8Array(r.subarray(0,n.next_out_index)))),l+=n.next_out_index,t&&n.next_in_index>0&&n.next_in_index!=d&&(t(n.next_in_index),d=n.next_in_index)}while(n.avail_in>0||0===n.avail_out);return o=new Uint8Array(l),u.forEach(function(e){o.set(e,f),f+=e.length}),o}},t.flush=function(){var e,t,i=[],_=0,o=0;do{if(n.next_out_index=0,n.avail_out=a,e=n.deflate(z),e!=D&&e!=q)throw"deflating: "+n.msg;a-n.avail_out>0&&i.push(new Uint8Array(r.subarray(0,n.next_out_index))),o+=n.next_out_index}while(n.avail_in>0||0===n.avail_out);return n.deflateEnd(),t=new Uint8Array(o),i.forEach(function(e){t.set(e,_),_+=e.length}),t}}var u=15,d=30,f=19,l=29,s=256,c=s+1+l,h=2*c+1,p=256,x=7,v=16,b=17,g=18,w=16,m=-1,y=1,M=2,A=0,U=0,E=1,k=3,z=4,q=0,D=1,I=2,P=-2,S=-3,L=-5,j=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];t._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],t.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],t.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],t.d_code=function(e){return 256>e?j[e]:j[256+(e>>>7)]},t.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],t.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],t.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],t.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],n.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],n.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],n.static_l_desc=new n(n.static_ltree,t.extra_lbits,s+1,c,u),n.static_d_desc=new n(n.static_dtree,t.extra_dbits,0,d,u),n.static_bl_desc=new n(null,t.extra_blbits,0,f,x);var B=9,C=8,F=0,G=1,H=2,J=[new a(0,0,0,0,F),new a(4,4,8,4,G),new a(4,5,16,8,G),new a(4,6,32,32,G),new a(4,4,16,16,H),new a(8,16,32,32,H),new a(8,16,128,128,H),new a(8,32,128,256,H),new a(32,128,258,1024,H),new a(32,258,258,4096,H)],K=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],N=0,O=1,Q=2,R=3,T=32,V=42,W=113,X=666,Y=8,Z=0,$=1,et=2,tt=3,nt=258,at=nt+tt+1;_.prototype={deflateInit:function(e,t){var n=this;return n.dstate=new r,t||(t=u),n.dstate.deflateInit(n,e,t)},deflate:function(e){var t=this;return t.dstate?t.dstate.deflate(t,e):P},deflateEnd:function(){var e=this;if(!e.dstate)return P;var t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams:function(e,t){var n=this;return n.dstate?n.dstate.deflateParams(n,e,t):P},deflateSetDictionary:function(e,t){var n=this;return n.dstate?n.dstate.deflateSetDictionary(n,e,t):P},read_buf:function(e,t,n){var a=this,i=a.avail_in;return i>n&&(i=n),0===i?0:(a.avail_in-=i,e.set(a.next_in.subarray(a.next_in_index,a.next_in_index+i),t),a.next_in_index+=i,a.total_in+=i,i)},flush_pending:function(){var e=this,t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}};var it;e.zip?e.zip.Deflater=o:(it=new o,e.addEventListener("message",function(t){var n=t.data;n.init&&(it=new o(n.level),e.postMessage({oninit:!0})),n.append&&e.postMessage({onappend:!0,data:it.append(n.data,function(t){e.postMessage({progress:!0,current:t})})}),n.flush&&e.postMessage({onflush:!0,data:it.flush()})},!1))}(this);!function(i){function e(){function i(i,e,t,n,s,o,f,u,w,v,h){var k,m,y,g,p,A,I,E,U,z,D,M,L,P,j;z=0,p=t;do a[i[e+z]]++,z++,p--;while(0!==p);if(a[0]==t)return f[0]=-1,u[0]=0,d;for(E=u[0],A=1;S>=A&&0===a[A];A++);for(I=A,A>E&&(E=A),p=S;0!==p&&0===a[p];p--);for(y=p,E>p&&(E=p),u[0]=E,P=1<A;A++,P<<=1)if((P-=a[A])<0)return b;if((P-=a[p])<0)return b;for(a[p]+=P,l[1]=A=0,z=1,L=2;0!==--p;)l[L]=A+=a[z],L++,z++;p=0,z=0;do 0!==(A=i[e+z])&&(h[l[A]++]=p),z++;while(++p=I;I++)for(k=a[I];0!==k--;){for(;I>M+E;){if(g++,M+=E,j=y-M,j=j>E?E:j,(m=1<<(A=I-M))>k+1&&(m-=k+1,L=I,j>A))for(;++Ac)return b;_[g]=D=v[0],v[0]+=j,0!==g?(l[g]=p,r[0]=A,r[1]=E,A=p>>>M-E,r[2]=D-_[g-1]-A,w.set(r,3*(_[g-1]+A))):f[0]=D}for(r[1]=I-M,z>=t?r[0]=192:h[z]>>M;j>A;A+=m)w.set(r,3*(D+A));for(A=1<>>=1)p^=A;for(p^=A,U=(1<e;e++)n[e]=0;for(e=0;S+1>e;e++)a[e]=0;for(e=0;3>e;e++)r[e]=0;_.set(a.subarray(0,S),0),l.set(a.subarray(0,S+1),0)}var t,n,a,r,_,l,s=this;s.inflate_trees_bits=function(a,r,_,l,d){var s;return e(19),t[0]=0,s=i(a,0,19,19,null,null,_,r,l,t,n),s==b?d.msg="oversubscribed dynamic bit lengths tree":(s==x||0===r[0])&&(d.msg="incomplete dynamic bit lengths tree",s=b),s},s.inflate_trees_dynamic=function(a,r,_,l,s,o,f,w,c){var v;return e(288),t[0]=0,v=i(_,0,a,257,p,A,o,l,w,t,n),v!=d||0===l[0]?(v==b?c.msg="oversubscribed literal/length tree":v!=u&&(c.msg="incomplete literal/length tree",v=b),v):(e(288),v=i(_,a,r,0,I,E,f,s,w,t,n),v!=d||0===s[0]&&a>257?(v==b?c.msg="oversubscribed distance tree":v==x?(c.msg="incomplete distance tree",v=b):v!=u&&(c.msg="empty distance tree with lengths",v=b),v):d)}}function t(){function i(i,e,t,n,a,r,_,l){var o,f,u,x,c,v,h,k,m,y,g,p,A,I,E,S;h=l.next_in_index,k=l.avail_in,c=_.bitb,v=_.bitk,m=_.write,y=m<_.read?_.read-m-1:_.end-m,g=w[i],p=w[e];do{for(;20>v;)k--,c|=(255&l.read_byte(h++))<>=f[S+1],v-=f[S+1],0!==(16&x)){for(x&=15,A=f[S+2]+(c&w[x]),c>>=x,v-=x;15>v;)k--,c|=(255&l.read_byte(h++))<>=f[S+1],v-=f[S+1],0!==(16&x)){for(x&=15;x>v;)k--,c|=(255&l.read_byte(h++))<>=x,v-=x,y-=A,m>=I)E=m-I,m-E>0&&2>m-E?(_.window[m++]=_.window[E++],_.window[m++]=_.window[E++],A-=2):(_.window.set(_.window.subarray(E,E+2),m),m+=2,E+=2,A-=2);else{E=m-I;do E+=_.end;while(0>E);if(x=_.end-E,A>x){if(A-=x,m-E>0&&x>m-E){do _.window[m++]=_.window[E++];while(0!==--x)}else _.window.set(_.window.subarray(E,E+x),m),m+=x,E+=x,x=0;E=0}}if(m-E>0&&A>m-E){do _.window[m++]=_.window[E++];while(0!==--A)}else _.window.set(_.window.subarray(E,E+A),m),m+=A,E+=A,A=0;break}if(0!==(64&x))return l.msg="invalid distance code",A=l.avail_in-k,A=A>v>>3?v>>3:A,k+=A,h-=A,v-=A<<3,_.bitb=c,_.bitk=v,l.avail_in=k,l.total_in+=h-l.next_in_index,l.next_in_index=h,_.write=m,b;o+=f[S+2],o+=c&w[x],S=3*(u+o),x=f[S]}break}if(0!==(64&x))return 0!==(32&x)?(A=l.avail_in-k,A=A>v>>3?v>>3:A,k+=A,h-=A,v-=A<<3,_.bitb=c,_.bitk=v,l.avail_in=k,l.total_in+=h-l.next_in_index,l.next_in_index=h,_.write=m,s):(l.msg="invalid literal/length code",A=l.avail_in-k,A=A>v>>3?v>>3:A,k+=A,h-=A,v-=A<<3,_.bitb=c,_.bitk=v,l.avail_in=k,l.total_in+=h-l.next_in_index,l.next_in_index=h,_.write=m,b);if(o+=f[S+2],o+=c&w[x],S=3*(u+o),0===(x=f[S])){c>>=f[S+1],v-=f[S+1],_.window[m++]=f[S+2],y--;break}}else c>>=f[S+1],v-=f[S+1],_.window[m++]=f[S+2],y--}while(y>=258&&k>=10);return A=l.avail_in-k,A=A>v>>3?v>>3:A,k+=A,h-=A,v-=A<<3,_.bitb=c,_.bitk=v,l.avail_in=k,l.total_in+=h-l.next_in_index,l.next_in_index=h,_.write=m,d}var e,t,n,a,r=this,_=0,l=0,o=0,u=0,x=0,c=0,v=0,h=0,k=0,m=0;r.init=function(i,r,_,l,d,s){e=U,v=i,h=r,n=_,k=l,a=d,m=s,t=null},r.proc=function(r,y,g){var p,A,I,E,S,F,G,H=0,J=0,K=0;for(K=y.next_in_index,E=y.avail_in,H=r.bitb,J=r.bitk,S=r.write,F=S=258&&E>=10&&(r.bitb=H,r.bitk=J,y.avail_in=E,y.total_in+=K-y.next_in_index,y.next_in_index=K,r.write=S,g=i(v,h,n,k,a,m,r,y),K=y.next_in_index,E=y.avail_in,H=r.bitb,J=r.bitk,S=r.write,F=SJ;){if(0===E)return r.bitb=H,r.bitk=J,y.avail_in=E,y.total_in+=K-y.next_in_index,y.next_in_index=K,r.write=S,r.inflate_flush(y,g);g=d,E--,H|=(255&y.read_byte(K++))<>>=t[A+1],J-=t[A+1],I=t[A],0===I){u=t[A+2],e=j;break}if(0!==(16&I)){x=15&I,_=t[A+2],e=D;break}if(0===(64&I)){o=I,l=A/3+t[A+2];break}if(0!==(32&I)){e=q;break}return e=C,y.msg="invalid literal/length code",g=b,r.bitb=H,r.bitk=J,y.avail_in=E,y.total_in+=K-y.next_in_index,y.next_in_index=K,r.write=S,r.inflate_flush(y,g);case D:for(p=x;p>J;){if(0===E)return r.bitb=H,r.bitk=J,y.avail_in=E,y.total_in+=K-y.next_in_index,y.next_in_index=K,r.write=S,r.inflate_flush(y,g);g=d,E--,H|=(255&y.read_byte(K++))<>=p,J-=p,o=h,t=a,l=m,e=M;case M:for(p=o;p>J;){if(0===E)return r.bitb=H,r.bitk=J,y.avail_in=E,y.total_in+=K-y.next_in_index,y.next_in_index=K,r.write=S,r.inflate_flush(y,g);g=d,E--,H|=(255&y.read_byte(K++))<>=t[A+1],J-=t[A+1],I=t[A],0!==(16&I)){x=15&I,c=t[A+2],e=L;break}if(0===(64&I)){o=I,l=A/3+t[A+2];break}return e=C,y.msg="invalid distance code",g=b,r.bitb=H,r.bitk=J,y.avail_in=E,y.total_in+=K-y.next_in_index,y.next_in_index=K,r.write=S,r.inflate_flush(y,g);case L:for(p=x;p>J;){if(0===E)return r.bitb=H,r.bitk=J,y.avail_in=E,y.total_in+=K-y.next_in_index,y.next_in_index=K,r.write=S,r.inflate_flush(y,g);g=d,E--,H|=(255&y.read_byte(K++))<>=p,J-=p,e=P;case P:for(G=S-c;0>G;)G+=r.end;for(;0!==_;){if(0===F&&(S==r.end&&0!==r.read&&(S=0,F=S7&&(J-=8,E++,K--),r.write=S,g=r.inflate_flush(y,g),S=r.write,F=Si.avail_out&&(t=i.avail_out),0!==t&&e==x&&(e=d),i.avail_out-=t,i.total_out+=t,i.next_out.set(r.window.subarray(a,a+t),n),n+=t,a+=t,a==r.end&&(a=0,r.write==r.end&&(r.write=0),t=r.write-a,t>i.avail_out&&(t=i.avail_out),0!==t&&e==x&&(e=d),i.avail_out-=t,i.total_out+=t,i.next_out.set(r.window.subarray(a,a+t),n),n+=t,a+=t),i.next_out_index=n,r.read=a,e},r.proc=function(i,t){var n,x,c,g,A,I,E,S;for(g=i.next_in_index,A=i.avail_in,x=r.bitb,c=r.bitk,I=r.write,E=Ic;){if(0===A)return r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);t=d,A--,x|=(255&i.read_byte(g++))<>>1){case 0:x>>>=3,c-=3,n=7&c,x>>>=n,c-=n,_=H;break;case 1:var U=[],z=[],D=[[]],M=[[]];e.inflate_trees_fixed(U,z,D,M),k.init(U[0],z[0],D[0],0,M[0],0),x>>>=3,c-=3,_=Q;break;case 2:x>>>=3,c-=3,_=K;break;case 3:return x>>>=3,c-=3,_=V,i.msg="invalid block type",t=b,r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t)}break;case H:for(;32>c;){if(0===A)return r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);t=d,A--,x|=(255&i.read_byte(g++))<>>16)!=(65535&x))return _=V,i.msg="invalid stored block lengths",t=b,r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);l=65535&x,x=c=0,_=0!==l?J:0!==m?R:G;break;case J:if(0===A)return r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);if(0===E&&(I==r.end&&0!==r.read&&(I=0,E=IA&&(n=A),n>E&&(n=E),r.window.set(i.read_buf(g,n),I),g+=n,A-=n,I+=n,E-=n,0!==(l-=n))break;_=0!==m?R:G;break;case K:for(;14>c;){if(0===A)return r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);t=d,A--,x|=(255&i.read_byte(g++))<29||(31&n>>5)>29)return _=V,i.msg="too many length or distance symbols",t=b,r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);if(n=258+(31&n)+(31&n>>5),!a||a.lengthS;S++)a[S]=0;x>>>=14,c-=14,u=0,_=N;case N:for(;4+(o>>>10)>u;){for(;3>c;){if(0===A)return r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);t=d,A--,x|=(255&i.read_byte(g++))<>>=3,c-=3}for(;19>u;)a[F[u++]]=0;if(v[0]=7,n=p.inflate_trees_bits(a,v,h,y,i),n!=d)return t=n,t==b&&(a=null,_=V),r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);u=0,_=O;case O:for(;;){if(n=o,!(258+(31&n)+(31&n>>5)>u))break;var L,P;for(n=v[0];n>c;){if(0===A)return r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);t=d,A--,x|=(255&i.read_byte(g++))<P)x>>>=n,c-=n,a[u++]=P;else{for(S=18==P?7:P-14,L=18==P?11:3;n+S>c;){if(0===A)return r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);t=d,A--,x|=(255&i.read_byte(g++))<>>=n,c-=n,L+=x&w[S],x>>>=S,c-=S,S=u,n=o,S+L>258+(31&n)+(31&n>>5)||16==P&&1>S)return a=null,_=V,i.msg="invalid bit length repeat",t=b,r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);P=16==P?a[S-1]:0;do a[S++]=P;while(0!==--L);u=S}}h[0]=-1;var j=[],q=[],B=[],C=[];if(j[0]=9,q[0]=6,n=o,n=p.inflate_trees_dynamic(257+(31&n),1+(31&n>>5),a,j,q,B,C,y,i),n!=d)return n==b&&(a=null,_=V),t=n,r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,r.inflate_flush(i,t);k.init(j[0],q[0],y,B[0],y,C[0]),_=Q;case Q:if(r.bitb=x,r.bitk=c,i.avail_in=A,i.total_in+=g-i.next_in_index,i.next_in_index=g,r.write=I,(t=k.proc(r,i,t))!=s)return r.inflate_flush(i,t);if(t=d,k.free(i),g=i.next_in_index,A=i.avail_in,x=r.bitb,c=r.bitk,I=r.write,E=Ia||a>15?(e.inflateEnd(t),f):(e.wbits=a,t.istate.blocks=new n(t,1<>4)+8>i.istate.wbits){i.istate.mode=_e,i.msg="invalid window size",i.istate.marker=5;break}i.istate.mode=Z;case Z:if(0===i.avail_in)return t;if(t=e,i.avail_in--,i.total_in++,n=255&i.read_byte(i.next_in_index++),0!==((i.istate.method<<8)+n)%31){i.istate.mode=_e,i.msg="incorrect header check",i.istate.marker=5;break}if(0===(n&W)){i.istate.mode=ae;break}i.istate.mode=$;case $:if(0===i.avail_in)return t;t=e,i.avail_in--,i.total_in++,i.istate.need=4278190080&(255&i.read_byte(i.next_in_index++))<<24,i.istate.mode=ie;case ie:if(0===i.avail_in)return t;t=e,i.avail_in--,i.total_in++,i.istate.need+=16711680&(255&i.read_byte(i.next_in_index++))<<16,i.istate.mode=ee;case ee:if(0===i.avail_in)return t;t=e,i.avail_in--,i.total_in++,i.istate.need+=65280&(255&i.read_byte(i.next_in_index++))<<8,i.istate.mode=te;case te:return 0===i.avail_in?t:(t=e,i.avail_in--,i.total_in++,i.istate.need+=255&i.read_byte(i.next_in_index++),i.istate.mode=ne,o);case ne:return i.istate.mode=_e,i.msg="need dictionary",i.istate.marker=0,f;case ae:if(t=i.istate.blocks.proc(i,t),t==b){i.istate.mode=_e,i.istate.marker=0;break}if(t==d&&(t=e),t!=s)return t;t=e,i.istate.blocks.reset(i,i.istate.was),i.istate.mode=re;case re:return s;case _e:return b;default:return f}},e.inflateSetDictionary=function(i,e,t){var n=0,a=t;return i&&i.istate&&i.istate.mode==ne?(a>=1<a;)e.read_byte(n)==le[a]?a++:a=0!==e.read_byte(n)?0:4-a,n++,t--;return e.total_in+=n-e.next_in_index,e.next_in_index=n,e.avail_in=t,e.istate.marker=a,4!=a?b:(r=e.total_in,_=e.total_out,i(e),e.total_in=r,e.total_out=_,e.istate.mode=ae,d)},e.inflateSyncPoint=function(i){return i&&i.istate&&i.istate.blocks?i.istate.blocks.sync_point():f}}function r(){}function _(){var i=this,e=new r,t=512,n=v,a=new Uint8Array(t),_=!1;e.inflateInit(),e.next_out=a,i.append=function(i,r){var l,o,f=[],b=0,u=0,w=0;if(0!==i.length){e.next_in_index=0,e.next_in=i,e.avail_in=i.length;do{if(e.next_out_index=0,e.avail_out=t,0!==e.avail_in||_||(e.next_in_index=0,_=!0),l=e.inflate(n),_&&l==x)return-1;if(l!=d&&l!=s)throw"inflating: "+e.msg;if((_||l==s)&&e.avail_in==i.length)return-1;e.next_out_index&&(e.next_out_index==t?f.push(new Uint8Array(a)):f.push(new Uint8Array(a.subarray(0,e.next_out_index)))),w+=e.next_out_index,r&&e.next_in_index>0&&e.next_in_index!=b&&(r(e.next_in_index),b=e.next_in_index)}while(e.avail_in>0||0===e.avail_out);return o=new Uint8Array(w),f.forEach(function(i){o.set(i,u),u+=i.length}),o}},i.flush=function(){e.inflateEnd()}}var l=15,d=0,s=1,o=2,f=-2,b=-3,u=-4,x=-5,w=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],c=1440,v=0,h=4,k=9,m=5,y=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],g=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],A=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],I=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],S=15;e.inflate_trees_fixed=function(i,e,t,n){return i[0]=k,e[0]=m,t[0]=y,n[0]=g,d};var U=0,z=1,D=2,M=3,L=4,P=5,j=6,q=7,B=8,C=9,F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],G=0,H=1,J=2,K=3,N=4,O=5,Q=6,R=7,T=8,V=9,W=32,X=8,Y=0,Z=1,$=2,ie=3,ee=4,te=5,ne=6,ae=7,re=12,_e=13,le=[0,0,255,255];r.prototype={inflateInit:function(i){var e=this;return e.istate=new a,i||(i=l),e.istate.inflateInit(e,i)},inflate:function(i){var e=this;return e.istate?e.istate.inflate(e,i):f},inflateEnd:function(){var i=this;if(!i.istate)return f;var e=i.istate.inflateEnd(i);return i.istate=null,e},inflateSync:function(){var i=this;return i.istate?i.istate.inflateSync(i):f},inflateSetDictionary:function(i,e){var t=this;return t.istate?t.istate.inflateSetDictionary(t,i,e):f},read_byte:function(i){var e=this;return e.next_in.subarray(i,i+1)[0]},read_buf:function(i,e){var t=this;return t.next_in.subarray(i,i+e)}};var de;i.zip?i.zip.Inflater=_:(de=new _,i.addEventListener("message",function(e){var t=e.data;t.append&&i.postMessage({onappend:!0,data:de.append(t.data,function(e){i.postMessage({progress:!0,current:e})})}),t.flush&&(de.flush(),i.postMessage({onflush:!0}))},!1))}(this);!function(e){function t(){var e=-1,t=this;t.append=function(n){var i,r=t.table;for(i=0;i>>8^r[255&(e^n[i])]},t.get=function(){return~e}}function n(e,t,n){return e.slice?e.slice(t,t+n):e.webkitSlice?e.webkitSlice(t,t+n):e.mozSlice?e.mozSlice(t,t+n):e.msSlice?e.msSlice(t,t+n):void 0}function i(e,t){var n,i;return n=new ArrayBuffer(e),i=new Uint8Array(n),t&&i.set(t,0),{buffer:n,array:i,view:new DataView(n)}}function r(){}function o(e){function t(t,n){var o=new Blob([e],{type:P});i=new c(o),i.init(function(){r.size=i.size,t()},n)}function n(e,t,n,r){i.readUint8Array(e,t,n,r)}var i,r=this;r.size=0,r.init=t,r.readUint8Array=n}function a(t){function n(e){for(var n=t.length;"="==t.charAt(n-1);)n--;o=t.indexOf(",")+1,a.size=Math.floor(.75*(n-o)),e()}function r(n,r,a){var c,f=i(r),u=4*Math.floor(n/3),s=4*Math.ceil((n+r)/3),l=e.atob(t.substring(u+o,s+o)),v=n-3*Math.floor(u/4);for(c=v;v+r>c;c++)f.array[c-v]=l.charCodeAt(c);a(f.array)}var o,a=this;a.size=0,a.init=n,a.readUint8Array=r}function c(e){function t(t){this.size=e.size,t()}function i(t,i,r,o){var a=new FileReader;a.onload=function(e){r(new Uint8Array(e.target.result))},a.onerror=o,a.readAsArrayBuffer(n(e,t,i))}var r=this;r.size=0,r.init=t,r.readUint8Array=i}function f(){}function u(e){function t(e){r=new Blob([],{type:P}),e()}function n(e,t){r=new Blob([r,M?e:e.buffer],{type:P}),t()}function i(t,n){var i=new FileReader;i.onload=function(e){t(e.target.result)},i.onerror=n,i.readAsText(r,e)}var r,o=this;o.init=t,o.writeUint8Array=n,o.getData=i}function s(t){function n(e){a+="data:"+(t||"")+";base64,",e()}function i(t,n){var i,r=c.length,o=c;for(c="",i=0;i<3*Math.floor((r+t.length)/3)-r;i++)o+=String.fromCharCode(t[i]);for(;i2?a+=e.btoa(o):c=o,n()}function r(t){t(a+e.btoa(c))}var o=this,a="",c="";o.init=n,o.writeUint8Array=i,o.getData=r}function l(e){function t(t){r=new Blob([],{type:e}),t()}function n(t,n){r=new Blob([r,M?t:t.buffer],{type:e}),n()}function i(e){e(r)}var r,o=this;o.init=t,o.writeUint8Array=n,o.getData=i}function v(e,t,n,i,r,o,a,c,f,u){function s(){e.removeEventListener(T,l,!1),c(w)}function l(e){var t=e.data,i=t.data;t.onappend&&(w+=i.length,n.writeUint8Array(i,function(){o(!1,i),v()},u)),t.onflush&&(i?(w+=i.length,n.writeUint8Array(i,function(){o(!1,i),s()},u)):s()),t.progress&&a&&a(g+t.current,r)}function v(){g=d*E,r>g?t.readUint8Array(i+g,Math.min(E,r-g),function(t){e.postMessage({append:!0,data:t}),d++,a&&a(g,r),o(!0,t)},f):e.postMessage({flush:!0})}var g,w,d=0;w=0,e.addEventListener(T,l,!1),v()}function g(e,t,n,i,r,o,a,c,f,u){function s(){var w;l=v*E,r>l?t.readUint8Array(i+l,Math.min(E,r-l),function(t){var c=e.append(t,function(){a&&a(i+l,r)});g+=c.length,o(!0,t),n.writeUint8Array(c,function(){o(!1,c),v++,setTimeout(s,1)},u),a&&a(l,r)},f):(w=e.flush(),w?(g+=w.length,n.writeUint8Array(w,function(){o(!1,w),c(g)},u)):c(g))}var l,v=0,g=0;s()}function w(n,i,r,o,a,c,f,u,s){function l(e,t){a&&!e&&h.append(t)}function w(e){c(e,h.get())}var d,h=new t;return e.zip.useWebWorkers?(d=new Worker(e.zip.workerScriptsPath+_),v(d,n,i,r,o,l,f,w,u,s)):g(new e.zip.Inflater,n,i,r,o,l,f,w,u,s),d}function d(n,i,r,o,a,c,f){function u(e,t){e&&d.append(t)}function s(e){o(e,d.get())}function l(){w.removeEventListener(T,l,!1),v(w,n,i,0,n.size,u,a,s,c,f)}var w,d=new t;return e.zip.useWebWorkers?(w=new Worker(e.zip.workerScriptsPath+I),w.addEventListener(T,l,!1),w.postMessage({init:!0,level:r})):g(new e.zip.Deflater,n,i,0,n.size,u,a,s,c,f),w}function h(e,n,i,r,o,a,c,f,u){function s(){var t=l*E;r>t?e.readUint8Array(i+t,Math.min(E,r-t),function(e){o&&v.append(e),c&&c(t,r,e),n.writeUint8Array(e,function(){l++,s()},u)},f):a(r,v.get())}var l=0,v=new t;s()}function p(e){var t,n,i="",r=["Ç","ü","é","â","ä","à","å","ç","ê","ë","è","ï","î","ì","Ä","Å","É","æ","Æ","ô","ö","ò","û","ù","ÿ","Ö","Ü","ø","£","Ø","×","ƒ","á","í","ó","ú","ñ","Ñ","ª","º","¿","®","¬","½","¼","¡","«","»","_","_","_","¦","¦","Á","Â","À","©","¦","¦","+","+","¢","¥","+","+","-","-","+","-","+","ã","Ã","+","+","-","-","¦","-","+","¤","ð","Ð","Ê","Ë","È","i","Í","Î","Ï","+","+","_","_","¦","Ì","_","Ó","ß","Ô","Ò","õ","Õ","µ","þ","Þ","Ú","Û","Ù","ý","Ý","¯","´","­","±","_","¾","¶","§","÷","¸","°","¨","·","¹","³","²","_"," "];for(t=0;t127?r[n-128]:String.fromCharCode(n);return i}function y(e){return decodeURIComponent(escape(e))}function U(e){var t,n="";for(t=0;t>16,n=65535&e;try{return new Date(1980+((65024&t)>>9),((480&t)>>5)-1,31&t,(63488&n)>>11,(2016&n)>>5,2*(31&n),0)}catch(i){}}function z(e,t,n,i,r){return e.version=t.view.getUint16(n,!0),e.bitFlag=t.view.getUint16(n+2,!0),e.compressionMethod=t.view.getUint16(n+4,!0),e.lastModDateRaw=t.view.getUint32(n+6,!0),e.lastModDate=m(e.lastModDateRaw),1===(1&e.bitFlag)?(r(F),void 0):((i||8!=(8&e.bitFlag))&&(e.crc32=t.view.getUint32(n+10,!0),e.compressedSize=t.view.getUint32(n+14,!0),e.uncompressedSize=t.view.getUint32(n+18,!0)),4294967295===e.compressedSize||4294967295===e.uncompressedSize?(r(C),void 0):(e.filenameLength=t.view.getUint16(n+22,!0),e.extraFieldLength=t.view.getUint16(n+24,!0),void 0))}function A(e,t){function n(){}function r(n,o){e.readUint8Array(e.size-n,n,function(e){var t=i(e.length,e).view;1347093766!=t.getUint32(0)?r(n+1,o):o(t)},function(){t(R)})}return n.prototype.getData=function(n,r,o,a){function c(e,t){v&&v.terminate(),v=null,e&&e(t)}function f(e){var t=i(4);return t.view.setUint32(0,e),g.crc32==t.view.getUint32(0)}function u(e,t){a&&!f(t)?s():n.getData(function(e){c(r,e)})}function s(){c(t,B)}function l(){c(t,x)}var v,g=this;e.readUint8Array(g.offset,30,function(r){var c,f=i(r.length,r);return 1347093252!=f.view.getUint32(0)?(t(L),void 0):(z(g,f,4,!1,t),c=g.offset+30+g.filenameLength+g.extraFieldLength,n.init(function(){0===g.compressionMethod?h(e,n,c,g.compressedSize,a,u,o,s,l):v=w(e,n,c,g.compressedSize,a,u,o,s,l)},l),void 0)},s)},{getEntries:function(o){return e.size<22?(t(L),void 0):(r(22,function(r){var a,c;a=r.getUint32(16,!0),c=r.getUint16(8,!0),e.readUint8Array(a,e.size-a,function(e){var r,a,f,u,s=0,l=[],v=i(e.length,e);for(r=0;c>r;r++){if(a=new n,1347092738!=v.view.getUint32(s))return t(L),void 0;z(a,v,s+6,!0,t),a.commentLength=v.view.getUint16(s+32,!0),a.directory=16==(16&v.view.getUint8(s+38)),a.offset=v.view.getUint32(s+42,!0),f=U(v.array.subarray(s+46,s+46+a.filenameLength)),a.filename=2048===(2048&a.bitFlag)?y(f):p(f),a.directory||"/"!=a.filename.charAt(a.filename.length-1)||(a.directory=!0),u=U(v.array.subarray(s+46+a.filenameLength+a.extraFieldLength,s+46+a.filenameLength+a.extraFieldLength+a.commentLength)),a.comment=2048===(2048&a.bitFlag)?y(u):p(u),l.push(a),s+=46+a.filenameLength+a.extraFieldLength+a.commentLength}o(l)},function(){t(R)})}),void 0)},close:function(e){e&&e()}}}function b(e){return unescape(encodeURIComponent(e))}function S(e){var t,n=[];for(t=0;te;e++){for(n=e,t=0;8>t;t++)1&n?n=3988292384^n>>>1:n>>>=1;i[e]=n}return i}(),o.prototype=new r,o.prototype.constructor=o,a.prototype=new r,a.prototype.constructor=a,c.prototype=new r,c.prototype.constructor=c,f.prototype.getData=function(e){e(this.data)},u.prototype=new f,u.prototype.constructor=u,s.prototype=new f,s.prototype.constructor=s,l.prototype=new f,l.prototype.constructor=l,e.zip={Reader:r,Writer:f,BlobReader:c,Data64URIReader:a,TextReader:o,BlobWriter:l,Data64URIWriter:s,TextWriter:u,createReader:function(e,t,n){e.init(function(){t(A(e,n))},n)},createWriter:function(e,t,n,i){e.init(function(){t(D(e,n,i))},n)},workerScriptsPath:"",useWebWorkers:!0}}(this);[lang] __translator="ahoj1234" __lang="cs" Search$1="http:\/\/www.google.com\/search?q=$1" Updating...="Aktualizuji..." Checking+for+updates...="Kontroluji aktualizace..." Failed+fetching+update+information.="Na\u010dten\u00ed informac\u00ed o aktualizaci se nezda\u0159ilo." No+update+found.="Aktualizace nenalezena." Script+updated.="Skript aktualizov\u00e1n." Error+fetching+script!="Chyba p\u0159i na\u010d\u00edt\u00e1n\u00ed skritpu!" Script+installed.="Skript nainstalov\u00e1n." Do+you+want+to+install+this+UserScript?="Chcete nainstalovat tento UserScript?" Options="Mo\u017enosti" New="Nov\u00fd" Get+more+scripts+from+userscripts.org="Z\u00edskej v\u00edce skritp\u016f z userscripts.org" Check+all+for+updates="Zkontrolovat aktualizace" Advanced="Pokro\u010dil\u00e9" Installed+Scripts="Nainstalovan\u00e9 skripty" Show+details="Zobrazit detaily" Violentmonkey+link="Violentmonkey<\/a>" Designed+by+Gerald="Design od Gerald<\/a>, P\u0159elo\u017eil: ahoj1234<\/a>" Script+Editor="Editor skript\u016f" Name:="Jm\u00e9no:" Run+at:="Spustit na: " default="(standardn\u00ed)" Homepage:="Domovsk\u00e1 str\u00e1nka:" Includes="Zahrnout" Keep+original+include+rules="Dodr\u017eovat origin\u00e1ln\u00ed zahrnut\u00ed" Custom+include+rules:="Vlastn\u00ed pravidla pro zahrnov\u00e1n\u00ed: (Jedno na \u0159\u00e1dek)<\/em>" Matches="P\u0159i\u0159azen\u00ed" Keep+original+match+rules="Dodr\u017eovat origin\u00e1ln\u00ed p\u0159i\u0159azen\u00ed" Custom+match+rules:="Vlastn\u00ed pravidla pro p\u0159i\u0159azen\u00ed: (Jedno na \u0159\u00e1dek)<\/em>" Excludes="V\u00fdjimky" Keep+original+exclude+rules="Dodr\u017eovat origin\u00e1ln\u00ed v\u00fdjimky" Custom+exclude+rules:="Vlastn\u00ed pravidla pro v\u00fdjimky: (Jedno na \u0159\u00e1dek)<\/em>" Allow+update="Povolit aktualizace" Save="Ulo\u017eit" Save+and+Close="Ulo\u017eit a Zav\u0159\u00edt" Close="Zav\u0159\u00edt" Data+Export="Export dat" Export+Options="Mo\u017enosti" All/None="V\u0161e\/\u017d\u00e1dn\u00fd" Default="V\u00fdchoz\u00ed" Allow+installing+.user.js+files="Povolit instalov\u00e1n\u00ed .user.js soubor\u016f na\u010dten\u00e9 Maxthon" Search+URL:+="hledat URL: " Search+hint="(?)<\/a>" Export+to+zip+file="Exportovat do souboru zip" Vacuum+data="Vypr\u00e1zdnit data" Vacuum+hint="(?)<\/a>" Check+for+updates="Zkontrolovat aktualizace" Edit="Editovat" Remove="Odstranit" Null+name="Jm\u00e9no nebylo definov\u00e1no" Author:+="Autor: " Disable="Vypnout" Enable="Zapnout" Modifications+are+not+saved!="Modifikace nen\u00ed ulo\u017eena! Klikni na OK pro zbaven\u00ed se j\u00ed, nebo na zru\u0161it pro z\u016fst\u00e1n\u00ed zde." Data+vacuumed="Data vypr\u00e1zdn\u011bna" Export="Exportovat" Exporting...="Exportuji..." Custom+meta+data="Vlastn\u00ed meta data" Manage+scripts="\u0158\u00edzen\u00ed skript\u016f" Find+scripts+for+this+site="Najdi skripty pro tuto str\u00e1nku" Back="Zp\u011bt" Script+commands...="Skriptov\u00e9 p\u0159\u00edkazy..." Scripts+enabled="Skripty zapnuty"[lang] __translator="Gerald " __lang="en" Search$1="http:\/\/www.google.com\/search?q=$1" __font="html{font-family:Calibri,Arial;}" Violentmonkey+link="Violentmonkey<\/a>" Designed+by+Gerald="Designed by Gerald<\/a>" default="(default)" Custom+include+rules:="Custom include rules: (One per line)<\/em>" Custom+match+rules:="Custom match rules: (One per line)<\/em>" Custom+exclude+rules:="Custom exclude rules: (One per line)<\/em>" Save+and+Close="Save & Close" Export+Options="Options" Allow+installing+.user.js+files="Allow installing .user.js files loaded by Maxthon" Search+hint="(?)<\/a>" Global+excludes:+="Global excludes: (One per line)<\/em>" Global+exclude+hint="(?)<\/a>" Vacuum+hint="(?)<\/a>" Modifications+are+not+saved!="Modifications are not saved!\nClick OK to discard them or cancel to stay."[lang] __translator="10ours" __lang="fr" Search$1="http:\/\/www.google.com\/search?q=$1" Updating...="Mise à jour..." Checking+for+updates...="Vérification des mises à jour..." Failed+fetching+update+information.="Impossible de trouver des mises à jour." No+update+found.="Aucune mise à jour trouvée !" Script+updated.="Script mis à jour." Error+fetching+script!="Erreur de lecture du script !" Script+installed.="Script installé." Do+you+want+to+install+this+UserScript?="Voulez-vous installer cet UserScript?" New="Nouveau" Get+more+scripts+from+userscripts.org="Plus de scripts à partir de userscripts.org" Check+all+for+updates="Vérifier les mises à jour pour tous" Advanced="Avancé" Installed+Scripts="Scripts installés" Show+details="Montrer les détails" Violentmonkey+link="Violentmonkey<\/a>" Designed+by+Gerald="Programmé par Gerald<\/a> et traduit par 10ours" Script+Editor="Editeur de script" Name:="Nom : " Homepage:="Page : " Includes="Inclure" Keep+original+include+rules="Conserver les règles d´inclusion originales" Custom+include+rules:="Personnaliser les règles d´inclusion : (Une par ligne)<\/em>" Matches="Correspondances" Keep+original+match+rules="Conserver les règles de correspondance originales" Custom+match+rules:="Personnaliser les règles de correspondance : (Une par ligne)<\/em>" Excludes="Exclure" Keep+original+exclude+rules="Conserver les règles d´exclusion originales" Custom+exclude+rules:="Personnaliser les règles d´exclusion : (Une par ligne)<\/em>" Allow+update="Autoriser les mises à jour" Save="Enregistrer" Save+and+Close="Enregistrer et Fermer" Close="Fermer" Data+Export="Exporter les données" All/None="Toutes\/Aucune" Default="Par défaut" Allow+installing+.user.js+files="Autoriser l´installation de fichiers .user.js" Search+URL:+="URL de recherche : " Search+hint="(?)<\/a>" Data="Données" Export+to+zip+file="Exporter en fichier zip" Vacuum+data="Traitement des données" Vacuum+hint="(?)<\/a>" Check+for+updates="Vérifier les mises à jour" Edit="Editer" Remove="Supprimer" Author:+="Auteur : " Disable="Désactiver" Enable="Activer" Modifications+are+not+saved!="Les modifications ne sont pas enregistrées !\n OK pour continuer ou annuler pour revenir." Data+vacuumed="Données traitées" Export="Exporter" Exporting...="Exportation..." Custom+meta+data="Personnaliser les meta data" Manage+scripts="Gérer les scripts" Find+scripts+for+this+site="Trouver des scripts pour ce site" Back="Retour" Script+commands...="Commandes de script..." Scripts+enabled="Scripts activés"[lang] __translator="MISI90 " __lang="pl" Search$1="http:\/\/www.google.com\/search?q=$1" Updating...="Aktualizowanie..." New+version+found.="Znaleziono now\u0105 wersj\u0119." Checking+for+updates...="Sprawdzanie aktualizacji..." Failed+fetching+update+information.="B\u0142\u0105d pobierania informacji aktualizacji." No+update+found.="Nie znaleziono aktualizacji." Script+updated.="Skrypt zaktualizowany." Error+fetching+script!="B\u0142\u0105d przy pobieraniu skryptu!" Script+installed.="Skrypt zainstalowany" Do+you+want+to+install+this+UserScript?="Czy chcesz zainstalowa\u0107 ten UserScript?" Options="Opcje" New="Nowy" Get+more+scripts+from+userscripts.org="Znajd\u017a nowe skrypty na userscripts.org" Check+all+for+updates="Sprawd\u017a aktualizacje dla wszystkich" Advanced="Zaawansowane" Installed+Scripts="Zainstalowane skrypty" Show+details="Poka\u017c szczeg\u00f3\u0142y" Violentmonkey+link="Violentmonkey<\/a>" Designed+by+Gerald="Stworzone przez Gerald<\/a>" Script+Editor="Edytor skrypt\u00f3w" Name:="Nazwa:" Run+at:="Uruchom gdy: " default="(domy\u015blnie)" Homepage:="Strona domowa:" Update+URL:="URL do aktualizacji:" Download+URL:="URL do pobrania:" Includes="Includes" Keep+original+include+rules="Zachowaj oryginalne zasady include" Custom+include+rules:="W\u0142asne zasady include: (Jedna na lini\u0119)<\/em>" Keep+original+match+rules="Zachowaj oryginalne zasady match" Custom+match+rules:="W\u0142asne zasady match: (Jedna na lini\u0119)<\/em>" Excludes="Excludes" Keep+original+exclude+rules="Zachowaj oryginalne zasady exclude" Custom+exclude+rules:="W\u0142asne zasady exclude: (Jedna na lini\u0119)<\/em>" Allow+update="Zezw\u00f3l na aktualizacje" Save="Zapisz" Save+and+Close="Zapisz i zamknij" Close="Zamknij" Data+Export="Eksport danych" Export+Options="Opcje" Export+script+data="Eksportuj dane skryptu" All/None="Wszystkie\/\u017baden" Default="Domy\u015blne" Allow+installing+.user.js+files="Zezw\u00f3l na instalowanie plik\u00f3w .user.js \u0142adowanych przez Oper\u0119" Automatically+check+scripts+for+updates+every+day="Automatycznie sprawdzaj aktualizacje dla skrypt\u00f3w ka\u017cdego dnia" Search+URL:+="Adres wyszukiwarki:" Search+hint="(?)<\/a>" Global+excludes:+="Global excludes: (One per line)<\/em>" Global+exclude+hint="(?)<\/a>" Data="Dane" Export+to+zip+file="Eksportuj do pliku zip" Import+from+zip+file="Importuj z pliku zip" Vacuum+data="Wyczy\u015b\u0107 dane" Vacuum+hint="(?)<\/a>" Check+for+updates="Sprawd\u017a aktualizacje" Edit="Edytuj" Remove="Usu\u0144" Null+name="Pusta nazwa" Author:+="Autor: " Disable="Wy\u0142\u0105cz" Enable="W\u0142\u0105cz" Modifications+are+not+saved!="Modyfikacje nie zosta\u0142y zapisane! Kliknij OK aby wyj\u015b\u0107 lub Anuluj aby zosta\u0107." $1+item(s)+are+imported.="$1 pozycja(e) zaimportowana(e)." Data+vacuumed="Dane wyczyszczone" Export="Eksportuj" Exporting...="Eksportowanie..." Custom+meta+data="W\u0142asne dane meta" Manage+scripts="Zarz\u0105dzaj skryptami" Find+scripts+for+this+site="Znajd\u017a skrypty dla tej strony" Back="Wstecz" Script+commands...="Komendy skryptu..." Scripts+enabled="Skrypty w\u0142\u0105czone"[lang] __translator="Wald" __lang="ru" Search$1="http:\/\/www.google.com\/search?q=$1" Updating...="\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435..." New+version+found.="\u041d\u0430\u0439\u0434\u0435\u043d\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f." Checking+for+updates...="\u041f\u043e\u0438\u0441\u043a \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439..." Failed+fetching+update+information.="\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u0445." No+update+found.="\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e." Script+updated.="\u0421\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d." Error+fetching+script!="\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430!" Script+installed.="\u0421\u043a\u0440\u0438\u043f\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d." Do+you+want+to+install+this+UserScript?="\u0412\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442?" Options="\u041e\u043f\u0446\u0438\u0438" New="\u041d\u043e\u0432\u044b\u0439" Get+more+scripts+from+userscripts.org="\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043e\u0442 userscripts.org" Check+all+for+updates="\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0441\u0435\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439" Advanced="\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e" Installed+Scripts="\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b" Show+details="\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438" Loading...="\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430..." Violentmonkey+link="Violentmonkey<\/a>" Designed+by+Gerald="\u0414\u0438\u0437\u0430\u0439\u043d \u043e\u0442 Gerald<\/a>" Script+Editor="\u0420\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432" Name:="\u0418\u043c\u044f:" Run+at:="\u0417\u0430\u043f\u0443\u0441\u043a:" default="(\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e)" Homepage:="\u0414\u043e\u043c\u0430\u0448\u043d\u044f\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430:" Update+URL:="URL \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f:" Download+URL:="URL \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438:" Includes="\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f" Keep+original+include+rules="\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f" Custom+include+rules:="\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: (\u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0432 \u0441\u0442\u0440\u043e\u043a\u0435)<\/em><\/em>" Matches="\u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f" Keep+original+match+rules="\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f" Custom+match+rules:="\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f: (\u041f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443)<\/em>" Excludes="\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f" Keep+original+exclude+rules="\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f" Custom+exclude+rules:="\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: (\u041f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443)<\/em>" Allow+update="\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435" Save="\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c" Save+and+Close="\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u044c" Close="\u0417\u0430\u043a\u0440\u044b\u0442\u044c" Data+Export="\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0434\u0430\u043d\u043d\u044b\u0445" Export+Options="\u041e\u043f\u0446\u0438\u0438" Export+script+data="\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u0430" All/None="\u0412\u0441\u0435\/\u041d\u0438\u0447\u0435\u0433\u043e" Default="\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e" Allow+installing+.user.js+files="\u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0444\u0430\u0439\u043b\u043e\u0432 .user.js..." Automatically+check+scripts+for+updates+every+day="\u041a\u0430\u0436\u0434\u044b\u0439 \u0434\u0435\u043d\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432" Search+URL:+="\u041f\u043e\u0438\u0441\u043a URL: " Search+hint="(?)<\/a>" Global+excludes:+="\u0413\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: (\u041f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443)<\/em>" Global+exclude+hint="(?)<\/a>" Data="\u0414\u0430\u043d\u043d\u044b\u0435" Export+to+zip+file="\u042d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 ZIP \u0444\u0430\u0439\u043b" Import+from+zip+file="\u0418\u043c\u043f\u043e\u0440\u0442 \u0438\u0437 ZIP-\u0444\u0430\u0439\u043b\u0430" Vacuum+data="\u0414\u0430\u043d\u043d\u044b\u0435 \u043a\u0435\u0448\u0430" Vacuum+hint="(?)<\/a>" Check+for+updates="\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439" Edit="\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c" Remove="\u0423\u0434\u0430\u043b\u0438\u0442\u044c" Null+name="\u0411\u0435\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f" Author:+="\u0410\u0432\u0442\u043e\u0440: " Disable="\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c" Enable="\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c" Modifications+are+not+saved!="\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b!\n\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u041e\u041a, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0438\u0445 \u0438\u043b\u0438 \u041e\u0442\u043c\u0435\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0442\u0430\u0442\u044c\u0441\u044f." $1+item(s)+are+imported.="$1 \u0441\u043a\u0440\u0438\u043f\u0442(\u043e\u0432) \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043e." Data+vacuumed="\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0447\u0438\u0449\u0435\u043d\u044b" Export="\u042d\u043a\u0441\u043f\u043e\u0440\u0442" Exporting...="\u042d\u043a\u0441\u043f\u043e\u0440\u0442..." Custom+meta+data="\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043c\u0435\u0442\u0430-\u0434\u0430\u043d\u043d\u044b\u0435" Manage+scripts="\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438" Find+scripts+for+this+site="\u041d\u0430\u0439\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430" Back="\u041d\u0430\u0437\u0430\u0434" Script+commands...="\u041a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430..." Scripts+enabled="\u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b"[lang] __translator="Gerald " __lang="zh" Search$1="http:\/\/www.baidu.com\/s?wd=$1" Updating...="\u6b63\u5728\u66f4\u65b0..." New+version+found.="\u53d1\u73b0\u65b0\u7248\u672c\u3002" Checking+for+updates...="\u6b63\u5728\u68c0\u67e5\u66f4\u65b0..." Failed+fetching+update+information.="\u83b7\u53d6\u66f4\u65b0\u4fe1\u606f\u5931\u8d25\u3002" No+update+found.="\u672a\u53d1\u73b0\u65b0\u7248\u672c\u3002" Script+updated.="\u811a\u672c\u5df2\u66f4\u65b0\u3002" Error+fetching+script!="\u83b7\u53d6\u811a\u672c\u53d1\u751f\u9519\u8bef\uff01" Script+installed.="\u811a\u672c\u5df2\u5b89\u88c5\u3002" Do+you+want+to+install+this+UserScript?="\u786e\u5b9a\u5b89\u88c5\u6b64\u811a\u672c\uff1f" __font="html{font-family:\u5fae\u8f6f\u96c5\u9ed1;}" Violentmonkey="\u66b4\u529b\u7334" Options="\u9009\u9879" New="\u65b0\u5efa" Get+more+scripts+from+userscripts.org="\u4eceuserscripts.org\u83b7\u53d6\u66f4\u591a\u811a\u672c" Check+all+for+updates="\u5168\u90e8\u66f4\u65b0" Advanced="\u9ad8\u7ea7\u9009\u9879" Installed+Scripts="\u5df2\u5b89\u88c5\u7684\u811a\u672c" Show+details="\u663e\u793a\u8be6\u60c5" Loading...="\u52a0\u8f7d\u4e2d..." Violentmonkey+link="\u66b4\u529b\u7334<\/a>" Designed+by+Gerald="Gerald<\/a> \u5236\u4f5c" Script+Editor="\u811a\u672c\u7f16\u8f91\u5668" Name:="\u540d\u5b57\uff1a" Run+at:="\u8fd0\u884c\u65f6\u673a\uff1a" default="\uff08\u9ed8\u8ba4\uff09" Homepage:="\u4e3b\u9875\uff1a" Update+URL:="\u68c0\u67e5\u66f4\u65b0\u5730\u5740\uff1a" Download+URL:="\u4e0b\u8f7d\u66f4\u65b0\u5730\u5740\uff1a" Includes="\u5305\u542b\u89c4\u5219" Keep+original+include+rules="\u4fdd\u7559\u539f\u6709\u7684\u5305\u542b\u89c4\u5219" Custom+include+rules:="\u81ea\u5b9a\u4e49\u5305\u542b\u89c4\u5219\uff1a\uff08\u6bcf\u884c\u4e00\u4e2a\uff09<\/em>" Matches="\u5339\u914d\u89c4\u5219" Keep+original+match+rules="\u4fdd\u7559\u539f\u6709\u7684\u5339\u914d\u89c4\u5219" Custom+match+rules:="\u81ea\u5b9a\u4e49\u5339\u914d\u89c4\u5219\uff1a\uff08\u6bcf\u884c\u4e00\u4e2a\uff09<\/em>" Excludes="\u6392\u9664\u89c4\u5219" Keep+original+exclude+rules="\u4fdd\u7559\u539f\u6709\u7684\u6392\u9664\u89c4\u5219" Custom+exclude+rules:="\u81ea\u5b9a\u4e49\u6392\u9664\u89c4\u5219\uff1a\uff08\u6bcf\u884c\u4e00\u4e2a\uff09<\/em>" Allow+update="\u5141\u8bb8\u66f4\u65b0" Save="\u4fdd\u5b58" Save+and+Close="\u4fdd\u5b58\u5e76\u5173\u95ed" Close="\u5173\u95ed" Data+Export="\u6570\u636e\u5bfc\u51fa" Export+Options="\u9009\u9879" Export+script+data="\u5bfc\u51fa\u811a\u672c\u6570\u636e" All/None="\u5168\u9009\/\u4e0d\u9009" Theme:="\u4e3b\u9898\uff1a" Default="\u9ed8\u8ba4" Dark="\u6df1\u8272" Allow+installing+.user.js+files="\u5141\u8bb8\u5b89\u88c5\u50b2\u6e38\u4e2d\u6253\u5f00\u7684.user.js\u6587\u4ef6" Automatically+check+scripts+for+updates+every+day="\u6bcf\u5929\u81ea\u52a8\u68c0\u67e5\u811a\u672c\u66f4\u65b0" Search+URL:+="\u641c\u7d22\u7f51\u5740\uff1a" Search+hint="\u751f\u6210\u7684\u5173\u952e\u5b57\u3002\">(?)<\/a>" Global+excludes:+="\u5168\u5c40\u6392\u9664\u89c4\u5219\uff1a\uff08\u6bcf\u884c\u4e00\u4e2a\uff09<\/em>" Global+exclude+hint="(?)<\/a>" Data="\u6570\u636e" Export+to+zip+file="\u5bfc\u51fa\u4e3azip\u6587\u4ef6" Import+from+zip+file="\u5bfc\u5165\u81eazip\u6587\u4ef6" Vacuum+data="\u6574\u7406\u6570\u636e" Vacuum+hint="(?)<\/a>" Check+for+updates="\u67e5\u627e\u66f4\u65b0" Edit="\u7f16\u8f91" Remove="\u79fb\u9664" Null+name="\u540d\u5b57\u4e3a\u7a7a" Author:+="\u4f5c\u8005\uff1a" Disable="\u7981\u7528" Enable="\u542f\u7528" Modifications+are+not+saved!="\u4fee\u6539\u5c1a\u672a\u4fdd\u5b58\uff01\n\u70b9\u51fb\u786e\u5b9a\u653e\u5f03\u4fee\u6539\u6216\u70b9\u51fb\u53d6\u6d88\u505c\u7559\u6b64\u9875\u9762\u3002" $1+item(s)+are+imported.="\u5df2\u5bfc\u5165$1\u4e2a\u811a\u672c\u3002" Data+vacuumed="\u6570\u636e\u5df2\u6574\u7406" Export="\u5bfc\u51fa" Exporting...="\u6b63\u5728\u5bfc\u51fa..." Edit+code="\u7f16\u8f91\u4ee3\u7801" Custom+meta+data="\u81ea\u5b9a\u4e49\u5143\u6570\u636e" Manage+scripts="\u7ba1\u7406\u811a\u672c" Find+scripts+for+this+site="\u4e3a\u6b64\u7ad9\u70b9\u67e5\u627e\u811a\u672c" Back="\u8fd4\u56de" Script+commands...="\u811a\u672c\u547d\u4ee4..." Scripts+enabled="\u542f\u7528\u811a\u672c" Data Loss

Warning: Data Loss Due to Update

It seems that you have just updated Maxthon from an earlier version. This may cause extension data loss due to a bug fix.

Cause: Extension data was stored in %TMP% (which may cause frequent data loss) in earlier versions, but is now moved to %AppData%.

Solution: You may either restore your data from a backup or just move your session files from %TMP% to %AppData% when Maxthon is closed.

Gerald <gera2ld@163.com>

数据丢失

警告:更新导致的数据丢失

您似乎刚刚更新了您的傲游浏览器。新版本修复的一个漏洞可能导致扩展数据发生丢失。

原因:在之前的版本中,扩展数据保存在临时文件中(因此可能经常发生数据丢失),现在移动到了用户数据文件夹下。

解决方法:所以您可以从备份恢复数据,或者在关闭傲游浏览器后将数据文件从临时文件夹移动到用户数据文件夹中。

Gerald <gera2ld@163.com>

Obsolete Maxthon

Warning: Obsolete Maxthon

Violentmonkey 2 requires Maxthon v4 and later.

It is highly recommended that you visit Maxthon.com to get the latest Maxthon. However, if you insist on this version, please visit Violentmonkey support page for a proper download and more details.

Versions earlier than v4.1.1.1600 may have bugs below:

  • Scripts do not run at all.
  • Data loss after clearing cache files.
So please keep your Maxthon up with the latest version.

Gerald <gera2ld@163.com>

旧版傲游

警告:旧版傲游

暴力猴2需要在傲游v4及以后的版本上运行。

建议您去傲游官网下载最新版。如果您一定要使用旧版,请访问暴力猴支持页面获取合适的下载和更多相关信息。

v4.1.1.1600以前的版本可能有以下问题:

  • 脚本不能运行。
  • 清理临时文件后数据丢失。
因此请更新傲游到最新版本。

Gerald <gera2ld@163.com>

Violentmonkey

Options - Violentmonkey

Installed Scripts
Loading...
Violentmonkey link - Designed by Gerald - 2013

Script Editor

Name: Run at:
Homepage:
Update URL:
Download URL:
Includes
Matches
Excludes

Data Export

Installed Scripts
Export Options

Advanced

Search URL: Search hint

Global excludes: Global exclude hint
Data
Vacuum hint
function split(e){return e.replace(/^\s+|\s+$/g,"").split(/\s*\n\s*/).filter(function(e){return e})}function updateMove(e){if(e){var t=e.querySelectorAll(".move");t[0].disabled=!e.previousSibling,t[1].disabled=!e.nextSibling}}function allowUpdate(e){return e.update&&(e.custom.updateURL||e.meta.updateURL)}function getIcon(e){var t=cache[e.meta.icon];return t?"data:image/x;base64,"+t:"icons/icon_64.png"}function modifyItem(d,r){if(r)with(r.message&&(d.querySelector(".message").innerHTML=r.message),d.querySelector(".update"))r.hideUpdate?classList.add("hide"):classList.remove("hide")}function loadItem(e,t,a){e.innerHTML=''+''+""+""+(t.meta.version?"v"+t.meta.version:"")+""+(allowUpdate(t)?""+_("Check for updates")+" ":"")+'
'+""+"
"+" "+" "+""+""+""+"
",e.className=t.enabled?"":"disabled";var i=e.querySelector(".name"),n=t.custom.name||t.meta.name;i.title=n||"",i.innerHTML=n?n.replace(/&/g,"&").replace(/"+_("Null name")+"
",(n=t.custom.homepage||t.meta.homepage)&&(i.href=n),t.meta.author&&(e.querySelector(".author").innerText=_("Author: ")+t.meta.author),i=e.querySelector(".descrip"),i.innerText=i.title=t.meta.description||"",modifyItem(e,a)}function addItem(e){var t=document.createElement("div");return loadItem(t,e),L.appendChild(t),t}function moveUp(e,t){var a=ids[e];ids[e]=ids[e-1],ids[e-1]=a,L.insertBefore(t,t.previousSibling),rt.post("SetOption",{key:"ids",wkey:"ids",data:ids}),updateMove(t),updateMove(t.nextSibling)}function switchTo(e){panel.classList.add("hide"),e.classList.remove("hide"),panel=e}function showDialog(e,t){dialogs.length||(O.classList.remove("hide"),setTimeout(function(){O.classList.add("overlay")},1)),t||(t=dialogs.length?dialogs[dialogs.length-1].zIndex+1:1),dialogs.push(e),O.style.zIndex=e.style.zIndex=e.zIndex=t,e.classList.remove("hide"),e.style.top=(window.innerHeight-e.offsetHeight)/2+"px",e.style.left=(window.innerWidth-e.offsetWidth)/2+"px"}function closeDialog(){dialogs.pop().classList.add("hide"),dialogs.length?O.style.zIndex=dialogs.length>1?dialogs[dialogs.length-1]:1:(O.classList.remove("overlay"),setTimeout(function(){O.classList.add("hide")},500))}function confirmCancel(e){return!e||confirm(_("Modifications are not saved!"))}function xLoad(){xL.innerHTML="",xE.disabled=!1,xE.innerHTML=_("Export"),ids.forEach(function(e){var t=document.createElement("div");t.className="ellipsis",t.innerText=t.title=map[e].meta.name,xL.appendChild(t)})}function exportStart(e){function t(){if(c=!0,!o)return zip.createWriter(new zip.BlobWriter,function(e){o=e,t()}),void 0;var e=s.shift();if(e){if(e.name)return o.add(e.name,new zip.TextReader(e.content),t),void 0;o.close(function(e){var t=URL.createObjectURL(e),a=document.createEvent("MouseEvent"),i=document.createElement("a");a.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.href=t,i.download="scripts.zip",i.dispatchEvent(a),o=null,URL.revokeObjectURL(t),i.removeAttribute("href"),i.removeAttribute("download"),X.close()})}c=!1}function a(e){s.push(e),c||t()}var i,n,o=null,s=[],c=!1,d={},l={scripts:{},settings:e.settings};xD.checked&&(l.values={}),e.data.forEach(function(e){var t=0;for(i=n=e.custom.name||e.meta.name||"Noname";d[i];)i=n+"_"+ ++t;d[i]=1,a({name:i+".user.js",content:e.code}),l.scripts[i]={id:e.id,custom:e.custom,enabled:e.enabled,update:e.update},i=getNameURI(e),xD.checked&&(n=getItem("val:"+i))&&(l.values[i]=n)}),a({name:"ViolentMonkey",content:JSON.stringify(l)}),a({})}function edit(e){E.cur=L.childNodes[e],rt.post("GetScript",map[ids[e]].id)}function eSave(){var e=E.scr.custom;switch(e.name=mN.value,e.homepage=mH.value,e.updateURL=mU.value,e.downloadURL=mD.value,mR.value){case"start":e["run-at"]="document-start";break;case"body":e["run-at"]="document-body";break;case"end":e["run-at"]="document-end";break;default:delete e["run-at"]}e._include=cI.checked,e.include=split(mI.value),e._match=cM.checked,e.match=split(mM.value),e._exclude=cE.checked,e.exclude=split(mE.value),E.scr.update=U.checked,E.scr.code=T.getValue(),rt.post("ParseScript",{script:E.scr,message:""}),T.markClean(),eS.disabled=eSC.disabled=!0,loadItem(E.cur,E.scr),updateMove(E.cur)}function eClose(){T.setValue(""),switchTo(N)}function initMetaButton(e){e?(C.classList.toggle("hide"),M.classList.toggle("hide")):(C.classList.remove("hide"),M.classList.add("hide")),bM.innerHTML=C.classList.contains("hide")?_("Edit code"):_("Custom meta data")}function loadTheme(e){e=themes[e]||themes["default"],$("theme").href="themes/"+e[0],T.setOption("theme",e[1])}function loadOptions(e){ids=e.ids,map=e.map,cache=e.cache,L.innerHTML="",ids.forEach(function(e){addItem(map[e])}),updateMove(L.firstChild),updateMove(L.lastChild),$("cInstall").checked=e.installFile,$("cUpdate").checked=e.autoUpdate,$("tSearch").value=e.search,$("tExclude").value=e.gExc.join("\n"),($("cDetail").checked=e.showDetails)||L.classList.add("simple"),xD.checked=e.withData,loadTheme(th.value=e.theme||"default")}var $=document.getElementById.bind(document),N=$("main"),L=$("sList"),O=$("overlay"),ids,map={};zip.workerScriptsPath="lib/zip.js/",rt.listen("ShowMessage",function(e){alert(e)}),L.onclick=function(e){var t,a=e.target,i=a.getAttribute("data");if(i){for(e.preventDefault(),t=a;t&&t.parentNode!=L;t=t.parentNode);var n=Array.prototype.indexOf.call(L.childNodes,t);switch(i){case"edit":edit(n);break;case"enable":e=map[ids[n]],(e.enabled=!e.enabled)?(t.classList.remove("disabled"),a.innerText=_("Disable")):(t.classList.add("disabled"),a.innerText=_("Enable")),rt.post("EnableScript",{id:e.id,data:e.enabled});break;case"remove":rt.post("RemoveScript",n),delete map[ids.splice(n,1)[0]],L.removeChild(t),n==L.childNodes.length&&n--,updateMove(L.childNodes[n]);break;case"update":rt.post("CheckUpdate",n);break;case"up":t.previousSibling&&moveUp(n,t);break;case"down":t.nextSibling&&moveUp(n+1,t.nextSibling)}}},rt.listen("AddScript",function(e){ids.push(e.id),e=addItem(map[e.id]=e),updateMove(e),updateMove(e.previousSibling)}),$("bNew").onclick=function(){rt.post("NewScript")},$("bUpdate").onclick=function(){rt.post("CheckUpdateAll")},$("cDetail").onchange=function(){L.classList.toggle("simple"),rt.post("SetOption",{key:"showDetails",data:this.checked})};var panel=N,dialogs=[];O.onclick=function(){dialogs.length&&(dialogs[dialogs.length-1].close||closeDialog)()},initFont(),initI18n();var A=$("advanced");$("bAdvanced").onclick=function(){showDialog(A)},$("cInstall").onchange=function(){rt.post("SetOption",{key:"installFile",data:this.checked})},$("cUpdate").onchange=function(){rt.post("AutoUpdate",this.checked)},$("bDefSearch").onclick=function(){$("tSearch").value=_("Search$1")},$("aExport").onclick=function(){showDialog(X),xLoad()},$("aImport").onchange=function(e){zip.createReader(new zip.BlobReader(e.target.files[0]),function(e){e.getEntries(function(e){function t(){var a=e.shift();a?a.getData(n,function(e){var n={code:e};i.scripts&&(v=i.scripts[a.filename.slice(0,-8)])&&(n.id=v.id,n.data=v),rt.post("ParseScript",n),o++,t()}):(alert(format(_("$1 item(s) are imported."),o)),location.reload())}var a,i={},n=new zip.TextWriter,o=0;for(a=0;a Popup Menu - Violentmonkey
function $(e){return document.getElementById(e)}function loadItem(e,t){t?(e.firstChild.innerText=e.symbol,e.classList.remove("disabled")):(e.firstChild.innerText="",e.classList.add("disabled"))}function addItem(e,t){var a=document.createElement("div");a.innerHTML=""+e,"title"in t&&(a.title="string"==typeof t.title?t.title:e,delete t.title),a.className="ellipsis",t.holder.appendChild(a),"symbol"in t?a.firstChild.innerText=t.symbol:"data"in t&&(t.symbol="✓");for(e in t)a[e]=t[e];"data"in t&&loadItem(a,t.data)}function menuCommand(e){e=e.target,rt.post(e.source,{topic:"Command",data:e.cmd})}function menuScript(e){var t=getItem("vm:"+e);if(t){var a=t.meta.name?t.meta.name.replace(/&/g,"&").replace(/"+_("Null name")+"
";addItem(a,{holder:pB,data:t.enabled,title:t.meta.name,onclick:function(){loadItem(this,t.enabled=!t.enabled),rt.post("EnableScript",{id:e,data:t.enabled})}})}}function getPopup(){getPopup.flag++,setTimeout(function(){--getPopup.flag||br.executeScript("setPopup();")},200)}function load(e){pT.innerHTML=pB.innerHTML=cT.innerHTML=cB.innerHTML="",C.classList.add("hide"),P.classList.remove("hide"),addItem(_("Manage scripts"),{holder:pT,symbol:"➤",title:!0,onclick:function(){br.tabs.newTab({url:rt.getPrivateUrl()+"options.html",activate:!0})}}),e&&addItem(_("Find scripts for this site"),{holder:pT,symbol:"➤",title:!0,onclick:function(){var e="site:userscripts.org+inurl:show+"+br.tabs.getCurrentTab().url.replace(/^.*?:\/\/([^\/]*?)\.\w+\/.*$/,function(e,t){return t.replace(/\.(com|..)$/,"").replace(/\./g,"+")});br.tabs.newTab({url:format(getString("search"),e),activate:!0})}});var t=e&&e.data;t&&t[0]&&t[0].length&&(addItem(_("Back"),{holder:cT,symbol:"◄",title:!0,onclick:function(){C.classList.add("hide"),P.classList.remove("hide")}}),t[0].forEach(function(t){addItem(t[0],{holder:cB,symbol:"➤",title:!0,onclick:menuCommand,cmd:t[0],source:e.source})}),addItem(_("Script commands..."),{holder:pT,symbol:"➤",title:!0,onclick:function(){P.classList.add("hide"),C.classList.remove("hide")}}));var a=getItem("isApplied");addItem(_("Scripts enabled"),{holder:pT,data:a,title:!0,onclick:function(){rt.post("EnableScript",{data:a=!a}),loadItem(this,a)}}),t&&t[1]&&t[1].length?(pR.classList.remove("hide"),t[1].forEach(menuScript)):pR.classList.add("hide"),e||getPopup()}var P=$("popup"),C=$("commands"),pR=P.querySelector(".expand"),pT=P.querySelector("td"),pB=P.querySelector(".expanda"),cT=C.querySelector("td"),cB=C.querySelector(".expanda");getPopup.flag=0,initFont(),load(),rt.listen("GetPopup",getPopup),rt.listen("SetPopup",load),br.onBrowserEvent=function(e){switch(e.type){case"TAB_SWITCH":case"ON_NAVIGATE":load()}};/* Styles >>> */ html,body,.float,.frame{background:#333;color:#ddd;} h1,h2{text-shadow:olive 3px 3px 5px;} a{color:dodgerblue;} fieldset{border:1px solid #555;} button{background:#333;color:#ddd;border:1px solid #555;border-radius:5px;} button:hover{background:dodgerblue;color:yellow;} button:disabled{background:gray;color:silver;} #overlay{background:gray;} #overlay.overlay{opacity:0.6;} .popup .expand>td{border-top:1px dashed #555;} .em{font-style:italic;} .new{color:yellow;} #sList>div{border-top:1px dashed #555;} #sList>div:last-child{border-bottom:1px dashed #555;} #sList>.hint{border:2px solid silver;box-shadow:5px 10px 15px rgba(0,0,0,0.4);} #sList .version,#sList .author{color:gray;font-style:italic;} #sList .message{color:#ccc;} #sList .disabled{color:#ccc;background:#222;} #sList .disabled a{color:#ccc;} #sList .disabled img{opacity:0.3;} .list,textarea,input[type=text]{background:black;color:#ddd;} .list>div{border-bottom:1px dashed #555;} .list .selected{background:silver;color:#333;} #xOptions>div{background:#eee;box-shadow:5px 10px 15px rgba(0,0,0,0.4);border:1px solid gray;} #xOptions>div{background:#333;box-shadow:5px 10px 15px rgba(0,0,0,0.4);border:1px solid #555;} /* <<< Styles */ /* Styles >>> */ html,body{background:#eee;} h1,h2{text-shadow:#999 3px 3px 5px;} a{color:dodgerblue;} #overlay{background:black;} #overlay.overlay{opacity:0.6;} .float,.frame{background:lightgray;} .popup .expand>td{border-top:1px dashed gray;} .em{font-style:italic;} .new{color:red;} #sList>div{border-top:1px dashed gray;} #sList>div:last-child{border-bottom:1px dashed gray;} #sList .version,#sList .author{color:gray;font-style:italic;} #sList .message{color:gray;} #sList .disabled{color:gray;background:silver;} #sList .disabled a{color:gray;} #sList .disabled img{opacity:0.3;} .list{background:white;} .list>div{border-bottom:1px dashed lightgray;} .list .selected{background:gray;color:white;} #xOptions>div{background:#eee;box-shadow:5px 10px 15px rgba(0,0,0,0.4);border:1px solid gray;} .menu>div:hover{background:gray;color:gold;} .menu>div.disabled{color:gray;} .menu>div.disabled:hover{color:silver;} /* <<< Styles */ /* Layout >>> */ .center{text-align:center;} .float,.frame{position:fixed;} .popup table,.frame{left:0;right:0;top:0;bottom:0;table-layout:fixed;width:100%;height:100%;} .float{margin:0 auto;padding:10px;border-radius:10px;border-spacing:10px;} .popup,.fill{height:100%;margin:0;padding:0;} .menu,.ellipsis{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;} .menu{overflow-y:auto;} .left{float:left;} .right{float:right;} .buttons{text-align:right;vertical-align:bottom;} .menu,.x{clear:both;margin:0;padding:0;} .hide{display:none;} tr.fill>td{height:100%;} tr{vertical-align:top;padding:0;height:1px;} tr.expand{height:auto;} .expandr{position:relative;} .expanda,#editor .CodeMirror{position:absolute;width:100%;height:100%;} textarea{width:100%;border:none;margin:0;padding:0;} fieldset{border-radius:5px;} #main{background:transparent;width:800px;margin:0 auto;} #main fieldset{position:relative;height:100%;padding:0;} #main legend{margin-left:10px;} #editor{border-spacing:10px;} #meta .expanda{height:100%;overflow:auto;} #meta .expanda>div{max-width:600px;margin:0 auto;} #meta label,#advanced label{display:block;} #meta table{width:100%;} #meta td{width:1px;white-space:nowrap;} #meta td.expand{width:auto;padding-right:10px;} #meta td.expand>*{width:100%;} #sList{overflow-x:hidden;overflow-y:auto;position:absolute;top:22px;left:0;right:0;bottom:10px;} #sList>.hint{position:fixed;top:40%;left:40%;right:40%;border:2px solid silver;border-radius:5px;padding:20px;z-index:9999;box-shadow:5px 10px 15px rgba(0,0,0,0.4);text-align:center;} #sList>div{display:block;padding:10px;overflow:hidden;height:80px;position:relative;} #sList.simple>div{height:50px;} #sList .version,#sList .author{margin-left:20px;} #sList.simple .author{display:none;} #sList.simple .descrip{display:none;} #sList .update{position:absolute;right:10px;top:10px;} #sList .message{position:absolute;bottom:10px;left:50px;} #sList .icon{width:32px;height:32px;margin:2px;position:absolute;} #sList .name{font-weight:bold;line-height:150%;display:inline-block;max-width:400px;margin-left:40px;} #sList .descrip{margin-left:40px;} #sList .panel{position:absolute;bottom:10px;right:10px;} #sList .panel>button{width:80px;} #sList .panel .move{width:40px;padding:1px 2px;} #overlay{position:fixed;top:0;bottom:0;left:0;right:0;-webkit-transition:all .5s linear;opacity:0;} #advanced{padding:20px;} #advanced fieldset>*:not(:first-child){display:inline-block;} #advanced legend{margin:0;} #tExclude{min-height:100px;} .list{overflow-x:hidden;overflow-y:auto;} .list>div{display:block;padding:2px 10px;cursor:pointer;} #export .list{width:400px;height:420px;} #xOptions{display:inline-block;position:relative;} #xOptions>div{display:none;position:absolute;padding:10px;} #xOptions>div>label{display:block;white-space:nowrap;} #xOptions:hover>div{display:block;} .menu>div{cursor:pointer;padding:5px;display:block;} .menu>div span{display:inline-block;width:20px;} #dImport{position:relative;} #aImport{display:block;position:absolute;width:100%;height:100%;cursor:default;opacity:0;top:0;left:0;} /* <<< Layout */