
git-svn-id: https://mathjax.svn.sourceforge.net/svnroot/mathjax/trunk@606 b8fd5906-0fad-46e2-a0d3-10d94ff285d1
44 lines
31 KiB
JavaScript
44 lines
31 KiB
JavaScript
/*************************************************************
|
|
*
|
|
* MathJax.js
|
|
*
|
|
* The main code for the MathJax math-typesetting library. See
|
|
* http://www.mathjax.org/ for details.
|
|
*
|
|
* ---------------------------------------------------------------------
|
|
*
|
|
* Copyright (c) 2009-2010 Design Science, Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
if (!window.MathJax) {window.MathJax = {}}
|
|
|
|
MathJax.Unpack = function (data) {
|
|
var k, d, n, m, i;
|
|
for (k = 0, m = data.length; k < m; k++) {
|
|
d = data[k];
|
|
for (i = 0, n = d.length; i < n; i++)
|
|
{if (typeof(d[i]) == 'number') {d[i] = d[d[i]]}}
|
|
data[k] = d.join('');
|
|
}
|
|
eval(data.join(''));
|
|
};
|
|
MathJax.isPacked = true;
|
|
|
|
MathJax.Unpack([
|
|
['if(','document.','getElementById','&&',1,'childNodes&&',1,'createElement','){','if(!','window.MathJax','){',10,'={}}',9,'MathJax.Hub','){MathJax.version="1.0.3";(','function(','d){','var b=','window[d];if(!','b){b','=window[d]={}}var ','f','=[];','var c=',17,'g','){var h=','g.','constructor',';if(!','h){h=','new Function','("")}','for(var ','i in g){if(i!=="',30,'"&&g','.hasOwnProperty','(i)){h[i]=g[i]}}','return ','h};var a=','function(){',41,33,'("',41,'arguments','.callee','.Init','.call(this,',48,')")};var e=a();e','.prototype','={bug_test:1};',9,'e',54,'.bug_test){a=',43,41,43,41,48,49,50,51,48,')}}}b.','Object','=c({',30,':a(),Subclass:',17,'g,i',28,'a();h.SUPER=this;h',50,'=this',50,';h','.Subclass','=this',82,';h.Augment=this.Augment;h.','protoFunction','=this.',86,';h.can=this.can;h.has=this.has;h.isa=this.isa;h',54,'=new this(f);h',54,'.',30,'=h;h.Augment(g,i);',41,'h},Init:',17,'g',28,'this;if(g','.length===','1&&g[0]===f','){return ','h}if(!(h ','instanceof ','g',49,')){h=new g',49,'(f)}',41,'h',50,'.apply(','h,g)||h},Augment:',17,'g,h){var i;if(g','!=null){for(i in ','g){if(g',39,'(i)){this','.',86,'(i,g[i','])}}if(g.toString!==this.prototype.toString&&g.toString!=={}.toString){this.protoFunction("toString",g.toString)}}','if(h',119,'h){if(','h',39,122,'[i]=h[i]}}}',41,'this},',86,':',17,'h,g){this',54,'[h]=g;','if(typeof',' g','==="function"){','g.SUPER=this.SUPER',54,'}},prototype:{Init',':function(){},','SUPER:',17,'g',104,'g',49,'.SUPER},can:',17,'g',104,'typeof(this[g','])==="function"},has:',17,'g',104,159,'])!=="undefined','"},isa:',17,'g){return(g ',106,70,')&&(this ',106,'g)}},can:',17,'g',104,'this',54,'.can',51,'g)},has:',17,'g',104,'this',54,'.has',51,'g)},isa:',17,'h){var g=this;while(',120,'===h',104,'true}else{g=g.SUPER}}',41,'false},SimpleSUPER:c({',30,':',17,'g',104,'this.SimpleSUPER.define(g)},define:',17,'g){var i={};if(g!=null){',35,'h in ',120,39,'(h)){this.',86,'(h,g[h',126,41,'i},wrap:',17,'i,h){',142,'(h',')==="function"&&','h','.toString','().match(/\\.\\s*SUPER\\s*\\(/)){var g=',33,'(this.wrapper);g.label=i;g','.original','=h;h=g;g',222,'=this.stringify}',41,'h},wrapper:',43,'var h=',48,49,';this.SUPER=h.SUPER[h.label];try{var g=h',226,'.apply(this',',',48,')}catch(i){','delete this.','SUPER;','throw i}',242,243,41,'g}.','toString().replace','(/^\\s*function \\(\\)\\s*\\{\\s*/i,"").replace(/\\s*\\}\\s*$/i,""),toString:',43,41,'this',226,222,238,226,',',48,')}})})})("MathJax");(',17,'BASENAME){var ','BASE=window[BASENAME','];',9,'BASE){',263,']={}}var ','CALLBACK','=',17,'data){var cb=',33,'("',41,48,49,'.execute',115,48,49,',',48,')");',35,'id in ','CALLBACK.prototype','){if(',287,39,'(id)){',142,'(data[id',165,'"){cb[id]=data[id]}else{cb[id]=',287,'[id]}}}cb',222,'=',287,222,';',41,'cb};',287,'={isCallback:true,hook',148,'data:[],object:window,execute:',43,9,'this.called||this.autoReset){this.called=!this.autoReset;',41,'this.hook',238,'.object,this','.data.concat([].slice.call(',48,',0)))}},reset:',43,242,'called},toString:',43,41,313,222,238,'.hook,',48,')}};var ISCALLBACK=',17,'f){return(typeof(f',220,'f.isCallback)};var EVAL=',17,'code',104,'eval.call(window,code)};EVAL("var __TeSt_VaR__ = 1','");if(','window.__TeSt_VaR__','){delete ',339,'}else{if(','window.execScript','){EVAL=',17,'code){BASE.__code=code;code="try {"+BASENAME+".__result = eval("+BASENAME+".__code)} catch(err) {"+BASENAME+".__result = err}";',343,'(code',');var result=BASE.__result;delete BASE.__result;delete BASE.__code;if(result instanceof Error){throw result}return result','}}else{EVAL=',17,346,'var head=(',1,'getElementsByTagName("head"))[0];if(!','head){head=',1,'body}var script=',1,7,'("script");','script','.appendChild(',1,'createTextNode','(code));head',363,'script);','head.removeChild(','script',349,'}}}var USING=',17,'args,i','){if(',48,'.length','>1){if(',48,102,'2&&!(typeof ',48,'[0]==="function")&&',48,'[0] ',106,'Object&&typeof ',48,'[1]==="number"){','args=[].slice.call(',374,')}else{',390,48,',0)}}if(args ',106,'Array&&args',102,'1){args=args[0]}',142,' args',144,'if(args',278,'===',287,278,104,'args}',41,269,'({hook:args})}else{if(args ',106,'Array){',142,'(args[0])==="string"&&args[1] ',106,387,'args[1][args[0]]==="','function"){return CALLBACK({hook:args[','1][args[0]],object:args[1','],data:args.slice(','2)})}else{',142,' args[0]==="',420,'0',422,'1)})}else{',142,' args[1]==="',420,'1],object:args[0',422,'2)})}}}}else{',142,'(args)==="','string"){',41,269,'({hook:EVAL,data:[args]})}else{if(args ',106,70,104,269,'(args',392,142,437,'undefined"){',41,269,'({})}}}}}','throw Error("Can\'t ','make ','callback',' from given data")};var DELAY=',17,'time,',456,'){callback=USING(callback);',456,'.timeout=','setTimeout(',456,',time);','return callback','};var WAITFOR=',17,456,',signal',461,9,456,'.called){','WAITSIGNAL(',456,471,');signal.pending++}};var WAITEXECUTE=',43,'var ','signals','=this','.signal',';',242,'signal;this',278,'=this.','oldExecute;',242,490,'var result=','this',278,238,',',48,');','if(ISCALLBACK(result)&&!result.called){',476,'result,',482,392,'for(var i=0,m=',482,'.length;i<m;i++){','signals[i].pending','--;if(',508,'<=0){',482,'[i].call()}}}};var WAITSIGNAL=',17,456,',',482,'){if(!(',482,' ',106,'Array)){',482,'=[',482,']}',9,456,484,'){',456,'.oldExecute=',456,278,';',456,278,'=WAITEXECUTE;',456,484,'=',482,342,482,102,'1){',456,484,'.push(',482,'[0','])}else{',456,484,'=',456,484,'.concat(',482,')}}};var AFTER=',17,456,461,456,'.pending=0;',35,'i=1,m=',48,507,'if(',48,'[i]){WAITFOR(',48,'[i],',456,')}}if(',456,'.pending===0){',493,456,'();','if(ISCALLBACK(result',')){',456,'=result}}',467,'};var HOOKS=',17,'hooks,data,reset){',9,'hooks',104,'null}if(!(hooks ',106,522,'hooks=[hooks]}if(!(data ',106,522,'data=(data==null?[]:[data])}var ','callbacks','=[{}];',505,'hooks',507,'if(reset){hooks[i].reset()}',493,'hooks[i].apply(window,data);',500,600,549,'result)}}if(',600,102,'1',104,'null}if(',600,102,'2',104,600,'[1]}',41,'AFTER.apply({},',600,')};var QUEUE=BASE.',70,82,'({Init:',43,'this.pending','=0;','this.running','=0;','this.queue',24,'this.Push',238,',',48,')},Push:',43,'var ',456,';',505,48,507,456,'=USING(',48,'[i]);if(',456,'===',48,'[i]&&!',456,475,456,'=USING(["wait",this,',456,'])}',635,549,456,')}',9,633,'&&!',631,'){','this.Process','()}',467,'},Process:',17,'queue){while(!',633,'&&!',631,'&&',635,377,'){var ',456,'=',635,'[0];queue=',635,'.slice(1);',635,24,'this.Suspend();',493,456,'();','this.Resume();','if(queue',377,'){',635,'=queue',558,635,')}',500,'WAITFOR(result,this',')}}},','Suspend:',43,633,'++},Resume:',43,'if(',633,'){',633,'--}},call:',43,672,238,',',48,')},wait:',17,456,'){',467,'}});var SIGNAL=QUEUE',82,'({Init:',17,'name){','QUEUE',54,50,'.call(this',');this.name=name;','this.posted',24,'this.listeners','=[]},Post:',17,'message,',456,',forget',461,'if(this.posting||this.pending){',637,'(["Post",this,message,',456,746,552,'this.',456,'=',456,';',456,'.reset();',9,'forget){',739,549,'message)}',693,'this.posting=1;',505,741,507,741,'[i].reset();var result=(',741,'[i])(','message);',500,707,')}}',697,242,'posting',31,631,'){this.call()}}',467,'},Clear:',17,456,461,748,456,'=',637,'(["Clear",this,',456,552,739,24,456,'()}',467,'},call:',43,'this.',456,'(this);',672,'()},Interest:',17,456,',ignorePast',461,741,'[',741,377,']=',456,31,'ignorePast){',505,739,507,456,760,493,456,'(',739,'[i]);',582,')&&i===',739,377,'-1){',707,')}}}',467,'},NoInterest:',17,456,'){',505,741,507,'if(',741,'[i]===',456,'){',741,'.splice(i,1);return}}},MessageHook:',17,'msg,',456,461,9,'this.hooks','){',858,'={};this.Interest(["ExecuteHooks",this])}',9,'this.hooks[msg',']){',863,']=[]}',863,'].push(',456,');',505,739,507,'if(',739,'[i]==msg){',456,760,456,'(',739,'[i])}}',467,'},ExecuteHooks:',17,'msg,more){var type=((msg ',106,'Array)?msg[0]:msg);',41,'HOOKS(',858,'[type],[msg],true)}},{',482,':{},find:',17,733,9,'SIGNAL.signals[name',']){',898,']=new SIGNAL(name)}',41,898,']}});BASE.Callback=BASE.CallBack=USING',';BASE.Callback.','Delay=DELAY',905,'After=AFTER',905,'Queue=QUEUE',905,'Signal=SIGNAL.find;BASE','.Callback.ExecuteHooks','=HOOKS})("MathJax");(',17,'d','){var a=',20,'a){a',22,'c=(','navigator.vendor==="Apple Computer, Inc."&&typeof navigator.vendorSub==="undefined','");var f=0;var g=',17,129,1,'styleSheets','&&',1,927,377,'>f){f=',1,927,377,'}',9,'h){h=(',1,355,32,1,'body}}',41,'h};var e',24,19,43,35,'j=0,h=e',377,';j<h;j++){','a.Ajax.',369,'e[j])}e=[]};a.Ajax={loaded:{},loading:{},loadHooks:{},timeout:15*1000,styleDelay:1,config:{root:""},STATUS:{OK:1,ERROR:-1},rootPattern:new RegExp("^\\\\["+d+"\\\\]"),fileURL:',17,'h',104,'h.replace(this.rootPattern,this.config.root)},Require:',17,'j,m){m','=a.Callback(','m',');var k;if(j instanceof Object){for(var h in j){}k=h.toUpperCase();j=j[h]}else{k=j.split(/\\./).pop().toUpperCase()}j=this.fileURL(j);if(this.','loaded[j]){m','(this.loaded[j])}else{','var l={};l[k]=j;this.Load(l,m)}',41,'m},Load:',17,'j,l){l',962,'l',964,'loading[j]){','this.loading','[j].',600,549,'l',392,'this.head=g(this.head);','if(this.loader[k]){this.loader[k].call(this,j,l',392,454,'load files of type "+k)}}',41,'l},LoadHook:',17,'j,k){k',962,'k);if(j ',106,70,'){',35,207,'j){j=j[h]}}j=','this.fileURL(','j);if(this.loaded[j]){k',966,9,'this.loadHooks[','j]){',1003,'j]=[]}',1003,'j].push(k)}',41,'k},loader:{JS:',17,'i,k',28,1,7,361,'var j=','a.Callback','(["','loadTimeout','",this,i]);',976,'[i]={',600,':[k','],message:a.Message.File(','i),timeout:',464,'j,','this.timeout','),status:this.STATUS.OK',',script:h};h.onerror=j;h.type="text/javascript";h.src=i;','this.head',363,'h)},CSS:',17,'h,j){var i=',1,7,'("link");i.rel="stylesheet";','i.type="text/css";','i.href=h;',976,'[h]={',600,':[j',1026,'h',1031,'};',1033,363,'i);this.timer.create',737,',[this.timer.file,h],i)}},timer:{create:',17,217,'i',962,'i);if(','h.nodeName==="STYLE','"&&h','.styleSheet&&typeof(','h','.styleSheet.cssText)!=="undefined"){i','(this','.STATUS.OK)}else{','if(window.chrome&&typeof(window.sessionStorage)!=="undefined"&&',1061,'"){i(this',1067,'if(c){','this.timer.start(this,[this.timer.','checkSafari2',',f++,','i],this.styleDelay',392,1073,'checkLength,h,',1076,')}}}',41,'i},start:',17,'i,h,j){h',962,'h);h',278,'=this',278,';h.time=this.time;h.STATUS=i.STATUS;h',463,'i.timeout',';h.delay=h.total=0;',464,'h,j)},time:',17,'h){this.total+=this.delay;this.delay=Math.floor(this.delay*1.05+5);if(this.total>=',1030,'){h(','this.STATUS.ERROR',');',41,'1}',41,'0},file:',17,'i,',129,'h<0){',953,1020,'(i',392,953,'loadComplete','(i)}},execute:',43,313,737,315,',this.data[0],this.data[1])},',1074,':',17,'h,i,j){if(h.time(j)){return}if(',1,927,377,'>i&&',1,927,'[i].cssRules','&&',1,927,1133,377,'){j(h',1067,464,'h,h.delay',')}},checkLength:',17,'h,k,m){if(h.time(m)){return}var l=0;var i=(k.sheet||k.styleSheet);try{if((i.cssRules||i.rules||[]).length>0){l=1}}catch(j){','if(j.message.match(/','protected variable|restricted URI/)){l=1}else{',1146,'Security error/)){l=1}}}if(l){',464,1018,'([m,h.STATUS.OK]),0',392,464,1142,708,1116,':',17,32,999,'h);var i=',976,'[h];if(','i){a.Message.Clear(i.',775,'clearTimeout(',1093,');if(i.script){if(e',102,'0){',464,'b,0)}e',549,'i.script)}this.loaded[h]=i.status;delete ',976,1164,1003,'h]){',1018,'.Queue([a',913,',',1003,'h],i.status],[a',913,',i.',600,',i.status',552,'a',913,'(i.',600,1189,708,1020,':',17,129,976,'[h].timeout','){',1167,976,1202,')}',976,'[h].status=',1101,';this.loadError(h);this.',1116,'(h)},loadError:',17,'h){a.Message.Set("File failed to load: "+h,null,2000)},Styles:',17,'j,k',28,'this.StyleString(','j);if(h===""){k',962,'k);k()}else{var i=',1,7,'("style");',1041,982,1033,363,1060,'i',1063,'i',1065,'.styleSheet.cssText=h}else{i',363,1,365,'(h))}k=this.timer.create',51,'k,i)}',41,'k},StyleString:',17,'m){',142,'(m)==="',438,41,'m}var j="",n,l;for(n in m){if(m',39,'(n)){',142,' m[n]==="',438,'j+=n+" {"+','m[n]+"}\\n"}else{if(m[n] ',106,414,35,'k=0;k<m[n].length;k++){l={};l[n]=m[n][k];j+=',1219,'l)}}else{if(n.substr(0,6)==="@media"){',1256,1219,'m[n])+"}\\n"}else{if(m[n]!=null){l',24,35,207,'m[n]){if(m[n][h]!=null){l[l',377,']=h+": "+m[n][h]}}',1256,'l.join("; ")+"}\\n"}}}}}}',41,'j}}})("MathJax");MathJax.HTML={Element:',17,'c,e,d){var f=',1,7,'(c);if(e){if(e.style){',19,'e.style;e.style={};',35,'g in b){if(b',39,'(g)){e.style[g.replace(/-([a-z])/g,this.ucMatch)]=b[g]}}}',15,'.Insert(f,e)}if(d){',35,'a=0;a<d',377,';a++){if(d[a] ',106,414,'f',363,'this.Element(','d[a][0],d[a][1],d[a][2]))}else{f',363,1,365,'(d[a]))}}}',41,'f},ucMatch:',17,'a,b',104,'b.toUpperCase()},addElement:',17,'b,a,d,c',104,'b',363,1298,'a,d,c))},TextNode:',17,'a',104,1,365,'(a)},addText:',17,'a,b',104,'a',363,'this.TextNode(b))},Cookie:{prefix:"mjx",expires:365,Set:',17,'a,d){var c',24,'if(d){',35,'f in d){if(d',39,'(f)){c',549,'f+":"+d[f].',249,'(/&/g,"&&"))}}}',19,'this.prefix+"."+a+"="+escape(c.join("&;"));if(this.expires){var e=new Date();e.setDate(e.getDate()+this.expires);b+="; expires="+e.toGMTString()}',1,'cookie=b+"; path=/"},Get:',17,'c,h){',9,'h){h={}}var g=new RegExp("(?:^|;\\\\s*)"+this.prefix+"\\\\."+c+"=([^;]*)(?:;|$)");',19,'g.exec(',1,'cookie);if(b&&b[1]!==""){var e=unescape(b[1]).split("&;");',35,'d=0,a=e',377,';d<a;d++){b=e[d].match(/([^:]+):(.*)/);var f=b[2].replace(/&&/g,"&");if(f==="true"){f=true',342,'f==="false"){f=false',342,'f.match(/^-?(\\d+(\\.\\d+)?|\\.\\d+)$/)){f=parseFloat(f)}}}h[b[1]]=f}}',41,'h}}};','MathJax.Message','={log:[{}],current:null,textNodeBug:(',922,'")||(window',39,'&&window',39,'("konqueror")),styles:{"#','MathJax_Message','":{position:"','fixed",left:"1px",bottom:"2px","background-color":"#E6E6E6",border:"1px solid #959595','",margin:"0px",padding:"','2px 8px","z-index":"102",color:"black","font-size":"80%",width:"auto","white-space":"nowrap"},"#','MathJax_MSIE_Frame',1372,'absolute",top:0,left:0,width:"0px","z-index":101,border:"0px',1374,'0px"}},browsers:{MSIE:',17,'a){','MathJax.Hub.config.styles["#MathJax_Message"].','position="absolute";',1363,'.quirks=(',1,'compatMode==="BackCompat")},Chrome:',17,'a){',1383,'bottom="1.5em";',1383,'left="1em"}},Init:',43,9,1,'body',104,'false}if(','this.div','&&',1401,'.parentNode==null){',1401,'=',1,2,'("',1371,338,1401,'){this.text=',1401,'.firstChild','}}',9,1401,917,1,'body;if(',15,'.Browser.isMSIE){a=this.frame','=this.addDiv(',1,'body);a.style.',1384,'a.style.border=a.style.margin=a.style.padding="0px";a.style.zIndex="101";a.style.height="0px";a',1424,'a);a.id="',1376,'";','window.attachEvent("','onscroll",','this.MoveFrame',');',1433,'onresize",',1435,');',1435,'()}',1401,1424,'a);',1401,'.style.display="none";this.text=',1401,363,1,365,'(""))}',41,'true},addDiv:',17,'a){',19,1,7,'("div");b.id="',1371,'";if(a',1415,'){a.insertBefore(b,a',1415,392,'a',363,'b)}',41,'b},MoveFrame:',43,'var a=(',1363,'.quirks?',1,'body:',1,'documentElement);',19,1363,'.frame;b.style.left=a.scrollLeft+"px";b.style.top=a.scrollTop+"px";b.style.width=a.clientWidth+"px";b=b',1415,';b.style.height=a.clientHeight+"px"},filterText:',17,'a,b){if(',15,'.config.messageStyle==="simple"){if(a.match(/^Loading /)){',9,976,'){',976,'="Loading "}a=',976,';',976,'+="."}else{if(a.match(/^Processing /)){',9,'this.processing','){',1499,'="Processing "}a=',1499,';',1499,'+="."}}}re'],
|
|
['turn a},Set',':function','(b,c',',a','){if(this.timer){clearTimeout(this.timer',');','delete ','this.timeout}if(c','==null','){c','=this.log','.length',';','this.log[','c]={}}',13,'c','].text','=b;b','=this','.filterText(','b,c);','if(typeof','(',13,'c].next',')==="undefined"){',13,25,'=','this.current',';if(',30,'!=null){',13,30,'].prev=','c}',30,'=c}if(',30,'===c&&','MathJax.Hub.config.','messageStyle','!=="none"){','if(this.','Init()){','if(this.textNodeBug){this.div.innerHTML=','b','}else{','this.text','.nodeValue','=b}','this.div.style.display','="";','if(this.status){window.status="";delete this.status}}else{','window.status','=b;this.status=true}}if(a){setTimeout(','MathJax.Callback','(["Clear','",this,','c]),a)}','return ','c},Clear',1,'(b,a){if','(',13,'b].prev',33,13,13,68,'].next=',13,'b].next','}if(',13,75,33,13,13,75,36,13,68,'}if(',30,'===b){',30,'=',13,75,31,50,'){',45,'div','.parentNode',8,'){this.','Init()}if(',30,8,4,')}this.timer=setTimeout(',58,'(["Remove",this]),(a||600))}else{',47,13,30,17,49,50,51,'=',13,30,17,'}}',55,45,'status){',56,'=(',30,8,'?"":',13,30,17,')}}}',6,13,75,';',6,13,68,'},Remove',1,'(){',50,51,54,53,'="none"},File',1,'(b){var a=','MathJax.','Ajax','.config.','root',31,'b','.substr(0,','a',11,')===a){b="[MathJax]"+b.substr(a',11,')}',62,'this.Set("Loading "+b)},Log',1,'(){var b=[];','for(var ','c=1,a',10,11,';c<a;c++){b[c]=',13,'c',17,'}',62,'b.join("\\n")}};',149,'Hub={config:{root:"",config',':[],','styleSheets',178,'styles',':{},jax',178,'extensions',178,'preJax',':null,','postJax',187,'displayAlign:"center",displayIndent:"0",','preRemoveClass',':"MathJax_Preview",showProcessingMessages:true,',43,':"normal",','delayStartupUntil',':"none",','skipStartupTypeset',':false,','preProcessors',178,'inputJax',':{},','outputJax',':{},','menuSettings',':{zoom:"None",CTRL:false,ALT:false,CMD:false,Shift:false,zscale:"200%",renderer:"",font:"Auto",context:"MathJax"},','errorSettings',':{message:["[Math Processing Error]"],style:{color:"#CC0000","font-style":"italic"}}},','processUpdateTime',':500,signal:',58,'.Signal("','Hub"),','Config',1,'(a){this','.Insert(','this.config',',a);if(','this.config.','Augment',100,221,'(',220,221,')}},','Register',':{PreProcessor',1,'(a){',42,199,'.push(',58,'(a))},','MessageHook',1,'(){return ',149,'Hub','.signal.',237,'.apply(',149,'Hub','.signal,arguments)},','StartupHook',1,239,'MathJax.Hub.Startup',242,237,244,251,247,'LoadHook',1,239,149,'Ajax.',257,244,149,'Ajax,','arguments',227,'getAllJax',1,'(','e){var c=[],b=this.elementScripts(e);for(var d=0,a=b.length;d<a;d++){if(b[d].MathJax&&b[d].MathJax.elementJax','){c.push(b[d].','MathJax.elementJax',')}}return c},','getJaxByType',1,'(f,',271,'&&b[d].',273,'.mimeType===f){c.push(b[d].',273,274,'getJaxByInputType',1,'(f,',271,279,'type',279,'type.replace(/ *;(.|\\','s)*/,"")===f){c.push(b[d].',273,274,'getJaxFor',1,'(a){','if(typeof(a)==="string"){a=document.getElementById(a',')}','if(a.MathJax){',62,'a.',273,'}',62,'null},isJax',1,'(a){',298,')}','if(a.tagName!=null&&a.tagName.toLowerCase()==="script"){',300,'return(a','.MathJax.state','===',149,'ElementJax.STATE','.PROCESSED','?1:-1)}if(a.type&&',220,201,'[a.',291,'s)*/,"")]){return -1}}',62,'0},Queue',1,239,'this.queue','.Push',244,329,',',266,')},','Typeset',1,2,'){if(!',149,'isReady){',62,'null}var ','a','=this.elementCallback(',21,62,58,'.Queue(["','PreProcess',60,'a.element','],["','Process',60,352,']).','Push(a.callback)},',350,1,2,'){var a',345,21,62,58,349,'Post",this.signal',',"Begin ',350,'"],["','ExecuteHooks",',58,',(','arguments.callee.disabled','?[]:',220,199,'),',352,',true','],["Post",this.signal,"End ',350,'"]).',358,354,1,'(a,b){return this.takeAction("',354,'",a,b)},','Update',1,388,391,390,'Reprocess',1,388,396,390,'takeAction',1,'(d,c,e){var b',345,'c,e);var a=[];',62,58,349,'Clear",this.signal],["',368,',["Begin "+','d,b.element',']],["','prepareScripts',60,412,',a],["','processScripts',60,'a],["',368,',["End "+',412,']]).Push(b.callback)},','scriptAction',':{',354,1,'(a){},',391,1,148,'b.',273,31,'a&&a.','originalText','===(b.text==""?b.innerHTML:b.text)){b',314,'=a.STATE',318,49,'a','.outputJax.Remove(','a);b',314,'=a.STATE.UPDATE','}},',396,1,148,'b.',273,31,'a){a',444,'a);b',314,447,'}}},',414,1,'(h,e,f){if(',375,'){return}var b=this.','elementScripts','(e);var g=',149,317,';',165,'d=0,a=b',11,';d<a;d++){var c=b[d];if(c.type&&',220,201,'[c.',291,'n)*/,"")]){if(c.MathJax&&c',314,'!==g.PENDING',100,425,'[h](c)}if(!c.MathJax){c.MathJax={state:g.PENDING}}if(c',314,'!==g',318,'){f.push(c)}}}},','checkScriptSiblings',1,'(a){if(a.MathJax&&a.',149,'checked',465,'config;var g=a','.previousSibling',31,'g&&g.nodeName=="#text"){var d,f;var c=a.nextSibling',31,'c&&c.nodeName!="#text"){c=null}if','(b.preJax','){',22,501,')==="string"){b.',186,'=new RegExp',501,'+"$")}d=g',51,'.match',501,')}if','(b.postJax','&&c){',22,514,505,188,507,'("^"+b.',188,')}f=c',51,'.match',514,')}if(d&&(!b.',188,'||f)){g',51,'=g',51,'.replace',501,',(d',11,'>1?d[1]:""));g=null}if(f&&(!b.',186,'||d)){c',51,'=c',51,533,514,',(f',11,'>1?f[1]:""))}if(g&&!g',51,'.match(/\\S/)){','g=g',496,'}}if(b.',191,'&&g&&g.className==b.',191,'){try{g.innerHTML=""}catch(e){}g.style.display="none"}',300,'a.',149,493,'=1}},',418,1,'(h,b,d){if(',375,'){',62,343,'q,o=',149,317,';var p=',220,201,',c=',220,203,';try{if(!b){b=','new Date().getTime','()}var j=0,l,f;while(j<h',11,'){l=h[j];if(!l){continue}f=l',496,31,'f&&f.className==="','MathJax_Error','"){f',98,'.removeChild(f)}var k=l.',291,'s)*/,"");if(!l.MathJax||l',314,'===o',318,'){continue}if(!l.',273,'||l',314,'===o.UPDATE',100,489,'(l);q=p[k].','Translate(l);if(typeof q==="function"){','if(q.called){continue}this.RestartAfter(q)}','q.Attach(l,p[k])}var a=l.',273,';if(!c[a.mimeType]){l',314,'=o.UPDATE;','throw Error("No ','output jax registered for "+a.mimeType)}a.',203,'=c[a.mimeType][0];q=a.',203,'.',603,'l',314,609,604,'l',314,'=o',318,';this',242,'Post(["New Math",a.inputID]);j++;if(',579,'()-b>this.',209,'&&j<h',11,'){b=0;this.','RestartAfter','(',58,'.Delay(1))}}}catch(g){if(!g.restart){if(!',220,207,'.message){throw g}this.formatError(l,g);j++}if(!d){d=0}var e=Math.floor((d+j)/(d+h',11,')*100);d+=j',31,220,'showProcessingMessages){MathJax.Message.Set("Processing ','math: "+e+"%",0)}',62,58,'.After(["',418,60,'h.slice(j),b,d],g.restart)}if((d||h',11,')&&',220,645,'Math: 100%",0);',149,'Message.','Clear(0)}',62,'null},formatError',1,'(a,c){var b=',149,'HTML.Element("span",{className:"',586,'"},',220,207,'.message);a',98,'.insertBefore(b,a);this.lastError=c},',634,1,'(a){throw this',217,'Error("restart"),{restart:',58,'(a)})},elementCallback',1,'(a,b){if(','b',8,'&&(a ','instanceof Array','||typeof a==="','function','")){b=a;a=','document.','body',49,'if(a==null){a=document.body}','else{',298,')}}}if(!a){',610,'such element")}if(!b){b={}}return{element:a,callback:b}},',466,1,'(a){',298,')}',693,311,'return[a]}',62,'a.','getElementsByTagName("','script")},Insert',1,'(c,a){',165,'b in a){if(a','.hasOwnProperty','(b)){',22,' a[b]==="object"&&!(a[b] ',686,')&&(','typeof c[b]==="','object"||',721,688,'")){this',217,'c[b],a[b])}else{c[b]=a[b]}}}',62,'c}};',149,'Hub',217,42,181,',',149,659,181,');',149,'Hub',217,42,181,',{".',586,'":',42,207,'.style});',149,'Extension={};',251,'={script:"",queue:',58,'.Queue(),','signal:',58,212,'Startup','"),',214,1,'(){','this.queue.Push(["Post",this.signal,"Begin ',214,'"]);var a=',149,'HTML.Cookie','.Get("user");if(a.URL||a.',214,'){if(confirm("MathJax has found a user-configuration cookie that includes code to be run. Do you want to run it?\\n\\n(You should press Cancel unless you set up the cookie yourself.)")){if(a.URL){',329,'.Push(["Require",MathJax.Ajax,','a.URL])}if(a.',214,'){',149,'userConfig=new Function(a.',214,')}}else{',149,769,'.Set("user",{})}}',45,'script',549,329,'.Push(this.script+";\\n1;")}else{',329,774,'this.URL("config","',149,'js")])}',62,329,'.Push([',688,2,'){if(b.',195,'.isCallback){',62,'b.',195,'}if(b.',195,'==="onload"){',62,'c}',62,688,'(){}},',149,'Hub.config,this.onload','],[function(','b){',62,'b.','loadArray','(',42,'config,"config",null,true)},this',382,214,'"])},','Cookie',1,239,765,827,371,'Get",',149,769,',"menu",',42,205,816,'f,c){if(f','.renderer','){var d="output/"+f',841,';',165,'e=0,b=c',11,',a=0;e<b;e++){if(c[e]===d){c.splice(e,1);a=0;break}if(c[e].substr(0,7)==="output/"){a=(a?0:e+1)}}c.unshift(d);if(a){c.splice(a,1)}}},',42,205,',',42,'jax',382,827,826,'Styles',1,239,765,857,371,820,60,42,179,',"config',371,857,'",',149,265,42,181,382,857,826,'Jax',1,239,765,'Jax',371,820,60,42,'jax,"jax","config.js",true',382,'Jax',826,'Extensions',1,239,765,891,371,820,60,42,184,',"',184,371,368,',"End ',891,826,'onLoad',1,'(a){var b',19,'.onload=',58,'(','function(){',251,242,'Post("onLoad")});if(','window.addEventListener','){',919,'("load",b,false)}else{if(','window.attachEvent','){',923,'("onload",b)}else{window.onload=b}}',62,'b},',336,1,682,42,197,'){',62,688,'(){}}',62,765,336,371,336,'",',149,'Hub,a,b',382,336,826,'URL',1,65,'(!a.match(/^([a-z]+:\\/\\/|\\[|\\/)/)){a="[MathJax]/"+b+"/"+a}',62,'a},',820,1,'(b,f,c,a){if(b){if(!(b ',686,')){b=[b]}if(b',11,'){var h=',58,756,'j={},e;',165,'g=0,d=b',11,';g<d;g++){e',19,'.URL(f,b[g]);if(c){e+="/"+c}if(a){h',774,'e,j])}else{h.Push(',149,'Ajax.Require(e,j))}}',62,'h.Push({})}}',62,'null}};(',688,'(d','){var b=window[','d],e="["+d+"]";var c=b.Hub,a=b.',265,'f=b.Callback;var g=',149,'Object','.Subclass','({require',187,'config:{},Init',1,'(i,h){','if(',266,11,'===0){',62,'this}return(','this.constructor',987,'(i,h))()},',221,1,'(k,j','){var i=',999,',h={};if(k',33,165,'l in k){if(k',715,'(l)){',22,' k[l]==="',688,'"){','i.protoFunction','(l,k[l])}else{h[l]=k[l]}}}if(k.toString!==i','.prototype.','toString&&k.toString!=={}.toString){',1017,'("toString",k.toString)}}c',217,'i.prototype,h);i.',221,'(null,j);',62,'this},','Translate',1,'(h){',999,1019,1029,19,'.noTranslate;',62,'a.Require(','this.directory','+"/jax.js','")},noTranslate',1,'(h){throw Error(',1039,1040,' failed to redefine the ',1029,'() method")},',228,1,'(h){},',214,1,'(){c',217,218,',(c.config[this.id]||{}));if(',220,221,100,221,'(',220,221,227,760,1,'(){},','loadComplete',1,'(n){if(n==="jax.js"){var j=f.Queue();','j.Push(["Post",c.Startup.signal,this.id+" Jax ',214,'"]);','j.Push(["',214,'",this]);',1072,'Require"]);',45,'require){var k',19,'.require;if(!(k ',686,')){k=[k]}',165,'l=0,h=k',11,';l<h;l++){j.Push(',1038,'k[l]))}',1075,820,'",',251,',',220,'require,"config"])}',1072,760,'"]);',1075,760,'",this]);',1072,'Ready"]);',62,1075,1069,'",a,',1039,'+"/"+n])}else{',62,'a.',1069,'(',1039,'+"/"+n)}}},{id:"unknown",version:"1.0.1",directory:e+"/jax",extensionDir:e+"/',184,'"});b.InputJax=g',987,'({',228,1,'(h){if(!','b.Hub',151,201,'){c',151,201,'={}}c',151,201,'[h]=this}},{','version:"1.0",directory:g.directory+"/','input','",extensionDir:g.extensionDir','});b.OutputJax=g',987,'({',228,1,1125,'c.config.outputJax','){',1145,'={}}if(!',1145,'[h]){',1145,'[h]=[];if(!c',151,205,841,'){c',151,205,841,19,'.id}}',1145,'[h].push(this)},Remove',1,'(h){}},{',1136,'output',1138,',fontDir:e+(b.isPacked?"":"/..")+"/fonts"});','b.ElementJax','=g',987,'({Init',1,992,62,999,987,'(i,h)},',201,187,203,187,'inputID',187,437,':"",mimeType:"",Text',1,'(j,k){','var h=this.SourceElement();','if(','h.firstChild','){if(',1192,'.nodeName!=="#text"){h.text=j',49,1192,51,'=j}}else{try{h.innerHTML=j}catch(i){h.text=j}}h',314,'=this.STATE.UPDATE;return c.',391,'(h,k)},',396,1,'(i){',1190,'h',314,1201,396,'(h,i)},Remove',1,'(){this',444,'this);c',242,'Post(["Remove Math",','this.inputID',']);this.Detach()},SourceElement',1,239,690,'getElementById(',1219,')},Attach',1,'(i,j){var h=i.',273,31,'i',314,'===this.STATE.UPDATE){h.Clone(this)}else{h=i.',273,19,31,'i.id',100,'inputID=i.id',49,'i.id=',1219,'=',1170,'.GetID();this.newID=1}}h.',437,'=(i.text==""?i.innerHTML:i.text);h.',201,'=j},Detach',1,'(){',1190,'if(!h){return}try{',6,'h.MathJax}catch(i){h.MathJax=null}',45,'newID){h.id=""}},Clone',1,'(h){var i;for(i in this){if(!this',715,'(i)){continue}if(typeof(','h','[i])==="undefined','"&&i!=="newID"){',6,'this[i]}}for(i in h){if(!this',715,1261,'this',1263,'"||(this[i]!==h[i]&&i!=="inputID")){this[i]=h[i]}}}},{',1136,'element',1138,',ID:0,STATE:{PENDING:1,PROCESSED:2,UPDATE:3},GetID',1,'(){this.ID++;return"MathJax-Element-"+this.ID},Subclass',1,'(){var h=g',987,244,'this,',266,');h.',1069,19,1019,1069,';',62,'h}});',1170,1019,'STATE=b.',317,'})("MathJax");(',688,'(l',981,'l];if(!b){b=window[l]={}}var d=b.Hub;var n=d.',760,';var m=d.config;var k=',690,709,'head")[0];if(!k){k=',690,'childNodes[0]}var f=(',690,'documentElement||document).',709,'script");var e',507,'("(^|/)"+l+"\\\\.js$");',165,'g=f',11,'-1;g>=0;g--){if(f[g].src.match(e)){n.script=f[g].innerHTML;m.root=f[g].src',533,'(/(^|\\/)[^\\/]*$/,"");break}}b.Ajax.config=m;var j={isMac',':(navigator.platform.substr(0,3)==="','Mac"),isPC',1320,'Win"),isMSIE:(window.ActiveXObject','!=null&&window.','clipboardData!=null),isFirefox:(window.netscape!=null&&',690,'ATTRIBUTE_NODE',1324,'opera',8,'),isSafari:(','navigator.userAgent.','match(/ (Apple)?WebKit\\//)!=null&&','window.chrome',8,'),isChrome:(',1334,1324,'chrome.loadTimes!=null),isOpera:(window.opera',1324,'opera.version','!=null),isKonqueror:(window',715,'&&window',715,'("konqueror")&&navigator.vendor=="KDE"),versionAtLeast',1,'(r){var q=(this','.version).split','(".");r=(','new String','(r)).split(".");',165,'s=0,p=r',11,';s<p;s++){if(q[s]!=r[s]){',62,'parseInt(q[s]||"0")>=parseInt(r[s])}}',62,'true},Select',1,'(p',1005,'p[d.Browser];if(i){',62,'i(d.Browser)}',62,'null}};var a=',1332,'replace(/^Mozilla\\/(\\d+\\.)+\\d+ /,"").replace(/[a-z][-a-z0-9._: ]+\\/\\d+[^ ]*-[^ ]*\\.([a-z][a-z])?\\d+ /i,"").replace(/Gentoo |Ubuntu\\/(\\d+\\.)*\\d+ (\\([^)]*\\) )?/,"");d.Browser=d',217,'d',217,1351,'("Unknown"),{version:"0.0"}),j);',165,'h in j){if(j',715,'(h)){if(j[h]&&h',155,'2)==="is"){h=h.slice(2);if(h==="Mac"||h==="PC"){continue}d.Browser=d',217,1351,'(h),j);var o',507,'(".*(Version',')/((?:\\\\d+\\\\.)+\\\\d','+)|.*("+h+")"+(h=="MSIE"?" ":"/")+"((?:\\\\d+\\\\.)*\\\\d+)|(?:^|\\\\(| )([a-z][-a-z0-9._: ]+|WebKit',1387,'+)");var c=o.exec(a)||["","","","unknown","0.0"];d.Browser.name=(c[1]=="Version"?h:(c[3]||c[5]));d.Browser.version=c[2]||c[4]||c[6];break}}}','d.Browser.Select','({Safari',1,'(p',1005,'parseInt((String(p',1349,'("."))[0]);if(i>=526){','p.version="','4.0','"}else{if(i','>=525){',1399,'3.1',1401,'>500){',1399,'3.0',1401,'>400){',1399,'2.0',1401,'>85){',1399,'1.0"}}}}}},Firefox',1,'(p){if(p.version==="0.0"&&navigator.product==="Gecko"&&','navigator.productSub',1005,1419,155,'8);if(i>="20090630"){',1399,'3.5',1401,'>="20080617"){',1399,'3.0',1401,'>="20061024"){',1399,'2.0"}}}}},Opera',1,'(i){i.version=',1341,'()}});',1391,'(',149,659,'browsers);d.queue=b.Callback.Queue();d.queue.Push(["','Post",n.signal,"','Begin',371,214,'",n],["',827,1447,857,1447,'Jax',1447,891,'",n],n.onLoad(),',915,149,'isReady=true},["',336,1447,1443,'End"])})("MathJax")}};']
|
|
]);
|
|
|