-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomixngn.min.js
85 lines (85 loc) · 40.5 KB
/
comixngn.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,e){if(e.get||e.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[c]=e.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++};
$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var c=0;return $jscomp.iteratorPrototype(function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}})};
$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(a,c){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var e=0,d={next:function(){if(e<a.length){var g=e++;return{value:c(g,a[g]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d};
$jscomp.polyfill=function(a,c,e,d){if(c){e=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var g=a[d];g in e||(e[g]={});e=e[g]}a=a[a.length-1];d=e[a];c=c(d);c!=d&&null!=c&&$jscomp.defineProperty(e,a,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6-impl","es3");
var Path={version:"0.8.4",map:function(a){return Path.routes.defined.hasOwnProperty(a)?Path.routes.defined[a]:new Path.core.route(a)},root:function(a){Path.routes.root=a},rescue:function(a){Path.routes.rescue=a},history:{initial:{},pushState:function(a,c,e){Path.history.supported?Path.dispatch(e)&&history.pushState(a,c,e):Path.history.fallback&&(window.location.hash="#"+e)},popState:function(a){a=!Path.history.initial.popped&&location.href==Path.history.initial.URL;Path.history.initial.popped=!0;
a||Path.dispatch(document.location.pathname)},listen:function(a){Path.history.supported=!(!window.history||!window.history.pushState);Path.history.fallback=a;if(Path.history.supported)Path.history.initial.popped="state"in window.history,Path.history.initial.URL=location.href,window.onpopstate=Path.history.popState;else if(Path.history.fallback){for(route in Path.routes.defined)"#"!=route.charAt(0)&&(Path.routes.defined["#"+route]=Path.routes.defined[route],Path.routes.defined["#"+route].path="#"+
route);Path.listen()}}},match:function(a,c){var e={},d=null,g,h,f,n,l;for(d in Path.routes.defined)if(null!==d&&void 0!==d)for(d=Path.routes.defined[d],g=d.partition(),n=0;n<g.length;n++){h=g[n];l=a;if(0<h.search(/:/))for(f=0;f<h.split("/").length;f++)f<l.split("/").length&&":"===h.split("/")[f].charAt(0)&&(e[h.split("/")[f].replace(/:/,"")]=l.split("/")[f],l=l.replace(l.split("/")[f],h.split("/")[f]));if(h===l)return c&&(d.params=e),d}return null},dispatch:function(a){var c;if(Path.routes.current!==
a){Path.routes.previous=Path.routes.current;Path.routes.current=a;c=Path.match(a,!0);Path.routes.previous&&(a=Path.match(Path.routes.previous),null!==a&&null!==a.do_exit&&a.do_exit());if(null!==c)return c.run(),!0;null!==Path.routes.rescue&&Path.routes.rescue()}},listen:function(){var a=function(){Path.dispatch(location.hash)};""===location.hash&&null!==Path.routes.root&&(location.hash=Path.routes.root);"onhashchange"in window&&(!document.documentMode||8<=document.documentMode)?window.onhashchange=
a:setInterval(a,50);""!==location.hash&&Path.dispatch(location.hash)},core:{route:function(a){this.path=a;this.action=null;this.do_enter=[];this.do_exit=null;this.params={};Path.routes.defined[a]=this}},routes:{current:null,root:null,rescue:null,previous:null,defined:{}}};
Path.core.route.prototype={to:function(a){this.action=a;return this},enter:function(a){a instanceof Array?this.do_enter=this.do_enter.concat(a):this.do_enter.push(a);return this},exit:function(a){this.do_exit=a;return this},partition:function(){for(var a=[],c=[],e=/\(([^}]+?)\)/g,d;d=e.exec(this.path);)a.push(d[1]);c.push(this.path.split("(")[0]);for(e=0;e<a.length;e++)c.push(c[c.length-1]+a[e]);return c},run:function(){var a=!1,c,e;if(Path.routes.defined[this.path].hasOwnProperty("do_enter")&&0<
Path.routes.defined[this.path].do_enter.length)for(c=0;c<Path.routes.defined[this.path].do_enter.length;c++)if(e=Path.routes.defined[this.path].do_enter[c](),!1===e){a=!0;break}a||Path.routes.defined[this.path].action()}};
(function(){var a=function(){var a={},e=/:\w+/g,d=/\*\w+/g,g,h,f;h=function(a){return"/"==a.substr(-1)?a.substr(0,a.length-1):a};g=function(a){return a?h(a).replace(e,"([^/]+)").replace(d,"(.*?)"):null};f=function(c,e){c||(c="/");this.base=g(c);"object"===typeof e&&(a=e,this.dispatch())};f.prototype={on:function(c,e){if(!c)throw Error("A route needs to be defined");e||(e=function(){});c=this.base+g(c);a["^"+c+"$"]=e;return c},dispatch:function(c){var e,d,f,p;for(d in a)a.hasOwnProperty(d)&&(f=a[d],
e=new RegExp(d),p=g(window.location.pathname),e.test(p)&&f.call(!1,d,p,c))}};return f}();"undefined"!==typeof module&&module.exports?module.exports=a:"undefined"!==typeof this&&(this.router=a)}).call(this);
!function(a,c){"undefined"!=typeof module?module.exports=c():"function"==typeof define&&"object"==typeof define.amd?define(c):this[a]=c()}("domReady",function(a){function c(a){for(n=1;a=e.shift();)a()}var e=[],d,g=document,h=g.documentElement,f=h.doScroll,n=(f?/^loaded|^c/:/^loaded|c/).test(g.readyState);return g.addEventListener&&g.addEventListener("DOMContentLoaded",d=function(){g.removeEventListener("DOMContentLoaded",d,!1);c()},!1),f&&g.attachEvent("onreadystatechange",d=function(){/^c/.test(g.readyState)&&
(g.detachEvent("onreadystatechange",d),c())}),a=f?function(c){self!=top?n?c():e.push(c):function(){try{h.doScroll("left")}catch(u){return setTimeout(function(){a(c)},50)}c()}()}:function(a){n?a():e.push(a)}});function syncJSON(a){return(a=loadTextFileAjaxSync(a,"application/json"))?JSON.parse(a):0}function loadTextFileAjaxSync(a,c){var e=new XMLHttpRequest;e.open("GET",a,!1);null!=c&&e.overrideMimeType&&e.overrideMimeType(c);e.send();return 200<=e.status&&304>=e.status?e.responseText:null};/*
comix-ngn v1.3.0 | (c) 2015 Oluwaseun Ogedengbe| ogewan.github.io/comix-ngn/ |License: MIT|
embeds domReady: github.com/ded/domready (MIT) (c) 2013 Dustin Diaz, pegasus: typicode.github.io/pegasus (MIT) (c) 2014 typicode, pathjs (MIT) (c) 2011 Mike Trpcic, direction.js*/
var cG=cG||{};cG.N=function(){return 0};void 0===cG.$GPC&&(cG.$GPC=0);cG.root="";cG.cPanel=cG.cPanel||{};(function(){var a={fstrun:!0,pgepsh:!0,pgesve:!0,rtepge:!0,protect:!0,noverwrite:!0,arrow:!0,addme:!0,vscript:!1,click:!0};if(cG.fBox)for(var c in a)cG.fBox.hasOwnProperty(c)||(cG.fBox[c]=a[c]);else cG.fBox=a})();cG.info={vix:"1.3.0",vwr:"2.0.0",vpr:"0.1.0"};cG.dis=cG.dis||{};cG.recyclebin=cG.recyclebin||{};cG.queue=cG.queue||{};cG.comicID=cG.comicID||window.location.host;
cG.prePage=cG.prePage||-1;cG.controllers=cG.controllers||{};cG.avx=cG.avx||cG.info.vix.split(".");cG.info.vrb=1;cG.verbose=function(a){var c=[],e=1,d=1;for(null===a||void 0===a||isNaN(parseInt(a,10))?d=0:e=a;d<arguments.length;d++)c.push(arguments[d]);(null===cG.info.vrb||void 0===cG.info.vrb?0:cG.info.vrb)>=e&&console.log([].concat(c).join(" "))};cG.REPO=cG.REPO||{};
cG.REPO.agent={def:function(a,c){return c=new XMLHttpRequest,c.open("GET",a),a=[],c.onreadystatechange=c.then=function(e,d,g){if(e&&e.call&&(a=[,e,d]),4==c.readyState&&(g=a[0|c.status/200]))try{g(JSON.parse(c.responseText),c)}catch(h){g(c.responseText,c)}},c.send(),c}};cG.REPO.director={def:Path};cG.REPO.producer={def:cG.N};cG.REPO.scReq=cG.REPO.scReq||{};cG.REPO.ctrls=cG.REPO.ctrls||{def:""};cG.REPO.decor=cG.REPO.decor||{def:""};cG.REPO.script=cG.REPO.script||{def:""};cG.agent=cG.REPO.agent.def;
cG.director=cG.REPO.director.def;cG.producer=cG.REPO.producer.def;cG.ctrls=cG.REPO.ctrls.def;cG.decor=cG.REPO.decor.def;cG.script=cG.REPO.script.def;if(1!=cG.dis.rollbar){var _rollbarConfig=_rollbarConfig||{accessToken:"3e8e8ecb63a04b5798e1d02adf2608cb",ignoredMessages:["CNG Plug-in:","status:"],captureUncaught:!0,payload:{environment:"production",client:{javascript:{source_map_enabled:!0,code_version:cG.info.vix,guess_uncaught_frames:!0}}}};!function(a){function c(d){if(e[d])return e[d].exports;var g=e[d]={exports:{},id:d,loaded:!1};return a[d].call(g.exports,g,g.exports,c),g.loaded=!0,g.exports}var e={};return c.m=a,c.c=e,c.p="",c(0)}([function(a,
c,e){a=e(1).Rollbar;e=e(2);_rollbarConfig.rollbarJsUrl=_rollbarConfig.rollbarJsUrl||"https://d37gvrvc0wt4s1.cloudfront.net/js/v1.4/rollbar.min.js";a=a.init(window,_rollbarConfig);e=e(a,_rollbarConfig);a.loadFull(window,document,!1,_rollbarConfig,e)},function(a,c){function e(){var a=window.console;a&&"function"==typeof a.log&&a.log.apply(a,arguments)}function d(a){this.shimId=++l;this.notifier=null;this.parentShim=a;this.logger=e;this._rollbarOldOnError=null}function g(a,c,e){window._rollbarWrappedError&&
(e[4]||(e[4]=window._rollbarWrappedError),e[5]||(e[5]=window._rollbarWrappedError._rollbarContext),window._rollbarWrappedError=null);a.uncaughtError.apply(a,e);c&&c.apply(window,e)}function h(a){return n(function(){if(this.notifier)return this.notifier[a].apply(this.notifier,arguments);var c=this,e="scope"===a;e&&(c=new d(this));var g=Array.prototype.slice.call(arguments,0);return window._rollbarShimQueue.push({shim:c,method:a,args:g,ts:new Date}),e?c:void 0})}function f(a,c){if(c.hasOwnProperty&&
c.hasOwnProperty("addEventListener")){var e=c.addEventListener;c.addEventListener=function(c,d,g){e.call(this,c,a.wrap(d),g)};var d=c.removeEventListener;c.removeEventListener=function(a,c,e){d.call(this,a,c&&c._wrapped?c._wrapped:c,e)}}}function n(a,c){return c=c||e,function(){try{return a.apply(this,arguments)}catch(K){c("Rollbar internal error:",K)}}}var l=0;d.init=function(a,c){var e=c.globalAlias||"Rollbar";if("object"==typeof a[e])return a[e];a._rollbarShimQueue=[];a._rollbarWrappedError=null;
c=c||{};var h=new d;return n(function(){if(h.configure(c),c.captureUncaught){h._rollbarOldOnError=a.onerror;a.onerror=function(){var a=Array.prototype.slice.call(arguments,0);g(h,h._rollbarOldOnError,a)};var d,n,z="EventTarget Window Node ApplicationCache AudioTrackList ChannelMergerNode CryptoOperation EventSource FileReader HTMLUnknownElement IDBDatabase IDBRequest IDBTransaction KeyOperation MediaController MessagePort ModalWindow Notification SVGElementInstance Screen TextTrack TextTrackCue TextTrackList WebSocket WebSocketWorker Worker XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload".split(" ");
for(d=0;d<z.length;++d)n=z[d],a[n]&&a[n].prototype&&f(h,a[n].prototype)}return a[e]=h,h},h.logger)()};d.prototype.loadFull=function(a,c,e,d,g){var f=n(function(){var a=c.createElement("script"),g=c.getElementsByTagName("script")[0];a.src=d.rollbarJsUrl;a.async=!e;a.onload=h;g.parentNode.insertBefore(a,g)},this.logger),h=n(function(){var c;if(void 0===a._rollbarPayloadQueue){var e,d,f;for(c=Error("rollbar.js did not load");e=a._rollbarShimQueue.shift();)for(e=e.args,f=0;f<e.length;++f)if(d=e[f],"function"==
typeof d){d(c);break}}"function"==typeof g&&g(c)},this.logger);n(function(){e?f():a.addEventListener?a.addEventListener("load",f,!1):a.attachEvent("onload",f)},this.logger)()};d.prototype.wrap=function(a,c){try{var e;if((e="function"==typeof c?c:function(){return c||{}},"function"!=typeof a)||a._isWrap)return a;if(!a._wrapped){a._wrapped=function(){try{return a.apply(this,arguments)}catch(v){throw v._rollbarContext=e()||{},v._rollbarContext._wrappedSource=a.toString(),window._rollbarWrappedError=
v,v;}};a._wrapped._isWrap=!0;for(var d in a)a.hasOwnProperty(d)&&(a._wrapped[d]=a[d])}return a._wrapped}catch(v){return a}};for(var u="log debug info warn warning error critical global configure scope uncaughtError".split(" "),z=0;z<u.length;++z)d.prototype[u[z]]=h(u[z]);a.exports={Rollbar:d,_rollbarWindowOnError:g}},function(a,c){a.exports=function(a,c){return function(e){if(!e&&!window._rollbarInitialized){e=window.RollbarNotifier;var d=c||{},g=d.globalAlias||"Rollbar",d=window.Rollbar.init(d,a);
d._processShimQueue(window._rollbarShimQueue||[]);window[g]=d;window._rollbarInitialized=!0;e.processPayloads()}}}}])}else window.console.debug("status: rollbar disabled");!function(){var a=document.getElementsByTagName("SCRIPT"),c=0;if(void 0!==a||null!==a){for(var e=0;e<a.length;e++)if(0<=a[e].src.indexOf("comixngn")){a=a[e];c=1;break}if(!c)return-1;cG.comicID=cG.comicID||a.getAttribute("comicID");void 0!==a.getAttribute("plugin")&&null!==a.getAttribute("plugin")&&(c=a.getAttribute("plugin").replace(/\s+/g,"").split(","),cG.root=c);if(void 0!==a.getAttribute("disable")&&null!==a.getAttribute("disable"))for(c=a.getAttribute("disable").replace(/\s+/g,"").split(","),
e=0;e<c.length;e++)""!=c[e]&&void 0!==c[e]&&" "!=c[e]&&(cG.dis[c[e]]=!0);void 0!==a.getAttribute("VERSION")&&null!==a.getAttribute("VERSION")&&(cG.info.vix=a.getAttribute("VERSION"));void 0!==a.getAttribute("air")&&null!==a.getAttribute("air")&&(cG.recyclebin.air=a.getAttribute("air"));void 0!==a.getAttribute("fBox")&&null!==a.getAttribute("fBox")&&(cG.fBox=JSON.parse(a.getAttribute("fBox")))}}();
!function(){for(var a,c,e=document.getElementsByTagName("SCRIPT"),d=0;d<e.length;d++)if(0<=e[d].src.indexOf("comixngn")||0<=e[d].src.indexOf(".cng.")){a=e[d].getAttribute("dir");c=e[d].getAttribute("tir");break}a=a||"";c=c||"";""==cG.root&&(cG.root="def");void 0===cG.REPO.scReq.getScript&&(cG.REPO.scReq.getScript=cG.agent(a+"script.json"),cG.REPO.scReq.getScript.then(function(a,c){cG.script=cG.REPO.script.def=a},function(c,e){4<=cG.info.vrb?console.error(c,e.status):1<=cG.info.vrb&&cG.verbose(1,a+
"script.json not found");cG.script=cG.REPO.script.def=0}));void 0===cG.REPO.scReq.getDecor&&(cG.REPO.scReq.getDecor=cG.agent(c+"decor.html"),cG.REPO.scReq.getDecor.then(function(a,c){cG.decor=cG.REPO.decor.def=a},function(a,c){4<=cG.info.vrb&&console.error(a,c.status);cG.decor=cG.REPO.decor.def=0}));void 0===cG.REPO.scReq.getCtrls&&(cG.REPO.scReq.getCtrls=cG.agent(c+"ctrls.html"),cG.REPO.scReq.getCtrls.then(function(a,c){cG.ctrls=cG.REPO.ctrls.def=a},function(a,c){4<=cG.info.vrb&&console.error(a,
c.status);cG.ctrls=cG.REPO.ctrls.def=0}))}();cG.REPO.stage={def:{id:"def",construct:function(a,c,e,d){var g=function(a,c,e){return void 0===e.url[0]?"":e.absolute||e.url[0].indexOf("https://")+1||e.url[0].indexOf("http://")+1?a:c},h;"undefined"!==typeof Storage&&(h=parseInt(localStorage.getItem(cG.comicID+"|"+a+"|curPage"),10),cG.verbose(1,cG.comicID+"|"+a+"|curPage",":",h));void 0===cG.comix&&0<=cG.prePage&&(h=cG.prePage);var f=new function(a,c,e,d,f){d=d||{};var h=g||function(a){return a};f={parent:null,offset:0,loading:{lines:d.lines||16,
rate:d.rate||1E3/30,diameter:d.diameter||250,back:d.loaderback||"#FFF",color:d.color||"#373737"},config:{dir:d.dir||"assets/",pagestartnum:!1,chapterstartnum:!1,imgprebuffer:d.imgprebuffer||5,imgpostbuffer:d.imgpostbuffer||5,startpage:0,back:d.back||"#FFF"},pages:[],chapters:[]};if(void 0===a)return-1;if("string"===typeof a)f.pages.push({alt:"",hover:"",title:"",url:[a],release:0,note:"",perm:!1,anim8:!1}),a=f;else if(Array.isArray(a)){for(d=0;d<a.length;d++)if(f.pages.push({alt:"",hover:"",title:"",
url:[],release:0,note:"",perm:!1,anim8:!1}),Array.isArray(a[d]))for(var n=0;n<a[d].length;n++)f.pages[d].url.push(a[d][n]);else f.pages[d].url.push(a[d]);a=f}else if(!a.pages.length)a.pages.push({alt:"",hover:"",title:"",url:[],release:0,note:"",perm:!1,anim8:!1});else if(void 0===a.pages[0].url)return-1;if(void 0===c||null==c)c=0;var l=a.pages,u=a.pages.length,z=!0,p=-1,x=a.loading,w=a.config,A=[],B=[],r=new Image,D=!0,F=!1,t=[document.createElement("canvas"),document.createElement("canvas")],G=
t[1].getContext("2d"),y={run:function(a){for(var c=0;c<y[a].length;c++)y[a][c]()},start:[],slidn:[],slidd:[]},H={context:t[0].getContext("2d"),color:x.color,start:Date.now(),lines:x.lines,diameter:x.diameter,rate:x.rate},I=function(a){t[0].style.paddingLeft=(t[1].width-300)/2+"px";var c=Math.floor((Date.now()-a.start)/1E3*a.lines)/a.lines,e=a.color.substr(1);a.context.save();a.context.clearRect(0,0,300,t[1].height);a.context.translate(150,t[1].height/2);a.context.rotate(2*Math.PI*c);3==e.length&&
(e=e[0]+C[0]+e[1]+e[1]+e[2]+e[2]);for(var c=parseInt(e.substr(0,2),16).toString(),d=parseInt(e.substr(2,2),16).toString(),e=parseInt(e.substr(4,2),16).toString(),f=0;f<a.lines;f++)a.context.beginPath(),a.context.rotate(2*Math.PI/a.lines),a.context.moveTo(a.diameter/10,0),a.context.lineTo(a.diameter/4,0),a.context.lineWidth=a.diameter/30,a.context.strokeStyle="rgba("+c+","+d+","+e+","+f/a.lines+")",a.context.stroke();a.context.restore();z?window.setTimeout(I,a.rate,H):a.context.clearRect(0,0,300,t[1].height)},
J=function(a,c){F=!0;var e=function(){F=!1;document.removeEventListener("mousedown",e);document.removeEventListener("keydown",e)};document.addEventListener("mousedown",e);document.addEventListener("keydown",e);if(null===a||void 0===a)a={x:0,y:0};else if(isNaN(a)){if(null===a.y||void 0===a.y)a.y=0;if(null===a.x||void 0===a.x)a.x=0}else a={x:0,y:a};if(null===c||void 0===c||0>=c)c=400;0>a.y&&(a.y=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight);0>a.x&&(a.x=window.innerWidth||
document.documentElement.clientWidth||document.body.clientWidth);var d={x:void 0!==window.pageXOffset?a.x-window.pageXOffset:a.x-document.documentElement.scrollLeft,y:void 0!==window.pageYOffset?a.y-window.pageYOffset:a.y-document.documentElement.scrollTop};if(d=={x:0,y:0})return d;var f=function(a,c,d){F&&(window.scrollBy(Math.floor(a.x)/c,Math.floor(a.y)/c),d+1<5*c?window.setTimeout(f,5,a,c,d+1):e())};window.setTimeout(f,5,d,Math.floor(c/5),0);return d};f=function(){l[this.imaginaryID].loaded=!0};
var E=function(a,c){z=!0;window.setTimeout(I,x.rate,H);y.run("start");0>c&&(c=0);c>=u&&(c=u-1);l[c].loaded||G.clearRect(0,0,t[1].width,t[1].height);a.imaginaryID=c;a.src=h(l[c].url[0],w.dir+l[c].url[0],l[c]);p=c;for(var e=0,d=c-1;d>c-w.imgprebuffer-1&&0<=d;d--)l[d].loaded||(B[e].imaginaryID=d,B[e].src=h(l[d].url[0],w.dir+l[d].url[0],l[d]),e++);e=0;for(d=c+1;d<w.imgpostbuffer+c+1&&d<u;d++)l[d].loaded||(A[e].imaginaryID=d,A[e].src=h(l[d].url[0],w.dir+l[d].url[0],l[d]),e++)};this.count=function(){return u};
this.current=function(){return p};this.callback=function(a,c,e){if(null===a||void 0===a)return y.slidn;if(null===c||void 0===c)return null===e||void 0===e?a?0<a?y.slidd[e]:y.start[e]:y.slidn[e]:a?0<a?y.slidd:y.start:y.slidn;!a||null!==e&&void 0!==e?null!==e&&void 0!==e||y.slidn.push(c):0<a?y.slidd.push(c):y.start.push(c);return 1};this.go=function(a){a=null===a||void 0===a?0:parseInt(a,10);a=isNaN(a)?0:a;E(r,Math.floor(Math.max(0,Math.min(u-1,a))));return a};this.prev=function(){var a=p-1;0<=a&&E(r,
a);return a};this.next=function(){var a=p+1;a<u&&E(r,a);return a};this.frst=function(){0<=p&&E(r,0);return 0};this.last=function(){E(r,u-1);return u-1};this.rand=function(){var a=Math.floor(Math.random()*(u-1));a==p&&(a+=Math.floor(Math.random()*(u-2))+1);E(r,a);return a};this.data=function(a){a=null===a||void 0===a?p:parseInt(a,10);return isNaN(a)?l[p]:l[Math.floor(Math.max(0,Math.min(u-1,a)))]};this.scroll=function(a){return null===a||void 0===a?D:D=a};this.scrollTo=function(a,c){return J(a,c)};
t[0].height=480;t[0].style.background=x.back;t[0].style.paddingLeft="170px";t[0].style.zIndex=0;t[0].style.position="absolute";c?c.appendChild(t[0]):document.body.appendChild(t[0]);window.setTimeout(I,x.rate,H);r=new Image;r.imaginaryID=-1;r.addEventListener("load",function(){l[this.imaginaryID].loaded?G.clearRect(0,0,this.width,this.height):l[this.imaginaryID].loaded=!0;y.run("slidn");t[1].width=this.width;t[1].height=t[0].height=this.height;G.drawImage(this,0,0);z=0;D&&J();y.run("slidd")},!1);for(d=
0;d<l.length;d++)l[d].desig=d?d==l.length-1?1:0:-1,l[d].loaded=!1;for(d=0;d<a.config.imgprebuffer;d++)B.push(new Image),B[d].imaginaryID=-1,B[d].addEventListener("load",f,!1);for(d=0;d<a.config.imgpostbuffer;d++)A.push(new Image),A[d].imaginaryID=-1,A[d].addEventListener("load",f,!1);E(r,void 0===e||null===e||isNaN(e)?w.startpage:e);t[1].height=480;t[1].width=640;t[1].background=w.back;t[1].style.zIndex=1;t[1].style.position="relative";c?c.appendChild(t[1]):document.body.appendChild(t[1]);this.canvi=
t;this.internals=a;this.cb=y}(c,e,h);f.name=a;f.type="def";f.pg=[e];f.at=0;f.my=0;f.navto=function(a){return a<f.pg.length&&null!==a&void 0!==a?f.pg[a]._nav():f.pg[f.my]._nav()};f.ch_data=function(a){var c=f.internals.chapters;a=null===a||void 0===a?f.ch_current():parseInt(a,10);return-1==f.ch_current()?{}:isNaN(a)?c[f.ch_current()]:c[a]};f.ch_count=function(){return f.internals.chapters.length};f.ch_current=function(){for(var a=f.internals.chapters,c=f.current(),e=0;e<a.length;e++)if(a[e].start<=
c&&c<=a[e].end)return e;return-1};f.ch_go=function(a,c){var e=null===a||void 0===a?0:parseInt(a,10),e=isNaN(e)?0:e,d;d=null===c&&void 0===c?"start":"end";return-1==f.ch_current()?f.go():f.go(f.internals.chapters[Math.floor(Math.max(0,Math.min(f.internals.chapters.length-1,e)))][d])};f.ch_prev=function(a){if(-1==f.ch_current())return f.go();a=null===a&&void 0===a?"start":"end";return f.go(f.internals.chapters[Math.max(0,f.ch_current()-1)][a])};f.ch_next=function(a){if(-1==f.ch_current())return f.go();
a=null===a&&void 0===a?"start":"end";return f.go(f.internals.chapters[Math.min(f.ch_count()-1,f.ch_current()+1)][a])};f.ch_frst=function(a){return-1==f.ch_current()?f.go():f.go(f.internals.chapters[0][null===a&&void 0===a?"start":"end"])};f.ch_last=function(a){if(-1==f.ch_current())return f.go();a=null===a&&void 0===a?"start":"end";return f.go(f.internals.chapters[f.ch_count()-1][a])};f.callback(1,function(){cG.fBox.pgesve&&localStorage.setItem(cG.comicID+"|"+a+"|curPage",cG.cPanel[a].current().toString());
if(cG.comix===cG.cPanel[a]){var c=cG.script.config.chapterstartnum?1:0,d=cG.script.config.pagestartnum?1:0,f=cG.cPanel[a].current();switch(cG.script.config.orderby){case 1:console.log(f);var g=cG.cPanel[a].ch_current(),f=g+c+"/"+(f-cG.cPanel[a].internals.chapters[g].start+d);break;case 2:c=new Date(1E3*cG.cPanel[a].data().release);d=cG.script.config.dateformat.split("/");for(f=0;3>f;f++)d[f].indexOf("Y")+1?d[f]=c.getYear()-100:d[f].indexOf("M")+1?d[f]=c.getMonth()+1:d[f].indexOf("D")+1&&(d[f]=c.getDate());
f=d.join("/");break;default:f+=d}cG.verbose(1,a,"Pushing state:",f);cG.fBox.pgepsh&&history.pushState({},null,"#/"+f)}if(void 0!==cG.queue.stageChange)for(var h in cG.queue.stageChange)if(cG.queue.stageChange.hasOwnProperty(h))cG.queue.stageChange[h](cG.cPanel[a]);h=cG.cPanel[a].data(cG.cPanel[a].current()).special;f=document.getElementById(a+"_tempScript");c=cG.HELPERS.stick(cG.cPanel[a].canvi[0],null,null,0);d=cG.HELPERS.stick(cG.cPanel[a].canvi[1],null,null,1);void 0!==f&&null!==f&&(e.removeChild(f),
c._show(),d._show());null!==h&&void 0!==h&&""!=h&&(f=document.createElement("SPAN"),f.setAttribute("id",a+"_tempScript"),f.innerHTML=h,e.appendChild(f),c._hide(),d._hide())});cG.comix=cG.fBox.protect?cG.comix||f:f;return f}}};cG.stage=cG.REPO.stage.def;cG.queue.stageChange=cG.queue.stageChange||{};cG.queue.stageChange.hotcontent=function(){for(var a=document.getElementsByClassName("cg-hot"),c=[],e=0;e<a.length;e++)c.push({place:a[e].parentNode,time:a[e]});for(;a.length;)a[0].parentNode.removeChild(a[0]);for(a=0;a<c.length;a++)console.log("queued stuff",cG.info.vrb,c[a]),c[a].place.appendChild(c[a].time)};
cG.queue.stageChange.controller=function(a){for(var c,e,d,g,h,f=a.data().desig,n=0;n<a.brains.length;n++){h=cG.HELPERS.FindClassesInside(a.brains[n],["frst","last","prev","next","rand"]);for(var l=0;l<h.length;l++){c=h[l];e=c.getAttribute("class");g=(d=a.brains[n].getAttribute("nohide"))?d:"disable";if(("frst"==e||"prev"==e)&&-1==f)"frst"==e?c.setAttribute("class","frst "+g):c.setAttribute("class","prev "+g),d||c.setAttribute("style","display:none;");else if(e=="frst "+g||e=="prev "+g)e=="frst "+
g?c.setAttribute("class","frst"):c.setAttribute("class","prev"),d||c.setAttribute("style","display:inline;");if(("last"==e||"next"==e)&&1==f)"last"==e?c.setAttribute("class","last "+g):c.setAttribute("class","next "+g),d||c.setAttribute("style","display:none;");else if(e=="last "+g||e=="next "+g)e=="last "+g?c.setAttribute("class","last"):c.setAttribute("class","next"),d||c.setAttribute("style","display:inline;")}}};cG.HELPERS={};cG.HELPERS.smartAttrib=function(a,c,e){var d;e=parseInt(e);e=isNaN(e)?0:e;var g=c[a.nodeName.toLowerCase()];if(void 0!==g&&0>=e){if(void 0===g.count||0!=g.count){d=Object.keys(g);for(var h=0;h<d.length;h++)"count"!=d[h]&&("innerHTML"==d[h]?a.innerHTML=g[d[h]]:a.setAttribute(d[h],g[d[h]]));0<g.count&&c[a.nodeType.toLowerCase()].count--}}else e--;for(d=0;d<a.children.length;d++)cG.HELPERS.smartAttrib(a.children[d],c,e)};
cG.HELPERS.stick=function(a,c,e,d){var g=[function(a){if(void 0!==c||null!==c)return c.splice(a,0,this),this._pos=a},function(a){if(void 0!==c||null!==c){var e=c[this._pos];c[this._pos]=c[a];c[a]=e;return this._pos=a}},function(){if(void 0!==e||null!==e){e.at=this._pos;this._show();for(var a=this._pos,d=0;d<c.length;d++)this._pos!=d&&c[d]._hide();this._chain.length&&(a=[a]);for(d=0;d<this._chain.length;d++)this._chain[d]._show(),a.push(d);return a}},function(){null===this.style.display||void 0===
this.style.display?this.setAttribute("style",this.getAttribute("style")+"display: block;"):this.style.display="block";return this._pos},function(){null===this.style.display||void 0===this.style.display?this.setAttribute("style",this.getAttribute("style")+"display: none;"):this.style.display="none";return this._pos},function(){null===this.style.visibility||void 0===this.style.visibility?this.setAttribute("style",this.getAttribute("style")+"visibility:hidden;"):this.style.visibility="hidden";return this._pos},
function(){null===this.style.visibility||void 0===this.style.visibility?this.setAttribute("style",this.getAttribute("style")+"visibility: visible;"):this.style.visibility="visible";return this._pos},function(a){if(void 0!==c||null!==c)return this._chain.push(c[a]),a},function(a){if(void 0!==c||null!==c)return this._chain.splice(this._chain.indexOf(c[a]),1)},function(a){if(void 0!==c||null!==c)return this._chain.push(c[a]),c[a]._chain.push(this),[a,this._pos]},function(a){if(void 0!==c||null!==c)return this._chain.splice(this._chain.indexOf(c[a]),
1).concat(c[a]._chain.splice(c[a]._chain.indexOf(this._pos),1))}];a._order=g[0];a._switch=g[1];a._nav=g[2];a._show=g[3];a._hide=g[4];a._cloak=g[5];a._uncloak=g[6];a._link=g[7];a._unlink=g[8];a._bind=g[9];a._unbind=g[10];a._pos=d;a._chain=[];return a};
cG.HELPERS.FEbyIdAI=function(a,c,e){var d=[],g,h=c.indexOf(a.getAttribute("id"))+1;if(!h){g=a.className.split(" ");for(b=0;b<g.length&&!(h=c.indexOf(g[b]),0<=h);b++);h++}h&&(a.innerHTML=e[h-1],d.push(a));for(g=0;g<a.children.length;g++)d=d.concat(cG.HELPERS.FEbyIdAI(a.children[g],c,e));return d};
cG.HELPERS.FindClassesInside=function(a,c){for(var e=[],d,g=a.className.split(" "),h=0;h<g.length&&!(d=c.indexOf(g[h])+1);h++);d&&e.push(a);for(d=0;d<a.children.length;d++)e=e.concat(cG.HELPERS.FindClassesInside(a.children[d],c));return e};cG.HELPERS.renameEles=function(a,c,e,d){for(var g=0;g<c.children.length;g++)cG.HELPERS.renameEles(!0,c.children[g],e,d);a&&(a=void 0===e?"":e+"_",d=void 0===d?"":"_"+d,c.setAttribute("id",a+c.getAttribute("id")+d),""!=c.className&&(c.className=" "+a+c.className))};cG.addRender=function(a,c,e){var d=function(a){for(var e,d=0;d<a.length;d++)e=Array.isArray(a[d])?{alt:"",hover:"",title:"",url:a[d],release:0,note:"",perm:!1,anim8:!1}:{alt:"",hover:"",title:"",url:[a[d]],release:0,note:"",perm:!1,anim8:!1},void 0!==c&&null!==c?c.pages.push(e):cG.REPO.script.def.pages.push(e);if(void 0===c||null===c)cG.script=cG.REPO.script.def;else return c;return cG.script};if(void 0===a||null===a){if(void 0===e||null===e)e="additive";a=syncJSON(cG.REPO.scReq.address+e+".json")}return d(a.p)};
cG.controlInjection=function(a){!cG.documentcontrolkeyset&&cG.fBox.arrow&&(cG.documentcontrolkeyset=!0,document.onkeyup=function(a){a=a||window.event;"37"==a.keyCode?cG.comix.prev():"39"==a.keyCode?cG.comix.next():"82"==a.keyCode&&cG.comix.rand()});var c=[],e=cG.ctrls?cG.ctrls:'<ul><li style="display: inline;"><button class="frst" >|<</button></li><li style="display: inline;"><button class="prev" rel="prev" accesskey="p">< Prev</button></li><li style="display: inline;"><button class="rand" >Random</button></li><li style="display: inline;"><button class="next" rel="next" accesskey="n">Next ></button></li><li style="display: inline;"><button class="last" >>|</button></li></ul>',
d,g=function(a,c){a.setAttribute("mind",1);document.getElementById(a.id+"_location").title=cG.cPanel[a.id].data().hover;for(var e=a.getAttribute("comix")?document.getElementsByClassName("cgtitle"):[],d,g=a.getAttribute("comix")?document.getElementsByClassName("cgdate"):[],f=0;f<e.length;f++)e[f].innerHTML=cG.cPanel[a.id].data().title;for(f=0;f<g.length;f++)d=new Date(1E3*cG.cPanel[a.id].data().release),g[f].innerHTML=d.toDateString();for(var f=document.getElementsByClassName("frst"),h=document.getElementsByClassName("prev"),
n=document.getElementsByClassName("rand"),q=document.getElementsByClassName("next"),v=document.getElementsByClassName("last"),k=""+a.id,m=0;m<f.length;m++)c.getAttribute("cglink")!=k||f[m].getAttribute("cgae")||f[m].addEventListener("click",function(){var c=cG.cPanel[k].data(cG.cPanel[k].frst());document.getElementById(k+"_location").title=c.hover;var f=document.getElementById(k);e=f.getAttribute("comix")?document.getElementsByClassName("cgtitle"):[];for(var h=0;h<e.length;h++)e[h].innerHTML=c.title;
g=f.getAttribute("comix")?document.getElementsByClassName("cgdate"):[];for(h=0;h<g.length;h++)d=new Date(1E3*cG.cPanel[a.id].data().release),g[h].innerHTML=d.toDateString()}),f[m].setAttribute("cgae","1");for(m=0;m<h.length;m++)c.getAttribute("cglink")!=k||h[m].getAttribute("cgae")||h[m].addEventListener("click",function(){var c=cG.cPanel[k].data(cG.cPanel[k].prev());document.getElementById(k+"_location").title=c.hover;var f=document.getElementById(k);e=f.getAttribute("comix")?document.getElementsByClassName("cgtitle"):
[];for(var h=0;h<e.length;h++)e[h].innerHTML=c.title;g=f.getAttribute("comix")?document.getElementsByClassName("cgdate"):[];for(h=0;h<g.length;h++)d=new Date(1E3*cG.cPanel[a.id].data().release),g[h].innerHTML=d.toDateString()}),h[m].setAttribute("cgae","1");for(m=0;m<n.length;m++)c.getAttribute("cglink")!=k||n[m].getAttribute("cgae")||n[m].addEventListener("click",function(){var c=cG.cPanel[k].data(cG.cPanel[k].rand());document.getElementById(k+"_location").title=c.hover;var f=document.getElementById(k);
e=f.getAttribute("comix")?document.getElementsByClassName("cgtitle"):[];for(var h=0;h<e.length;h++)e[h].innerHTML=c.title;g=f.getAttribute("comix")?document.getElementsByClassName("cgdate"):[];for(h=0;h<g.length;h++)d=new Date(1E3*cG.cPanel[a.id].data().release),g[h].innerHTML=d.toDateString()}),n[m].setAttribute("cgae","1");for(m=0;m<q.length;m++)c.getAttribute("cglink")!=k||q[m].getAttribute("cgae")||q[m].addEventListener("click",function(){var c=cG.cPanel[k].data(cG.cPanel[k].next());document.getElementById(k+
"_location").title=c.hover;var f=document.getElementById(k);e=f.getAttribute("comix")?document.getElementsByClassName("cgtitle"):[];for(var h=0;h<e.length;h++)e[h].innerHTML=c.title;g=f.getAttribute("comix")?document.getElementsByClassName("cgdate"):[];for(h=0;h<g.length;h++)d=new Date(1E3*cG.cPanel[a.id].data().release),g[h].innerHTML=d.toDateString()}),q[m].setAttribute("cgae","1");for(m=0;m<v.length;m++)c.getAttribute("cglink")!=k||v[m].getAttribute("cgae")||v[m].addEventListener("click",function(){var c=
cG.cPanel[k].data(cG.cPanel[k].last());document.getElementById(k+"_location").title=c.hover;var f=document.getElementById(k);e=f.getAttribute("comix")?document.getElementsByClassName("cgtitle"):[];for(var h=0;h<e.length;h++)e[h].innerHTML=c.title;g=f.getAttribute("comix")?document.getElementsByClassName("cgdate"):[];for(h=0;h<g.length;h++)d=new Date(1E3*cG.cPanel[a.id].data().release),g[h].innerHTML=d.toDateString()}),v[m].setAttribute("cgae","1")};if(void 0===a)c=document.getElementsByClassName("venue");
else if(Array.isArray(a)){if(0>=a.length)return console.error("controlInjection can only operate on elements or arrays of elements");c=c.concat(a)}else{if(void 0===a.nodeName)return console.error("controlInjection can only operate on elements or arrays of elements");c.push(a)}a=document.querySelectorAll("[cglink]");for(var h=0;h<a.length;h++)d=a[h].getAttribute("cglink"),void 0!==cG.cPanel[d]&&null!==cG.cPanel[d]&&(cG.cPanel[d].brains=cG.cPanel[d].brains||[],cG.cPanel[d].brains.push(a[h]),g(document.getElementById(d),
a[h]));for(a=0;a<c.length;a++)c[a].getAttribute("mind")||(d=document.createElement("DIV"),d.innerHTML=!c[a].getAttribute("readdir")&&!cG.script.config.readdir||cG.ctrls?e:'<ul><li style="display: inline;"><button class="last" ><|</button></li><li style="display: inline;"><button class="next" rel="next" accesskey="n">Next <</button></li><li style="display: inline;"><button class="rand" >Random</button></li><li style="display: inline;"><button class="prev" rel="prev" accesskey="p">> Prev</button></li><li style="display: inline;"><button class="frst" >|></button></li></ul>',
d=d.children[0],c[a].getAttribute("comix")?d.setAttribute("style","display:block;"):d.setAttribute("style","display:none;"),d.setAttribute("cglink",c[a].id),c[a].parentNode.insertBefore(d,c[a].nextSibling),cG.fBox.click&&(cG.cPanel[c[a].id].canvi[1].style.cursor="pointer",cG.cPanel[c[a].id].canvi[1].addEventListener("click",cG.cPanel[c[a].id].next)),cG.cPanel[c[a].id].brains=cG.cPanel[c[a].id].brains||[],cG.cPanel[c[a].id].brains.push(d),g(c[a],d))};
cG.stageInjection=function(a,c){if(void 0===c||null===c)c=0;else if(20<c)return console.error("cG.stageInjection has timed out"),cG.cPanel;if(""===cG.script||""===cG.decor||""===cG.ctrls)return setTimeout(cG.stageInjection,300,a,++c),cG.cPanel;if(!cG.script&&!cG.fBox.vscript)return console.error("No script.JSON found. script.JSON is REQUIRED to create any stage. Please create a script.JSON or move it to the directory specified in the script tag for comix-ngn or bellerophon if it is added.");if(!cG.script&&
cG.fBox.vscript)return cG.script=cG.fBox.vscript,setTimeout(cG.stageInjection,300,a,0),cG.cPanel;var e=[];if(void 0===a)e=document.getElementsByClassName("venue");else if(Array.isArray(a)){if(0>=a.length)return console.error("stageInjection can only operate on elements or arrays of elements");e=e.concat(a)}else{if(void 0===a.nodeName)return console.error("stageInjection can only operate on elements or arrays of elements");e.push(a)}""!=cG.recyclebin.air&&void 0!==cG.recyclebin.air&&null!==cG.recyclebin.air&&
(cG.script.config.dir=cG.recyclebin.air);cG.REPO.scReq.address=cG.REPO.scReq.address||cG.recyclebin.dir;for(var d in cG.recyclebin)cG.recyclebin.hasOwnProperty(d)&&null!==d&&(cG.recyclebin[d]=null);var g=cG.cPanel,h=cG.decor?cG.decor:'<div id="location"></div><div id="archive">Archive</div><div id="me">About Me</div>',f=[],n=function(a,c){cG.fBox.noverwrite||(e[a].innerHTML="");var d;if(null===c||void 0===c)if(d=e[a].getAttribute("script"),""==d||"script.json"==d||void 0===d||null===d)d=cG.script;
else return f.push(cG.agent(d).then(function(c,d){n(a,c)},function(c,d){console.error(c,d.status);n(a,"")})),0;else d=""==c?cG.script:c;d.config.additive&&cG.fBox.addme&&(cG.addRender(null,null,d.config.additive),d.config.additive="");var p=e[a].getAttribute("id"),l=e[a].getAttribute("use"),u=e[a].getAttribute("config"),q=e[a].getAttribute("additive");""!=q&&void 0!==q&&null!==q&&cG.fBox.addme&&(null===c||void 0===c?(d=cG.addRender(null,null,q),e[a].removeAttribute("additive")):d=cG.addRender(null,
c,q));e[a].setAttribute("cgcij",1);if(""==p||void 0===p||null===p){p="STG"+a;for(q=1;document.getElementById(p);)p="STG"+(a+q++);p=p.toString();e[a].setAttribute("id",p)}if(""==l||void 0===l||null===l)l="def";if(""!=u)try{u=JSON.parse(u)}catch(F){console.debug("The following configuration settings are malformed for plugin["+l+"]: ",u,"\nIt has been ignored"),u={}}else u={};for(var l=[],q=[],v=e[a].children,k=0;k<v.length;k++)"venue"==v[k].getAttribute("class")?l.push(v[k]):q.push(v[k]);e[a].innerHTML=
h;cG.HELPERS.renameEles(!1,e[a],p);v=document.getElementById(p+"_location");void 0===v||null===v?v=e[a]:cG.HELPERS.smartAttrib(e[a],{div:{style:"display: none;"}},1);v.style.display="block";k=document.getElementById(p+"_archive");if(void 0!==k&&null!==k){var m="<ul>",x="<ul>",w="<ul>",A=0,B=0;d.config.pagestartnum&&(B=1);d.config.chapterstartnum&&(A=1);for(var r=0;r<d.pages.length;r++)m=m+"<li onclick=\"cG.cPanel['"+p+"'].go("+r+");this.parentElement.parentElement.style.display='none';document.getElementById('"+
p+"_location').style.display='block';\" style=\"display:block;\">"+(r+B)+"</li>";for(r=0;r<d.chapters.length;r++){for(var x=x+"<li onclick=\"cG.cPanel['"+p+"'].ch_go("+r+");this.parentElement.parentElement.style.display='none';document.getElementById('"+p+"_location').style.display='block';\" style=\"display:block;\">"+(r+A)+"</li>",w=w+"<li onclick=\"cG.cPanel['"+p+"'].ch_go("+r+");this.parentElement.parentElement.style.display='none';document.getElementById('"+p+"_location').style.display='block';\" style=\"display:block;\">"+
(r+A)+"<ul>",D=d.chapters[r].start;D<d.chapters[r].end+1;D++)w=w+"<li onclick=\"cG.cPanel['"+p+"'].go("+D+");this.parentElement.parentElement.parentElement.style.display='none';document.getElementById('"+p+"_location').style.display='block';\" style=\"display:block;\">"+(D+B)+"</li>";w+="</ul></li>"}m+="</ul>";x+="</ul>";w+="</ul>";if(""==k.innerHTML||"Archive"==k.innerHTML)k.innerHTML=w+m+x}k=p;g[k]=cG.stage.construct(p,d,v,u);cG.fBox.protect?e[a].getAttribute("id")==cG.comix.name&&e[a].setAttribute("comix",
1):e[a].setAttribute("comix",-1);m=e[a].children;for(x=1;x<m.length;x++)m[x]!=v&&g[k].pg.push(m[x]);for(r=0;r<q.length;r++)q[r].style="display: none;",e[a].appendChild(q[r]),g[k].pg.push(q[r]);for(q=0;q<l.length;q++)v=l[q].getAttribute("id"),m=l[q].getAttribute("use"),x=l[q].getAttribute("config"),w=document.createElement("DIV"),w.setAttribute("id",v||p+"_"+q),w.setAttribute("style","display:none;"),w.my=q,g[k+"_"+q]=cG.stage.construct(v||p+"_"+q,m||d,w,x||u),e[a].appendChild(w),g[k].pg.push(w),g[k+
"_"+q].my=q;for(d=0;d<g[k].pg.length;d++)cG.HELPERS.stick(g[k].pg[d],g[k].pg,g[k],d)};for(d=0;d<e.length;d++)1!=!e[d].getAttribute("cgcij")&&cG.fBox.noverwrite||n(d);cG.cPanel=g;cG.controlInjection(a);return g};
cG.route2page=cG.route2page||function(a){if(!cG.fBox.rtepge)return 0;if(null===a||void 0===a||!a){var c;a=[];for(var e in this.params)this.params.hasOwnProperty(e)&&null!==e&&void 0!==e&&(c=Number(this.params[e]),isNaN(c)?a.push(this.params[e]):a.push(c));a.length||(a=0)}if(""===cG.script)return setTimeout(cG.route2page,300,a);if(!cG.script)return-1;e=cG.script.config.pagestartnum?1:0;if(Array.isArray(a))if(1==a.length&&!isNaN(a[0]%1)&&a[0]>=cG.script.pages.length)a=a[0];else{var d;c=cG.script.pages;
switch(a.length){case 1:a=a[0];break;case 2:a[0]<cG.script.chapters.length||(a=-1,c=[]);break;case 3:if(d=cG.script.config.dateformat.split("/"),isNaN(a[0]%1)||isNaN(a[1]%1)||isNaN(a[2]%1))a=-1,c=[];else{for(var g=0;3>g;g++)d[g].indexOf("Y")+1?d[g]=0:d[g].indexOf("M")+1?d[g]=1:d[g].indexOf("D")+1&&(d[g]=2);1900<a[d[0]].length&&(a[d[0]]+=2E3);a=(new Date(a[d[0]],a[d[1]],a[d[2]])).getTime()}}d=String(a);for(g=0;g<c.length;g++)if(c[g].alt.indexOf(d)+1||c[g].hover.indexOf(d)+1||c[g].title.indexOf(d)+
1||c[g].release==Number(d)){a=g+e;break}}cG.prePage=a-e;if(void 0!==cG.comix&&cG.prePage!=cG.comix.current())for(cG.comix.go(cG.prePage),a=cG.comix.data(cG.prePage),document.getElementById(cG.comix.name+"_location").title=a.hover,document.getElementById(cG.comix.name+"_location"),e=document.getElementsByClassName("cgtitle"),c=0;c<e.length;c++)e[c].innerHTML=a.title;cG.verbose(1,"AutoPage: "+cG.prePage)};Path.map("#/:v1(/:v2/:v3/:v4/:v5/:v6/:v7/:v8/:v9)").to(cG.route2page);
domReady(function(){Path.listen();document.getElementById("$COMICNGWRITER$$$")||console.log("%c %c %c comix-ngn v"+cG.info.vix+" %c \u262f %c \u00a9 2015 Oluwaseun Ogedengbe %c Plugins: "+cG.$GPC,"color:white; background:#2EB531","background:purple","color:white; background:#32E237","color:red; background:black","color:white; background:#2EB531","color:white; background:purple");for(var a=document.getElementsByTagName("SCRIPT"),c,e=0;e<a.length;e++)if(void 0!=a[e].getAttribute("src")&&0<=a[e].getAttribute("src").indexOf("comixngn")){c=
a[e].getAttribute("auto");break}(null===c||c||void 0===c||""==c)&&cG.fBox.fstrun&&cG.stageInjection()});