j1-template 2021.3.0 → 2021.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,12 @@
1
- (function(e){var t={};function n(r){if(t[r]){return t[r].exports}var i=t[r]={i:r,l:false,exports:{}};e[r].call(i.exports,i,i.exports,n);i.l=true;return i.exports}n.m=e;n.c=t;n.d=function(e,t,r){if(!n.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:r})}};n.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})};n.t=function(e,t){if(t&1)e=n(e);if(t&8)return e;if(t&4&&typeof e==="object"&&e&&e.__esModule)return e;var r=Object.create(null);n.r(r);Object.defineProperty(r,"default",{enumerable:true,value:e});if(t&2&&typeof e!="string")for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r};n.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};n.d(t,"a",t);return t};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};n.p="/assets/themes/j1/core/js";return n(n.s=2)})([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){if(typeof window==="object")n=window}e.exports=n},function(e,t){e.exports={EN:"English",DE:"German",FR:"French",ES:"Spanish",IT:"Italian",NL:"Dutch",PL:"Polish"}},function(e,t,n){window.Cookies=n(3);window.log4javascript=n(4);window.liteURL=n(5);window.platform=n(6);window.j1.adapter=n(8);window.j1.anime=n(9);window.j1.core=n(10);window.j1.core.navigator=n(11);window.j1.core.asciidoctor=n(12);window.j1.core.scrollSmooth=n(13);window.deeplTranslator=n(14);var r=n(24);var i=n(25);var a=n(31);var o=n(32)},function(e,t,n){var r,i;
1
+ (function(e){var t={};function n(r){if(t[r]){return t[r].exports}var i=t[r]={i:r,l:false,exports:{}};e[r].call(i.exports,i,i.exports,n);i.l=true;return i.exports}n.m=e;n.c=t;n.d=function(e,t,r){if(!n.o(e,t)){Object.defineProperty(e,t,{enumerable:true,get:r})}};n.r=function(e){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})};n.t=function(e,t){if(t&1)e=n(e);if(t&8)return e;if(t&4&&typeof e==="object"&&e&&e.__esModule)return e;var r=Object.create(null);n.r(r);Object.defineProperty(r,"default",{enumerable:true,value:e});if(t&2&&typeof e!="string")for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r};n.n=function(e){var t=e&&e.__esModule?function t(){return e["default"]}:function t(){return e};n.d(t,"a",t);return t};n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};n.p="/assets/themes/j1/core/js";return n(n.s=2)})([function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){if(typeof window==="object")n=window}e.exports=n},function(e,t){e.exports={EN:"English",DE:"German",FR:"French",ES:"Spanish",IT:"Italian",NL:"Dutch",PL:"Polish"}},function(e,t,n){window.Cookies=n(3);window.yaml=n(4);window.log4javascript=n(5);window.liteURL=n(6);window.platform=n(7);window.j1.adapter=n(9);window.j1.anime=n(10);window.j1.core=n(11);window.j1.core.navigator=n(12);window.j1.core.asciidoctor=n(13);window.j1.core.scrollSmooth=n(14);window.deeplTranslator=n(15);var r=n(25);var i=n(31);var a=n(32)},function(e,t,n){var r,i;
2
2
  /*!
3
3
  * JavaScript Cookie v2.2.1
4
4
  * https://github.com/js-cookie/js-cookie
5
5
  *
6
6
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
7
7
  * Released under the MIT license
8
- */(function(a){var o;if(true){!(r=a,i=typeof r==="function"?r.call(t,n,t,e):r,i!==undefined&&(e.exports=i));o=true}if(true){e.exports=a();o=true}if(!o){var s=window.Cookies;var l=window.Cookies=a();l.noConflict=function(){window.Cookies=s;return l}}})((function(){function e(){var e=0;var t={};for(;e<arguments.length;e++){var n=arguments[e];for(var r in n){t[r]=n[r]}}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function a(t,n,a){if(typeof document==="undefined"){return}a=e({path:"/"},i.defaults,a);if(typeof a.expires==="number"){a.expires=new Date(new Date*1+a.expires*864e5)}a.expires=a.expires?a.expires.toUTCString():"";try{var o=JSON.stringify(n);if(/^[\{\[]/.test(o)){n=o}}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in a){if(!a[l]){continue}s+="; "+l;if(a[l]===true){continue}s+="="+a[l].split(";")[0]}return document.cookie=t+"="+n+s}function o(e,n){if(typeof document==="undefined"){return}var i={};var a=document.cookie?document.cookie.split("; "):[];var o=0;for(;o<a.length;o++){var s=a[o].split("=");var l=s.slice(1).join("=");if(!n&&l.charAt(0)==='"'){l=l.slice(1,-1)}try{var c=t(s[0]);l=(r.read||r)(l,c)||t(l);if(n){try{l=JSON.parse(l)}catch(e){}}i[c]=l;if(e===c){break}}catch(e){}}return e?i[e]:i}i.set=a;i.get=function(e){return o(e,false)};i.getJSON=function(e){return o(e,true)};i.remove=function(t,n){a(t,"",e(n,{expires:-1}))};i.defaults={};i.withConverter=n;return i}return n((function(){}))}))},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(e,t){if(true){!(__WEBPACK_AMD_DEFINE_FACTORY__=e,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})((function(){if(!Array.prototype.push){Array.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){this[this.length]=arguments[e]}return this.length}}if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length>0){var e=this[0];for(var t=0,n=this.length-1;t<n;t++){this[t]=this[t+1]}this.length=this.length-1;return e}}}if(!Array.prototype.splice){Array.prototype.splice=function(e,t){var n=this.slice(e+t);var r=this.slice(e,e+t);this.length=e;var i=[];for(var a=0,o=arguments.length;a<o;a++){i[a]=arguments[a]}var s=i.length>2?n=i.slice(2).concat(n):n;for(a=0,o=s.length;a<o;a++){this.push(s[a])}return r}}function isUndefined(e){return typeof e=="undefined"}function EventSupport(){}EventSupport.prototype={eventTypes:[],eventListeners:{},setEventTypes:function(e){if(e instanceof Array){this.eventTypes=e;this.eventListeners={};for(var t=0,n=this.eventTypes.length;t<n;t++){this.eventListeners[this.eventTypes[t]]=[]}}else{handleError("log4javascript.EventSupport ["+this+"]: setEventTypes: eventTypes parameter must be an Array")}},addEventListener:function(e,t){if(typeof t=="function"){if(!array_contains(this.eventTypes,e)){handleError("log4javascript.EventSupport ["+this+"]: addEventListener: no event called '"+e+"'")}this.eventListeners[e].push(t)}else{handleError("log4javascript.EventSupport ["+this+"]: addEventListener: listener must be a function")}},removeEventListener:function(e,t){if(typeof t=="function"){if(!array_contains(this.eventTypes,e)){handleError("log4javascript.EventSupport ["+this+"]: removeEventListener: no event called '"+e+"'")}array_remove(this.eventListeners[e],t)}else{handleError("log4javascript.EventSupport ["+this+"]: removeEventListener: listener must be a function")}},dispatchEvent:function(e,t){if(array_contains(this.eventTypes,e)){var n=this.eventListeners[e];for(var r=0,i=n.length;r<i;r++){n[r](this,e,t)}}else{handleError("log4javascript.EventSupport ["+this+"]: dispatchEvent: no event called '"+e+"'")}}};var applicationStartDate=new Date;var uniqueId="log4javascript_"+applicationStartDate.getTime()+"_"+Math.floor(Math.random()*1e8);var emptyFunction=function(){};var newLine="\r\n";var pageLoaded=false;function Log4JavaScript(){}Log4JavaScript.prototype=new EventSupport;var log4javascript=new Log4JavaScript;log4javascript.version="1.4.13";log4javascript.edition="log4javascript";function toStr(e){if(e&&e.toString){return e.toString()}else{return String(e)}}function getExceptionMessage(e){if(e.message){return e.message}else if(e.description){return e.description}else{return toStr(e)}}function getUrlFileName(e){var t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return e.substr(t+1)}function getExceptionStringRep(e){if(e){var t="Exception: "+getExceptionMessage(e);try{if(e.lineNumber){t+=" on line number "+e.lineNumber}if(e.fileName){t+=" in file "+getUrlFileName(e.fileName)}}catch(e){logLog.warn("Unable to obtain file and line information for error")}if(showStackTraces&&e.stack){t+=newLine+"Stack trace:"+newLine+e.stack}return t}return null}function bool(e){return Boolean(e)}function trim(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function splitIntoLines(e){var t=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.split("\n")}var urlEncode=typeof window.encodeURIComponent!="undefined"?function(e){return encodeURIComponent(e)}:function(e){return escape(e).replace(/\+/g,"%2B").replace(/"/g,"%22").replace(/'/g,"%27").replace(/\//g,"%2F").replace(/=/g,"%3D")};function array_remove(e,t){var n=-1;for(var r=0,i=e.length;r<i;r++){if(e[r]===t){n=r;break}}if(n>=0){e.splice(n,1);return true}else{return false}}function array_contains(e,t){for(var n=0,r=e.length;n<r;n++){if(e[n]==t){return true}}return false}function extractBooleanFromParam(e,t){if(isUndefined(e)){return t}else{return bool(e)}}function extractStringFromParam(e,t){if(isUndefined(e)){return t}else{return String(e)}}function extractIntFromParam(e,t){if(isUndefined(e)){return t}else{try{var n=parseInt(e,10);return isNaN(n)?t:n}catch(n){logLog.warn("Invalid int param "+e,n);return t}}}function extractFunctionFromParam(e,t){if(typeof e=="function"){return e}else{return t}}function isError(e){return e instanceof Error}if(!Function.prototype.apply){Function.prototype.apply=function(obj,args){var methodName="__apply__";if(typeof obj[methodName]!="undefined"){methodName+=String(Math.random()).substr(2)}obj[methodName]=this;var argsStrings=[];for(var i=0,len=args.length;i<len;i++){argsStrings[i]="args["+i+"]"}var script="obj."+methodName+"("+argsStrings.join(",")+")";var returnValue=eval(script);delete obj[methodName];return returnValue}}if(!Function.prototype.call){Function.prototype.call=function(e){var t=[];for(var n=1,r=arguments.length;n<r;n++){t[n-1]=arguments[n]}return this.apply(e,t)}}var logLog={quietMode:false,debugMessages:[],setQuietMode:function(e){this.quietMode=bool(e)},numberOfErrors:0,alertAllErrors:false,setAlertAllErrors:function(e){this.alertAllErrors=e},debug:function(e){this.debugMessages.push(e)},displayDebug:function(){alert(this.debugMessages.join(newLine))},warn:function(e,t){},error:function(e,t){if(++this.numberOfErrors==1||this.alertAllErrors){if(!this.quietMode){var n="log4javascript error: "+e;if(t){n+=newLine+newLine+"Original error: "+getExceptionStringRep(t)}alert(n)}}}};log4javascript.logLog=logLog;log4javascript.setEventTypes(["load","error"]);function handleError(e,t){logLog.error(e,t);log4javascript.dispatchEvent("error",{message:e,exception:t})}log4javascript.handleError=handleError;var enabled=!(typeof log4javascript_disabled!="undefined"&&log4javascript_disabled);log4javascript.setEnabled=function(e){enabled=bool(e)};log4javascript.isEnabled=function(){return enabled};var useTimeStampsInMilliseconds=true;log4javascript.setTimeStampsInMilliseconds=function(e){useTimeStampsInMilliseconds=bool(e)};log4javascript.isTimeStampsInMilliseconds=function(){return useTimeStampsInMilliseconds};log4javascript.evalInScope=function(expr){return eval(expr)};var showStackTraces=false;log4javascript.setShowStackTraces=function(e){showStackTraces=bool(e)};var Level=function(e,t){this.level=e;this.name=t};Level.prototype={toString:function(){return this.name},equals:function(e){return this.level==e.level},isGreaterOrEqual:function(e){return this.level>=e.level}};Level.ALL=new Level(Number.MIN_VALUE,"ALL");Level.TRACE=new Level(1e4,"TRACE");Level.DEBUG=new Level(2e4,"DEBUG");Level.INFO=new Level(3e4,"INFO");Level.WARN=new Level(4e4,"WARN");Level.ERROR=new Level(5e4,"ERROR");Level.FATAL=new Level(6e4,"FATAL");Level.OFF=new Level(Number.MAX_VALUE,"OFF");log4javascript.Level=Level;function Timer(e,t){this.name=e;this.level=isUndefined(t)?Level.INFO:t;this.start=new Date}Timer.prototype.getElapsedTime=function(){return(new Date).getTime()-this.start.getTime()};var anonymousLoggerName="[anonymous]";var defaultLoggerName="[default]";var nullLoggerName="[null]";var rootLoggerName="root";function Logger(e){this.name=e;this.parent=null;this.children=[];var t=[];var n=null;var r=this.name===rootLoggerName;var i=this.name===nullLoggerName;var a=null;var o=false;this.addChild=function(e){this.children.push(e);e.parent=this;e.invalidateAppenderCache()};var s=true;this.getAdditivity=function(){return s};this.setAdditivity=function(e){var t=s!=e;s=e;if(t){this.invalidateAppenderCache()}};this.addAppender=function(e){if(i){handleError("Logger.addAppender: you may not add an appender to the null logger")}else{if(e instanceof log4javascript.Appender){if(!array_contains(t,e)){t.push(e);e.setAddedToLogger(this);this.invalidateAppenderCache()}}else{handleError("Logger.addAppender: appender supplied ('"+toStr(e)+"') is not a subclass of Appender")}}};this.removeAppender=function(e){array_remove(t,e);e.setRemovedFromLogger(this);this.invalidateAppenderCache()};this.removeAllAppenders=function(){var e=t.length;if(e>0){for(var n=0;n<e;n++){t[n].setRemovedFromLogger(this)}t.length=0;this.invalidateAppenderCache()}};this.getEffectiveAppenders=function(){if(a===null||o){var e=r||!this.getAdditivity()?[]:this.parent.getEffectiveAppenders();a=e.concat(t);o=false}return a};this.invalidateAppenderCache=function(){o=true;for(var e=0,t=this.children.length;e<t;e++){this.children[e].invalidateAppenderCache()}};this.log=function(e,t){if(enabled&&e.isGreaterOrEqual(this.getEffectiveLevel())){var n;var r=t.length-1;var i=t[r];if(t.length>1&&isError(i)){n=i;r--}var a=[];for(var o=0;o<=r;o++){a[o]=t[o]}var s=new LoggingEvent(this,new Date,e,a,n);this.callAppenders(s)}};this.callAppenders=function(e){var t=this.getEffectiveAppenders();for(var n=0,r=t.length;n<r;n++){t[n].doAppend(e)}};this.setLevel=function(e){if(r&&e===null){handleError("Logger.setLevel: you cannot set the level of the root logger to null")}else if(e instanceof Level){n=e}else{handleError("Logger.setLevel: level supplied to logger "+this.name+" is not an instance of log4javascript.Level")}};this.getLevel=function(){return n};this.getEffectiveLevel=function(){for(var e=this;e!==null;e=e.parent){var t=e.getLevel();if(t!==null){return t}}};this.group=function(e,t){if(enabled){var n=this.getEffectiveAppenders();for(var r=0,i=n.length;r<i;r++){n[r].group(e,t)}}};this.groupEnd=function(){if(enabled){var e=this.getEffectiveAppenders();for(var t=0,n=e.length;t<n;t++){e[t].groupEnd()}}};var l={};this.time=function(e,t){if(enabled){if(isUndefined(e)){handleError("Logger.time: a name for the timer must be supplied")}else if(t&&!(t instanceof Level)){handleError("Logger.time: level supplied to timer "+e+" is not an instance of log4javascript.Level")}else{l[e]=new Timer(e,t)}}};this.timeEnd=function(e){if(enabled){if(isUndefined(e)){handleError("Logger.timeEnd: a name for the timer must be supplied")}else if(l[e]){var t=l[e];var n=t.getElapsedTime();this.log(t.level,["Timer "+toStr(e)+" completed in "+n+"ms"]);delete l[e]}else{logLog.warn("Logger.timeEnd: no timer found with name "+e)}}};this.assert=function(e){if(enabled&&!e){var t=[];for(var n=1,r=arguments.length;n<r;n++){t.push(arguments[n])}t=t.length>0?t:["Assertion Failure"];t.push(newLine);t.push(e);this.log(Level.ERROR,t)}};this.toString=function(){return"Logger["+this.name+"]"}}Logger.prototype={trace:function(){this.log(Level.TRACE,arguments)},debug:function(){this.log(Level.DEBUG,arguments)},info:function(){this.log(Level.INFO,arguments)},warn:function(){this.log(Level.WARN,arguments)},error:function(){this.log(Level.ERROR,arguments)},fatal:function(){this.log(Level.FATAL,arguments)},isEnabledFor:function(e){return e.isGreaterOrEqual(this.getEffectiveLevel())},isTraceEnabled:function(){return this.isEnabledFor(Level.TRACE)},isDebugEnabled:function(){return this.isEnabledFor(Level.DEBUG)},isInfoEnabled:function(){return this.isEnabledFor(Level.INFO)},isWarnEnabled:function(){return this.isEnabledFor(Level.WARN)},isErrorEnabled:function(){return this.isEnabledFor(Level.ERROR)},isFatalEnabled:function(){return this.isEnabledFor(Level.FATAL)}};Logger.prototype.trace.isEntryPoint=true;Logger.prototype.debug.isEntryPoint=true;Logger.prototype.info.isEntryPoint=true;Logger.prototype.warn.isEntryPoint=true;Logger.prototype.error.isEntryPoint=true;Logger.prototype.fatal.isEntryPoint=true;var loggers={};var loggerNames=[];var ROOT_LOGGER_DEFAULT_LEVEL=Level.DEBUG;var rootLogger=new Logger(rootLoggerName);rootLogger.setLevel(ROOT_LOGGER_DEFAULT_LEVEL);log4javascript.getRootLogger=function(){return rootLogger};log4javascript.getLogger=function(e){if(typeof e!="string"){e=anonymousLoggerName;logLog.warn("log4javascript.getLogger: non-string logger name "+toStr(e)+" supplied, returning anonymous logger")}if(e==rootLoggerName){handleError("log4javascript.getLogger: root logger may not be obtained by name")}if(!loggers[e]){var t=new Logger(e);loggers[e]=t;loggerNames.push(e);var n=e.lastIndexOf(".");var r;if(n>-1){var i=e.substring(0,n);r=log4javascript.getLogger(i)}else{r=rootLogger}r.addChild(t)}return loggers[e]};var defaultLogger=null;log4javascript.getDefaultLogger=function(){if(!defaultLogger){defaultLogger=createDefaultLogger()}return defaultLogger};var nullLogger=null;log4javascript.getNullLogger=function(){if(!nullLogger){nullLogger=new Logger(nullLoggerName);nullLogger.setLevel(Level.OFF)}return nullLogger};log4javascript.resetConfiguration=function(){rootLogger.setLevel(ROOT_LOGGER_DEFAULT_LEVEL);loggers={}};var LoggingEvent=function(e,t,n,r,i){this.logger=e;this.timeStamp=t;this.timeStampInMilliseconds=t.getTime();this.timeStampInSeconds=Math.floor(this.timeStampInMilliseconds/1e3);this.milliseconds=this.timeStamp.getMilliseconds();this.level=n;this.messages=r;this.exception=i};LoggingEvent.prototype={getThrowableStrRep:function(){return this.exception?getExceptionStringRep(this.exception):""},getCombinedMessages:function(){return this.messages.length==1?this.messages[0]:this.messages.join(newLine)},toString:function(){return"LoggingEvent["+this.level+"]"}};log4javascript.LoggingEvent=LoggingEvent;var Layout=function(){};Layout.prototype={defaults:{loggerKey:"logger",timeStampKey:"timestamp",millisecondsKey:"milliseconds",levelKey:"level",messageKey:"message",exceptionKey:"exception",urlKey:"url"},loggerKey:"logger",timeStampKey:"timestamp",millisecondsKey:"milliseconds",levelKey:"level",messageKey:"message",exceptionKey:"exception",urlKey:"url",batchHeader:"",batchFooter:"",batchSeparator:"",returnsPostData:false,overrideTimeStampsSetting:false,useTimeStampsInMilliseconds:null,format:function(){handleError("Layout.format: layout supplied has no format() method")},ignoresThrowable:function(){handleError("Layout.ignoresThrowable: layout supplied has no ignoresThrowable() method")},getContentType:function(){return"text/plain"},allowBatching:function(){return true},setTimeStampsInMilliseconds:function(e){this.overrideTimeStampsSetting=true;this.useTimeStampsInMilliseconds=bool(e)},isTimeStampsInMilliseconds:function(){return this.overrideTimeStampsSetting?this.useTimeStampsInMilliseconds:useTimeStampsInMilliseconds},getTimeStampValue:function(e){return this.isTimeStampsInMilliseconds()?e.timeStampInMilliseconds:e.timeStampInSeconds},getDataValues:function(e,t){var n=[[this.loggerKey,e.logger.name],[this.timeStampKey,this.getTimeStampValue(e)],[this.levelKey,e.level.name],[this.urlKey,window.location.href],[this.messageKey,t?e.getCombinedMessages():e.messages]];if(!this.isTimeStampsInMilliseconds()){n.push([this.millisecondsKey,e.milliseconds])}if(e.exception){n.push([this.exceptionKey,getExceptionStringRep(e.exception)])}if(this.hasCustomFields()){for(var r=0,i=this.customFields.length;r<i;r++){var a=this.customFields[r].value;if(typeof a==="function"){a=a(this,e)}n.push([this.customFields[r].name,a])}}return n},setKeys:function(e,t,n,r,i,a,o){this.loggerKey=extractStringFromParam(e,this.defaults.loggerKey);this.timeStampKey=extractStringFromParam(t,this.defaults.timeStampKey);this.levelKey=extractStringFromParam(n,this.defaults.levelKey);this.messageKey=extractStringFromParam(r,this.defaults.messageKey);this.exceptionKey=extractStringFromParam(i,this.defaults.exceptionKey);this.urlKey=extractStringFromParam(a,this.defaults.urlKey);this.millisecondsKey=extractStringFromParam(o,this.defaults.millisecondsKey)},setCustomField:function(e,t){var n=false;for(var r=0,i=this.customFields.length;r<i;r++){if(this.customFields[r].name===e){this.customFields[r].value=t;n=true}}if(!n){this.customFields.push({name:e,value:t})}},hasCustomFields:function(){return this.customFields.length>0},formatWithException:function(e){var t=this.format(e);if(e.exception&&this.ignoresThrowable()){t+=e.getThrowableStrRep()}return t},toString:function(){handleError("Layout.toString: all layouts must override this method")}};log4javascript.Layout=Layout;var Appender=function(){};Appender.prototype=new EventSupport;Appender.prototype.layout=new PatternLayout;Appender.prototype.threshold=Level.ALL;Appender.prototype.loggers=[];Appender.prototype.doAppend=function(e){if(enabled&&e.level.level>=this.threshold.level){this.append(e)}};Appender.prototype.append=function(e){};Appender.prototype.setLayout=function(e){if(e instanceof Layout){this.layout=e}else{handleError("Appender.setLayout: layout supplied to "+this.toString()+" is not a subclass of Layout")}};Appender.prototype.getLayout=function(){return this.layout};Appender.prototype.setThreshold=function(e){if(e instanceof Level){this.threshold=e}else{handleError("Appender.setThreshold: threshold supplied to "+this.toString()+" is not a subclass of Level")}};Appender.prototype.getThreshold=function(){return this.threshold};Appender.prototype.setAddedToLogger=function(e){this.loggers.push(e)};Appender.prototype.setRemovedFromLogger=function(e){array_remove(this.loggers,e)};Appender.prototype.group=emptyFunction;Appender.prototype.groupEnd=emptyFunction;Appender.prototype.toString=function(){handleError("Appender.toString: all appenders must override this method")};log4javascript.Appender=Appender;function SimpleLayout(){this.customFields=[]}SimpleLayout.prototype=new Layout;SimpleLayout.prototype.format=function(e){return e.level.name+" - "+e.getCombinedMessages()};SimpleLayout.prototype.ignoresThrowable=function(){return true};SimpleLayout.prototype.toString=function(){return"SimpleLayout"};log4javascript.SimpleLayout=SimpleLayout;function NullLayout(){this.customFields=[]}NullLayout.prototype=new Layout;NullLayout.prototype.format=function(e){return e.messages};NullLayout.prototype.ignoresThrowable=function(){return true};NullLayout.prototype.formatWithException=function(e){var t=e.messages,n=e.exception;return n?t.concat([n]):t};NullLayout.prototype.toString=function(){return"NullLayout"};log4javascript.NullLayout=NullLayout;function XmlLayout(e){this.combineMessages=extractBooleanFromParam(e,true);this.customFields=[]}XmlLayout.prototype=new Layout;XmlLayout.prototype.isCombinedMessages=function(){return this.combineMessages};XmlLayout.prototype.getContentType=function(){return"text/xml"};XmlLayout.prototype.escapeCdata=function(e){return e.replace(/\]\]>/,"]]>]]&gt;<![CDATA[")};XmlLayout.prototype.format=function(e){var t=this;var n,r;function i(e){e=typeof e==="string"?e:toStr(e);return"<log4javascript:message><![CDATA["+t.escapeCdata(e)+"]]></log4javascript:message>"}var a='<log4javascript:event logger="'+e.logger.name+'" timestamp="'+this.getTimeStampValue(e)+'"';if(!this.isTimeStampsInMilliseconds()){a+=' milliseconds="'+e.milliseconds+'"'}a+=' level="'+e.level.name+'">'+newLine;if(this.combineMessages){a+=i(e.getCombinedMessages())}else{a+="<log4javascript:messages>"+newLine;for(n=0,r=e.messages.length;n<r;n++){a+=i(e.messages[n])+newLine}a+="</log4javascript:messages>"+newLine}if(this.hasCustomFields()){for(n=0,r=this.customFields.length;n<r;n++){a+='<log4javascript:customfield name="'+this.customFields[n].name+'"><![CDATA['+this.customFields[n].value.toString()+"]]></log4javascript:customfield>"+newLine}}if(e.exception){a+="<log4javascript:exception><![CDATA["+getExceptionStringRep(e.exception)+"]]></log4javascript:exception>"+newLine}a+="</log4javascript:event>"+newLine+newLine;return a};XmlLayout.prototype.ignoresThrowable=function(){return false};XmlLayout.prototype.toString=function(){return"XmlLayout"};log4javascript.XmlLayout=XmlLayout;function escapeNewLines(e){return e.replace(/\r\n|\r|\n/g,"\\r\\n")}function JsonLayout(e,t){this.readable=extractBooleanFromParam(e,false);this.combineMessages=extractBooleanFromParam(t,true);this.batchHeader=this.readable?"["+newLine:"[";this.batchFooter=this.readable?"]"+newLine:"]";this.batchSeparator=this.readable?","+newLine:",";this.setKeys();this.colon=this.readable?": ":":";this.tab=this.readable?"\t":"";this.lineBreak=this.readable?newLine:"";this.customFields=[]}JsonLayout.prototype=new Layout;JsonLayout.prototype.isReadable=function(){return this.readable};JsonLayout.prototype.isCombinedMessages=function(){return this.combineMessages};JsonLayout.prototype.format=function(e){var t=this;var n=this.getDataValues(e,this.combineMessages);var r="{"+this.lineBreak;var i,a;function o(e,n,r){var i;var a=typeof e;if(e instanceof Date){i=String(e.getTime())}else if(r&&e instanceof Array){i="["+t.lineBreak;for(var s=0,l=e.length;s<l;s++){var c=n+t.tab;i+=c+o(e[s],c,false);if(s<e.length-1){i+=","}i+=t.lineBreak}i+=n+"]"}else if(a!=="number"&&a!=="boolean"){i='"'+escapeNewLines(toStr(e).replace(/\"/g,'\\"'))+'"'}else{i=e}return i}for(i=0,a=n.length-1;i<=a;i++){r+=this.tab+'"'+n[i][0]+'"'+this.colon+o(n[i][1],this.tab,true);if(i<a){r+=","}r+=this.lineBreak}r+="}"+this.lineBreak;return r};JsonLayout.prototype.ignoresThrowable=function(){return false};JsonLayout.prototype.toString=function(){return"JsonLayout"};JsonLayout.prototype.getContentType=function(){return"application/json"};log4javascript.JsonLayout=JsonLayout;function HttpPostDataLayout(){this.setKeys();this.customFields=[];this.returnsPostData=true}HttpPostDataLayout.prototype=new Layout;HttpPostDataLayout.prototype.allowBatching=function(){return false};HttpPostDataLayout.prototype.format=function(e){var t=this.getDataValues(e);var n=[];for(var r=0,i=t.length;r<i;r++){var a=t[r][1]instanceof Date?String(t[r][1].getTime()):t[r][1];n.push(urlEncode(t[r][0])+"="+urlEncode(a))}return n.join("&")};HttpPostDataLayout.prototype.ignoresThrowable=function(e){return false};HttpPostDataLayout.prototype.toString=function(){return"HttpPostDataLayout"};log4javascript.HttpPostDataLayout=HttpPostDataLayout;function formatObjectExpansion(e,t,n){var r=[];function i(e,t,n){var a,o,s,l,c,u,f;if(!n){n=""}function p(e){var t=splitIntoLines(e);for(var r=1,i=t.length;r<i;r++){t[r]=n+t[r]}return t.join(newLine)}if(e===null){return"null"}else if(typeof e=="undefined"){return"undefined"}else if(typeof e=="string"){return p(e)}else if(typeof e=="object"&&array_contains(r,e)){try{u=toStr(e)}catch(e){u="Error formatting property. Details: "+getExceptionStringRep(e)}return u+" [already expanded]"}else if(e instanceof Array&&t>0){r.push(e);u="["+newLine;s=t-1;l=n+" ";c=[];for(a=0,o=e.length;a<o;a++){try{f=i(e[a],s,l);c.push(l+f)}catch(e){c.push(l+"Error formatting array member. Details: "+getExceptionStringRep(e)+"")}}u+=c.join(","+newLine)+newLine+n+"]";return u}else if(Object.prototype.toString.call(e)=="[object Date]"){return e.toString()}else if(typeof e=="object"&&t>0){r.push(e);u="{"+newLine;s=t-1;l=n+" ";c=[];for(a in e){try{f=i(e[a],s,l);c.push(l+a+": "+f)}catch(e){c.push(l+a+": Error formatting property. Details: "+getExceptionStringRep(e))}}u+=c.join(","+newLine)+newLine+n+"}";return u}else{return p(toStr(e))}}return i(e,t,n)}var SimpleDateFormat;(function(){var e=/('[^']*')|(G+|y+|M+|w+|W+|D+|d+|F+|E+|a+|H+|k+|K+|h+|m+|s+|S+|Z+)|([a-zA-Z]+)|([^a-zA-Z']+)/;var t=["January","February","March","April","May","June","July","August","September","October","November","December"];var n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var r=0,i=1,a=2,o=3,s=4,l=5;var c={G:r,y:o,M:s,w:a,W:a,D:a,d:a,F:a,E:i,a:r,H:a,k:a,K:a,h:a,m:a,s:a,S:a,Z:l};var u=24*60*60*1e3;var f=7*u;var p=1;var d=function(e,t,n){var r=new Date(e,t,n,0,0,0);r.setMilliseconds(0);return r};Date.prototype.getDifference=function(e){return this.getTime()-e.getTime()};Date.prototype.isBefore=function(e){return this.getTime()<e.getTime()};Date.prototype.getUTCTime=function(){return Date.UTC(this.getFullYear(),this.getMonth(),this.getDate(),this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds())};Date.prototype.getTimeSince=function(e){return this.getUTCTime()-e.getUTCTime()};Date.prototype.getPreviousSunday=function(){var e=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12,0,0);var t=new Date(e.getTime()-this.getDay()*u);return d(t.getFullYear(),t.getMonth(),t.getDate())};Date.prototype.getWeekInYear=function(e){if(isUndefined(this.minimalDaysInFirstWeek)){e=p}var t=this.getPreviousSunday();var n=d(this.getFullYear(),0,1);var r=t.isBefore(n)?0:1+Math.floor(t.getTimeSince(n)/f);var i=7-n.getDay();var a=r;if(i<e){a--}return a};Date.prototype.getWeekInMonth=function(e){if(isUndefined(this.minimalDaysInFirstWeek)){e=p}var t=this.getPreviousSunday();var n=d(this.getFullYear(),this.getMonth(),1);var r=t.isBefore(n)?0:1+Math.floor(t.getTimeSince(n)/f);var i=7-n.getDay();var a=r;if(i>=e){a++}return a};Date.prototype.getDayInYear=function(){var e=d(this.getFullYear(),0,1);return 1+Math.floor(this.getTimeSince(e)/u)};SimpleDateFormat=function(e){this.formatString=e};SimpleDateFormat.prototype.setMinimalDaysInFirstWeek=function(e){this.minimalDaysInFirstWeek=e};SimpleDateFormat.prototype.getMinimalDaysInFirstWeek=function(){return isUndefined(this.minimalDaysInFirstWeek)?p:this.minimalDaysInFirstWeek};var h=function(e,t){while(e.length<t){e="0"+e}return e};var g=function(e,t,n){return t>=4?e:e.substr(0,Math.max(n,t))};var m=function(e,t){var n=""+e;return h(n,t)};SimpleDateFormat.prototype.format=function(u){var f="";var p;var d=this.formatString;while(p=e.exec(d)){var v=p[1];var y=p[2];var b=p[3];var w=p[4];if(v){if(v=="''"){f+="'"}else{f+=v.substring(1,v.length-1)}}else if(b){}else if(w){f+=w}else if(y){var C=y.charAt(0);var E=y.length;var x="";switch(C){case"G":x="AD";break;case"y":x=u.getFullYear();break;case"M":x=u.getMonth();break;case"w":x=u.getWeekInYear(this.getMinimalDaysInFirstWeek());break;case"W":x=u.getWeekInMonth(this.getMinimalDaysInFirstWeek());break;case"D":x=u.getDayInYear();break;case"d":x=u.getDate();break;case"F":x=1+Math.floor((u.getDate()-1)/7);break;case"E":x=n[u.getDay()];break;case"a":x=u.getHours()>=12?"PM":"AM";break;case"H":x=u.getHours();break;case"k":x=u.getHours()||24;break;case"K":x=u.getHours()%12;break;case"h":x=u.getHours()%12||12;break;case"m":x=u.getMinutes();break;case"s":x=u.getSeconds();break;case"S":x=u.getMilliseconds();break;case"Z":x=u.getTimezoneOffset();break}switch(c[C]){case r:f+=g(x,E,2);break;case i:f+=g(x,E,3);break;case a:f+=m(x,E);break;case o:if(E<=3){var L=""+x;f+=L.substr(2,2)}else{f+=m(x,E)}break;case s:if(E>=3){f+=g(t[x],E,E)}else{f+=m(x+1,E)}break;case l:var S=x>0;var A=S?"-":"+";var T=Math.abs(x);var I=""+Math.floor(T/60);I=h(I,2);var M=""+T%60;M=h(M,2);f+=A+I+M;break}}d=d.substr(p.index+p[0].length)}return f}})();log4javascript.SimpleDateFormat=SimpleDateFormat;function PatternLayout(e){if(e){this.pattern=e}else{this.pattern=PatternLayout.DEFAULT_CONVERSION_PATTERN}this.customFields=[]}PatternLayout.TTCC_CONVERSION_PATTERN="%r %p %c - %m%n";PatternLayout.DEFAULT_CONVERSION_PATTERN="%m%n";PatternLayout.ISO8601_DATEFORMAT="yyyy-MM-dd HH:mm:ss,SSS";PatternLayout.DATETIME_DATEFORMAT="dd MMM yyyy HH:mm:ss,SSS";PatternLayout.ABSOLUTETIME_DATEFORMAT="HH:mm:ss,SSS";PatternLayout.prototype=new Layout;PatternLayout.prototype.format=function(e){var t=/%(-?[0-9]+)?(\.?[0-9]+)?([acdfmMnpr%])(\{([^\}]+)\})?|([^%]+)/;var n="";var r;var i=this.pattern;while(r=t.exec(i)){var a=r[0];var o=r[1];var s=r[2];var l=r[3];var c=r[5];var u=r[6];if(u){n+=""+u}else{var f="";switch(l){case"a":case"m":var p=0;if(c){p=parseInt(c,10);if(isNaN(p)){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character '"+l+"' - should be a number");p=0}}var d=l==="a"?e.messages[0]:e.messages;for(var h=0,g=d.length;h<g;h++){if(h>0&&f.charAt(f.length-1)!==" "){f+=" "}if(p===0){f+=d[h]}else{f+=formatObjectExpansion(d[h],p)}}break;case"c":var m=e.logger.name;if(c){var v=parseInt(c,10);var y=e.logger.name.split(".");if(v>=y.length){f=m}else{f=y.slice(y.length-v).join(".")}}else{f=m}break;case"d":var b=PatternLayout.ISO8601_DATEFORMAT;if(c){b=c;if(b=="ISO8601"){b=PatternLayout.ISO8601_DATEFORMAT}else if(b=="ABSOLUTE"){b=PatternLayout.ABSOLUTETIME_DATEFORMAT}else if(b=="DATE"){b=PatternLayout.DATETIME_DATEFORMAT}}f=new SimpleDateFormat(b).format(e.timeStamp);break;case"f":if(this.hasCustomFields()){var w=0;if(c){w=parseInt(c,10);if(isNaN(w)){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character 'f' - should be a number")}else if(w===0){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character 'f' - must be greater than zero")}else if(w>this.customFields.length){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character 'f' - there aren't that many custom fields")}else{w=w-1}}var C=this.customFields[w].value;if(typeof C=="function"){C=C(this,e)}f=C}break;case"n":f=newLine;break;case"p":f=e.level.name;break;case"r":f=""+e.timeStamp.getDifference(applicationStartDate);break;case"%":f="%";break;default:f=a;break}var E;if(s){E=parseInt(s.substr(1),10);var x=f.length;if(E<x){f=f.substring(x-E,x)}}if(o){if(o.charAt(0)=="-"){E=parseInt(o.substr(1),10);while(f.length<E){f+=" "}}else{E=parseInt(o,10);while(f.length<E){f=" "+f}}}n+=f}i=i.substr(r.index+r[0].length)}return n};PatternLayout.prototype.ignoresThrowable=function(){return true};PatternLayout.prototype.toString=function(){return"PatternLayout"};log4javascript.PatternLayout=PatternLayout;function AlertAppender(){}AlertAppender.prototype=new Appender;AlertAppender.prototype.layout=new SimpleLayout;AlertAppender.prototype.append=function(e){alert(this.getLayout().formatWithException(e))};AlertAppender.prototype.toString=function(){return"AlertAppender"};log4javascript.AlertAppender=AlertAppender;function BrowserConsoleAppender(){}BrowserConsoleAppender.prototype=new log4javascript.Appender;BrowserConsoleAppender.prototype.layout=new NullLayout;BrowserConsoleAppender.prototype.threshold=Level.DEBUG;BrowserConsoleAppender.prototype.append=function(e){var t=this;var n=function(n){var r=t.getLayout().formatWithException(e);return typeof r=="string"?n?r:[r]:n?r.join(" "):r};var r=window.console;if(r&&r.log){var i;if(r.debug&&Level.DEBUG.isGreaterOrEqual(e.level)){i="debug"}else if(r.info&&Level.INFO.equals(e.level)){i="info"}else if(r.warn&&Level.WARN.equals(e.level)){i="warn"}else if(r.error&&e.level.isGreaterOrEqual(Level.ERROR)){i="error"}else{i="log"}if(typeof r[i].apply=="function"){r[i].apply(r,n(false))}else{r[i](n(true))}}else if(typeof opera!="undefined"&&opera.postError){opera.postError(n(true))}};BrowserConsoleAppender.prototype.group=function(e){if(window.console&&window.console.group){window.console.group(e)}};BrowserConsoleAppender.prototype.groupEnd=function(){if(window.console&&window.console.groupEnd){window.console.groupEnd()}};BrowserConsoleAppender.prototype.toString=function(){return"BrowserConsoleAppender"};log4javascript.BrowserConsoleAppender=BrowserConsoleAppender;var xhrFactory=function(){return new XMLHttpRequest};var xmlHttpFactories=[xhrFactory,function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];var withCredentialsSupported=false;var getXmlHttp=function(e){var t=null,n;for(var r=0,i=xmlHttpFactories.length;r<i;r++){n=xmlHttpFactories[r];try{t=n();withCredentialsSupported=n==xhrFactory&&"withCredentials"in t;getXmlHttp=n;return t}catch(e){}}if(e){e()}else{handleError("getXmlHttp: unable to obtain XMLHttpRequest object")}};function isHttpRequestSuccessful(e){return isUndefined(e.status)||e.status===0||e.status>=200&&e.status<300||e.status==1223}function AjaxAppender(e,t){var n=this;var r=true;if(!e){handleError("AjaxAppender: URL must be specified in constructor");r=false}var i=this.defaults.timed;var a=this.defaults.waitForResponse;var o=this.defaults.batchSize;var s=this.defaults.timerInterval;var l=this.defaults.requestSuccessCallback;var c=this.defaults.failCallback;var u=this.defaults.postVarName;var f=this.defaults.sendAllOnUnload;var p=this.defaults.contentType;var d=null;var h=[];var g=[];var m=[];var v=false;var y=false;function b(e){if(y){handleError("AjaxAppender: configuration option '"+e+"' may not be set after the appender has been initialized");return false}return true}this.getSessionId=function(){return d};this.setSessionId=function(e){d=extractStringFromParam(e,null);this.layout.setCustomField("sessionid",d)};this.setLayout=function(e){if(b("layout")){this.layout=e;if(d!==null){this.setSessionId(d)}}};this.isTimed=function(){return i};this.setTimed=function(e){if(b("timed")){i=bool(e)}};this.getTimerInterval=function(){return s};this.setTimerInterval=function(e){if(b("timerInterval")){s=extractIntFromParam(e,s)}};this.isWaitForResponse=function(){return a};this.setWaitForResponse=function(e){if(b("waitForResponse")){a=bool(e)}};this.getBatchSize=function(){return o};this.setBatchSize=function(e){if(b("batchSize")){o=extractIntFromParam(e,o)}};this.isSendAllOnUnload=function(){return f};this.setSendAllOnUnload=function(e){if(b("sendAllOnUnload")){f=extractBooleanFromParam(e,f)}};this.setRequestSuccessCallback=function(e){l=extractFunctionFromParam(e,l)};this.setFailCallback=function(e){c=extractFunctionFromParam(e,c)};this.getPostVarName=function(){return u};this.setPostVarName=function(e){if(b("postVarName")){u=extractStringFromParam(e,u)}};this.getHeaders=function(){return m};this.addHeader=function(e,t){if(e.toLowerCase()=="content-type"){p=t}else{m.push({name:e,value:t})}};function w(){if(r&&enabled){v=true;var e;if(a){if(g.length>0){e=g.shift();S(E(e),w)}else{v=false;if(i){x()}}}else{while(e=g.shift()){S(E(e))}v=false;if(i){x()}}}}this.sendAll=w;function C(){var e=false;if(r&&enabled){var t=n.getLayout().allowBatching()?o:1;var s;var l=[];while(s=h.shift()){l.push(s);if(h.length>=t){g.push(l);l=[]}}if(l.length>0){g.push(l)}e=g.length>0;a=false;i=false;w()}return e}this.sendAllRemaining=C;function E(e){var t=[];var r;var i="";while(r=e.shift()){t.push(n.getLayout().formatWithException(r))}if(e.length==1){i=t.join("")}else{i=n.getLayout().batchHeader+t.join(n.getLayout().batchSeparator)+n.getLayout().batchFooter}if(p==n.defaults.contentType){i=n.getLayout().returnsPostData?i:urlEncode(u)+"="+urlEncode(i);if(i.length>0){i+="&"}i+="layout="+urlEncode(n.getLayout().toString())}return i}function x(){window.setTimeout(w,s)}function L(){var e="AjaxAppender: could not create XMLHttpRequest object. AjaxAppender disabled";handleError(e);r=false;if(c){c(e)}}function S(n,i){try{var a=getXmlHttp(L);if(r){a.onreadystatechange=function(){if(a.readyState==4){if(isHttpRequestSuccessful(a)){if(l){l(a)}if(i){i(a)}}else{var t="AjaxAppender.append: XMLHttpRequest request to URL "+e+" returned status code "+a.status;handleError(t);if(c){c(t)}}a.onreadystatechange=emptyFunction;a=null}};a.open("POST",e,true);if(t&&withCredentialsSupported){a.withCredentials=true}try{for(var o=0,s;s=m[o++];){a.setRequestHeader(s.name,s.value)}a.setRequestHeader("Content-Type",p)}catch(e){var u="AjaxAppender.append: your browser's XMLHttpRequest implementation"+" does not support setRequestHeader, therefore cannot post data. AjaxAppender disabled";handleError(u);r=false;if(c){c(u)}return}a.send(n)}}catch(t){var f="AjaxAppender.append: error sending log message to "+e;handleError(f,t);r=false;if(c){c(f+". Details: "+getExceptionStringRep(t))}}}this.append=function(e){if(r){if(!y){A()}h.push(e);var t=this.getLayout().allowBatching()?o:1;if(h.length>=t){var n;var s=[];while(n=h.shift()){s.push(n)}g.push(s);if(!i&&(!a||a&&!v)){w()}}}};function A(){y=true;if(f){var e=window.onbeforeunload;window.onbeforeunload=function(){if(e){e()}C()}}if(i){x()}}}AjaxAppender.prototype=new Appender;AjaxAppender.prototype.defaults={waitForResponse:false,timed:false,timerInterval:1e3,batchSize:1,sendAllOnUnload:false,requestSuccessCallback:null,failCallback:null,postVarName:"data",contentType:"application/x-www-form-urlencoded"};AjaxAppender.prototype.layout=new HttpPostDataLayout;AjaxAppender.prototype.toString=function(){return"AjaxAppender"};log4javascript.AjaxAppender=AjaxAppender;function setCookie(e,t,n,r){var i;r=r?"; path="+r:"";if(n){var a=new Date;a.setTime(a.getTime()+n*24*60*60*1e3);i="; expires="+a.toGMTString()}else{i=""}document.cookie=escape(e)+"="+escape(t)+i+r}function getCookie(e){var t=escape(e)+"=";var n=document.cookie.split(";");for(var r=0,i=n.length;r<i;r++){var a=n[r];while(a.charAt(0)===" "){a=a.substring(1,a.length)}if(a.indexOf(t)===0){return unescape(a.substring(t.length,a.length))}}return null}function getBaseUrl(){var e=document.getElementsByTagName("script");for(var t=0,n=e.length;t<n;++t){if(e[t].src.indexOf("log4javascript")!=-1){var r=e[t].src.lastIndexOf("/");return r==-1?"":e[t].src.substr(0,r+1)}}return null}function isLoaded(e){try{return bool(e.loaded)}catch(e){return false}}var ConsoleAppender;(function(){var e=function(){return['<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">','<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">',"<head>","<title>log4javascript</title>",'<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />',"\x3c!-- Make IE8 behave like IE7, having gone to all the trouble of making IE work --\x3e",'<meta http-equiv="X-UA-Compatible" content="IE=7" />','<script type="text/javascript">var isIe = false, isIePre7 = false;<\/script>','\x3c!--[if IE]><script type="text/javascript">isIe = true<\/script><![endif]--\x3e','\x3c!--[if lt IE 7]><script type="text/javascript">isIePre7 = true<\/script><![endif]--\x3e','<script type="text/javascript">',"//<![CDATA[","var loggingEnabled=true;var logQueuedEventsTimer=null;var logEntries=[];var logEntriesAndSeparators=[];var logItems=[];var renderDelay=100;var unrenderedLogItemsExist=false;var rootGroup,currentGroup=null;var loaded=false;var currentLogItem=null;var logMainContainer;function copyProperties(obj,props){for(var i in props){obj[i]=props[i];}}","function LogItem(){}","LogItem.prototype={mainContainer:null,wrappedContainer:null,unwrappedContainer:null,group:null,appendToLog:function(){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].appendToLog();}","this.group.update();},doRemove:function(doUpdate,removeFromGroup){if(this.rendered){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].remove();}","this.unwrappedElementContainer=null;this.wrappedElementContainer=null;this.mainElementContainer=null;}","if(this.group&&removeFromGroup){this.group.removeChild(this,doUpdate);}","if(this===currentLogItem){currentLogItem=null;}},remove:function(doUpdate,removeFromGroup){this.doRemove(doUpdate,removeFromGroup);},render:function(){},accept:function(visitor){visitor.visit(this);},getUnwrappedDomContainer:function(){return this.group.unwrappedElementContainer.contentDiv;},getWrappedDomContainer:function(){return this.group.wrappedElementContainer.contentDiv;},getMainDomContainer:function(){return this.group.mainElementContainer.contentDiv;}};LogItem.serializedItemKeys={LOG_ENTRY:0,GROUP_START:1,GROUP_END:2};function LogItemContainerElement(){}",'LogItemContainerElement.prototype={appendToLog:function(){var insertBeforeFirst=(newestAtTop&&this.containerDomNode.hasChildNodes());if(insertBeforeFirst){this.containerDomNode.insertBefore(this.mainDiv,this.containerDomNode.firstChild);}else{this.containerDomNode.appendChild(this.mainDiv);}}};function SeparatorElementContainer(containerDomNode){this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.className="separator";this.mainDiv.innerHTML="&nbsp;";}',"SeparatorElementContainer.prototype=new LogItemContainerElement();SeparatorElementContainer.prototype.remove=function(){this.mainDiv.parentNode.removeChild(this.mainDiv);this.mainDiv=null;};function Separator(){this.rendered=false;}","Separator.prototype=new LogItem();copyProperties(Separator.prototype,{render:function(){var containerDomNode=this.group.contentDiv;if(isIe){this.unwrappedElementContainer=new SeparatorElementContainer(this.getUnwrappedDomContainer());this.wrappedElementContainer=new SeparatorElementContainer(this.getWrappedDomContainer());this.elementContainers=[this.unwrappedElementContainer,this.wrappedElementContainer];}else{this.mainElementContainer=new SeparatorElementContainer(this.getMainDomContainer());this.elementContainers=[this.mainElementContainer];}",'this.content=this.formattedMessage;this.rendered=true;}});function GroupElementContainer(group,containerDomNode,isRoot,isWrapped){this.group=group;this.containerDomNode=containerDomNode;this.isRoot=isRoot;this.isWrapped=isWrapped;this.expandable=false;if(this.isRoot){if(isIe){this.contentDiv=logMainContainer.appendChild(document.createElement("div"));this.contentDiv.id=this.isWrapped?"log_wrapped":"log_unwrapped";}else{this.contentDiv=logMainContainer;}}else{var groupElementContainer=this;this.mainDiv=document.createElement("div");this.mainDiv.className="group";this.headingDiv=this.mainDiv.appendChild(document.createElement("div"));this.headingDiv.className="groupheading";this.expander=this.headingDiv.appendChild(document.createElement("span"));this.expander.className="expander unselectable greyedout";this.expander.unselectable=true;var expanderText=this.group.expanded?"-":"+";this.expanderTextNode=this.expander.appendChild(document.createTextNode(expanderText));this.headingDiv.appendChild(document.createTextNode(" "+this.group.name));this.contentDiv=this.mainDiv.appendChild(document.createElement("div"));var contentCssClass=this.group.expanded?"expanded":"collapsed";this.contentDiv.className="groupcontent "+contentCssClass;this.expander.onclick=function(){if(groupElementContainer.group.expandable){groupElementContainer.group.toggleExpanded();}};}}','GroupElementContainer.prototype=new LogItemContainerElement();copyProperties(GroupElementContainer.prototype,{toggleExpanded:function(){if(!this.isRoot){var oldCssClass,newCssClass,expanderText;if(this.group.expanded){newCssClass="expanded";oldCssClass="collapsed";expanderText="-";}else{newCssClass="collapsed";oldCssClass="expanded";expanderText="+";}',"replaceClass(this.contentDiv,newCssClass,oldCssClass);this.expanderTextNode.nodeValue=expanderText;}},remove:function(){if(!this.isRoot){this.headingDiv=null;this.expander.onclick=null;this.expander=null;this.expanderTextNode=null;this.contentDiv=null;this.containerDomNode=null;this.mainDiv.parentNode.removeChild(this.mainDiv);this.mainDiv=null;}},reverseChildren:function(){var node=null;var childDomNodes=[];while((node=this.contentDiv.firstChild)){this.contentDiv.removeChild(node);childDomNodes.push(node);}",'while((node=childDomNodes.pop())){this.contentDiv.appendChild(node);}},update:function(){if(!this.isRoot){if(this.group.expandable){removeClass(this.expander,"greyedout");}else{addClass(this.expander,"greyedout");}}},clear:function(){if(this.isRoot){this.contentDiv.innerHTML="";}}});function Group(name,isRoot,initiallyExpanded){this.name=name;this.group=null;this.isRoot=isRoot;this.initiallyExpanded=initiallyExpanded;this.elementContainers=[];this.children=[];this.expanded=initiallyExpanded;this.rendered=false;this.expandable=false;}',"Group.prototype=new LogItem();copyProperties(Group.prototype,{addChild:function(logItem){this.children.push(logItem);logItem.group=this;},render:function(){if(isIe){var unwrappedDomContainer,wrappedDomContainer;if(this.isRoot){unwrappedDomContainer=logMainContainer;wrappedDomContainer=logMainContainer;}else{unwrappedDomContainer=this.getUnwrappedDomContainer();wrappedDomContainer=this.getWrappedDomContainer();}","this.unwrappedElementContainer=new GroupElementContainer(this,unwrappedDomContainer,this.isRoot,false);this.wrappedElementContainer=new GroupElementContainer(this,wrappedDomContainer,this.isRoot,true);this.elementContainers=[this.unwrappedElementContainer,this.wrappedElementContainer];}else{var mainDomContainer=this.isRoot?logMainContainer:this.getMainDomContainer();this.mainElementContainer=new GroupElementContainer(this,mainDomContainer,this.isRoot,false);this.elementContainers=[this.mainElementContainer];}","this.rendered=true;},toggleExpanded:function(){this.expanded=!this.expanded;for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].toggleExpanded();}},expand:function(){if(!this.expanded){this.toggleExpanded();}},accept:function(visitor){visitor.visitGroup(this);},reverseChildren:function(){if(this.rendered){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].reverseChildren();}}},update:function(){var previouslyExpandable=this.expandable;this.expandable=(this.children.length!==0);if(this.expandable!==previouslyExpandable){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].update();}}},flatten:function(){var visitor=new GroupFlattener();this.accept(visitor);return visitor.logEntriesAndSeparators;},removeChild:function(child,doUpdate){array_remove(this.children,child);child.group=null;if(doUpdate){this.update();}},remove:function(doUpdate,removeFromGroup){for(var i=0,len=this.children.length;i<len;i++){this.children[i].remove(false,false);}","this.children=[];this.update();if(this===currentGroup){currentGroup=this.group;}","this.doRemove(doUpdate,removeFromGroup);},serialize:function(items){items.push([LogItem.serializedItemKeys.GROUP_START,this.name]);for(var i=0,len=this.children.length;i<len;i++){this.children[i].serialize(items);}","if(this!==currentGroup){items.push([LogItem.serializedItemKeys.GROUP_END]);}},clear:function(){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].clear();}}});function LogEntryElementContainer(){}",'LogEntryElementContainer.prototype=new LogItemContainerElement();copyProperties(LogEntryElementContainer.prototype,{remove:function(){this.doRemove();},doRemove:function(){this.mainDiv.parentNode.removeChild(this.mainDiv);this.mainDiv=null;this.contentElement=null;this.containerDomNode=null;},setContent:function(content,wrappedContent){if(content===this.formattedMessage){this.contentElement.innerHTML="";this.contentElement.appendChild(document.createTextNode(this.formattedMessage));}else{this.contentElement.innerHTML=content;}},setSearchMatch:function(isMatch){var oldCssClass=isMatch?"searchnonmatch":"searchmatch";var newCssClass=isMatch?"searchmatch":"searchnonmatch";replaceClass(this.mainDiv,newCssClass,oldCssClass);},clearSearch:function(){removeClass(this.mainDiv,"searchmatch");removeClass(this.mainDiv,"searchnonmatch");}});function LogEntryWrappedElementContainer(logEntry,containerDomNode){this.logEntry=logEntry;this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.appendChild(document.createTextNode(this.logEntry.formattedMessage));this.mainDiv.className="logentry wrapped "+this.logEntry.level;this.contentElement=this.mainDiv;}','LogEntryWrappedElementContainer.prototype=new LogEntryElementContainer();LogEntryWrappedElementContainer.prototype.setContent=function(content,wrappedContent){if(content===this.formattedMessage){this.contentElement.innerHTML="";this.contentElement.appendChild(document.createTextNode(this.formattedMessage));}else{this.contentElement.innerHTML=wrappedContent;}};function LogEntryUnwrappedElementContainer(logEntry,containerDomNode){this.logEntry=logEntry;this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.className="logentry unwrapped "+this.logEntry.level;this.pre=this.mainDiv.appendChild(document.createElement("pre"));this.pre.appendChild(document.createTextNode(this.logEntry.formattedMessage));this.pre.className="unwrapped";this.contentElement=this.pre;}','LogEntryUnwrappedElementContainer.prototype=new LogEntryElementContainer();LogEntryUnwrappedElementContainer.prototype.remove=function(){this.doRemove();this.pre=null;};function LogEntryMainElementContainer(logEntry,containerDomNode){this.logEntry=logEntry;this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.className="logentry nonielogentry "+this.logEntry.level;this.contentElement=this.mainDiv.appendChild(document.createElement("span"));this.contentElement.appendChild(document.createTextNode(this.logEntry.formattedMessage));}',"LogEntryMainElementContainer.prototype=new LogEntryElementContainer();function LogEntry(level,formattedMessage){this.level=level;this.formattedMessage=formattedMessage;this.rendered=false;}",'LogEntry.prototype=new LogItem();copyProperties(LogEntry.prototype,{render:function(){var logEntry=this;var containerDomNode=this.group.contentDiv;if(isIe){this.formattedMessage=this.formattedMessage.replace(/\\r\\n/g,"\\r");this.unwrappedElementContainer=new LogEntryUnwrappedElementContainer(this,this.getUnwrappedDomContainer());this.wrappedElementContainer=new LogEntryWrappedElementContainer(this,this.getWrappedDomContainer());this.elementContainers=[this.unwrappedElementContainer,this.wrappedElementContainer];}else{this.mainElementContainer=new LogEntryMainElementContainer(this,this.getMainDomContainer());this.elementContainers=[this.mainElementContainer];}','this.content=this.formattedMessage;this.rendered=true;},setContent:function(content,wrappedContent){if(content!=this.content){if(isIe&&(content!==this.formattedMessage)){content=content.replace(/\\r\\n/g,"\\r");}',"for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].setContent(content,wrappedContent);}",'this.content=content;}},getSearchMatches:function(){var matches=[];var i,len;if(isIe){var unwrappedEls=getElementsByClass(this.unwrappedElementContainer.mainDiv,"searchterm","span");var wrappedEls=getElementsByClass(this.wrappedElementContainer.mainDiv,"searchterm","span");for(i=0,len=unwrappedEls.length;i<len;i++){matches[i]=new Match(this.level,null,unwrappedEls[i],wrappedEls[i]);}}else{var els=getElementsByClass(this.mainElementContainer.mainDiv,"searchterm","span");for(i=0,len=els.length;i<len;i++){matches[i]=new Match(this.level,els[i]);}}',"return matches;},setSearchMatch:function(isMatch){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].setSearchMatch(isMatch);}},clearSearch:function(){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].clearSearch();}},accept:function(visitor){visitor.visitLogEntry(this);},serialize:function(items){items.push([LogItem.serializedItemKeys.LOG_ENTRY,this.level,this.formattedMessage]);}});function LogItemVisitor(){}","LogItemVisitor.prototype={visit:function(logItem){},visitParent:function(logItem){if(logItem.group){logItem.group.accept(this);}},visitChildren:function(logItem){for(var i=0,len=logItem.children.length;i<len;i++){logItem.children[i].accept(this);}},visitLogEntry:function(logEntry){this.visit(logEntry);},visitSeparator:function(separator){this.visit(separator);},visitGroup:function(group){this.visit(group);}};function GroupFlattener(){this.logEntriesAndSeparators=[];}",'GroupFlattener.prototype=new LogItemVisitor();GroupFlattener.prototype.visitGroup=function(group){this.visitChildren(group);};GroupFlattener.prototype.visitLogEntry=function(logEntry){this.logEntriesAndSeparators.push(logEntry);};GroupFlattener.prototype.visitSeparator=function(separator){this.logEntriesAndSeparators.push(separator);};window.onload=function(){if(location.search){var queryBits=unescape(location.search).substr(1).split("&"),nameValueBits;for(var i=0,len=queryBits.length;i<len;i++){nameValueBits=queryBits[i].split("=");if(nameValueBits[0]=="log4javascript_domain"){document.domain=nameValueBits[1];break;}}}','logMainContainer=$("log");if(isIePre7){addClass(logMainContainer,"oldIe");}','rootGroup=new Group("root",true);rootGroup.render();currentGroup=rootGroup;setCommandInputWidth();setLogContainerHeight();toggleLoggingEnabled();toggleSearchEnabled();toggleSearchFilter();toggleSearchHighlight();applyFilters();checkAllLevels();toggleWrap();toggleNewestAtTop();toggleScrollToLatest();renderQueuedLogItems();loaded=true;$("command").value="";$("command").autocomplete="off";$("command").onkeydown=function(evt){evt=getEvent(evt);if(evt.keyCode==10||evt.keyCode==13){evalCommandLine();stopPropagation(evt);}else if(evt.keyCode==27){this.value="";this.focus();}else if(evt.keyCode==38&&commandHistory.length>0){currentCommandIndex=Math.max(0,currentCommandIndex-1);this.value=commandHistory[currentCommandIndex];moveCaretToEnd(this);}else if(evt.keyCode==40&&commandHistory.length>0){currentCommandIndex=Math.min(commandHistory.length-1,currentCommandIndex+1);this.value=commandHistory[currentCommandIndex];moveCaretToEnd(this);}};$("command").onkeypress=function(evt){evt=getEvent(evt);if(evt.keyCode==38&&commandHistory.length>0&&evt.preventDefault){evt.preventDefault();}};$("command").onkeyup=function(evt){evt=getEvent(evt);if(evt.keyCode==27&&evt.preventDefault){evt.preventDefault();this.focus();}};document.onkeydown=function keyEventHandler(evt){evt=getEvent(evt);switch(evt.keyCode){case 69:if(evt.shiftKey&&(evt.ctrlKey||evt.metaKey)){evalLastCommand();cancelKeyEvent(evt);return false;}',"break;case 75:if(evt.shiftKey&&(evt.ctrlKey||evt.metaKey)){focusSearch();cancelKeyEvent(evt);return false;}","break;case 40:case 76:if(evt.shiftKey&&(evt.ctrlKey||evt.metaKey)){focusCommandLine();cancelKeyEvent(evt);return false;}","break;}};setTimeout(setLogContainerHeight,20);setShowCommandLine(showCommandLine);doSearch();};window.onunload=function(){if(mainWindowExists()){appender.unload();}",'appender=null;};function toggleLoggingEnabled(){setLoggingEnabled($("enableLogging").checked);}',"function setLoggingEnabled(enable){loggingEnabled=enable;}","var appender=null;function setAppender(appenderParam){appender=appenderParam;}",'function setShowCloseButton(showCloseButton){$("closeButton").style.display=showCloseButton?"inline":"none";}','function setShowHideButton(showHideButton){$("hideButton").style.display=showHideButton?"inline":"none";}',"var newestAtTop=false;function LogItemContentReverser(){}","LogItemContentReverser.prototype=new LogItemVisitor();LogItemContentReverser.prototype.visitGroup=function(group){group.reverseChildren();this.visitChildren(group);};function setNewestAtTop(isNewestAtTop){var oldNewestAtTop=newestAtTop;var i,iLen,j,jLen;newestAtTop=Boolean(isNewestAtTop);if(oldNewestAtTop!=newestAtTop){var visitor=new LogItemContentReverser();rootGroup.accept(visitor);if(currentSearch){var currentMatch=currentSearch.matches[currentMatchIndex];var matchIndex=0;var matches=[];var actOnLogEntry=function(logEntry){var logEntryMatches=logEntry.getSearchMatches();for(j=0,jLen=logEntryMatches.length;j<jLen;j++){matches[matchIndex]=logEntryMatches[j];if(currentMatch&&logEntryMatches[j].equals(currentMatch)){currentMatchIndex=matchIndex;}","matchIndex++;}};if(newestAtTop){for(i=logEntries.length-1;i>=0;i--){actOnLogEntry(logEntries[i]);}}else{for(i=0,iLen=logEntries.length;i<iLen;i++){actOnLogEntry(logEntries[i]);}}","currentSearch.matches=matches;if(currentMatch){currentMatch.setCurrent();}}else if(scrollToLatest){doScrollToLatest();}}",'$("newestAtTop").checked=isNewestAtTop;}','function toggleNewestAtTop(){var isNewestAtTop=$("newestAtTop").checked;setNewestAtTop(isNewestAtTop);}',"var scrollToLatest=true;function setScrollToLatest(isScrollToLatest){scrollToLatest=isScrollToLatest;if(scrollToLatest){doScrollToLatest();}",'$("scrollToLatest").checked=isScrollToLatest;}','function toggleScrollToLatest(){var isScrollToLatest=$("scrollToLatest").checked;setScrollToLatest(isScrollToLatest);}','function doScrollToLatest(){var l=logMainContainer;if(typeof l.scrollTop!="undefined"){if(newestAtTop){l.scrollTop=0;}else{var latestLogEntry=l.lastChild;if(latestLogEntry){l.scrollTop=l.scrollHeight;}}}}',"var closeIfOpenerCloses=true;function setCloseIfOpenerCloses(isCloseIfOpenerCloses){closeIfOpenerCloses=isCloseIfOpenerCloses;}","var maxMessages=null;function setMaxMessages(max){maxMessages=max;pruneLogEntries();}",'var showCommandLine=false;function setShowCommandLine(isShowCommandLine){showCommandLine=isShowCommandLine;if(loaded){$("commandLine").style.display=showCommandLine?"block":"none";setCommandInputWidth();setLogContainerHeight();}}','function focusCommandLine(){if(loaded){$("command").focus();}}','function focusSearch(){if(loaded){$("searchBox").focus();}}',"function getLogItems(){var items=[];for(var i=0,len=logItems.length;i<len;i++){logItems[i].serialize(items);}","return items;}","function setLogItems(items){var loggingReallyEnabled=loggingEnabled;loggingEnabled=true;for(var i=0,len=items.length;i<len;i++){switch(items[i][0]){case LogItem.serializedItemKeys.LOG_ENTRY:log(items[i][1],items[i][2]);break;case LogItem.serializedItemKeys.GROUP_START:group(items[i][1]);break;case LogItem.serializedItemKeys.GROUP_END:groupEnd();break;}}","loggingEnabled=loggingReallyEnabled;}","function log(logLevel,formattedMessage){if(loggingEnabled){var logEntry=new LogEntry(logLevel,formattedMessage);logEntries.push(logEntry);logEntriesAndSeparators.push(logEntry);logItems.push(logEntry);currentGroup.addChild(logEntry);if(loaded){if(logQueuedEventsTimer!==null){clearTimeout(logQueuedEventsTimer);}","logQueuedEventsTimer=setTimeout(renderQueuedLogItems,renderDelay);unrenderedLogItemsExist=true;}}}","function renderQueuedLogItems(){logQueuedEventsTimer=null;var pruned=pruneLogEntries();var initiallyHasMatches=currentSearch?currentSearch.hasMatches():false;for(var i=0,len=logItems.length;i<len;i++){if(!logItems[i].rendered){logItems[i].render();logItems[i].appendToLog();if(currentSearch&&(logItems[i]instanceof LogEntry)){currentSearch.applyTo(logItems[i]);}}}","if(currentSearch){if(pruned){if(currentSearch.hasVisibleMatches()){if(currentMatchIndex===null){setCurrentMatchIndex(0);}","displayMatches();}else{displayNoMatches();}}else if(!initiallyHasMatches&&currentSearch.hasVisibleMatches()){setCurrentMatchIndex(0);displayMatches();}}","if(scrollToLatest){doScrollToLatest();}","unrenderedLogItemsExist=false;}","function pruneLogEntries(){if((maxMessages!==null)&&(logEntriesAndSeparators.length>maxMessages)){var numberToDelete=logEntriesAndSeparators.length-maxMessages;var prunedLogEntries=logEntriesAndSeparators.slice(0,numberToDelete);if(currentSearch){currentSearch.removeMatches(prunedLogEntries);}","var group;for(var i=0;i<numberToDelete;i++){group=logEntriesAndSeparators[i].group;array_remove(logItems,logEntriesAndSeparators[i]);array_remove(logEntries,logEntriesAndSeparators[i]);logEntriesAndSeparators[i].remove(true,true);if(group.children.length===0&&group!==currentGroup&&group!==rootGroup){array_remove(logItems,group);group.remove(true,true);}}","logEntriesAndSeparators=array_removeFromStart(logEntriesAndSeparators,numberToDelete);return true;}","return false;}",'function group(name,startExpanded){if(loggingEnabled){initiallyExpanded=(typeof startExpanded==="undefined")?true:Boolean(startExpanded);var newGroup=new Group(name,false,initiallyExpanded);currentGroup.addChild(newGroup);currentGroup=newGroup;logItems.push(newGroup);if(loaded){if(logQueuedEventsTimer!==null){clearTimeout(logQueuedEventsTimer);}',"logQueuedEventsTimer=setTimeout(renderQueuedLogItems,renderDelay);unrenderedLogItemsExist=true;}}}","function groupEnd(){currentGroup=(currentGroup===rootGroup)?rootGroup:currentGroup.group;}","function mainPageReloaded(){currentGroup=rootGroup;var separator=new Separator();logEntriesAndSeparators.push(separator);logItems.push(separator);currentGroup.addChild(separator);}","function closeWindow(){if(appender&&mainWindowExists()){appender.close(true);}else{window.close();}}","function hide(){if(appender&&mainWindowExists()){appender.hide();}}",'var mainWindow=window;var windowId="log4javascriptConsoleWindow_"+new Date().getTime()+"_"+(""+Math.random()).substr(2);function setMainWindow(win){mainWindow=win;mainWindow[windowId]=window;if(opener&&closeIfOpenerCloses){pollOpener();}}',"function pollOpener(){if(closeIfOpenerCloses){if(mainWindowExists()){setTimeout(pollOpener,500);}else{closeWindow();}}}","function mainWindowExists(){try{return(mainWindow&&!mainWindow.closed&&mainWindow[windowId]==window);}catch(ex){}","return false;}",'var logLevels=["TRACE","DEBUG","INFO","WARN","ERROR","FATAL"];function getCheckBox(logLevel){return $("switch_"+logLevel);}','function getIeWrappedLogContainer(){return $("log_wrapped");}','function getIeUnwrappedLogContainer(){return $("log_unwrapped");}',"function applyFilters(){for(var i=0;i<logLevels.length;i++){if(getCheckBox(logLevels[i]).checked){addClass(logMainContainer,logLevels[i]);}else{removeClass(logMainContainer,logLevels[i]);}}","updateSearchFromFilters();}",'function toggleAllLevels(){var turnOn=$("switch_ALL").checked;for(var i=0;i<logLevels.length;i++){getCheckBox(logLevels[i]).checked=turnOn;if(turnOn){addClass(logMainContainer,logLevels[i]);}else{removeClass(logMainContainer,logLevels[i]);}}}','function checkAllLevels(){for(var i=0;i<logLevels.length;i++){if(!getCheckBox(logLevels[i]).checked){getCheckBox("ALL").checked=false;return;}}','getCheckBox("ALL").checked=true;}',"function clearLog(){rootGroup.clear();currentGroup=rootGroup;logEntries=[];logItems=[];logEntriesAndSeparators=[];doSearch();}",'function toggleWrap(){var enable=$("wrap").checked;if(enable){addClass(logMainContainer,"wrap");}else{removeClass(logMainContainer,"wrap");}',"refreshCurrentMatch();}","var searchTimer=null;function scheduleSearch(){try{clearTimeout(searchTimer);}catch(ex){}","searchTimer=setTimeout(doSearch,500);}","function Search(searchTerm,isRegex,searchRegex,isCaseSensitive){this.searchTerm=searchTerm;this.isRegex=isRegex;this.searchRegex=searchRegex;this.isCaseSensitive=isCaseSensitive;this.matches=[];}","Search.prototype={hasMatches:function(){return this.matches.length>0;},hasVisibleMatches:function(){if(this.hasMatches()){for(var i=0;i<this.matches.length;i++){if(this.matches[i].isVisible()){return true;}}}","return false;},match:function(logEntry){var entryText=String(logEntry.formattedMessage);var matchesSearch=false;if(this.isRegex){matchesSearch=this.searchRegex.test(entryText);}else if(this.isCaseSensitive){matchesSearch=(entryText.indexOf(this.searchTerm)>-1);}else{matchesSearch=(entryText.toLowerCase().indexOf(this.searchTerm.toLowerCase())>-1);}","return matchesSearch;},getNextVisibleMatchIndex:function(){for(var i=currentMatchIndex+1;i<this.matches.length;i++){if(this.matches[i].isVisible()){return i;}}","for(i=0;i<=currentMatchIndex;i++){if(this.matches[i].isVisible()){return i;}}","return-1;},getPreviousVisibleMatchIndex:function(){for(var i=currentMatchIndex-1;i>=0;i--){if(this.matches[i].isVisible()){return i;}}","for(var i=this.matches.length-1;i>=currentMatchIndex;i--){if(this.matches[i].isVisible()){return i;}}",'return-1;},applyTo:function(logEntry){var doesMatch=this.match(logEntry);if(doesMatch){logEntry.group.expand();logEntry.setSearchMatch(true);var logEntryContent;var wrappedLogEntryContent;var searchTermReplacementStartTag="<span class=\\"searchterm\\">";var searchTermReplacementEndTag="<"+"/span>";var preTagName=isIe?"pre":"span";var preStartTag="<"+preTagName+" class=\\"pre\\">";var preEndTag="<"+"/"+preTagName+">";var startIndex=0;var searchIndex,matchedText,textBeforeMatch;if(this.isRegex){var flags=this.isCaseSensitive?"g":"gi";var capturingRegex=new RegExp("("+this.searchRegex.source+")",flags);var rnd=(""+Math.random()).substr(2);var startToken="%%s"+rnd+"%%";var endToken="%%e"+rnd+"%%";logEntryContent=logEntry.formattedMessage.replace(capturingRegex,startToken+"$1"+endToken);logEntryContent=escapeHtml(logEntryContent);var result;var searchString=logEntryContent;logEntryContent="";wrappedLogEntryContent="";while((searchIndex=searchString.indexOf(startToken,startIndex))>-1){var endTokenIndex=searchString.indexOf(endToken,searchIndex);matchedText=searchString.substring(searchIndex+startToken.length,endTokenIndex);textBeforeMatch=searchString.substring(startIndex,searchIndex);logEntryContent+=preStartTag+textBeforeMatch+preEndTag;logEntryContent+=searchTermReplacementStartTag+preStartTag+matchedText+',"preEndTag+searchTermReplacementEndTag;if(isIe){wrappedLogEntryContent+=textBeforeMatch+searchTermReplacementStartTag+","matchedText+searchTermReplacementEndTag;}","startIndex=endTokenIndex+endToken.length;}",'logEntryContent+=preStartTag+searchString.substr(startIndex)+preEndTag;if(isIe){wrappedLogEntryContent+=searchString.substr(startIndex);}}else{logEntryContent="";wrappedLogEntryContent="";var searchTermReplacementLength=searchTermReplacementStartTag.length+',"this.searchTerm.length+searchTermReplacementEndTag.length;var searchTermLength=this.searchTerm.length;var searchTermLowerCase=this.searchTerm.toLowerCase();var logTextLowerCase=logEntry.formattedMessage.toLowerCase();while((searchIndex=logTextLowerCase.indexOf(searchTermLowerCase,startIndex))>-1){matchedText=escapeHtml(logEntry.formattedMessage.substr(searchIndex,this.searchTerm.length));textBeforeMatch=escapeHtml(logEntry.formattedMessage.substring(startIndex,searchIndex));var searchTermReplacement=searchTermReplacementStartTag+","preStartTag+matchedText+preEndTag+searchTermReplacementEndTag;logEntryContent+=preStartTag+textBeforeMatch+preEndTag+searchTermReplacement;if(isIe){wrappedLogEntryContent+=textBeforeMatch+searchTermReplacementStartTag+","matchedText+searchTermReplacementEndTag;}","startIndex=searchIndex+searchTermLength;}","var textAfterLastMatch=escapeHtml(logEntry.formattedMessage.substr(startIndex));logEntryContent+=preStartTag+textAfterLastMatch+preEndTag;if(isIe){wrappedLogEntryContent+=textAfterLastMatch;}}","logEntry.setContent(logEntryContent,wrappedLogEntryContent);var logEntryMatches=logEntry.getSearchMatches();this.matches=this.matches.concat(logEntryMatches);}else{logEntry.setSearchMatch(false);logEntry.setContent(logEntry.formattedMessage,logEntry.formattedMessage);}","return doesMatch;},removeMatches:function(logEntries){var matchesToRemoveCount=0;var currentMatchRemoved=false;var matchesToRemove=[];var i,iLen,j,jLen;for(i=0,iLen=this.matches.length;i<iLen;i++){for(j=0,jLen=logEntries.length;j<jLen;j++){if(this.matches[i].belongsTo(logEntries[j])){matchesToRemove.push(this.matches[i]);if(i===currentMatchIndex){currentMatchRemoved=true;}}}}","var newMatch=currentMatchRemoved?null:this.matches[currentMatchIndex];if(currentMatchRemoved){for(i=currentMatchIndex,iLen=this.matches.length;i<iLen;i++){if(this.matches[i].isVisible()&&!array_contains(matchesToRemove,this.matches[i])){newMatch=this.matches[i];break;}}}","for(i=0,iLen=matchesToRemove.length;i<iLen;i++){array_remove(this.matches,matchesToRemove[i]);matchesToRemove[i].remove();}","if(this.hasVisibleMatches()){if(newMatch===null){setCurrentMatchIndex(0);}else{var newMatchIndex=0;for(i=0,iLen=this.matches.length;i<iLen;i++){if(newMatch===this.matches[i]){newMatchIndex=i;break;}}","setCurrentMatchIndex(newMatchIndex);}}else{currentMatchIndex=null;displayNoMatches();}}};function getPageOffsetTop(el,container){var currentEl=el;var y=0;while(currentEl&&currentEl!=container){y+=currentEl.offsetTop;currentEl=currentEl.offsetParent;}","return y;}",'function scrollIntoView(el){var logContainer=logMainContainer;if(!$("wrap").checked){var logContainerLeft=logContainer.scrollLeft;var logContainerRight=logContainerLeft+logContainer.offsetWidth;var elLeft=el.offsetLeft;var elRight=elLeft+el.offsetWidth;if(elLeft<logContainerLeft||elRight>logContainerRight){logContainer.scrollLeft=elLeft-(logContainer.offsetWidth-el.offsetWidth)/2;}}',"var logContainerTop=logContainer.scrollTop;var logContainerBottom=logContainerTop+logContainer.offsetHeight;var elTop=getPageOffsetTop(el)-getToolBarsHeight();var elBottom=elTop+el.offsetHeight;if(elTop<logContainerTop||elBottom>logContainerBottom){logContainer.scrollTop=elTop-(logContainer.offsetHeight-el.offsetHeight)/2;}}","function Match(logEntryLevel,spanInMainDiv,spanInUnwrappedPre,spanInWrappedDiv){this.logEntryLevel=logEntryLevel;this.spanInMainDiv=spanInMainDiv;if(isIe){this.spanInUnwrappedPre=spanInUnwrappedPre;this.spanInWrappedDiv=spanInWrappedDiv;}","this.mainSpan=isIe?spanInUnwrappedPre:spanInMainDiv;}",'Match.prototype={equals:function(match){return this.mainSpan===match.mainSpan;},setCurrent:function(){if(isIe){addClass(this.spanInUnwrappedPre,"currentmatch");addClass(this.spanInWrappedDiv,"currentmatch");var elementToScroll=$("wrap").checked?this.spanInWrappedDiv:this.spanInUnwrappedPre;scrollIntoView(elementToScroll);}else{addClass(this.spanInMainDiv,"currentmatch");scrollIntoView(this.spanInMainDiv);}},belongsTo:function(logEntry){if(isIe){return isDescendant(this.spanInUnwrappedPre,logEntry.unwrappedPre);}else{return isDescendant(this.spanInMainDiv,logEntry.mainDiv);}},setNotCurrent:function(){if(isIe){removeClass(this.spanInUnwrappedPre,"currentmatch");removeClass(this.spanInWrappedDiv,"currentmatch");}else{removeClass(this.spanInMainDiv,"currentmatch");}},isOrphan:function(){return isOrphan(this.mainSpan);},isVisible:function(){return getCheckBox(this.logEntryLevel).checked;},remove:function(){if(isIe){this.spanInUnwrappedPre=null;this.spanInWrappedDiv=null;}else{this.spanInMainDiv=null;}}};var currentSearch=null;var currentMatchIndex=null;function doSearch(){var searchBox=$("searchBox");var searchTerm=searchBox.value;var isRegex=$("searchRegex").checked;var isCaseSensitive=$("searchCaseSensitive").checked;var i;if(searchTerm===""){$("searchReset").disabled=true;$("searchNav").style.display="none";removeClass(document.body,"searching");removeClass(searchBox,"hasmatches");removeClass(searchBox,"nomatches");for(i=0;i<logEntries.length;i++){logEntries[i].clearSearch();logEntries[i].setContent(logEntries[i].formattedMessage,logEntries[i].formattedMessage);}','currentSearch=null;setLogContainerHeight();}else{$("searchReset").disabled=false;$("searchNav").style.display="block";var searchRegex;var regexValid;if(isRegex){try{searchRegex=isCaseSensitive?new RegExp(searchTerm,"g"):new RegExp(searchTerm,"gi");regexValid=true;replaceClass(searchBox,"validregex","invalidregex");searchBox.title="Valid regex";}catch(ex){regexValid=false;replaceClass(searchBox,"invalidregex","validregex");searchBox.title="Invalid regex: "+(ex.message?ex.message:(ex.description?ex.description:"unknown error"));return;}}else{searchBox.title="";removeClass(searchBox,"validregex");removeClass(searchBox,"invalidregex");}','addClass(document.body,"searching");currentSearch=new Search(searchTerm,isRegex,searchRegex,isCaseSensitive);for(i=0;i<logEntries.length;i++){currentSearch.applyTo(logEntries[i]);}',"setLogContainerHeight();if(currentSearch.hasVisibleMatches()){setCurrentMatchIndex(0);displayMatches();}else{displayNoMatches();}}}","function updateSearchFromFilters(){if(currentSearch){if(currentSearch.hasMatches()){if(currentMatchIndex===null){currentMatchIndex=0;}","var currentMatch=currentSearch.matches[currentMatchIndex];if(currentMatch.isVisible()){displayMatches();setCurrentMatchIndex(currentMatchIndex);}else{currentMatch.setNotCurrent();var nextVisibleMatchIndex=currentSearch.getNextVisibleMatchIndex();if(nextVisibleMatchIndex>-1){setCurrentMatchIndex(nextVisibleMatchIndex);displayMatches();}else{displayNoMatches();}}}else{displayNoMatches();}}}","function refreshCurrentMatch(){if(currentSearch&&currentSearch.hasVisibleMatches()){setCurrentMatchIndex(currentMatchIndex);}}",'function displayMatches(){replaceClass($("searchBox"),"hasmatches","nomatches");$("searchBox").title=""+currentSearch.matches.length+" matches found";$("searchNav").style.display="block";setLogContainerHeight();}','function displayNoMatches(){replaceClass($("searchBox"),"nomatches","hasmatches");$("searchBox").title="No matches found";$("searchNav").style.display="none";setLogContainerHeight();}','function toggleSearchEnabled(enable){enable=(typeof enable=="undefined")?!$("searchDisable").checked:enable;$("searchBox").disabled=!enable;$("searchReset").disabled=!enable;$("searchRegex").disabled=!enable;$("searchNext").disabled=!enable;$("searchPrevious").disabled=!enable;$("searchCaseSensitive").disabled=!enable;$("searchNav").style.display=(enable&&($("searchBox").value!=="")&&currentSearch&&currentSearch.hasVisibleMatches())?"block":"none";if(enable){removeClass($("search"),"greyedout");addClass(document.body,"searching");if($("searchHighlight").checked){addClass(logMainContainer,"searchhighlight");}else{removeClass(logMainContainer,"searchhighlight");}','if($("searchFilter").checked){addClass(logMainContainer,"searchfilter");}else{removeClass(logMainContainer,"searchfilter");}','$("searchDisable").checked=!enable;}else{addClass($("search"),"greyedout");removeClass(document.body,"searching");removeClass(logMainContainer,"searchhighlight");removeClass(logMainContainer,"searchfilter");}',"setLogContainerHeight();}",'function toggleSearchFilter(){var enable=$("searchFilter").checked;if(enable){addClass(logMainContainer,"searchfilter");}else{removeClass(logMainContainer,"searchfilter");}',"refreshCurrentMatch();}",'function toggleSearchHighlight(){var enable=$("searchHighlight").checked;if(enable){addClass(logMainContainer,"searchhighlight");}else{removeClass(logMainContainer,"searchhighlight");}}','function clearSearch(){$("searchBox").value="";doSearch();}','function searchNext(){if(currentSearch!==null&&currentMatchIndex!==null){currentSearch.matches[currentMatchIndex].setNotCurrent();var nextMatchIndex=currentSearch.getNextVisibleMatchIndex();if(nextMatchIndex>currentMatchIndex||confirm("Reached the end of the page. Start from the top?")){setCurrentMatchIndex(nextMatchIndex);}}}','function searchPrevious(){if(currentSearch!==null&&currentMatchIndex!==null){currentSearch.matches[currentMatchIndex].setNotCurrent();var previousMatchIndex=currentSearch.getPreviousVisibleMatchIndex();if(previousMatchIndex<currentMatchIndex||confirm("Reached the start of the page. Continue from the bottom?")){setCurrentMatchIndex(previousMatchIndex);}}}',"function setCurrentMatchIndex(index){currentMatchIndex=index;currentSearch.matches[currentMatchIndex].setCurrent();}",'function addClass(el,cssClass){if(!hasClass(el,cssClass)){if(el.className){el.className+=" "+cssClass;}else{el.className=cssClass;}}}','function hasClass(el,cssClass){if(el.className){var classNames=el.className.split(" ");return array_contains(classNames,cssClass);}',"return false;}",'function removeClass(el,cssClass){if(hasClass(el,cssClass)){var existingClasses=el.className.split(" ");var newClasses=[];for(var i=0,len=existingClasses.length;i<len;i++){if(existingClasses[i]!=cssClass){newClasses[newClasses.length]=existingClasses[i];}}','el.className=newClasses.join(" ");}}',"function replaceClass(el,newCssClass,oldCssClass){removeClass(el,oldCssClass);addClass(el,newCssClass);}","function getElementsByClass(el,cssClass,tagName){var elements=el.getElementsByTagName(tagName);var matches=[];for(var i=0,len=elements.length;i<len;i++){if(hasClass(elements[i],cssClass)){matches.push(elements[i]);}}","return matches;}","function $(id){return document.getElementById(id);}","function isDescendant(node,ancestorNode){while(node!=null){if(node===ancestorNode){return true;}","node=node.parentNode;}","return false;}","function isOrphan(node){var currentNode=node;while(currentNode){if(currentNode==document.body){return false;}","currentNode=currentNode.parentNode;}","return true;}",'function escapeHtml(str){return str.replace(/&/g,"&amp;").replace(/[<]/g,"&lt;").replace(/>/g,"&gt;");}',"function getWindowWidth(){if(window.innerWidth){return window.innerWidth;}else if(document.documentElement&&document.documentElement.clientWidth){return document.documentElement.clientWidth;}else if(document.body){return document.body.clientWidth;}","return 0;}","function getWindowHeight(){if(window.innerHeight){return window.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight;}else if(document.body){return document.body.clientHeight;}","return 0;}",'function getToolBarsHeight(){return $("switches").offsetHeight;}','function getChromeHeight(){var height=getToolBarsHeight();if(showCommandLine){height+=$("commandLine").offsetHeight;}',"return height;}",'function setLogContainerHeight(){if(logMainContainer){var windowHeight=getWindowHeight();$("body").style.height=getWindowHeight()+"px";logMainContainer.style.height=""+','Math.max(0,windowHeight-getChromeHeight())+"px";}}','function setCommandInputWidth(){if(showCommandLine){$("command").style.width=""+Math.max(0,$("commandLineContainer").offsetWidth-','($("evaluateButton").offsetWidth+13))+"px";}}',"window.onresize=function(){setCommandInputWidth();setLogContainerHeight();};if(!Array.prototype.push){Array.prototype.push=function(){for(var i=0,len=arguments.length;i<len;i++){this[this.length]=arguments[i];}","return this.length;};}","if(!Array.prototype.pop){Array.prototype.pop=function(){if(this.length>0){var val=this[this.length-1];this.length=this.length-1;return val;}};}","if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length>0){var firstItem=this[0];for(var i=0,len=this.length-1;i<len;i++){this[i]=this[i+1];}","this.length=this.length-1;return firstItem;}};}","if(!Array.prototype.splice){Array.prototype.splice=function(startIndex,deleteCount){var itemsAfterDeleted=this.slice(startIndex+deleteCount);var itemsDeleted=this.slice(startIndex,startIndex+deleteCount);this.length=startIndex;var argumentsArray=[];for(var i=0,len=arguments.length;i<len;i++){argumentsArray[i]=arguments[i];}","var itemsToAppend=(argumentsArray.length>2)?itemsAfterDeleted=argumentsArray.slice(2).concat(itemsAfterDeleted):itemsAfterDeleted;for(i=0,len=itemsToAppend.length;i<len;i++){this.push(itemsToAppend[i]);}","return itemsDeleted;};}","function array_remove(arr,val){var index=-1;for(var i=0,len=arr.length;i<len;i++){if(arr[i]===val){index=i;break;}}","if(index>=0){arr.splice(index,1);return index;}else{return false;}}","function array_removeFromStart(array,numberToRemove){if(Array.prototype.splice){array.splice(0,numberToRemove);}else{for(var i=numberToRemove,len=array.length;i<len;i++){array[i-numberToRemove]=array[i];}","array.length=array.length-numberToRemove;}","return array;}","function array_contains(arr,val){for(var i=0,len=arr.length;i<len;i++){if(arr[i]==val){return true;}}","return false;}","function getErrorMessage(ex){if(ex.message){return ex.message;}else if(ex.description){return ex.description;}",'return""+ex;}',"function moveCaretToEnd(input){if(input.setSelectionRange){input.focus();var length=input.value.length;input.setSelectionRange(length,length);}else if(input.createTextRange){var range=input.createTextRange();range.collapse(false);range.select();}","input.focus();}",'function stopPropagation(evt){if(evt.stopPropagation){evt.stopPropagation();}else if(typeof evt.cancelBubble!="undefined"){evt.cancelBubble=true;}}',"function getEvent(evt){return evt?evt:event;}","function getTarget(evt){return evt.target?evt.target:evt.srcElement;}",'function getRelatedTarget(evt){if(evt.relatedTarget){return evt.relatedTarget;}else if(evt.srcElement){switch(evt.type){case"mouseover":return evt.fromElement;case"mouseout":return evt.toElement;default:return evt.srcElement;}}}',"function cancelKeyEvent(evt){evt.returnValue=false;stopPropagation(evt);}",'function evalCommandLine(){var expr=$("command").value;evalCommand(expr);$("command").value="";}',"function evalLastCommand(){if(lastCommand!=null){evalCommand(lastCommand);}}",'var lastCommand=null;var commandHistory=[];var currentCommandIndex=0;function evalCommand(expr){if(appender){appender.evalCommandAndAppend(expr);}else{var prefix=">>> "+expr+"\\r\\n";try{log("INFO",prefix+eval(expr));}catch(ex){log("ERROR",prefix+"Error: "+getErrorMessage(ex));}}',"if(expr!=commandHistory[commandHistory.length-1]){commandHistory.push(expr);if(appender){appender.storeCommandHistory(commandHistory);}}","currentCommandIndex=(expr==commandHistory[currentCommandIndex])?currentCommandIndex+1:commandHistory.length;lastCommand=expr;}","//]]>","<\/script>",'<style type="text/css">',"body{background-color:white;color:black;padding:0;margin:0;font-family:tahoma,verdana,arial,helvetica,sans-serif;overflow:hidden}div#switchesContainer input{margin-bottom:0}div.toolbar{border-top:solid #ffffff 1px;border-bottom:solid #aca899 1px;background-color:#f1efe7;padding:3px 5px;font-size:68.75%}div.toolbar,div#search input{font-family:tahoma,verdana,arial,helvetica,sans-serif}div.toolbar input.button{padding:0 5px;font-size:100%}div.toolbar input.hidden{display:none}div#switches input#clearButton{margin-left:20px}div#levels label{font-weight:bold}div#levels label,div#options label{margin-right:5px}div#levels label#wrapLabel{font-weight:normal}div#search label{margin-right:10px}div#search label.searchboxlabel{margin-right:0}div#search input{font-size:100%}div#search input.validregex{color:green}div#search input.invalidregex{color:red}div#search input.nomatches{color:white;background-color:#ff6666}div#search input.nomatches{color:white;background-color:#ff6666}div#searchNav{display:none}div#commandLine{display:none}div#commandLine input#command{font-size:100%;font-family:Courier New,Courier}div#commandLine input#evaluateButton{}*.greyedout{color:gray !important;border-color:gray !important}*.greyedout *.alwaysenabled{color:black}*.unselectable{-khtml-user-select:none;-moz-user-select:none;user-select:none}div#log{font-family:Courier New,Courier;font-size:75%;width:100%;overflow:auto;clear:both;position:relative}div.group{border-color:#cccccc;border-style:solid;border-width:1px 0 1px 1px;overflow:visible}div.oldIe div.group,div.oldIe div.group *,div.oldIe *.logentry{height:1%}div.group div.groupheading span.expander{border:solid black 1px;font-family:Courier New,Courier;font-size:0.833em;background-color:#eeeeee;position:relative;top:-1px;color:black;padding:0 2px;cursor:pointer;cursor:hand;height:1%}div.group div.groupcontent{margin-left:10px;padding-bottom:2px;overflow:visible}div.group div.expanded{display:block}div.group div.collapsed{display:none}*.logentry{overflow:visible;display:none;white-space:pre}span.pre{white-space:pre}pre.unwrapped{display:inline !important}pre.unwrapped pre.pre,div.wrapped pre.pre{display:inline}div.wrapped pre.pre{white-space:normal}div.wrapped{display:none}body.searching *.logentry span.currentmatch{color:white !important;background-color:green !important}body.searching div.searchhighlight *.logentry span.searchterm{color:black;background-color:yellow}div.wrap *.logentry{white-space:normal !important;border-width:0 0 1px 0;border-color:#dddddd;border-style:dotted}div.wrap #log_wrapped,#log_unwrapped{display:block}div.wrap #log_unwrapped,#log_wrapped{display:none}div.wrap *.logentry span.pre{overflow:visible;white-space:normal}div.wrap *.logentry pre.unwrapped{display:none}div.wrap *.logentry span.wrapped{display:inline}div.searchfilter *.searchnonmatch{display:none !important}div#log *.TRACE,label#label_TRACE{color:#666666}div#log *.DEBUG,label#label_DEBUG{color:green}div#log *.INFO,label#label_INFO{color:#000099}div#log *.WARN,label#label_WARN{color:#999900}div#log *.ERROR,label#label_ERROR{color:red}div#log *.FATAL,label#label_FATAL{color:#660066}div.TRACE#log *.TRACE,div.DEBUG#log *.DEBUG,div.INFO#log *.INFO,div.WARN#log *.WARN,div.ERROR#log *.ERROR,div.FATAL#log *.FATAL{display:block}div#log div.separator{background-color:#cccccc;margin:5px 0;line-height:1px}","</style>","</head>",'<body id="body">','<div id="switchesContainer">','<div id="switches">','<div id="levels" class="toolbar">',"Filters:",'<input type="checkbox" id="switch_TRACE" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide trace messages" /><label for="switch_TRACE" id="label_TRACE">trace</label>','<input type="checkbox" id="switch_DEBUG" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide debug messages" /><label for="switch_DEBUG" id="label_DEBUG">debug</label>','<input type="checkbox" id="switch_INFO" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide info messages" /><label for="switch_INFO" id="label_INFO">info</label>','<input type="checkbox" id="switch_WARN" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide warn messages" /><label for="switch_WARN" id="label_WARN">warn</label>','<input type="checkbox" id="switch_ERROR" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide error messages" /><label for="switch_ERROR" id="label_ERROR">error</label>','<input type="checkbox" id="switch_FATAL" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide fatal messages" /><label for="switch_FATAL" id="label_FATAL">fatal</label>','<input type="checkbox" id="switch_ALL" onclick="toggleAllLevels(); applyFilters()" checked="checked" title="Show/hide all messages" /><label for="switch_ALL" id="label_ALL">all</label>',"</div>",'<div id="search" class="toolbar">','<label for="searchBox" class="searchboxlabel">Search:</label> <input type="text" id="searchBox" onclick="toggleSearchEnabled(true)" onkeyup="scheduleSearch()" size="20" />','<input type="button" id="searchReset" disabled="disabled" value="Reset" onclick="clearSearch()" class="button" title="Reset the search" />','<input type="checkbox" id="searchRegex" onclick="doSearch()" title="If checked, search is treated as a regular expression" /><label for="searchRegex">Regex</label>','<input type="checkbox" id="searchCaseSensitive" onclick="doSearch()" title="If checked, search is case sensitive" /><label for="searchCaseSensitive">Match case</label>','<input type="checkbox" id="searchDisable" onclick="toggleSearchEnabled()" title="Enable/disable search" /><label for="searchDisable" class="alwaysenabled">Disable</label>','<div id="searchNav">','<input type="button" id="searchNext" disabled="disabled" value="Next" onclick="searchNext()" class="button" title="Go to the next matching log entry" />','<input type="button" id="searchPrevious" disabled="disabled" value="Previous" onclick="searchPrevious()" class="button" title="Go to the previous matching log entry" />','<input type="checkbox" id="searchFilter" onclick="toggleSearchFilter()" title="If checked, non-matching log entries are filtered out" /><label for="searchFilter">Filter</label>','<input type="checkbox" id="searchHighlight" onclick="toggleSearchHighlight()" title="Highlight matched search terms" /><label for="searchHighlight" class="alwaysenabled">Highlight all</label>',"</div>","</div>",'<div id="options" class="toolbar">',"Options:",'<input type="checkbox" id="enableLogging" onclick="toggleLoggingEnabled()" checked="checked" title="Enable/disable logging" /><label for="enableLogging" id="enableLoggingLabel">Log</label>','<input type="checkbox" id="wrap" onclick="toggleWrap()" title="Enable / disable word wrap" /><label for="wrap" id="wrapLabel">Wrap</label>','<input type="checkbox" id="newestAtTop" onclick="toggleNewestAtTop()" title="If checked, causes newest messages to appear at the top" /><label for="newestAtTop" id="newestAtTopLabel">Newest at the top</label>','<input type="checkbox" id="scrollToLatest" onclick="toggleScrollToLatest()" checked="checked" title="If checked, window automatically scrolls to a new message when it is added" /><label for="scrollToLatest" id="scrollToLatestLabel">Scroll to latest</label>','<input type="button" id="clearButton" value="Clear" onclick="clearLog()" class="button" title="Clear all log messages" />','<input type="button" id="hideButton" value="Hide" onclick="hide()" class="hidden button" title="Hide the console" />','<input type="button" id="closeButton" value="Close" onclick="closeWindow()" class="hidden button" title="Close the window" />',"</div>","</div>","</div>",'<div id="log" class="TRACE DEBUG INFO WARN ERROR FATAL"></div>','<div id="commandLine" class="toolbar">','<div id="commandLineContainer">','<input type="text" id="command" title="Enter a JavaScript command here and hit return or press \'Evaluate\'" />','<input type="button" id="evaluateButton" value="Evaluate" class="button" title="Evaluate the command" onclick="evalCommandLine()" />',"</div>","</div>","</body>","</html>",""]};var t=[];ConsoleAppender=function(){};var n=1;ConsoleAppender.prototype=new Appender;ConsoleAppender.prototype.create=function(r,i,a,o,s,l,c,u){var f=this;var p=false;var d=false;var h=false;var g=false;var m=[];var v=true;var y=n++;o=extractBooleanFromParam(o,this.defaults.initiallyMinimized);a=extractBooleanFromParam(a,this.defaults.lazyInit);s=extractBooleanFromParam(s,this.defaults.useDocumentWrite);var b=this.defaults.newestMessageAtTop;var w=this.defaults.scrollToLatestMessage;l=l?l:this.defaults.width;c=c?c:this.defaults.height;var C=this.defaults.maxMessages;var E=this.defaults.showCommandLine;var x=this.defaults.commandLineObjectExpansionDepth;var L=this.defaults.showHideButton;var S=this.defaults.showCloseButton;this.setLayout(this.defaults.layout);var A,T,I,M,k;var O=r?"InPageAppender":"PopUpAppender";var N=function(e){if(d){handleError(O+": configuration option '"+e+"' may not be set after the appender has been initialized");return false}return true};var _=function(){return h&&v&&!g};this.isNewestMessageAtTop=function(){return b};this.setNewestMessageAtTop=function(e){b=bool(e);if(_()){M().setNewestAtTop(b)}};this.isScrollToLatestMessage=function(){return w};this.setScrollToLatestMessage=function(e){w=bool(e);if(_()){M().setScrollToLatest(w)}};this.getWidth=function(){return l};this.setWidth=function(e){if(N("width")){l=extractStringFromParam(e,l)}};this.getHeight=function(){return c};this.setHeight=function(e){if(N("height")){c=extractStringFromParam(e,c)}};this.getMaxMessages=function(){return C};this.setMaxMessages=function(e){C=extractIntFromParam(e,C);if(_()){M().setMaxMessages(C)}};this.isShowCommandLine=function(){return E};this.setShowCommandLine=function(e){E=bool(e);if(_()){M().setShowCommandLine(E)}};this.isShowHideButton=function(){return L};this.setShowHideButton=function(e){L=bool(e);if(_()){M().setShowHideButton(L)}};this.isShowCloseButton=function(){return S};this.setShowCloseButton=function(e){S=bool(e);if(_()){M().setShowCloseButton(S)}};this.getCommandLineObjectExpansionDepth=function(){return x};this.setCommandLineObjectExpansionDepth=function(e){x=extractIntFromParam(e,x)};var D=o;this.isInitiallyMinimized=function(){return o};this.setInitiallyMinimized=function(e){if(N("initiallyMinimized")){o=bool(e);D=o}};this.isUseDocumentWrite=function(){return s};this.setUseDocumentWrite=function(e){if(N("useDocumentWrite")){s=bool(e)}};function R(e,t){this.loggingEvent=e;this.levelName=e.level.name;this.formattedMessage=t}R.prototype.append=function(){M().log(this.levelName,this.formattedMessage)};function P(e,t){this.name=e;this.initiallyExpanded=t}P.prototype.append=function(){M().group(this.name,this.initiallyExpanded)};function F(){}F.prototype.append=function(){M().groupEnd()};var j=function(){I();if(!p){A()}else if(g&&te){T()}if(I()){B()}};this.append=function(e){if(v){var t=f.getLayout().formatWithException(e);m.push(new R(e,t));j()}};this.group=function(e,t){if(v){m.push(new P(e,t));j()}};this.groupEnd=function(){if(v){m.push(new F);j()}};var B=function(){while(m.length>0){m.shift().append()}if(u){M().focus()}};this.setAddedToLogger=function(e){this.loggers.push(e);if(enabled&&!a){A()}};this.clear=function(){if(_()){M().clearLog()}m.length=0};this.focus=function(){if(_()){M().focus()}};this.focusCommandLine=function(){if(_()){M().focusCommandLine()}};this.focusSearch=function(){if(_()){M().focusSearch()}};var $=window;this.getCommandWindow=function(){return $};this.setCommandWindow=function(e){$=e};this.executeLastCommand=function(){if(_()){M().evalLastCommand()}};var U=new PatternLayout("%m");this.getCommandLayout=function(){return U};this.setCommandLayout=function(e){U=e};this.evalCommandAndAppend=function(e){var t={appendResult:true,isError:false};var n="";try{var r,i;if(!$.eval&&$.execScript){$.execScript("null")}var a={};for(i=0,len=H.length;i<len;i++){a[H[i][0]]=H[i][1]}var o=[];var s=function(e){o.push([e,$[e]])};s("appender");$.appender=f;s("commandReturnValue");$.commandReturnValue=t;s("commandLineFunctionsHash");$.commandLineFunctionsHash=a;var l=function(e){s(e);$[e]=function(){return this.commandLineFunctionsHash[e](f,arguments,t)}};for(i=0,len=H.length;i<len;i++){l(H[i][0])}if($===window&&$.execScript){s("evalExpr");s("result");window.evalExpr=e;$.execScript("window.result=eval(window.evalExpr);");r=window.result}else{r=$.eval(e)}n=isUndefined(r)?r:formatObjectExpansion(r,x);for(i=0,len=o.length;i<len;i++){$[o[i][0]]=o[i][1]}}catch(e){n="Error evaluating command: "+getExceptionStringRep(e);t.isError=true}if(t.appendResult){var c=">>> "+e;if(!isUndefined(n)){c+=newLine+n}var u=t.isError?Level.ERROR:Level.INFO;var p=new LoggingEvent(null,new Date,u,[c],null);var d=this.getLayout();this.setLayout(U);this.append(p);this.setLayout(d)}};var H=t.concat([]);this.addCommandLineFunction=function(e,t){H.push([e,t])};var W="log4javascriptCommandHistory";this.storeCommandHistory=function(e){setCookie(W,e.join(","))};var G=function(t){var n=e();t.open();for(var r=0,i=n.length;r<i;r++){t.writeln(n[r])}t.close()};this.setEventTypes(["load","unload"]);var q=function(){var e=M();e.setAppender(f);e.setNewestAtTop(b);e.setScrollToLatest(w);e.setMaxMessages(C);e.setShowCommandLine(E);e.setShowHideButton(L);e.setShowCloseButton(S);e.setMainWindow(window);var t=getCookie(W);if(t){e.commandHistory=t.split(",");e.currentCommandIndex=e.commandHistory.length}f.dispatchEvent("load",{win:e})};this.unload=function(){logLog.debug("unload "+this+", caller: "+this.unload.caller);if(!g){logLog.debug("really doing unload "+this);g=true;h=false;d=false;f.dispatchEvent("unload",{})}};var V=function(e,t,n,r){function i(){try{if(g){clearInterval(a)}if(e(M())){clearInterval(a);n()}}catch(e){clearInterval(a);v=false;handleError(r,e)}}var a=setInterval(i,t)};var K=function(){var e=document.domain!=location.hostname;return s?"":getBaseUrl()+"console.html"+(e?"?log4javascript_domain="+escape(document.domain):"")};if(r){var Y=null;var z=[];this.addCssProperty=function(e,t){if(N("cssProperties")){z.push([e,t])}};var X=false;var J;var Q=uniqueId+"_InPageAppender_"+y;this.hide=function(){if(p&&d){if(_()){M().$("command").blur()}J.style.display="none";D=true}};this.show=function(){if(p){if(d){J.style.display="block";this.setShowCommandLine(E);D=false}else if(!X){T(true)}}};this.isVisible=function(){return!D&&!g};this.close=function(e){if(!g&&(!e||confirm("This will permanently remove the console from the page. No more messages will be logged. Do you wish to continue?"))){J.parentNode.removeChild(J);this.unload()}};k=function(){var e="InPageAppender.open: unable to create console iframe";function t(){try{if(!o){f.show()}q();h=true;B()}catch(t){v=false;handleError(e,t)}}function n(){try{var n=function(e){return isLoaded(e)};if(s){G(M().document)}if(n(M())){t()}else{V(n,100,t,e)}}catch(t){v=false;handleError(e,t)}}D=false;J=Y.appendChild(document.createElement("div"));J.style.width=l;J.style.height=c;J.style.border="solid gray 1px";for(var r=0,i=z.length;r<i;r++){J.style[z[r][0]]=z[r][1]}var a=s?"":" src='"+K()+"'";J.innerHTML="<iframe id='"+Q+"' name='"+Q+"' width='100%' height='100%' frameborder='0'"+a+" scrolling='no'></iframe>";g=false;var u=function(e){try{return bool(e)&&bool(e.document)}catch(e){return false}};if(u(M())){n()}else{V(u,100,n,e)}d=true};T=function(e){if(e||!o){var t=function(){if(!i){Y=document.createElement("div");Y.style.position="fixed";Y.style.left="0";Y.style.right="0";Y.style.bottom="0";document.body.appendChild(Y);f.addCssProperty("borderWidth","1px 0 0 0");f.addCssProperty("zIndex",1e6);k()}else{try{var e=document.getElementById(i);if(e.nodeType==1){Y=e}k()}catch(e){handleError("InPageAppender.init: invalid container element '"+i+"' supplied",e)}}};if(pageLoaded&&i&&i.appendChild){Y=i;k()}else if(pageLoaded){t()}else{log4javascript.addEventListener("load",t)}X=true}};A=function(){T();p=true};M=function(){var e=window.frames[Q];if(e){return e}};I=function(){if(v&&!g){if(d&&!h&&M()&&isLoaded(M())){h=true}return h}return false}}else{var Z=f.defaults.useOldPopUp;var ee=f.defaults.complainAboutPopUpBlocking;var te=this.defaults.reopenWhenClosed;this.isUseOldPopUp=function(){return Z};this.setUseOldPopUp=function(e){if(N("useOldPopUp")){Z=bool(e)}};this.isComplainAboutPopUpBlocking=function(){return ee};this.setComplainAboutPopUpBlocking=function(e){if(N("complainAboutPopUpBlocking")){ee=bool(e)}};this.isFocusPopUp=function(){return u};this.setFocusPopUp=function(e){u=bool(e)};this.isReopenWhenClosed=function(){return te};this.setReopenWhenClosed=function(e){te=bool(e)};this.close=function(){logLog.debug("close "+this);try{ne.close();this.unload()}catch(e){}};this.hide=function(){logLog.debug("hide "+this);if(_()){this.close()}};this.show=function(){logLog.debug("show "+this);if(!d){k()}};this.isVisible=function(){return I()};var ne;k=function(){var e="width="+l+",height="+c+",status,resizable";var t="";try{var n=window.frameElement;if(n){t="_"+n.tagName+"_"+(n.name||n.id||"")}}catch(e){t="_inaccessibleParentFrame"}var r="PopUp_"+location.host.replace(/[^a-z0-9]/gi,"_")+"_"+y+t;if(!Z||!s){r=r+"_"+uniqueId}var i=function(e){if(g){return true}else{try{return bool(e)&&e.closed}catch(e){}}return false};var a=function(){if(!g){f.unload()}};function o(){M().setCloseIfOpenerCloses(!Z||!s);q();h=true;B();V(i,500,a,"PopUpAppender.checkPopUpClosed: error checking pop-up window")}try{ne=window.open(K(),r,e);g=false;d=true;if(ne&&ne.document){if(s&&Z&&isLoaded(ne)){ne.mainPageReloaded();o()}else{if(s){G(ne.document)}var u=function(e){return bool(e)&&isLoaded(e)};if(isLoaded(ne)){o()}else{V(u,100,o,"PopUpAppender.init: unable to create console window")}}}else{v=false;logLog.warn("PopUpAppender.init: pop-ups blocked, please unblock to use PopUpAppender");if(ee){handleError("log4javascript: pop-up windows appear to be blocked. Please unblock them to use pop-up logging.")}}}catch(e){handleError("PopUpAppender.init: error creating pop-up",e)}};T=function(){if(!o){k()}};A=function(){T();p=true};M=function(){return ne};I=function(){if(v&&!isUndefined(ne)&&!g){if(ne.closed||h&&isUndefined(ne.closed)){f.unload();logLog.debug("PopUpAppender: pop-up closed");return false}if(!h&&isLoaded(ne)){h=true}}return v&&h&&!g}}this.getConsoleWindow=M};ConsoleAppender.addGlobalCommandLineFunction=function(e,n){t.push([e,n])};function r(e,t,n,r,i){this.create(false,null,e,t,n,r,i,this.defaults.focusPopUp)}r.prototype=new ConsoleAppender;r.prototype.defaults={layout:new PatternLayout("%d{HH:mm:ss} %-5p - %m{1}%n"),initiallyMinimized:false,focusPopUp:false,lazyInit:true,useOldPopUp:true,complainAboutPopUpBlocking:true,newestMessageAtTop:false,scrollToLatestMessage:true,width:"600",height:"400",reopenWhenClosed:false,maxMessages:null,showCommandLine:true,commandLineObjectExpansionDepth:1,showHideButton:false,showCloseButton:true,useDocumentWrite:true};r.prototype.toString=function(){return"PopUpAppender"};log4javascript.PopUpAppender=r;function i(e,t,n,r,i,a){this.create(true,e,t,n,r,i,a,false)}i.prototype=new ConsoleAppender;i.prototype.defaults={layout:new PatternLayout("%d{HH:mm:ss} %-5p - %m{1}%n"),initiallyMinimized:false,lazyInit:true,newestMessageAtTop:false,scrollToLatestMessage:true,width:"100%",height:"220px",maxMessages:null,showCommandLine:true,commandLineObjectExpansionDepth:1,showHideButton:false,showCloseButton:false,showLogEntryDeleteButtons:true,useDocumentWrite:true};i.prototype.toString=function(){return"InPageAppender"};log4javascript.InPageAppender=i;log4javascript.InlineAppender=i})();function padWithSpaces(e,t){if(e.length<t){var n=[];var r=Math.max(0,t-e.length);for(var i=0;i<r;i++){n[i]=" "}e+=n.join("")}return e}(function(){function e(e){var t=0;for(var n in e){t=Math.max(toStr(n).length,t)}var r=[];for(n in e){var i=" "+padWithSpaces(toStr(n),t+2);var a;try{a=splitIntoLines(toStr(e[n])).join(padWithSpaces(newLine,t+6))}catch(e){a="[Error obtaining property. Details: "+getExceptionMessage(e)+"]"}r.push(i+a)}return r.join(newLine)}var t={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};var n=["script","pre"];var r=["br","img","hr","param","link","area","input","col","base","meta"];var i=" ";function a(e,o,s,l,c){o=typeof o=="undefined"?true:!!o;if(typeof s!="string"){s=""}l=!!l;c=!!c;var u;function f(e){return e.nodeType==t.TEXT_NODE&&/^[ \t\r\n]*$/.test(e.nodeValue)}function p(e){return e.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function d(e){var t=e.style.cssText.split(";");var n="";for(var r=0,i=t.length;r<i;r++){var a=t[r].split(":");var o=[];if(!/^\s*$/.test(a[0])){o.push(trim(a[0]).toLowerCase()+":"+trim(a[1]))}n=o.join(";")}return n}function h(e){if(e.prefix){return e.prefix}else if(e.outerHTML){var t=new RegExp("<([^:]+):"+e.tagName+"[^>]*>","i");if(t.test(e.outerHTML)){return RegExp.$1.toLowerCase()}}return""}var g="<";var m=">";var v,y;if(o&&e.nodeType!=t.DOCUMENT_FRAGMENT_NODE){switch(e.nodeType){case t.ELEMENT_NODE:var b=e.tagName.toLowerCase();u=l?newLine+s:"";u+=g;var w=h(e);var C=!!w;if(C){u+=w+":"}u+=b;for(v=0,y=e.attributes.length;v<y;v++){var E=e.attributes[v];if(!E.specified||E.nodeValue===null||E.nodeName.toLowerCase()==="style"||typeof E.nodeValue!=="string"||E.nodeName.indexOf("_moz")===0){continue}u+=" "+E.nodeName.toLowerCase()+'="';u+=p(E.nodeValue);u+='"'}if(e.style.cssText){var x=d(e);if(x!==""){u+=' style="'+d(e)+'"'}}if(array_contains(r,b)||C&&!e.hasChildNodes()){u+="/"+m}else{u+=m;var L=!(e.childNodes.length===1&&e.childNodes[0].nodeType===t.TEXT_NODE);var S=array_contains(n,b);for(v=0,y=e.childNodes.length;v<y;v++){u+=a(e.childNodes[v],true,s+i,L,S)}var A=g+"/"+b+m;u+=L?newLine+s+A:A}return u;case t.TEXT_NODE:if(f(e)){u=""}else{if(c){u=e.nodeValue}else{var T=splitIntoLines(trim(e.nodeValue));var I=[];for(v=0,y=T.length;v<y;v++){I[v]=trim(T[v])}u=I.join(newLine+s)}if(l){u=newLine+s+u}}return u;case t.CDATA_SECTION_NODE:return"<![CDA"+"TA["+e.nodeValue+"]"+"]>"+newLine;case t.DOCUMENT_NODE:u="";for(v=0,y=e.childNodes.length;v<y;v++){u+=a(e.childNodes[v],true,s)}return u;default:return""}}else{u="";for(v=0,y=e.childNodes.length;v<y;v++){u+=a(e.childNodes[v],true,s+i)}return u}}function o(){ConsoleAppender.addGlobalCommandLineFunction("$",(function(e,t,n){return document.getElementById(t[0])}));ConsoleAppender.addGlobalCommandLineFunction("dir",(function(t,n,r){var i=[];for(var a=0,o=n.length;a<o;a++){i[a]=e(n[a])}return i.join(newLine+newLine)}));ConsoleAppender.addGlobalCommandLineFunction("dirxml",(function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){r[i]=a(t[i])}return r.join(newLine+newLine)}));ConsoleAppender.addGlobalCommandLineFunction("cd",(function(e,t,n){var r,i;if(t.length===0||t[0]===""){r=window;i="Command line set to run in main window"}else{if(t[0].window==t[0]){r=t[0];i="Command line set to run in frame '"+t[0].name+"'"}else{r=window.frames[t[0]];if(r){i="Command line set to run in frame '"+t[0]+"'"}else{n.isError=true;i="Frame '"+t[0]+"' does not exist";r=e.getCommandWindow()}}}e.setCommandWindow(r);return i}));ConsoleAppender.addGlobalCommandLineFunction("clear",(function(e,t,n){n.appendResult=false;e.clear()}));ConsoleAppender.addGlobalCommandLineFunction("keys",(function(e,t,n){var r=[];for(var i in t[0]){r.push(i)}return r}));ConsoleAppender.addGlobalCommandLineFunction("values",(function(e,t,n){var r=[];for(var i in t[0]){try{r.push(t[0][i])}catch(e){logLog.warn("values(): Unable to obtain value for key "+i+". Details: "+getExceptionMessage(e))}}return r}));ConsoleAppender.addGlobalCommandLineFunction("expansionDepth",(function(e,t,n){var r=parseInt(t[0],10);if(isNaN(r)||r<0){n.isError=true;return""+t[0]+" is not a valid expansion depth"}else{e.setCommandLineObjectExpansionDepth(r);return"Object expansion depth set to "+r}}))}function s(){o()}s()})();function createDefaultLogger(){var e=log4javascript.getLogger(defaultLoggerName);var t=new log4javascript.PopUpAppender;e.addAppender(t);return e}log4javascript.setDocumentReady=function(){pageLoaded=true;log4javascript.dispatchEvent("load",{})};if(window.addEventListener){window.addEventListener("load",log4javascript.setDocumentReady,false)}else if(window.attachEvent){window.attachEvent("onload",log4javascript.setDocumentReady)}else{var oldOnload=window.onload;if(typeof window.onload!="function"){window.onload=log4javascript.setDocumentReady}else{window.onload=function(e){if(oldOnload){oldOnload(e)}log4javascript.setDocumentReady()}}}return log4javascript}),this)},function(e,t,n){
8
+ */(function(a){var o;if(true){!(r=a,i=typeof r==="function"?r.call(t,n,t,e):r,i!==undefined&&(e.exports=i));o=true}if(true){e.exports=a();o=true}if(!o){var s=window.Cookies;var l=window.Cookies=a();l.noConflict=function(){window.Cookies=s;return l}}})((function(){function e(){var e=0;var t={};for(;e<arguments.length;e++){var n=arguments[e];for(var r in n){t[r]=n[r]}}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function n(r){function i(){}function a(t,n,a){if(typeof document==="undefined"){return}a=e({path:"/"},i.defaults,a);if(typeof a.expires==="number"){a.expires=new Date(new Date*1+a.expires*864e5)}a.expires=a.expires?a.expires.toUTCString():"";try{var o=JSON.stringify(n);if(/^[\{\[]/.test(o)){n=o}}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var l in a){if(!a[l]){continue}s+="; "+l;if(a[l]===true){continue}s+="="+a[l].split(";")[0]}return document.cookie=t+"="+n+s}function o(e,n){if(typeof document==="undefined"){return}var i={};var a=document.cookie?document.cookie.split("; "):[];var o=0;for(;o<a.length;o++){var s=a[o].split("=");var l=s.slice(1).join("=");if(!n&&l.charAt(0)==='"'){l=l.slice(1,-1)}try{var c=t(s[0]);l=(r.read||r)(l,c)||t(l);if(n){try{l=JSON.parse(l)}catch(e){}}i[c]=l;if(e===c){break}}catch(e){}}return e?i[e]:i}i.set=a;i.get=function(e){return o(e,false)};i.getJSON=function(e){return o(e,true)};i.remove=function(t,n){a(t,"",e(n,{expires:-1}))};i.defaults={};i.withConverter=n;return i}return n((function(){}))}))},function(e,t,n){"use strict";n.r(t);n.d(t,"CORE_SCHEMA",(function(){return rr}));n.d(t,"DEFAULT_SCHEMA",(function(){return ir}));n.d(t,"FAILSAFE_SCHEMA",(function(){return tr}));n.d(t,"JSON_SCHEMA",(function(){return nr}));n.d(t,"Schema",(function(){return er}));n.d(t,"Type",(function(){return Zn}));n.d(t,"YAMLException",(function(){return lr}));n.d(t,"dump",(function(){return sr}));n.d(t,"load",(function(){return ar}));n.d(t,"loadAll",(function(){return or}));n.d(t,"safeDump",(function(){return pr}));n.d(t,"safeLoad",(function(){return ur}));n.d(t,"safeLoadAll",(function(){return fr}));n.d(t,"types",(function(){return cr}));
9
+ /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function r(e){return typeof e==="undefined"||e===null}function i(e){return typeof e==="object"&&e!==null}function a(e){if(Array.isArray(e))return e;else if(r(e))return[];return[e]}function o(e,t){var n,r,i,a;if(t){a=Object.keys(t);for(n=0,r=a.length;n<r;n+=1){i=a[n];e[i]=t[i]}}return e}function s(e,t){var n="",r;for(r=0;r<t;r+=1){n+=e}return n}function l(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var c=r;var u=i;var f=a;var p=s;var d=l;var h=o;var g={isNothing:c,isObject:u,toArray:f,repeat:p,isNegativeZero:d,extend:h};function m(e,t){var n="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return r+" "+n}function v(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=m(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}v.prototype=Object.create(Error.prototype);v.prototype.constructor=v;v.prototype.toString=function e(t){return this.name+": "+m(this,t)};var y=v;function b(e,t,n,r,i){var a="";var o="";var s=Math.floor(i/2)-1;if(r-t>s){a=" ... ";t=r-s+a.length}if(n-r>s){o=" ...";n=r+s-o.length}return{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function w(e,t){return g.repeat(" ",t-e.length)+e}function C(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var r=[0];var i=[];var a;var o=-1;while(a=n.exec(e.buffer)){i.push(a.index);r.push(a.index+a[0].length);if(e.position<=a.index&&o<0){o=r.length-2}}if(o<0)o=r.length-1;var s="",l,c;var u=Math.min(e.line+t.linesAfter,i.length).toString().length;var f=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore;l++){if(o-l<0)break;c=b(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),f);s=g.repeat(" ",t.indent)+w((e.line-l+1).toString(),u)+" | "+c.str+"\n"+s}c=b(e.buffer,r[o],i[o],e.position,f);s+=g.repeat(" ",t.indent)+w((e.line+1).toString(),u)+" | "+c.str+"\n";s+=g.repeat("-",t.indent+u+3+c.pos)+"^"+"\n";for(l=1;l<=t.linesAfter;l++){if(o+l>=i.length)break;c=b(e.buffer,r[o+l],i[o+l],e.position-(r[o]-r[o+l]),f);s+=g.repeat(" ",t.indent)+w((e.line+l+1).toString(),u)+" | "+c.str+"\n"}return s.replace(/\n$/,"")}var E=C;var x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var L=["scalar","sequence","mapping"];function S(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function A(e,t){t=t||{};Object.keys(t).forEach((function(t){if(x.indexOf(t)===-1){throw new y('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=S(t["styleAliases"]||null);if(L.indexOf(this.kind)===-1){throw new y('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var T=A;function I(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=r}}));n[t]=e}));return n}function M(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t<n;t+=1){arguments[t].forEach(r)}return e}function k(e){return this.extend(e)}k.prototype.extend=function e(t){var n=[];var r=[];if(t instanceof T){r.push(t)}else if(Array.isArray(t)){r=r.concat(t)}else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit))){if(t.implicit)n=n.concat(t.implicit);if(t.explicit)r=r.concat(t.explicit)}else{throw new y("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}n.forEach((function(e){if(!(e instanceof T)){throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new y("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new y("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof T)){throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var i=Object.create(k.prototype);i.implicit=(this.implicit||[]).concat(n);i.explicit=(this.explicit||[]).concat(r);i.compiledImplicit=I(i,"implicit");i.compiledExplicit=I(i,"explicit");i.compiledTypeMap=M(i.compiledImplicit,i.compiledExplicit);return i};var O=k;var N=new T("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}});var _=new T("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}});var D=new T("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}});var R=new O({explicit:[N,_,D]});function P(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function F(){return null}function j(e){return e===null}var B=new T("tag:yaml.org,2002:null",{kind:"scalar",resolve:P,construct:F,predicate:j,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function U(e){return e==="true"||e==="True"||e==="TRUE"}function H(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var W=new T("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$,construct:U,predicate:H,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function G(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function q(e){return 48<=e&&e<=55}function V(e){return 48<=e&&e<=57}function K(e){if(e===null)return false;var t=e.length,n=0,r=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;r=true}return r&&i!=="_"}if(i==="x"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!G(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}if(i==="o"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!q(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}}if(i==="_")return false;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!V(e.charCodeAt(n))){return false}r=true}if(!r||i==="_")return false;return true}function Y(e){var t=e,n=1,r;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}r=t[0];if(r==="-"||r==="+"){if(r==="-")n=-1;t=t.slice(1);r=t[0]}if(t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function z(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!g.isNegativeZero(e))}var X=new T("tag:yaml.org,2002:int",{kind:"scalar",resolve:K,construct:Y,predicate:z,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function Q(e){if(e===null)return false;if(!J.test(e)||e[e.length-1]==="_"){return false}return true}function Z(e){var t,n;t=e.replace(/_/g,"").toLowerCase();n=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var ee=/^[-+]?[0-9]+e/;function te(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(g.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return ee.test(n)?n.replace("e",".e"):n}function ne(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||g.isNegativeZero(e))}var re=new T("tag:yaml.org,2002:float",{kind:"scalar",resolve:Q,construct:Z,predicate:ne,represent:te,defaultStyle:"lowercase"});var ie=R.extend({implicit:[B,W,X,re]});var ae=ie;var oe=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var se=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function le(e){if(e===null)return false;if(oe.exec(e)!==null)return true;if(se.exec(e)!==null)return true;return false}function ce(e){var t,n,r,i,a,o,s,l=0,c=null,u,f,p;t=oe.exec(e);if(t===null)t=se.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];r=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(n,r,i))}a=+t[4];o=+t[5];s=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){u=+t[10];f=+(t[11]||0);c=(u*60+f)*6e4;if(t[9]==="-")c=-c}p=new Date(Date.UTC(n,r,i,a,o,s,l));if(c)p.setTime(p.getTime()-c);return p}function ue(e){return e.toISOString()}var fe=new T("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:le,construct:ce,instanceOf:Date,represent:ue});function pe(e){return e==="<<"||e===null}var de=new T("tag:yaml.org,2002:merge",{kind:"scalar",resolve:pe});var he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ge(e){if(e===null)return false;var t,n,r=0,i=e.length,a=he;for(n=0;n<i;n++){t=a.indexOf(e.charAt(n));if(t>64)continue;if(t<0)return false;r+=6}return r%8===0}function me(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=he,o=0,s=[];for(t=0;t<i;t++){if(t%4===0&&t){s.push(o>>16&255);s.push(o>>8&255);s.push(o&255)}o=o<<6|a.indexOf(r.charAt(t))}n=i%4*6;if(n===0){s.push(o>>16&255);s.push(o>>8&255);s.push(o&255)}else if(n===18){s.push(o>>10&255);s.push(o>>2&255)}else if(n===12){s.push(o>>4&255)}return new Uint8Array(s)}function ve(e){var t="",n=0,r,i,a=e.length,o=he;for(r=0;r<a;r++){if(r%3===0&&r){t+=o[n>>18&63];t+=o[n>>12&63];t+=o[n>>6&63];t+=o[n&63]}n=(n<<8)+e[r]}i=a%3;if(i===0){t+=o[n>>18&63];t+=o[n>>12&63];t+=o[n>>6&63];t+=o[n&63]}else if(i===2){t+=o[n>>10&63];t+=o[n>>4&63];t+=o[n<<2&63];t+=o[64]}else if(i===1){t+=o[n>>2&63];t+=o[n<<4&63];t+=o[64];t+=o[64]}return t}function ye(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var be=new T("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ge,construct:me,predicate:ye,represent:ve});var we=Object.prototype.hasOwnProperty;var Ce=Object.prototype.toString;function Ee(e){if(e===null)return true;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){i=s[n];o=false;if(Ce.call(i)!=="[object Object]")return false;for(a in i){if(we.call(i,a)){if(!o)o=true;else return false}}if(!o)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function xe(e){return e!==null?e:[]}var Le=new T("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ee,construct:xe});var Se=Object.prototype.toString;function Ae(e){if(e===null)return true;var t,n,r,i,a,o=e;a=new Array(o.length);for(t=0,n=o.length;t<n;t+=1){r=o[t];if(Se.call(r)!=="[object Object]")return false;i=Object.keys(r);if(i.length!==1)return false;a[t]=[i[0],r[i[0]]]}return true}function Te(e){if(e===null)return[];var t,n,r,i,a,o=e;a=new Array(o.length);for(t=0,n=o.length;t<n;t+=1){r=o[t];i=Object.keys(r);a[t]=[i[0],r[i[0]]]}return a}var Ie=new T("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ae,construct:Te});var Me=Object.prototype.hasOwnProperty;function ke(e){if(e===null)return true;var t,n=e;for(t in n){if(Me.call(n,t)){if(n[t]!==null)return false}}return true}function Oe(e){return e!==null?e:{}}var Ne=new T("tag:yaml.org,2002:set",{kind:"mapping",resolve:ke,construct:Oe});var _e=ae.extend({implicit:[fe,de],explicit:[be,Le,Ie,Ne]});var De=Object.prototype.hasOwnProperty;var Re=1;var Pe=2;var Fe=3;var je=4;var Be=1;var $e=2;var Ue=3;var He=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var We=/[\x85\u2028\u2029]/;var Ge=/[,\[\]\{\}]/;var qe=/^(?:!|!!|![a-z\-]+!)$/i;var Ve=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ke(e){return Object.prototype.toString.call(e)}function Ye(e){return e===10||e===13}function ze(e){return e===9||e===32}function Xe(e){return e===9||e===32||e===10||e===13}function Je(e){return e===44||e===91||e===93||e===123||e===125}function Qe(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function Ze(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function et(e){if(48<=e&&e<=57){return e-48}return-1}function tt(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function nt(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var rt=new Array(256);var it=new Array(256);for(var at=0;at<256;at++){rt[at]=tt(at)?1:0;it[at]=tt(at)}function ot(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||_e;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function st(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=E(n);return new y(t,n)}function lt(e,t){throw st(e,t)}function ct(e,t){if(e.onWarning){e.onWarning.call(null,st(e,t))}}var ut={YAML:function e(t,n,r){var i,a,o;if(t.version!==null){lt(t,"duplication of %YAML directive")}if(r.length!==1){lt(t,"YAML directive accepts exactly one argument")}i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(i===null){lt(t,"ill-formed argument of the YAML directive")}a=parseInt(i[1],10);o=parseInt(i[2],10);if(a!==1){lt(t,"unacceptable YAML version of the document")}t.version=r[0];t.checkLineBreaks=o<2;if(o!==1&&o!==2){ct(t,"unsupported YAML version of the document")}},TAG:function e(t,n,r){var i,a;if(r.length!==2){lt(t,"TAG directive accepts exactly two arguments")}i=r[0];a=r[1];if(!qe.test(i)){lt(t,"ill-formed tag handle (first argument) of the TAG directive")}if(De.call(t.tagMap,i)){lt(t,'there is a previously declared suffix for "'+i+'" tag handle')}if(!Ve.test(a)){lt(t,"ill-formed tag prefix (second argument) of the TAG directive")}try{a=decodeURIComponent(a)}catch(e){lt(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function ft(e,t,n,r){var i,a,o,s;if(t<n){s=e.input.slice(t,n);if(r){for(i=0,a=s.length;i<a;i+=1){o=s.charCodeAt(i);if(!(o===9||32<=o&&o<=1114111)){lt(e,"expected valid JSON character")}}}else if(He.test(s)){lt(e,"the stream contains non-printable characters")}e.result+=s}}function pt(e,t,n,r){var i,a,o,s;if(!g.isObject(n)){lt(e,"cannot merge mappings; the provided source object is unacceptable")}i=Object.keys(n);for(o=0,s=i.length;o<s;o+=1){a=i[o];if(!De.call(t,a)){t[a]=n[a];r[a]=true}}}function dt(e,t,n,r,i,a,o,s,l){var c,u;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(c=0,u=i.length;c<u;c+=1){if(Array.isArray(i[c])){lt(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&Ke(i[c])==="[object Object]"){i[c]="[object Object]"}}}if(typeof i==="object"&&Ke(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(r==="tag:yaml.org,2002:merge"){if(Array.isArray(a)){for(c=0,u=a.length;c<u;c+=1){pt(e,t,a[c],n)}}else{pt(e,t,a,n)}}else{if(!e.json&&!De.call(n,i)&&De.call(t,i)){e.line=o||e.line;e.lineStart=s||e.lineStart;e.position=l||e.position;lt(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:a})}else{t[i]=a}delete n[i]}return t}function ht(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{lt(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function gt(e,t,n){var r=0,i=e.input.charCodeAt(e.position);while(i!==0){while(ze(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(Ye(i)){ht(e);i=e.input.charCodeAt(e.position);r++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(n!==-1&&r!==0&&e.lineIndent<n){ct(e,"deficient indentation")}return r}function mt(e){var t=e.position,n;n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){t+=3;n=e.input.charCodeAt(t);if(n===0||Xe(n)){return true}}return false}function vt(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=g.repeat("\n",t-1)}}function yt(e,t,n){var r,i,a,o,s,l,c,u,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(Xe(d)||Je(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(Xe(i)||n&&Je(i)){return false}}e.kind="scalar";e.result="";a=o=e.position;s=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(Xe(i)||n&&Je(i)){break}}else if(d===35){r=e.input.charCodeAt(e.position-1);if(Xe(r)){break}}else if(e.position===e.lineStart&&mt(e)||n&&Je(d)){break}else if(Ye(d)){l=e.line;c=e.lineStart;u=e.lineIndent;gt(e,false,-1);if(e.lineIndent>=t){s=true;d=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=l;e.lineStart=c;e.lineIndent=u;break}}if(s){ft(e,a,o,false);vt(e,e.line-l);a=o=e.position;s=false}if(!ze(d)){o=e.position+1}d=e.input.charCodeAt(++e.position)}ft(e,a,o,false);if(e.result){return true}e.kind=f;e.result=p;return false}function bt(e,t){var n,r,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){ft(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){r=e.position;e.position++;i=e.position}else{return true}}else if(Ye(n)){ft(e,r,i,true);vt(e,gt(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&mt(e)){lt(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}lt(e,"unexpected end of the stream within a single quoted scalar")}function wt(e,t){var n,r,i,a,o,s;s=e.input.charCodeAt(e.position);if(s!==34){return false}e.kind="scalar";e.result="";e.position++;n=r=e.position;while((s=e.input.charCodeAt(e.position))!==0){if(s===34){ft(e,n,e.position,true);e.position++;return true}else if(s===92){ft(e,n,e.position,true);s=e.input.charCodeAt(++e.position);if(Ye(s)){gt(e,false,t)}else if(s<256&&rt[s]){e.result+=it[s];e.position++}else if((o=Ze(s))>0){i=o;a=0;for(;i>0;i--){s=e.input.charCodeAt(++e.position);if((o=Qe(s))>=0){a=(a<<4)+o}else{lt(e,"expected hexadecimal character")}}e.result+=nt(a);e.position++}else{lt(e,"unknown escape sequence")}n=r=e.position}else if(Ye(s)){ft(e,n,r,true);vt(e,gt(e,false,t));n=r=e.position}else if(e.position===e.lineStart&&mt(e)){lt(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;r=e.position}}lt(e,"unexpected end of the stream within a double quoted scalar")}function Ct(e,t){var n=true,r,i,a,o=e.tag,s,l=e.anchor,c,u,f,p,d,h=Object.create(null),g,m,v,y;y=e.input.charCodeAt(e.position);if(y===91){u=93;d=false;s=[]}else if(y===123){u=125;d=true;s={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=s}y=e.input.charCodeAt(++e.position);while(y!==0){gt(e,true,t);y=e.input.charCodeAt(e.position);if(y===u){e.position++;e.tag=o;e.anchor=l;e.kind=d?"mapping":"sequence";e.result=s;return true}else if(!n){lt(e,"missed comma between flow collection entries")}else if(y===44){lt(e,"expected the node content, but found ','")}m=g=v=null;f=p=false;if(y===63){c=e.input.charCodeAt(e.position+1);if(Xe(c)){f=p=true;e.position++;gt(e,true,t)}}r=e.line;i=e.lineStart;a=e.position;It(e,t,Re,false,true);m=e.tag;g=e.result;gt(e,true,t);y=e.input.charCodeAt(e.position);if((p||e.line===r)&&y===58){f=true;y=e.input.charCodeAt(++e.position);gt(e,true,t);It(e,t,Re,false,true);v=e.result}if(d){dt(e,s,h,m,g,v,r,i,a)}else if(f){s.push(dt(e,null,h,m,g,v,r,i,a))}else{s.push(g)}gt(e,true,t);y=e.input.charCodeAt(e.position);if(y===44){n=true;y=e.input.charCodeAt(++e.position)}else{n=false}}lt(e,"unexpected end of the stream within a flow collection")}function Et(e,t){var n,r,i=Be,a=false,o=false,s=t,l=0,c=false,u,f;f=e.input.charCodeAt(e.position);if(f===124){r=false}else if(f===62){r=true}else{return false}e.kind="scalar";e.result="";while(f!==0){f=e.input.charCodeAt(++e.position);if(f===43||f===45){if(Be===i){i=f===43?Ue:$e}else{lt(e,"repeat of a chomping mode identifier")}}else if((u=et(f))>=0){if(u===0){lt(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){s=t+u-1;o=true}else{lt(e,"repeat of an indentation width identifier")}}else{break}}if(ze(f)){do{f=e.input.charCodeAt(++e.position)}while(ze(f));if(f===35){do{f=e.input.charCodeAt(++e.position)}while(!Ye(f)&&f!==0)}}while(f!==0){ht(e);e.lineIndent=0;f=e.input.charCodeAt(e.position);while((!o||e.lineIndent<s)&&f===32){e.lineIndent++;f=e.input.charCodeAt(++e.position)}if(!o&&e.lineIndent>s){s=e.lineIndent}if(Ye(f)){l++;continue}if(e.lineIndent<s){if(i===Ue){e.result+=g.repeat("\n",a?1+l:l)}else if(i===Be){if(a){e.result+="\n"}}break}if(r){if(ze(f)){c=true;e.result+=g.repeat("\n",a?1+l:l)}else if(c){c=false;e.result+=g.repeat("\n",l+1)}else if(l===0){if(a){e.result+=" "}}else{e.result+=g.repeat("\n",l)}}else{e.result+=g.repeat("\n",a?1+l:l)}a=true;o=true;l=0;n=e.position;while(!Ye(f)&&f!==0){f=e.input.charCodeAt(++e.position)}ft(e,n,e.position,false)}return true}function xt(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=false,l;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=a}l=e.input.charCodeAt(e.position);while(l!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;lt(e,"tab characters must not be used in indentation")}if(l!==45){break}o=e.input.charCodeAt(e.position+1);if(!Xe(o)){break}s=true;e.position++;if(gt(e,true,-1)){if(e.lineIndent<=t){a.push(null);l=e.input.charCodeAt(e.position);continue}}n=e.line;It(e,t,Fe,false,true);a.push(e.result);gt(e,true,-1);l=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&l!==0){lt(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(s){e.tag=r;e.anchor=i;e.kind="sequence";e.result=a;return true}return false}function Lt(e,t,n){var r,i,a,o,s,l,c=e.tag,u=e.anchor,f={},p=Object.create(null),d=null,h=null,g=null,m=false,v=false,y;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=f}y=e.input.charCodeAt(e.position);while(y!==0){if(!m&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;lt(e,"tab characters must not be used in indentation")}r=e.input.charCodeAt(e.position+1);a=e.line;if((y===63||y===58)&&Xe(r)){if(y===63){if(m){dt(e,f,p,d,h,null,o,s,l);d=h=g=null}v=true;m=true;i=true}else if(m){m=false;i=true}else{lt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;y=r}else{o=e.line;s=e.lineStart;l=e.position;if(!It(e,n,Pe,false,true)){break}if(e.line===a){y=e.input.charCodeAt(e.position);while(ze(y)){y=e.input.charCodeAt(++e.position)}if(y===58){y=e.input.charCodeAt(++e.position);if(!Xe(y)){lt(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(m){dt(e,f,p,d,h,null,o,s,l);d=h=g=null}v=true;m=false;i=false;d=e.tag;h=e.result}else if(v){lt(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=c;e.anchor=u;return true}}else if(v){lt(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=c;e.anchor=u;return true}}if(e.line===a||e.lineIndent>t){if(m){o=e.line;s=e.lineStart;l=e.position}if(It(e,t,je,true,i)){if(m){h=e.result}else{g=e.result}}if(!m){dt(e,f,p,d,h,g,o,s,l);d=h=g=null}gt(e,true,-1);y=e.input.charCodeAt(e.position)}if((e.line===a||e.lineIndent>t)&&y!==0){lt(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(m){dt(e,f,p,d,h,null,o,s,l)}if(v){e.tag=c;e.anchor=u;e.kind="mapping";e.result=f}return v}function St(e){var t,n=false,r=false,i,a,o;o=e.input.charCodeAt(e.position);if(o!==33)return false;if(e.tag!==null){lt(e,"duplication of a tag property")}o=e.input.charCodeAt(++e.position);if(o===60){n=true;o=e.input.charCodeAt(++e.position)}else if(o===33){r=true;i="!!";o=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(n){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&o!==62);if(e.position<e.length){a=e.input.slice(t,e.position);o=e.input.charCodeAt(++e.position)}else{lt(e,"unexpected end of the stream within a verbatim tag")}}else{while(o!==0&&!Xe(o)){if(o===33){if(!r){i=e.input.slice(t-1,e.position+1);if(!qe.test(i)){lt(e,"named tag handle cannot contain such characters")}r=true;t=e.position+1}else{lt(e,"tag suffix cannot contain exclamation marks")}}o=e.input.charCodeAt(++e.position)}a=e.input.slice(t,e.position);if(Ge.test(a)){lt(e,"tag suffix cannot contain flow indicator characters")}}if(a&&!Ve.test(a)){lt(e,"tag name cannot contain such characters: "+a)}try{a=decodeURIComponent(a)}catch(t){lt(e,"tag name is malformed: "+a)}if(n){e.tag=a}else if(De.call(e.tagMap,i)){e.tag=e.tagMap[i]+a}else if(i==="!"){e.tag="!"+a}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+a}else{lt(e,'undeclared tag handle "'+i+'"')}return true}function At(e){var t,n;n=e.input.charCodeAt(e.position);if(n!==38)return false;if(e.anchor!==null){lt(e,"duplication of an anchor property")}n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!Xe(n)&&!Je(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){lt(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function Tt(e){var t,n,r;r=e.input.charCodeAt(e.position);if(r!==42)return false;r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!Xe(r)&&!Je(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){lt(e,"name of an alias node must contain at least one character")}n=e.input.slice(t,e.position);if(!De.call(e.anchorMap,n)){lt(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];gt(e,true,-1);return true}function It(e,t,n,r,i){var a,o,s,l=1,c=false,u=false,f,p,d,h,g,m;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;a=o=s=je===n||Fe===n;if(r){if(gt(e,true,-1)){c=true;if(e.lineIndent>t){l=1}else if(e.lineIndent===t){l=0}else if(e.lineIndent<t){l=-1}}}if(l===1){while(St(e)||At(e)){if(gt(e,true,-1)){c=true;s=a;if(e.lineIndent>t){l=1}else if(e.lineIndent===t){l=0}else if(e.lineIndent<t){l=-1}}else{s=false}}}if(s){s=c||i}if(l===1||je===n){if(Re===n||Pe===n){g=t}else{g=t+1}m=e.position-e.lineStart;if(l===1){if(s&&(xt(e,m)||Lt(e,m,g))||Ct(e,g)){u=true}else{if(o&&Et(e,g)||bt(e,g)||wt(e,g)){u=true}else if(Tt(e)){u=true;if(e.tag!==null||e.anchor!==null){lt(e,"alias node should not have any properties")}}else if(yt(e,g,Re===n)){u=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(l===0){u=s&&xt(e,m)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){lt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(f=0,p=e.implicitTypes.length;f<p;f+=1){h=e.implicitTypes[f];if(h.resolve(e.result)){e.result=h.construct(e.result);e.tag=h.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(De.call(e.typeMap[e.kind||"fallback"],e.tag)){h=e.typeMap[e.kind||"fallback"][e.tag]}else{h=null;d=e.typeMap.multi[e.kind||"fallback"];for(f=0,p=d.length;f<p;f+=1){if(e.tag.slice(0,d[f].tag.length)===d[f].tag){h=d[f];break}}}if(!h){lt(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&h.kind!==e.kind){lt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"')}if(!h.resolve(e.result,e.tag)){lt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=h.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||u}function Mt(e){var t=e.position,n,r,i,a=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((o=e.input.charCodeAt(e.position))!==0){gt(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}a=true;o=e.input.charCodeAt(++e.position);n=e.position;while(o!==0&&!Xe(o)){o=e.input.charCodeAt(++e.position)}r=e.input.slice(n,e.position);i=[];if(r.length<1){lt(e,"directive name must not be less than one character in length")}while(o!==0){while(ze(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!Ye(o));break}if(Ye(o))break;n=e.position;while(o!==0&&!Xe(o)){o=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(o!==0)ht(e);if(De.call(ut,r)){ut[r](e,r,i)}else{ct(e,'unknown document directive "'+r+'"')}}gt(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;gt(e,true,-1)}else if(a){lt(e,"directives end mark is expected")}It(e,e.lineIndent-1,je,false,true);gt(e,true,-1);if(e.checkLineBreaks&&We.test(e.input.slice(t,e.position))){ct(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&mt(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;gt(e,true,-1)}return}if(e.position<e.length-1){lt(e,"end of the stream or a document separator is expected")}else{return}}function kt(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var n=new ot(e,t);var r=e.indexOf("\0");if(r!==-1){n.position=r;lt(n,"null byte is not allowed in input")}n.input+="\0";while(n.input.charCodeAt(n.position)===32){n.lineIndent+=1;n.position+=1}while(n.position<n.length-1){Mt(n)}return n.documents}function Ot(e,t,n){if(t!==null&&typeof t==="object"&&typeof n==="undefined"){n=t;t=null}var r=kt(e,n);if(typeof t!=="function"){return r}for(var i=0,a=r.length;i<a;i+=1){t(r[i])}}function Nt(e,t){var n=kt(e,t);if(n.length===0){return undefined}else if(n.length===1){return n[0]}throw new y("expected a single document in the stream, but found more")}var _t=Ot;var Dt=Nt;var Rt={loadAll:_t,load:Dt};var Pt=Object.prototype.toString;var Ft=Object.prototype.hasOwnProperty;var jt=65279;var Bt=9;var $t=10;var Ut=13;var Ht=32;var Wt=33;var Gt=34;var qt=35;var Vt=37;var Kt=38;var Yt=39;var zt=42;var Xt=44;var Jt=45;var Qt=58;var Zt=61;var en=62;var tn=63;var nn=64;var rn=91;var an=93;var on=96;var sn=123;var ln=124;var cn=125;var un={};un[0]="\\0";un[7]="\\a";un[8]="\\b";un[9]="\\t";un[10]="\\n";un[11]="\\v";un[12]="\\f";un[13]="\\r";un[27]="\\e";un[34]='\\"';un[92]="\\\\";un[133]="\\N";un[160]="\\_";un[8232]="\\L";un[8233]="\\P";var fn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var pn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function dn(e,t){var n,r,i,a,o,s,l;if(t===null)return{};n={};r=Object.keys(t);for(i=0,a=r.length;i<a;i+=1){o=r[i];s=String(t[o]);if(o.slice(0,2)==="!!"){o="tag:yaml.org,2002:"+o.slice(2)}l=e.compiledTypeMap["fallback"][o];if(l&&Ft.call(l.styleAliases,s)){s=l.styleAliases[s]}n[o]=s}return n}function hn(e){var t,n,r;t=e.toString(16).toUpperCase();if(e<=255){n="x";r=2}else if(e<=65535){n="u";r=4}else if(e<=4294967295){n="U";r=8}else{throw new y("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+n+g.repeat("0",r-t.length)+t}var gn=1,mn=2;function vn(e){this.schema=e["schema"]||_e;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=g.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=dn(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?mn:gn;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function yn(e,t){var n=g.repeat(" ",t),r=0,i=-1,a="",o,s=e.length;while(r<s){i=e.indexOf("\n",r);if(i===-1){o=e.slice(r);r=s}else{o=e.slice(r,i+1);r=i+1}if(o.length&&o!=="\n")a+=n;a+=o}return a}function bn(e,t){return"\n"+g.repeat(" ",e.indent*t)}function wn(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1){i=e.implicitTypes[n];if(i.resolve(t)){return true}}return false}function Cn(e){return e===Ht||e===Bt}function En(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==jt||65536<=e&&e<=1114111}function xn(e){return En(e)&&e!==jt&&e!==Ut&&e!==$t}function Ln(e,t,n){var r=xn(e);var i=r&&!Cn(e);return(n?r:r&&e!==Xt&&e!==rn&&e!==an&&e!==sn&&e!==cn)&&e!==qt&&!(t===Qt&&!i)||xn(t)&&!Cn(t)&&e===qt||t===Qt&&i}function Sn(e){return En(e)&&e!==jt&&!Cn(e)&&e!==Jt&&e!==tn&&e!==Qt&&e!==Xt&&e!==rn&&e!==an&&e!==sn&&e!==cn&&e!==qt&&e!==Kt&&e!==zt&&e!==Wt&&e!==ln&&e!==Zt&&e!==en&&e!==Yt&&e!==Gt&&e!==Vt&&e!==nn&&e!==on}function An(e){return!Cn(e)&&e!==Qt}function Tn(e,t){var n=e.charCodeAt(t),r;if(n>=55296&&n<=56319&&t+1<e.length){r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){return(n-55296)*1024+r-56320+65536}}return n}function In(e){var t=/^\n* /;return t.test(e)}var Mn=1,kn=2,On=3,Nn=4,_n=5;function Dn(e,t,n,r,i,a,o,s){var l;var c=0;var u=null;var f=false;var p=false;var d=r!==-1;var h=-1;var g=Sn(Tn(e,0))&&An(Tn(e,e.length-1));if(t||o){for(l=0;l<e.length;c>=65536?l+=2:l++){c=Tn(e,l);if(!En(c)){return _n}g=g&&Ln(c,u,s);u=c}}else{for(l=0;l<e.length;c>=65536?l+=2:l++){c=Tn(e,l);if(c===$t){f=true;if(d){p=p||l-h-1>r&&e[h+1]!==" ";h=l}}else if(!En(c)){return _n}g=g&&Ln(c,u,s);u=c}p=p||d&&(l-h-1>r&&e[h+1]!==" ")}if(!f&&!p){if(g&&!o&&!i(e)){return Mn}return a===mn?_n:kn}if(n>9&&In(e)){return _n}if(!o){return p?Nn:On}return a===mn?_n:kn}function Rn(e,t,n,r,i){e.dump=function(){if(t.length===0){return e.quotingType===mn?'""':"''"}if(!e.noCompatMode){if(fn.indexOf(t)!==-1||pn.test(t)){return e.quotingType===mn?'"'+t+'"':"'"+t+"'"}}var a=e.indent*Math.max(1,n);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);var s=r||e.flowLevel>-1&&n>=e.flowLevel;function l(t){return wn(e,t)}switch(Dn(t,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!r,i)){case Mn:return t;case kn:return"'"+t.replace(/'/g,"''")+"'";case On:return"|"+Pn(t,e.indent)+Fn(yn(t,a));case Nn:return">"+Pn(t,e.indent)+Fn(yn(jn(t,o),a));case _n:return'"'+$n(t)+'"';default:throw new y("impossible error: invalid scalar style")}}()}function Pn(e,t){var n=In(e)?String(t):"";var r=e[e.length-1]==="\n";var i=r&&(e[e.length-2]==="\n"||e==="\n");var a=i?"+":r?"":"-";return n+a+"\n"}function Fn(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function jn(e,t){var n=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;n.lastIndex=r;return Bn(e.slice(0,r),t)}();var i=e[0]==="\n"||e[0]===" ";var a;var o;while(o=n.exec(e)){var s=o[1],l=o[2];a=l[0]===" ";r+=s+(!i&&!a&&l!==""?"\n":"")+Bn(l,t);i=a}return r}function Bn(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var r;var i=0,a,o=0,s=0;var l="";while(r=n.exec(e)){s=r.index;if(s-i>t){a=o>i?o:s;l+="\n"+e.slice(i,a);i=a+1}o=s}l+="\n";if(e.length-i>t&&o>i){l+=e.slice(i,o)+"\n"+e.slice(o+1)}else{l+=e.slice(i)}return l.slice(1)}function $n(e){var t="";var n=0;var r;for(var i=0;i<e.length;n>=65536?i+=2:i++){n=Tn(e,i);r=un[n];if(!r&&En(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=r||hn(n)}}return t}function Un(e,t,n){var r="",i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1){s=n[a];if(e.replacer){s=e.replacer.call(n,String(a),s)}if(Vn(e,t,s,false,false)||typeof s==="undefined"&&Vn(e,t,null,false,false)){if(r!=="")r+=","+(!e.condenseFlow?" ":"");r+=e.dump}}e.tag=i;e.dump="["+r+"]"}function Hn(e,t,n,r){var i="",a=e.tag,o,s,l;for(o=0,s=n.length;o<s;o+=1){l=n[o];if(e.replacer){l=e.replacer.call(n,String(o),l)}if(Vn(e,t+1,l,true,true,false,true)||typeof l==="undefined"&&Vn(e,t+1,null,true,true,false,true)){if(!r||i!==""){i+=bn(e,t)}if(e.dump&&$t===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=a;e.dump=i||"[]"}function Wn(e,t,n){var r="",i=e.tag,a=Object.keys(n),o,s,l,c,u;for(o=0,s=a.length;o<s;o+=1){u="";if(r!=="")u+=", ";if(e.condenseFlow)u+='"';l=a[o];c=n[l];if(e.replacer){c=e.replacer.call(n,l,c)}if(!Vn(e,t,l,false,false)){continue}if(e.dump.length>1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!Vn(e,t,c,false,false)){continue}u+=e.dump;r+=u}e.tag=i;e.dump="{"+r+"}"}function Gn(e,t,n,r){var i="",a=e.tag,o=Object.keys(n),s,l,c,u,f,p;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new y("sortKeys must be a boolean or a function")}for(s=0,l=o.length;s<l;s+=1){p="";if(!r||i!==""){p+=bn(e,t)}c=o[s];u=n[c];if(e.replacer){u=e.replacer.call(n,c,u)}if(!Vn(e,t+1,c,true,true,true)){continue}f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(f){if(e.dump&&$t===e.dump.charCodeAt(0)){p+="?"}else{p+="? "}}p+=e.dump;if(f){p+=bn(e,t)}if(!Vn(e,t+1,u,true,f)){continue}if(e.dump&&$t===e.dump.charCodeAt(0)){p+=":"}else{p+=": "}p+=e.dump;i+=p}e.tag=a;e.dump=i||"{}"}function qn(e,t,n){var r,i,a,o,s,l;i=n?e.explicitTypes:e.implicitTypes;for(a=0,o=i.length;a<o;a+=1){s=i[a];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n){if(s.multi&&s.representName){e.tag=s.representName(t)}else{e.tag=s.tag}}else{e.tag="?"}if(s.represent){l=e.styleMap[s.tag]||s.defaultStyle;if(Pt.call(s.represent)==="[object Function]"){r=s.represent(t,l)}else if(Ft.call(s.represent,l)){r=s.represent[l](t,l)}else{throw new y("!<"+s.tag+'> tag resolver accepts not "'+l+'" style')}e.dump=r}return true}}return false}function Vn(e,t,n,r,i,a,o){e.tag=null;e.dump=n;if(!qn(e,n,false)){qn(e,n,true)}var s=Pt.call(e.dump);var l=r;var c;if(r){r=e.flowLevel<0||e.flowLevel>t}var u=s==="[object Object]"||s==="[object Array]",f,p;if(u){f=e.duplicates.indexOf(n);p=f!==-1}if(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0){i=false}if(p&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(u&&p&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(s==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){Gn(e,t,e.dump,i);if(p){e.dump="&ref_"+f+e.dump}}else{Wn(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(s==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!o&&t>0){Hn(e,t-1,e.dump,i)}else{Hn(e,t,e.dump,i)}if(p){e.dump="&ref_"+f+e.dump}}else{Un(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(s==="[object String]"){if(e.tag!=="?"){Rn(e,e.dump,t,a,l)}}else if(s==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new y("unacceptable kind of an object to dump "+s)}if(e.tag!==null&&e.tag!=="?"){c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){c="!"+c}else if(c.slice(0,18)==="tag:yaml.org,2002:"){c="!!"+c.slice(18)}else{c="!<"+c+">"}e.dump=c+" "+e.dump}}return true}function Kn(e,t){var n=[],r=[],i,a;Yn(e,n,r);for(i=0,a=r.length;i<a;i+=1){t.duplicates.push(n[r[i]])}t.usedDuplicates=new Array(a)}function Yn(e,t,n){var r,i,a;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(n.indexOf(i)===-1){n.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,a=e.length;i<a;i+=1){Yn(e[i],t,n)}}else{r=Object.keys(e);for(i=0,a=r.length;i<a;i+=1){Yn(e[r[i]],t,n)}}}}}function zn(e,t){t=t||{};var n=new vn(t);if(!n.noRefs)Kn(e,n);var r=e;if(n.replacer){r=n.replacer.call({"":r},"",r)}if(Vn(n,0,r,true,true))return n.dump+"\n";return""}var Xn=zn;var Jn={dump:Xn};function Qn(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}var Zn=T;var er=O;var tr=R;var nr=ie;var rr=ae;var ir=_e;var ar=Rt.load;var or=Rt.loadAll;var sr=Jn.dump;var lr=y;var cr={binary:be,float:re,map:D,null:B,pairs:Ie,set:Ne,timestamp:fe,bool:W,int:X,merge:de,omap:Le,seq:_,str:N};var ur=Qn("safeLoad","load");var fr=Qn("safeLoadAll","loadAll");var pr=Qn("safeDump","dump");var dr={Type:Zn,Schema:er,FAILSAFE_SCHEMA:tr,JSON_SCHEMA:nr,CORE_SCHEMA:rr,DEFAULT_SCHEMA:ir,load:ar,loadAll:or,dump:sr,YAMLException:lr,types:cr,safeLoad:ur,safeLoadAll:fr,safeDump:pr};t["default"]=dr},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(e,t){if(true){!(__WEBPACK_AMD_DEFINE_FACTORY__=e,__WEBPACK_AMD_DEFINE_RESULT__=typeof __WEBPACK_AMD_DEFINE_FACTORY__==="function"?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})((function(){if(!Array.prototype.push){Array.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){this[this.length]=arguments[e]}return this.length}}if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length>0){var e=this[0];for(var t=0,n=this.length-1;t<n;t++){this[t]=this[t+1]}this.length=this.length-1;return e}}}if(!Array.prototype.splice){Array.prototype.splice=function(e,t){var n=this.slice(e+t);var r=this.slice(e,e+t);this.length=e;var i=[];for(var a=0,o=arguments.length;a<o;a++){i[a]=arguments[a]}var s=i.length>2?n=i.slice(2).concat(n):n;for(a=0,o=s.length;a<o;a++){this.push(s[a])}return r}}function isUndefined(e){return typeof e=="undefined"}function EventSupport(){}EventSupport.prototype={eventTypes:[],eventListeners:{},setEventTypes:function(e){if(e instanceof Array){this.eventTypes=e;this.eventListeners={};for(var t=0,n=this.eventTypes.length;t<n;t++){this.eventListeners[this.eventTypes[t]]=[]}}else{handleError("log4javascript.EventSupport ["+this+"]: setEventTypes: eventTypes parameter must be an Array")}},addEventListener:function(e,t){if(typeof t=="function"){if(!array_contains(this.eventTypes,e)){handleError("log4javascript.EventSupport ["+this+"]: addEventListener: no event called '"+e+"'")}this.eventListeners[e].push(t)}else{handleError("log4javascript.EventSupport ["+this+"]: addEventListener: listener must be a function")}},removeEventListener:function(e,t){if(typeof t=="function"){if(!array_contains(this.eventTypes,e)){handleError("log4javascript.EventSupport ["+this+"]: removeEventListener: no event called '"+e+"'")}array_remove(this.eventListeners[e],t)}else{handleError("log4javascript.EventSupport ["+this+"]: removeEventListener: listener must be a function")}},dispatchEvent:function(e,t){if(array_contains(this.eventTypes,e)){var n=this.eventListeners[e];for(var r=0,i=n.length;r<i;r++){n[r](this,e,t)}}else{handleError("log4javascript.EventSupport ["+this+"]: dispatchEvent: no event called '"+e+"'")}}};var applicationStartDate=new Date;var uniqueId="log4javascript_"+applicationStartDate.getTime()+"_"+Math.floor(Math.random()*1e8);var emptyFunction=function(){};var newLine="\r\n";var pageLoaded=false;function Log4JavaScript(){}Log4JavaScript.prototype=new EventSupport;var log4javascript=new Log4JavaScript;log4javascript.version="1.4.13";log4javascript.edition="log4javascript";function toStr(e){if(e&&e.toString){return e.toString()}else{return String(e)}}function getExceptionMessage(e){if(e.message){return e.message}else if(e.description){return e.description}else{return toStr(e)}}function getUrlFileName(e){var t=Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"));return e.substr(t+1)}function getExceptionStringRep(e){if(e){var t="Exception: "+getExceptionMessage(e);try{if(e.lineNumber){t+=" on line number "+e.lineNumber}if(e.fileName){t+=" in file "+getUrlFileName(e.fileName)}}catch(e){logLog.warn("Unable to obtain file and line information for error")}if(showStackTraces&&e.stack){t+=newLine+"Stack trace:"+newLine+e.stack}return t}return null}function bool(e){return Boolean(e)}function trim(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}function splitIntoLines(e){var t=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.split("\n")}var urlEncode=typeof window.encodeURIComponent!="undefined"?function(e){return encodeURIComponent(e)}:function(e){return escape(e).replace(/\+/g,"%2B").replace(/"/g,"%22").replace(/'/g,"%27").replace(/\//g,"%2F").replace(/=/g,"%3D")};function array_remove(e,t){var n=-1;for(var r=0,i=e.length;r<i;r++){if(e[r]===t){n=r;break}}if(n>=0){e.splice(n,1);return true}else{return false}}function array_contains(e,t){for(var n=0,r=e.length;n<r;n++){if(e[n]==t){return true}}return false}function extractBooleanFromParam(e,t){if(isUndefined(e)){return t}else{return bool(e)}}function extractStringFromParam(e,t){if(isUndefined(e)){return t}else{return String(e)}}function extractIntFromParam(e,t){if(isUndefined(e)){return t}else{try{var n=parseInt(e,10);return isNaN(n)?t:n}catch(n){logLog.warn("Invalid int param "+e,n);return t}}}function extractFunctionFromParam(e,t){if(typeof e=="function"){return e}else{return t}}function isError(e){return e instanceof Error}if(!Function.prototype.apply){Function.prototype.apply=function(obj,args){var methodName="__apply__";if(typeof obj[methodName]!="undefined"){methodName+=String(Math.random()).substr(2)}obj[methodName]=this;var argsStrings=[];for(var i=0,len=args.length;i<len;i++){argsStrings[i]="args["+i+"]"}var script="obj."+methodName+"("+argsStrings.join(",")+")";var returnValue=eval(script);delete obj[methodName];return returnValue}}if(!Function.prototype.call){Function.prototype.call=function(e){var t=[];for(var n=1,r=arguments.length;n<r;n++){t[n-1]=arguments[n]}return this.apply(e,t)}}var logLog={quietMode:false,debugMessages:[],setQuietMode:function(e){this.quietMode=bool(e)},numberOfErrors:0,alertAllErrors:false,setAlertAllErrors:function(e){this.alertAllErrors=e},debug:function(e){this.debugMessages.push(e)},displayDebug:function(){alert(this.debugMessages.join(newLine))},warn:function(e,t){},error:function(e,t){if(++this.numberOfErrors==1||this.alertAllErrors){if(!this.quietMode){var n="log4javascript error: "+e;if(t){n+=newLine+newLine+"Original error: "+getExceptionStringRep(t)}alert(n)}}}};log4javascript.logLog=logLog;log4javascript.setEventTypes(["load","error"]);function handleError(e,t){logLog.error(e,t);log4javascript.dispatchEvent("error",{message:e,exception:t})}log4javascript.handleError=handleError;var enabled=!(typeof log4javascript_disabled!="undefined"&&log4javascript_disabled);log4javascript.setEnabled=function(e){enabled=bool(e)};log4javascript.isEnabled=function(){return enabled};var useTimeStampsInMilliseconds=true;log4javascript.setTimeStampsInMilliseconds=function(e){useTimeStampsInMilliseconds=bool(e)};log4javascript.isTimeStampsInMilliseconds=function(){return useTimeStampsInMilliseconds};log4javascript.evalInScope=function(expr){return eval(expr)};var showStackTraces=false;log4javascript.setShowStackTraces=function(e){showStackTraces=bool(e)};var Level=function(e,t){this.level=e;this.name=t};Level.prototype={toString:function(){return this.name},equals:function(e){return this.level==e.level},isGreaterOrEqual:function(e){return this.level>=e.level}};Level.ALL=new Level(Number.MIN_VALUE,"ALL");Level.TRACE=new Level(1e4,"TRACE");Level.DEBUG=new Level(2e4,"DEBUG");Level.INFO=new Level(3e4,"INFO");Level.WARN=new Level(4e4,"WARN");Level.ERROR=new Level(5e4,"ERROR");Level.FATAL=new Level(6e4,"FATAL");Level.OFF=new Level(Number.MAX_VALUE,"OFF");log4javascript.Level=Level;function Timer(e,t){this.name=e;this.level=isUndefined(t)?Level.INFO:t;this.start=new Date}Timer.prototype.getElapsedTime=function(){return(new Date).getTime()-this.start.getTime()};var anonymousLoggerName="[anonymous]";var defaultLoggerName="[default]";var nullLoggerName="[null]";var rootLoggerName="root";function Logger(e){this.name=e;this.parent=null;this.children=[];var t=[];var n=null;var r=this.name===rootLoggerName;var i=this.name===nullLoggerName;var a=null;var o=false;this.addChild=function(e){this.children.push(e);e.parent=this;e.invalidateAppenderCache()};var s=true;this.getAdditivity=function(){return s};this.setAdditivity=function(e){var t=s!=e;s=e;if(t){this.invalidateAppenderCache()}};this.addAppender=function(e){if(i){handleError("Logger.addAppender: you may not add an appender to the null logger")}else{if(e instanceof log4javascript.Appender){if(!array_contains(t,e)){t.push(e);e.setAddedToLogger(this);this.invalidateAppenderCache()}}else{handleError("Logger.addAppender: appender supplied ('"+toStr(e)+"') is not a subclass of Appender")}}};this.removeAppender=function(e){array_remove(t,e);e.setRemovedFromLogger(this);this.invalidateAppenderCache()};this.removeAllAppenders=function(){var e=t.length;if(e>0){for(var n=0;n<e;n++){t[n].setRemovedFromLogger(this)}t.length=0;this.invalidateAppenderCache()}};this.getEffectiveAppenders=function(){if(a===null||o){var e=r||!this.getAdditivity()?[]:this.parent.getEffectiveAppenders();a=e.concat(t);o=false}return a};this.invalidateAppenderCache=function(){o=true;for(var e=0,t=this.children.length;e<t;e++){this.children[e].invalidateAppenderCache()}};this.log=function(e,t){if(enabled&&e.isGreaterOrEqual(this.getEffectiveLevel())){var n;var r=t.length-1;var i=t[r];if(t.length>1&&isError(i)){n=i;r--}var a=[];for(var o=0;o<=r;o++){a[o]=t[o]}var s=new LoggingEvent(this,new Date,e,a,n);this.callAppenders(s)}};this.callAppenders=function(e){var t=this.getEffectiveAppenders();for(var n=0,r=t.length;n<r;n++){t[n].doAppend(e)}};this.setLevel=function(e){if(r&&e===null){handleError("Logger.setLevel: you cannot set the level of the root logger to null")}else if(e instanceof Level){n=e}else{handleError("Logger.setLevel: level supplied to logger "+this.name+" is not an instance of log4javascript.Level")}};this.getLevel=function(){return n};this.getEffectiveLevel=function(){for(var e=this;e!==null;e=e.parent){var t=e.getLevel();if(t!==null){return t}}};this.group=function(e,t){if(enabled){var n=this.getEffectiveAppenders();for(var r=0,i=n.length;r<i;r++){n[r].group(e,t)}}};this.groupEnd=function(){if(enabled){var e=this.getEffectiveAppenders();for(var t=0,n=e.length;t<n;t++){e[t].groupEnd()}}};var l={};this.time=function(e,t){if(enabled){if(isUndefined(e)){handleError("Logger.time: a name for the timer must be supplied")}else if(t&&!(t instanceof Level)){handleError("Logger.time: level supplied to timer "+e+" is not an instance of log4javascript.Level")}else{l[e]=new Timer(e,t)}}};this.timeEnd=function(e){if(enabled){if(isUndefined(e)){handleError("Logger.timeEnd: a name for the timer must be supplied")}else if(l[e]){var t=l[e];var n=t.getElapsedTime();this.log(t.level,["Timer "+toStr(e)+" completed in "+n+"ms"]);delete l[e]}else{logLog.warn("Logger.timeEnd: no timer found with name "+e)}}};this.assert=function(e){if(enabled&&!e){var t=[];for(var n=1,r=arguments.length;n<r;n++){t.push(arguments[n])}t=t.length>0?t:["Assertion Failure"];t.push(newLine);t.push(e);this.log(Level.ERROR,t)}};this.toString=function(){return"Logger["+this.name+"]"}}Logger.prototype={trace:function(){this.log(Level.TRACE,arguments)},debug:function(){this.log(Level.DEBUG,arguments)},info:function(){this.log(Level.INFO,arguments)},warn:function(){this.log(Level.WARN,arguments)},error:function(){this.log(Level.ERROR,arguments)},fatal:function(){this.log(Level.FATAL,arguments)},isEnabledFor:function(e){return e.isGreaterOrEqual(this.getEffectiveLevel())},isTraceEnabled:function(){return this.isEnabledFor(Level.TRACE)},isDebugEnabled:function(){return this.isEnabledFor(Level.DEBUG)},isInfoEnabled:function(){return this.isEnabledFor(Level.INFO)},isWarnEnabled:function(){return this.isEnabledFor(Level.WARN)},isErrorEnabled:function(){return this.isEnabledFor(Level.ERROR)},isFatalEnabled:function(){return this.isEnabledFor(Level.FATAL)}};Logger.prototype.trace.isEntryPoint=true;Logger.prototype.debug.isEntryPoint=true;Logger.prototype.info.isEntryPoint=true;Logger.prototype.warn.isEntryPoint=true;Logger.prototype.error.isEntryPoint=true;Logger.prototype.fatal.isEntryPoint=true;var loggers={};var loggerNames=[];var ROOT_LOGGER_DEFAULT_LEVEL=Level.DEBUG;var rootLogger=new Logger(rootLoggerName);rootLogger.setLevel(ROOT_LOGGER_DEFAULT_LEVEL);log4javascript.getRootLogger=function(){return rootLogger};log4javascript.getLogger=function(e){if(typeof e!="string"){e=anonymousLoggerName;logLog.warn("log4javascript.getLogger: non-string logger name "+toStr(e)+" supplied, returning anonymous logger")}if(e==rootLoggerName){handleError("log4javascript.getLogger: root logger may not be obtained by name")}if(!loggers[e]){var t=new Logger(e);loggers[e]=t;loggerNames.push(e);var n=e.lastIndexOf(".");var r;if(n>-1){var i=e.substring(0,n);r=log4javascript.getLogger(i)}else{r=rootLogger}r.addChild(t)}return loggers[e]};var defaultLogger=null;log4javascript.getDefaultLogger=function(){if(!defaultLogger){defaultLogger=createDefaultLogger()}return defaultLogger};var nullLogger=null;log4javascript.getNullLogger=function(){if(!nullLogger){nullLogger=new Logger(nullLoggerName);nullLogger.setLevel(Level.OFF)}return nullLogger};log4javascript.resetConfiguration=function(){rootLogger.setLevel(ROOT_LOGGER_DEFAULT_LEVEL);loggers={}};var LoggingEvent=function(e,t,n,r,i){this.logger=e;this.timeStamp=t;this.timeStampInMilliseconds=t.getTime();this.timeStampInSeconds=Math.floor(this.timeStampInMilliseconds/1e3);this.milliseconds=this.timeStamp.getMilliseconds();this.level=n;this.messages=r;this.exception=i};LoggingEvent.prototype={getThrowableStrRep:function(){return this.exception?getExceptionStringRep(this.exception):""},getCombinedMessages:function(){return this.messages.length==1?this.messages[0]:this.messages.join(newLine)},toString:function(){return"LoggingEvent["+this.level+"]"}};log4javascript.LoggingEvent=LoggingEvent;var Layout=function(){};Layout.prototype={defaults:{loggerKey:"logger",timeStampKey:"timestamp",millisecondsKey:"milliseconds",levelKey:"level",messageKey:"message",exceptionKey:"exception",urlKey:"url"},loggerKey:"logger",timeStampKey:"timestamp",millisecondsKey:"milliseconds",levelKey:"level",messageKey:"message",exceptionKey:"exception",urlKey:"url",batchHeader:"",batchFooter:"",batchSeparator:"",returnsPostData:false,overrideTimeStampsSetting:false,useTimeStampsInMilliseconds:null,format:function(){handleError("Layout.format: layout supplied has no format() method")},ignoresThrowable:function(){handleError("Layout.ignoresThrowable: layout supplied has no ignoresThrowable() method")},getContentType:function(){return"text/plain"},allowBatching:function(){return true},setTimeStampsInMilliseconds:function(e){this.overrideTimeStampsSetting=true;this.useTimeStampsInMilliseconds=bool(e)},isTimeStampsInMilliseconds:function(){return this.overrideTimeStampsSetting?this.useTimeStampsInMilliseconds:useTimeStampsInMilliseconds},getTimeStampValue:function(e){return this.isTimeStampsInMilliseconds()?e.timeStampInMilliseconds:e.timeStampInSeconds},getDataValues:function(e,t){var n=[[this.loggerKey,e.logger.name],[this.timeStampKey,this.getTimeStampValue(e)],[this.levelKey,e.level.name],[this.urlKey,window.location.href],[this.messageKey,t?e.getCombinedMessages():e.messages]];if(!this.isTimeStampsInMilliseconds()){n.push([this.millisecondsKey,e.milliseconds])}if(e.exception){n.push([this.exceptionKey,getExceptionStringRep(e.exception)])}if(this.hasCustomFields()){for(var r=0,i=this.customFields.length;r<i;r++){var a=this.customFields[r].value;if(typeof a==="function"){a=a(this,e)}n.push([this.customFields[r].name,a])}}return n},setKeys:function(e,t,n,r,i,a,o){this.loggerKey=extractStringFromParam(e,this.defaults.loggerKey);this.timeStampKey=extractStringFromParam(t,this.defaults.timeStampKey);this.levelKey=extractStringFromParam(n,this.defaults.levelKey);this.messageKey=extractStringFromParam(r,this.defaults.messageKey);this.exceptionKey=extractStringFromParam(i,this.defaults.exceptionKey);this.urlKey=extractStringFromParam(a,this.defaults.urlKey);this.millisecondsKey=extractStringFromParam(o,this.defaults.millisecondsKey)},setCustomField:function(e,t){var n=false;for(var r=0,i=this.customFields.length;r<i;r++){if(this.customFields[r].name===e){this.customFields[r].value=t;n=true}}if(!n){this.customFields.push({name:e,value:t})}},hasCustomFields:function(){return this.customFields.length>0},formatWithException:function(e){var t=this.format(e);if(e.exception&&this.ignoresThrowable()){t+=e.getThrowableStrRep()}return t},toString:function(){handleError("Layout.toString: all layouts must override this method")}};log4javascript.Layout=Layout;var Appender=function(){};Appender.prototype=new EventSupport;Appender.prototype.layout=new PatternLayout;Appender.prototype.threshold=Level.ALL;Appender.prototype.loggers=[];Appender.prototype.doAppend=function(e){if(enabled&&e.level.level>=this.threshold.level){this.append(e)}};Appender.prototype.append=function(e){};Appender.prototype.setLayout=function(e){if(e instanceof Layout){this.layout=e}else{handleError("Appender.setLayout: layout supplied to "+this.toString()+" is not a subclass of Layout")}};Appender.prototype.getLayout=function(){return this.layout};Appender.prototype.setThreshold=function(e){if(e instanceof Level){this.threshold=e}else{handleError("Appender.setThreshold: threshold supplied to "+this.toString()+" is not a subclass of Level")}};Appender.prototype.getThreshold=function(){return this.threshold};Appender.prototype.setAddedToLogger=function(e){this.loggers.push(e)};Appender.prototype.setRemovedFromLogger=function(e){array_remove(this.loggers,e)};Appender.prototype.group=emptyFunction;Appender.prototype.groupEnd=emptyFunction;Appender.prototype.toString=function(){handleError("Appender.toString: all appenders must override this method")};log4javascript.Appender=Appender;function SimpleLayout(){this.customFields=[]}SimpleLayout.prototype=new Layout;SimpleLayout.prototype.format=function(e){return e.level.name+" - "+e.getCombinedMessages()};SimpleLayout.prototype.ignoresThrowable=function(){return true};SimpleLayout.prototype.toString=function(){return"SimpleLayout"};log4javascript.SimpleLayout=SimpleLayout;function NullLayout(){this.customFields=[]}NullLayout.prototype=new Layout;NullLayout.prototype.format=function(e){return e.messages};NullLayout.prototype.ignoresThrowable=function(){return true};NullLayout.prototype.formatWithException=function(e){var t=e.messages,n=e.exception;return n?t.concat([n]):t};NullLayout.prototype.toString=function(){return"NullLayout"};log4javascript.NullLayout=NullLayout;function XmlLayout(e){this.combineMessages=extractBooleanFromParam(e,true);this.customFields=[]}XmlLayout.prototype=new Layout;XmlLayout.prototype.isCombinedMessages=function(){return this.combineMessages};XmlLayout.prototype.getContentType=function(){return"text/xml"};XmlLayout.prototype.escapeCdata=function(e){return e.replace(/\]\]>/,"]]>]]&gt;<![CDATA[")};XmlLayout.prototype.format=function(e){var t=this;var n,r;function i(e){e=typeof e==="string"?e:toStr(e);return"<log4javascript:message><![CDATA["+t.escapeCdata(e)+"]]></log4javascript:message>"}var a='<log4javascript:event logger="'+e.logger.name+'" timestamp="'+this.getTimeStampValue(e)+'"';if(!this.isTimeStampsInMilliseconds()){a+=' milliseconds="'+e.milliseconds+'"'}a+=' level="'+e.level.name+'">'+newLine;if(this.combineMessages){a+=i(e.getCombinedMessages())}else{a+="<log4javascript:messages>"+newLine;for(n=0,r=e.messages.length;n<r;n++){a+=i(e.messages[n])+newLine}a+="</log4javascript:messages>"+newLine}if(this.hasCustomFields()){for(n=0,r=this.customFields.length;n<r;n++){a+='<log4javascript:customfield name="'+this.customFields[n].name+'"><![CDATA['+this.customFields[n].value.toString()+"]]></log4javascript:customfield>"+newLine}}if(e.exception){a+="<log4javascript:exception><![CDATA["+getExceptionStringRep(e.exception)+"]]></log4javascript:exception>"+newLine}a+="</log4javascript:event>"+newLine+newLine;return a};XmlLayout.prototype.ignoresThrowable=function(){return false};XmlLayout.prototype.toString=function(){return"XmlLayout"};log4javascript.XmlLayout=XmlLayout;function escapeNewLines(e){return e.replace(/\r\n|\r|\n/g,"\\r\\n")}function JsonLayout(e,t){this.readable=extractBooleanFromParam(e,false);this.combineMessages=extractBooleanFromParam(t,true);this.batchHeader=this.readable?"["+newLine:"[";this.batchFooter=this.readable?"]"+newLine:"]";this.batchSeparator=this.readable?","+newLine:",";this.setKeys();this.colon=this.readable?": ":":";this.tab=this.readable?"\t":"";this.lineBreak=this.readable?newLine:"";this.customFields=[]}JsonLayout.prototype=new Layout;JsonLayout.prototype.isReadable=function(){return this.readable};JsonLayout.prototype.isCombinedMessages=function(){return this.combineMessages};JsonLayout.prototype.format=function(e){var t=this;var n=this.getDataValues(e,this.combineMessages);var r="{"+this.lineBreak;var i,a;function o(e,n,r){var i;var a=typeof e;if(e instanceof Date){i=String(e.getTime())}else if(r&&e instanceof Array){i="["+t.lineBreak;for(var s=0,l=e.length;s<l;s++){var c=n+t.tab;i+=c+o(e[s],c,false);if(s<e.length-1){i+=","}i+=t.lineBreak}i+=n+"]"}else if(a!=="number"&&a!=="boolean"){i='"'+escapeNewLines(toStr(e).replace(/\"/g,'\\"'))+'"'}else{i=e}return i}for(i=0,a=n.length-1;i<=a;i++){r+=this.tab+'"'+n[i][0]+'"'+this.colon+o(n[i][1],this.tab,true);if(i<a){r+=","}r+=this.lineBreak}r+="}"+this.lineBreak;return r};JsonLayout.prototype.ignoresThrowable=function(){return false};JsonLayout.prototype.toString=function(){return"JsonLayout"};JsonLayout.prototype.getContentType=function(){return"application/json"};log4javascript.JsonLayout=JsonLayout;function HttpPostDataLayout(){this.setKeys();this.customFields=[];this.returnsPostData=true}HttpPostDataLayout.prototype=new Layout;HttpPostDataLayout.prototype.allowBatching=function(){return false};HttpPostDataLayout.prototype.format=function(e){var t=this.getDataValues(e);var n=[];for(var r=0,i=t.length;r<i;r++){var a=t[r][1]instanceof Date?String(t[r][1].getTime()):t[r][1];n.push(urlEncode(t[r][0])+"="+urlEncode(a))}return n.join("&")};HttpPostDataLayout.prototype.ignoresThrowable=function(e){return false};HttpPostDataLayout.prototype.toString=function(){return"HttpPostDataLayout"};log4javascript.HttpPostDataLayout=HttpPostDataLayout;function formatObjectExpansion(e,t,n){var r=[];function i(e,t,n){var a,o,s,l,c,u,f;if(!n){n=""}function p(e){var t=splitIntoLines(e);for(var r=1,i=t.length;r<i;r++){t[r]=n+t[r]}return t.join(newLine)}if(e===null){return"null"}else if(typeof e=="undefined"){return"undefined"}else if(typeof e=="string"){return p(e)}else if(typeof e=="object"&&array_contains(r,e)){try{u=toStr(e)}catch(e){u="Error formatting property. Details: "+getExceptionStringRep(e)}return u+" [already expanded]"}else if(e instanceof Array&&t>0){r.push(e);u="["+newLine;s=t-1;l=n+" ";c=[];for(a=0,o=e.length;a<o;a++){try{f=i(e[a],s,l);c.push(l+f)}catch(e){c.push(l+"Error formatting array member. Details: "+getExceptionStringRep(e)+"")}}u+=c.join(","+newLine)+newLine+n+"]";return u}else if(Object.prototype.toString.call(e)=="[object Date]"){return e.toString()}else if(typeof e=="object"&&t>0){r.push(e);u="{"+newLine;s=t-1;l=n+" ";c=[];for(a in e){try{f=i(e[a],s,l);c.push(l+a+": "+f)}catch(e){c.push(l+a+": Error formatting property. Details: "+getExceptionStringRep(e))}}u+=c.join(","+newLine)+newLine+n+"}";return u}else{return p(toStr(e))}}return i(e,t,n)}var SimpleDateFormat;(function(){var e=/('[^']*')|(G+|y+|M+|w+|W+|D+|d+|F+|E+|a+|H+|k+|K+|h+|m+|s+|S+|Z+)|([a-zA-Z]+)|([^a-zA-Z']+)/;var t=["January","February","March","April","May","June","July","August","September","October","November","December"];var n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var r=0,i=1,a=2,o=3,s=4,l=5;var c={G:r,y:o,M:s,w:a,W:a,D:a,d:a,F:a,E:i,a:r,H:a,k:a,K:a,h:a,m:a,s:a,S:a,Z:l};var u=24*60*60*1e3;var f=7*u;var p=1;var d=function(e,t,n){var r=new Date(e,t,n,0,0,0);r.setMilliseconds(0);return r};Date.prototype.getDifference=function(e){return this.getTime()-e.getTime()};Date.prototype.isBefore=function(e){return this.getTime()<e.getTime()};Date.prototype.getUTCTime=function(){return Date.UTC(this.getFullYear(),this.getMonth(),this.getDate(),this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds())};Date.prototype.getTimeSince=function(e){return this.getUTCTime()-e.getUTCTime()};Date.prototype.getPreviousSunday=function(){var e=new Date(this.getFullYear(),this.getMonth(),this.getDate(),12,0,0);var t=new Date(e.getTime()-this.getDay()*u);return d(t.getFullYear(),t.getMonth(),t.getDate())};Date.prototype.getWeekInYear=function(e){if(isUndefined(this.minimalDaysInFirstWeek)){e=p}var t=this.getPreviousSunday();var n=d(this.getFullYear(),0,1);var r=t.isBefore(n)?0:1+Math.floor(t.getTimeSince(n)/f);var i=7-n.getDay();var a=r;if(i<e){a--}return a};Date.prototype.getWeekInMonth=function(e){if(isUndefined(this.minimalDaysInFirstWeek)){e=p}var t=this.getPreviousSunday();var n=d(this.getFullYear(),this.getMonth(),1);var r=t.isBefore(n)?0:1+Math.floor(t.getTimeSince(n)/f);var i=7-n.getDay();var a=r;if(i>=e){a++}return a};Date.prototype.getDayInYear=function(){var e=d(this.getFullYear(),0,1);return 1+Math.floor(this.getTimeSince(e)/u)};SimpleDateFormat=function(e){this.formatString=e};SimpleDateFormat.prototype.setMinimalDaysInFirstWeek=function(e){this.minimalDaysInFirstWeek=e};SimpleDateFormat.prototype.getMinimalDaysInFirstWeek=function(){return isUndefined(this.minimalDaysInFirstWeek)?p:this.minimalDaysInFirstWeek};var h=function(e,t){while(e.length<t){e="0"+e}return e};var g=function(e,t,n){return t>=4?e:e.substr(0,Math.max(n,t))};var m=function(e,t){var n=""+e;return h(n,t)};SimpleDateFormat.prototype.format=function(u){var f="";var p;var d=this.formatString;while(p=e.exec(d)){var v=p[1];var y=p[2];var b=p[3];var w=p[4];if(v){if(v=="''"){f+="'"}else{f+=v.substring(1,v.length-1)}}else if(b){}else if(w){f+=w}else if(y){var C=y.charAt(0);var E=y.length;var x="";switch(C){case"G":x="AD";break;case"y":x=u.getFullYear();break;case"M":x=u.getMonth();break;case"w":x=u.getWeekInYear(this.getMinimalDaysInFirstWeek());break;case"W":x=u.getWeekInMonth(this.getMinimalDaysInFirstWeek());break;case"D":x=u.getDayInYear();break;case"d":x=u.getDate();break;case"F":x=1+Math.floor((u.getDate()-1)/7);break;case"E":x=n[u.getDay()];break;case"a":x=u.getHours()>=12?"PM":"AM";break;case"H":x=u.getHours();break;case"k":x=u.getHours()||24;break;case"K":x=u.getHours()%12;break;case"h":x=u.getHours()%12||12;break;case"m":x=u.getMinutes();break;case"s":x=u.getSeconds();break;case"S":x=u.getMilliseconds();break;case"Z":x=u.getTimezoneOffset();break}switch(c[C]){case r:f+=g(x,E,2);break;case i:f+=g(x,E,3);break;case a:f+=m(x,E);break;case o:if(E<=3){var L=""+x;f+=L.substr(2,2)}else{f+=m(x,E)}break;case s:if(E>=3){f+=g(t[x],E,E)}else{f+=m(x+1,E)}break;case l:var S=x>0;var A=S?"-":"+";var T=Math.abs(x);var I=""+Math.floor(T/60);I=h(I,2);var M=""+T%60;M=h(M,2);f+=A+I+M;break}}d=d.substr(p.index+p[0].length)}return f}})();log4javascript.SimpleDateFormat=SimpleDateFormat;function PatternLayout(e){if(e){this.pattern=e}else{this.pattern=PatternLayout.DEFAULT_CONVERSION_PATTERN}this.customFields=[]}PatternLayout.TTCC_CONVERSION_PATTERN="%r %p %c - %m%n";PatternLayout.DEFAULT_CONVERSION_PATTERN="%m%n";PatternLayout.ISO8601_DATEFORMAT="yyyy-MM-dd HH:mm:ss,SSS";PatternLayout.DATETIME_DATEFORMAT="dd MMM yyyy HH:mm:ss,SSS";PatternLayout.ABSOLUTETIME_DATEFORMAT="HH:mm:ss,SSS";PatternLayout.prototype=new Layout;PatternLayout.prototype.format=function(e){var t=/%(-?[0-9]+)?(\.?[0-9]+)?([acdfmMnpr%])(\{([^\}]+)\})?|([^%]+)/;var n="";var r;var i=this.pattern;while(r=t.exec(i)){var a=r[0];var o=r[1];var s=r[2];var l=r[3];var c=r[5];var u=r[6];if(u){n+=""+u}else{var f="";switch(l){case"a":case"m":var p=0;if(c){p=parseInt(c,10);if(isNaN(p)){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character '"+l+"' - should be a number");p=0}}var d=l==="a"?e.messages[0]:e.messages;for(var h=0,g=d.length;h<g;h++){if(h>0&&f.charAt(f.length-1)!==" "){f+=" "}if(p===0){f+=d[h]}else{f+=formatObjectExpansion(d[h],p)}}break;case"c":var m=e.logger.name;if(c){var v=parseInt(c,10);var y=e.logger.name.split(".");if(v>=y.length){f=m}else{f=y.slice(y.length-v).join(".")}}else{f=m}break;case"d":var b=PatternLayout.ISO8601_DATEFORMAT;if(c){b=c;if(b=="ISO8601"){b=PatternLayout.ISO8601_DATEFORMAT}else if(b=="ABSOLUTE"){b=PatternLayout.ABSOLUTETIME_DATEFORMAT}else if(b=="DATE"){b=PatternLayout.DATETIME_DATEFORMAT}}f=new SimpleDateFormat(b).format(e.timeStamp);break;case"f":if(this.hasCustomFields()){var w=0;if(c){w=parseInt(c,10);if(isNaN(w)){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character 'f' - should be a number")}else if(w===0){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character 'f' - must be greater than zero")}else if(w>this.customFields.length){handleError("PatternLayout.format: invalid specifier '"+c+"' for conversion character 'f' - there aren't that many custom fields")}else{w=w-1}}var C=this.customFields[w].value;if(typeof C=="function"){C=C(this,e)}f=C}break;case"n":f=newLine;break;case"p":f=e.level.name;break;case"r":f=""+e.timeStamp.getDifference(applicationStartDate);break;case"%":f="%";break;default:f=a;break}var E;if(s){E=parseInt(s.substr(1),10);var x=f.length;if(E<x){f=f.substring(x-E,x)}}if(o){if(o.charAt(0)=="-"){E=parseInt(o.substr(1),10);while(f.length<E){f+=" "}}else{E=parseInt(o,10);while(f.length<E){f=" "+f}}}n+=f}i=i.substr(r.index+r[0].length)}return n};PatternLayout.prototype.ignoresThrowable=function(){return true};PatternLayout.prototype.toString=function(){return"PatternLayout"};log4javascript.PatternLayout=PatternLayout;function AlertAppender(){}AlertAppender.prototype=new Appender;AlertAppender.prototype.layout=new SimpleLayout;AlertAppender.prototype.append=function(e){alert(this.getLayout().formatWithException(e))};AlertAppender.prototype.toString=function(){return"AlertAppender"};log4javascript.AlertAppender=AlertAppender;function BrowserConsoleAppender(){}BrowserConsoleAppender.prototype=new log4javascript.Appender;BrowserConsoleAppender.prototype.layout=new NullLayout;BrowserConsoleAppender.prototype.threshold=Level.DEBUG;BrowserConsoleAppender.prototype.append=function(e){var t=this;var n=function(n){var r=t.getLayout().formatWithException(e);return typeof r=="string"?n?r:[r]:n?r.join(" "):r};var r=window.console;if(r&&r.log){var i;if(r.debug&&Level.DEBUG.isGreaterOrEqual(e.level)){i="debug"}else if(r.info&&Level.INFO.equals(e.level)){i="info"}else if(r.warn&&Level.WARN.equals(e.level)){i="warn"}else if(r.error&&e.level.isGreaterOrEqual(Level.ERROR)){i="error"}else{i="log"}if(typeof r[i].apply=="function"){r[i].apply(r,n(false))}else{r[i](n(true))}}else if(typeof opera!="undefined"&&opera.postError){opera.postError(n(true))}};BrowserConsoleAppender.prototype.group=function(e){if(window.console&&window.console.group){window.console.group(e)}};BrowserConsoleAppender.prototype.groupEnd=function(){if(window.console&&window.console.groupEnd){window.console.groupEnd()}};BrowserConsoleAppender.prototype.toString=function(){return"BrowserConsoleAppender"};log4javascript.BrowserConsoleAppender=BrowserConsoleAppender;var xhrFactory=function(){return new XMLHttpRequest};var xmlHttpFactories=[xhrFactory,function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];var withCredentialsSupported=false;var getXmlHttp=function(e){var t=null,n;for(var r=0,i=xmlHttpFactories.length;r<i;r++){n=xmlHttpFactories[r];try{t=n();withCredentialsSupported=n==xhrFactory&&"withCredentials"in t;getXmlHttp=n;return t}catch(e){}}if(e){e()}else{handleError("getXmlHttp: unable to obtain XMLHttpRequest object")}};function isHttpRequestSuccessful(e){return isUndefined(e.status)||e.status===0||e.status>=200&&e.status<300||e.status==1223}function AjaxAppender(e,t){var n=this;var r=true;if(!e){handleError("AjaxAppender: URL must be specified in constructor");r=false}var i=this.defaults.timed;var a=this.defaults.waitForResponse;var o=this.defaults.batchSize;var s=this.defaults.timerInterval;var l=this.defaults.requestSuccessCallback;var c=this.defaults.failCallback;var u=this.defaults.postVarName;var f=this.defaults.sendAllOnUnload;var p=this.defaults.contentType;var d=null;var h=[];var g=[];var m=[];var v=false;var y=false;function b(e){if(y){handleError("AjaxAppender: configuration option '"+e+"' may not be set after the appender has been initialized");return false}return true}this.getSessionId=function(){return d};this.setSessionId=function(e){d=extractStringFromParam(e,null);this.layout.setCustomField("sessionid",d)};this.setLayout=function(e){if(b("layout")){this.layout=e;if(d!==null){this.setSessionId(d)}}};this.isTimed=function(){return i};this.setTimed=function(e){if(b("timed")){i=bool(e)}};this.getTimerInterval=function(){return s};this.setTimerInterval=function(e){if(b("timerInterval")){s=extractIntFromParam(e,s)}};this.isWaitForResponse=function(){return a};this.setWaitForResponse=function(e){if(b("waitForResponse")){a=bool(e)}};this.getBatchSize=function(){return o};this.setBatchSize=function(e){if(b("batchSize")){o=extractIntFromParam(e,o)}};this.isSendAllOnUnload=function(){return f};this.setSendAllOnUnload=function(e){if(b("sendAllOnUnload")){f=extractBooleanFromParam(e,f)}};this.setRequestSuccessCallback=function(e){l=extractFunctionFromParam(e,l)};this.setFailCallback=function(e){c=extractFunctionFromParam(e,c)};this.getPostVarName=function(){return u};this.setPostVarName=function(e){if(b("postVarName")){u=extractStringFromParam(e,u)}};this.getHeaders=function(){return m};this.addHeader=function(e,t){if(e.toLowerCase()=="content-type"){p=t}else{m.push({name:e,value:t})}};function w(){if(r&&enabled){v=true;var e;if(a){if(g.length>0){e=g.shift();S(E(e),w)}else{v=false;if(i){x()}}}else{while(e=g.shift()){S(E(e))}v=false;if(i){x()}}}}this.sendAll=w;function C(){var e=false;if(r&&enabled){var t=n.getLayout().allowBatching()?o:1;var s;var l=[];while(s=h.shift()){l.push(s);if(h.length>=t){g.push(l);l=[]}}if(l.length>0){g.push(l)}e=g.length>0;a=false;i=false;w()}return e}this.sendAllRemaining=C;function E(e){var t=[];var r;var i="";while(r=e.shift()){t.push(n.getLayout().formatWithException(r))}if(e.length==1){i=t.join("")}else{i=n.getLayout().batchHeader+t.join(n.getLayout().batchSeparator)+n.getLayout().batchFooter}if(p==n.defaults.contentType){i=n.getLayout().returnsPostData?i:urlEncode(u)+"="+urlEncode(i);if(i.length>0){i+="&"}i+="layout="+urlEncode(n.getLayout().toString())}return i}function x(){window.setTimeout(w,s)}function L(){var e="AjaxAppender: could not create XMLHttpRequest object. AjaxAppender disabled";handleError(e);r=false;if(c){c(e)}}function S(n,i){try{var a=getXmlHttp(L);if(r){a.onreadystatechange=function(){if(a.readyState==4){if(isHttpRequestSuccessful(a)){if(l){l(a)}if(i){i(a)}}else{var t="AjaxAppender.append: XMLHttpRequest request to URL "+e+" returned status code "+a.status;handleError(t);if(c){c(t)}}a.onreadystatechange=emptyFunction;a=null}};a.open("POST",e,true);if(t&&withCredentialsSupported){a.withCredentials=true}try{for(var o=0,s;s=m[o++];){a.setRequestHeader(s.name,s.value)}a.setRequestHeader("Content-Type",p)}catch(e){var u="AjaxAppender.append: your browser's XMLHttpRequest implementation"+" does not support setRequestHeader, therefore cannot post data. AjaxAppender disabled";handleError(u);r=false;if(c){c(u)}return}a.send(n)}}catch(t){var f="AjaxAppender.append: error sending log message to "+e;handleError(f,t);r=false;if(c){c(f+". Details: "+getExceptionStringRep(t))}}}this.append=function(e){if(r){if(!y){A()}h.push(e);var t=this.getLayout().allowBatching()?o:1;if(h.length>=t){var n;var s=[];while(n=h.shift()){s.push(n)}g.push(s);if(!i&&(!a||a&&!v)){w()}}}};function A(){y=true;if(f){var e=window.onbeforeunload;window.onbeforeunload=function(){if(e){e()}C()}}if(i){x()}}}AjaxAppender.prototype=new Appender;AjaxAppender.prototype.defaults={waitForResponse:false,timed:false,timerInterval:1e3,batchSize:1,sendAllOnUnload:false,requestSuccessCallback:null,failCallback:null,postVarName:"data",contentType:"application/x-www-form-urlencoded"};AjaxAppender.prototype.layout=new HttpPostDataLayout;AjaxAppender.prototype.toString=function(){return"AjaxAppender"};log4javascript.AjaxAppender=AjaxAppender;function setCookie(e,t,n,r){var i;r=r?"; path="+r:"";if(n){var a=new Date;a.setTime(a.getTime()+n*24*60*60*1e3);i="; expires="+a.toGMTString()}else{i=""}document.cookie=escape(e)+"="+escape(t)+i+r}function getCookie(e){var t=escape(e)+"=";var n=document.cookie.split(";");for(var r=0,i=n.length;r<i;r++){var a=n[r];while(a.charAt(0)===" "){a=a.substring(1,a.length)}if(a.indexOf(t)===0){return unescape(a.substring(t.length,a.length))}}return null}function getBaseUrl(){var e=document.getElementsByTagName("script");for(var t=0,n=e.length;t<n;++t){if(e[t].src.indexOf("log4javascript")!=-1){var r=e[t].src.lastIndexOf("/");return r==-1?"":e[t].src.substr(0,r+1)}}return null}function isLoaded(e){try{return bool(e.loaded)}catch(e){return false}}var ConsoleAppender;(function(){var e=function(){return['<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">','<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">',"<head>","<title>log4javascript</title>",'<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />',"\x3c!-- Make IE8 behave like IE7, having gone to all the trouble of making IE work --\x3e",'<meta http-equiv="X-UA-Compatible" content="IE=7" />','<script type="text/javascript">var isIe = false, isIePre7 = false;<\/script>','\x3c!--[if IE]><script type="text/javascript">isIe = true<\/script><![endif]--\x3e','\x3c!--[if lt IE 7]><script type="text/javascript">isIePre7 = true<\/script><![endif]--\x3e','<script type="text/javascript">',"//<![CDATA[","var loggingEnabled=true;var logQueuedEventsTimer=null;var logEntries=[];var logEntriesAndSeparators=[];var logItems=[];var renderDelay=100;var unrenderedLogItemsExist=false;var rootGroup,currentGroup=null;var loaded=false;var currentLogItem=null;var logMainContainer;function copyProperties(obj,props){for(var i in props){obj[i]=props[i];}}","function LogItem(){}","LogItem.prototype={mainContainer:null,wrappedContainer:null,unwrappedContainer:null,group:null,appendToLog:function(){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].appendToLog();}","this.group.update();},doRemove:function(doUpdate,removeFromGroup){if(this.rendered){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].remove();}","this.unwrappedElementContainer=null;this.wrappedElementContainer=null;this.mainElementContainer=null;}","if(this.group&&removeFromGroup){this.group.removeChild(this,doUpdate);}","if(this===currentLogItem){currentLogItem=null;}},remove:function(doUpdate,removeFromGroup){this.doRemove(doUpdate,removeFromGroup);},render:function(){},accept:function(visitor){visitor.visit(this);},getUnwrappedDomContainer:function(){return this.group.unwrappedElementContainer.contentDiv;},getWrappedDomContainer:function(){return this.group.wrappedElementContainer.contentDiv;},getMainDomContainer:function(){return this.group.mainElementContainer.contentDiv;}};LogItem.serializedItemKeys={LOG_ENTRY:0,GROUP_START:1,GROUP_END:2};function LogItemContainerElement(){}",'LogItemContainerElement.prototype={appendToLog:function(){var insertBeforeFirst=(newestAtTop&&this.containerDomNode.hasChildNodes());if(insertBeforeFirst){this.containerDomNode.insertBefore(this.mainDiv,this.containerDomNode.firstChild);}else{this.containerDomNode.appendChild(this.mainDiv);}}};function SeparatorElementContainer(containerDomNode){this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.className="separator";this.mainDiv.innerHTML="&nbsp;";}',"SeparatorElementContainer.prototype=new LogItemContainerElement();SeparatorElementContainer.prototype.remove=function(){this.mainDiv.parentNode.removeChild(this.mainDiv);this.mainDiv=null;};function Separator(){this.rendered=false;}","Separator.prototype=new LogItem();copyProperties(Separator.prototype,{render:function(){var containerDomNode=this.group.contentDiv;if(isIe){this.unwrappedElementContainer=new SeparatorElementContainer(this.getUnwrappedDomContainer());this.wrappedElementContainer=new SeparatorElementContainer(this.getWrappedDomContainer());this.elementContainers=[this.unwrappedElementContainer,this.wrappedElementContainer];}else{this.mainElementContainer=new SeparatorElementContainer(this.getMainDomContainer());this.elementContainers=[this.mainElementContainer];}",'this.content=this.formattedMessage;this.rendered=true;}});function GroupElementContainer(group,containerDomNode,isRoot,isWrapped){this.group=group;this.containerDomNode=containerDomNode;this.isRoot=isRoot;this.isWrapped=isWrapped;this.expandable=false;if(this.isRoot){if(isIe){this.contentDiv=logMainContainer.appendChild(document.createElement("div"));this.contentDiv.id=this.isWrapped?"log_wrapped":"log_unwrapped";}else{this.contentDiv=logMainContainer;}}else{var groupElementContainer=this;this.mainDiv=document.createElement("div");this.mainDiv.className="group";this.headingDiv=this.mainDiv.appendChild(document.createElement("div"));this.headingDiv.className="groupheading";this.expander=this.headingDiv.appendChild(document.createElement("span"));this.expander.className="expander unselectable greyedout";this.expander.unselectable=true;var expanderText=this.group.expanded?"-":"+";this.expanderTextNode=this.expander.appendChild(document.createTextNode(expanderText));this.headingDiv.appendChild(document.createTextNode(" "+this.group.name));this.contentDiv=this.mainDiv.appendChild(document.createElement("div"));var contentCssClass=this.group.expanded?"expanded":"collapsed";this.contentDiv.className="groupcontent "+contentCssClass;this.expander.onclick=function(){if(groupElementContainer.group.expandable){groupElementContainer.group.toggleExpanded();}};}}','GroupElementContainer.prototype=new LogItemContainerElement();copyProperties(GroupElementContainer.prototype,{toggleExpanded:function(){if(!this.isRoot){var oldCssClass,newCssClass,expanderText;if(this.group.expanded){newCssClass="expanded";oldCssClass="collapsed";expanderText="-";}else{newCssClass="collapsed";oldCssClass="expanded";expanderText="+";}',"replaceClass(this.contentDiv,newCssClass,oldCssClass);this.expanderTextNode.nodeValue=expanderText;}},remove:function(){if(!this.isRoot){this.headingDiv=null;this.expander.onclick=null;this.expander=null;this.expanderTextNode=null;this.contentDiv=null;this.containerDomNode=null;this.mainDiv.parentNode.removeChild(this.mainDiv);this.mainDiv=null;}},reverseChildren:function(){var node=null;var childDomNodes=[];while((node=this.contentDiv.firstChild)){this.contentDiv.removeChild(node);childDomNodes.push(node);}",'while((node=childDomNodes.pop())){this.contentDiv.appendChild(node);}},update:function(){if(!this.isRoot){if(this.group.expandable){removeClass(this.expander,"greyedout");}else{addClass(this.expander,"greyedout");}}},clear:function(){if(this.isRoot){this.contentDiv.innerHTML="";}}});function Group(name,isRoot,initiallyExpanded){this.name=name;this.group=null;this.isRoot=isRoot;this.initiallyExpanded=initiallyExpanded;this.elementContainers=[];this.children=[];this.expanded=initiallyExpanded;this.rendered=false;this.expandable=false;}',"Group.prototype=new LogItem();copyProperties(Group.prototype,{addChild:function(logItem){this.children.push(logItem);logItem.group=this;},render:function(){if(isIe){var unwrappedDomContainer,wrappedDomContainer;if(this.isRoot){unwrappedDomContainer=logMainContainer;wrappedDomContainer=logMainContainer;}else{unwrappedDomContainer=this.getUnwrappedDomContainer();wrappedDomContainer=this.getWrappedDomContainer();}","this.unwrappedElementContainer=new GroupElementContainer(this,unwrappedDomContainer,this.isRoot,false);this.wrappedElementContainer=new GroupElementContainer(this,wrappedDomContainer,this.isRoot,true);this.elementContainers=[this.unwrappedElementContainer,this.wrappedElementContainer];}else{var mainDomContainer=this.isRoot?logMainContainer:this.getMainDomContainer();this.mainElementContainer=new GroupElementContainer(this,mainDomContainer,this.isRoot,false);this.elementContainers=[this.mainElementContainer];}","this.rendered=true;},toggleExpanded:function(){this.expanded=!this.expanded;for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].toggleExpanded();}},expand:function(){if(!this.expanded){this.toggleExpanded();}},accept:function(visitor){visitor.visitGroup(this);},reverseChildren:function(){if(this.rendered){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].reverseChildren();}}},update:function(){var previouslyExpandable=this.expandable;this.expandable=(this.children.length!==0);if(this.expandable!==previouslyExpandable){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].update();}}},flatten:function(){var visitor=new GroupFlattener();this.accept(visitor);return visitor.logEntriesAndSeparators;},removeChild:function(child,doUpdate){array_remove(this.children,child);child.group=null;if(doUpdate){this.update();}},remove:function(doUpdate,removeFromGroup){for(var i=0,len=this.children.length;i<len;i++){this.children[i].remove(false,false);}","this.children=[];this.update();if(this===currentGroup){currentGroup=this.group;}","this.doRemove(doUpdate,removeFromGroup);},serialize:function(items){items.push([LogItem.serializedItemKeys.GROUP_START,this.name]);for(var i=0,len=this.children.length;i<len;i++){this.children[i].serialize(items);}","if(this!==currentGroup){items.push([LogItem.serializedItemKeys.GROUP_END]);}},clear:function(){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].clear();}}});function LogEntryElementContainer(){}",'LogEntryElementContainer.prototype=new LogItemContainerElement();copyProperties(LogEntryElementContainer.prototype,{remove:function(){this.doRemove();},doRemove:function(){this.mainDiv.parentNode.removeChild(this.mainDiv);this.mainDiv=null;this.contentElement=null;this.containerDomNode=null;},setContent:function(content,wrappedContent){if(content===this.formattedMessage){this.contentElement.innerHTML="";this.contentElement.appendChild(document.createTextNode(this.formattedMessage));}else{this.contentElement.innerHTML=content;}},setSearchMatch:function(isMatch){var oldCssClass=isMatch?"searchnonmatch":"searchmatch";var newCssClass=isMatch?"searchmatch":"searchnonmatch";replaceClass(this.mainDiv,newCssClass,oldCssClass);},clearSearch:function(){removeClass(this.mainDiv,"searchmatch");removeClass(this.mainDiv,"searchnonmatch");}});function LogEntryWrappedElementContainer(logEntry,containerDomNode){this.logEntry=logEntry;this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.appendChild(document.createTextNode(this.logEntry.formattedMessage));this.mainDiv.className="logentry wrapped "+this.logEntry.level;this.contentElement=this.mainDiv;}','LogEntryWrappedElementContainer.prototype=new LogEntryElementContainer();LogEntryWrappedElementContainer.prototype.setContent=function(content,wrappedContent){if(content===this.formattedMessage){this.contentElement.innerHTML="";this.contentElement.appendChild(document.createTextNode(this.formattedMessage));}else{this.contentElement.innerHTML=wrappedContent;}};function LogEntryUnwrappedElementContainer(logEntry,containerDomNode){this.logEntry=logEntry;this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.className="logentry unwrapped "+this.logEntry.level;this.pre=this.mainDiv.appendChild(document.createElement("pre"));this.pre.appendChild(document.createTextNode(this.logEntry.formattedMessage));this.pre.className="unwrapped";this.contentElement=this.pre;}','LogEntryUnwrappedElementContainer.prototype=new LogEntryElementContainer();LogEntryUnwrappedElementContainer.prototype.remove=function(){this.doRemove();this.pre=null;};function LogEntryMainElementContainer(logEntry,containerDomNode){this.logEntry=logEntry;this.containerDomNode=containerDomNode;this.mainDiv=document.createElement("div");this.mainDiv.className="logentry nonielogentry "+this.logEntry.level;this.contentElement=this.mainDiv.appendChild(document.createElement("span"));this.contentElement.appendChild(document.createTextNode(this.logEntry.formattedMessage));}',"LogEntryMainElementContainer.prototype=new LogEntryElementContainer();function LogEntry(level,formattedMessage){this.level=level;this.formattedMessage=formattedMessage;this.rendered=false;}",'LogEntry.prototype=new LogItem();copyProperties(LogEntry.prototype,{render:function(){var logEntry=this;var containerDomNode=this.group.contentDiv;if(isIe){this.formattedMessage=this.formattedMessage.replace(/\\r\\n/g,"\\r");this.unwrappedElementContainer=new LogEntryUnwrappedElementContainer(this,this.getUnwrappedDomContainer());this.wrappedElementContainer=new LogEntryWrappedElementContainer(this,this.getWrappedDomContainer());this.elementContainers=[this.unwrappedElementContainer,this.wrappedElementContainer];}else{this.mainElementContainer=new LogEntryMainElementContainer(this,this.getMainDomContainer());this.elementContainers=[this.mainElementContainer];}','this.content=this.formattedMessage;this.rendered=true;},setContent:function(content,wrappedContent){if(content!=this.content){if(isIe&&(content!==this.formattedMessage)){content=content.replace(/\\r\\n/g,"\\r");}',"for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].setContent(content,wrappedContent);}",'this.content=content;}},getSearchMatches:function(){var matches=[];var i,len;if(isIe){var unwrappedEls=getElementsByClass(this.unwrappedElementContainer.mainDiv,"searchterm","span");var wrappedEls=getElementsByClass(this.wrappedElementContainer.mainDiv,"searchterm","span");for(i=0,len=unwrappedEls.length;i<len;i++){matches[i]=new Match(this.level,null,unwrappedEls[i],wrappedEls[i]);}}else{var els=getElementsByClass(this.mainElementContainer.mainDiv,"searchterm","span");for(i=0,len=els.length;i<len;i++){matches[i]=new Match(this.level,els[i]);}}',"return matches;},setSearchMatch:function(isMatch){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].setSearchMatch(isMatch);}},clearSearch:function(){for(var i=0,len=this.elementContainers.length;i<len;i++){this.elementContainers[i].clearSearch();}},accept:function(visitor){visitor.visitLogEntry(this);},serialize:function(items){items.push([LogItem.serializedItemKeys.LOG_ENTRY,this.level,this.formattedMessage]);}});function LogItemVisitor(){}","LogItemVisitor.prototype={visit:function(logItem){},visitParent:function(logItem){if(logItem.group){logItem.group.accept(this);}},visitChildren:function(logItem){for(var i=0,len=logItem.children.length;i<len;i++){logItem.children[i].accept(this);}},visitLogEntry:function(logEntry){this.visit(logEntry);},visitSeparator:function(separator){this.visit(separator);},visitGroup:function(group){this.visit(group);}};function GroupFlattener(){this.logEntriesAndSeparators=[];}",'GroupFlattener.prototype=new LogItemVisitor();GroupFlattener.prototype.visitGroup=function(group){this.visitChildren(group);};GroupFlattener.prototype.visitLogEntry=function(logEntry){this.logEntriesAndSeparators.push(logEntry);};GroupFlattener.prototype.visitSeparator=function(separator){this.logEntriesAndSeparators.push(separator);};window.onload=function(){if(location.search){var queryBits=unescape(location.search).substr(1).split("&"),nameValueBits;for(var i=0,len=queryBits.length;i<len;i++){nameValueBits=queryBits[i].split("=");if(nameValueBits[0]=="log4javascript_domain"){document.domain=nameValueBits[1];break;}}}','logMainContainer=$("log");if(isIePre7){addClass(logMainContainer,"oldIe");}','rootGroup=new Group("root",true);rootGroup.render();currentGroup=rootGroup;setCommandInputWidth();setLogContainerHeight();toggleLoggingEnabled();toggleSearchEnabled();toggleSearchFilter();toggleSearchHighlight();applyFilters();checkAllLevels();toggleWrap();toggleNewestAtTop();toggleScrollToLatest();renderQueuedLogItems();loaded=true;$("command").value="";$("command").autocomplete="off";$("command").onkeydown=function(evt){evt=getEvent(evt);if(evt.keyCode==10||evt.keyCode==13){evalCommandLine();stopPropagation(evt);}else if(evt.keyCode==27){this.value="";this.focus();}else if(evt.keyCode==38&&commandHistory.length>0){currentCommandIndex=Math.max(0,currentCommandIndex-1);this.value=commandHistory[currentCommandIndex];moveCaretToEnd(this);}else if(evt.keyCode==40&&commandHistory.length>0){currentCommandIndex=Math.min(commandHistory.length-1,currentCommandIndex+1);this.value=commandHistory[currentCommandIndex];moveCaretToEnd(this);}};$("command").onkeypress=function(evt){evt=getEvent(evt);if(evt.keyCode==38&&commandHistory.length>0&&evt.preventDefault){evt.preventDefault();}};$("command").onkeyup=function(evt){evt=getEvent(evt);if(evt.keyCode==27&&evt.preventDefault){evt.preventDefault();this.focus();}};document.onkeydown=function keyEventHandler(evt){evt=getEvent(evt);switch(evt.keyCode){case 69:if(evt.shiftKey&&(evt.ctrlKey||evt.metaKey)){evalLastCommand();cancelKeyEvent(evt);return false;}',"break;case 75:if(evt.shiftKey&&(evt.ctrlKey||evt.metaKey)){focusSearch();cancelKeyEvent(evt);return false;}","break;case 40:case 76:if(evt.shiftKey&&(evt.ctrlKey||evt.metaKey)){focusCommandLine();cancelKeyEvent(evt);return false;}","break;}};setTimeout(setLogContainerHeight,20);setShowCommandLine(showCommandLine);doSearch();};window.onunload=function(){if(mainWindowExists()){appender.unload();}",'appender=null;};function toggleLoggingEnabled(){setLoggingEnabled($("enableLogging").checked);}',"function setLoggingEnabled(enable){loggingEnabled=enable;}","var appender=null;function setAppender(appenderParam){appender=appenderParam;}",'function setShowCloseButton(showCloseButton){$("closeButton").style.display=showCloseButton?"inline":"none";}','function setShowHideButton(showHideButton){$("hideButton").style.display=showHideButton?"inline":"none";}',"var newestAtTop=false;function LogItemContentReverser(){}","LogItemContentReverser.prototype=new LogItemVisitor();LogItemContentReverser.prototype.visitGroup=function(group){group.reverseChildren();this.visitChildren(group);};function setNewestAtTop(isNewestAtTop){var oldNewestAtTop=newestAtTop;var i,iLen,j,jLen;newestAtTop=Boolean(isNewestAtTop);if(oldNewestAtTop!=newestAtTop){var visitor=new LogItemContentReverser();rootGroup.accept(visitor);if(currentSearch){var currentMatch=currentSearch.matches[currentMatchIndex];var matchIndex=0;var matches=[];var actOnLogEntry=function(logEntry){var logEntryMatches=logEntry.getSearchMatches();for(j=0,jLen=logEntryMatches.length;j<jLen;j++){matches[matchIndex]=logEntryMatches[j];if(currentMatch&&logEntryMatches[j].equals(currentMatch)){currentMatchIndex=matchIndex;}","matchIndex++;}};if(newestAtTop){for(i=logEntries.length-1;i>=0;i--){actOnLogEntry(logEntries[i]);}}else{for(i=0,iLen=logEntries.length;i<iLen;i++){actOnLogEntry(logEntries[i]);}}","currentSearch.matches=matches;if(currentMatch){currentMatch.setCurrent();}}else if(scrollToLatest){doScrollToLatest();}}",'$("newestAtTop").checked=isNewestAtTop;}','function toggleNewestAtTop(){var isNewestAtTop=$("newestAtTop").checked;setNewestAtTop(isNewestAtTop);}',"var scrollToLatest=true;function setScrollToLatest(isScrollToLatest){scrollToLatest=isScrollToLatest;if(scrollToLatest){doScrollToLatest();}",'$("scrollToLatest").checked=isScrollToLatest;}','function toggleScrollToLatest(){var isScrollToLatest=$("scrollToLatest").checked;setScrollToLatest(isScrollToLatest);}','function doScrollToLatest(){var l=logMainContainer;if(typeof l.scrollTop!="undefined"){if(newestAtTop){l.scrollTop=0;}else{var latestLogEntry=l.lastChild;if(latestLogEntry){l.scrollTop=l.scrollHeight;}}}}',"var closeIfOpenerCloses=true;function setCloseIfOpenerCloses(isCloseIfOpenerCloses){closeIfOpenerCloses=isCloseIfOpenerCloses;}","var maxMessages=null;function setMaxMessages(max){maxMessages=max;pruneLogEntries();}",'var showCommandLine=false;function setShowCommandLine(isShowCommandLine){showCommandLine=isShowCommandLine;if(loaded){$("commandLine").style.display=showCommandLine?"block":"none";setCommandInputWidth();setLogContainerHeight();}}','function focusCommandLine(){if(loaded){$("command").focus();}}','function focusSearch(){if(loaded){$("searchBox").focus();}}',"function getLogItems(){var items=[];for(var i=0,len=logItems.length;i<len;i++){logItems[i].serialize(items);}","return items;}","function setLogItems(items){var loggingReallyEnabled=loggingEnabled;loggingEnabled=true;for(var i=0,len=items.length;i<len;i++){switch(items[i][0]){case LogItem.serializedItemKeys.LOG_ENTRY:log(items[i][1],items[i][2]);break;case LogItem.serializedItemKeys.GROUP_START:group(items[i][1]);break;case LogItem.serializedItemKeys.GROUP_END:groupEnd();break;}}","loggingEnabled=loggingReallyEnabled;}","function log(logLevel,formattedMessage){if(loggingEnabled){var logEntry=new LogEntry(logLevel,formattedMessage);logEntries.push(logEntry);logEntriesAndSeparators.push(logEntry);logItems.push(logEntry);currentGroup.addChild(logEntry);if(loaded){if(logQueuedEventsTimer!==null){clearTimeout(logQueuedEventsTimer);}","logQueuedEventsTimer=setTimeout(renderQueuedLogItems,renderDelay);unrenderedLogItemsExist=true;}}}","function renderQueuedLogItems(){logQueuedEventsTimer=null;var pruned=pruneLogEntries();var initiallyHasMatches=currentSearch?currentSearch.hasMatches():false;for(var i=0,len=logItems.length;i<len;i++){if(!logItems[i].rendered){logItems[i].render();logItems[i].appendToLog();if(currentSearch&&(logItems[i]instanceof LogEntry)){currentSearch.applyTo(logItems[i]);}}}","if(currentSearch){if(pruned){if(currentSearch.hasVisibleMatches()){if(currentMatchIndex===null){setCurrentMatchIndex(0);}","displayMatches();}else{displayNoMatches();}}else if(!initiallyHasMatches&&currentSearch.hasVisibleMatches()){setCurrentMatchIndex(0);displayMatches();}}","if(scrollToLatest){doScrollToLatest();}","unrenderedLogItemsExist=false;}","function pruneLogEntries(){if((maxMessages!==null)&&(logEntriesAndSeparators.length>maxMessages)){var numberToDelete=logEntriesAndSeparators.length-maxMessages;var prunedLogEntries=logEntriesAndSeparators.slice(0,numberToDelete);if(currentSearch){currentSearch.removeMatches(prunedLogEntries);}","var group;for(var i=0;i<numberToDelete;i++){group=logEntriesAndSeparators[i].group;array_remove(logItems,logEntriesAndSeparators[i]);array_remove(logEntries,logEntriesAndSeparators[i]);logEntriesAndSeparators[i].remove(true,true);if(group.children.length===0&&group!==currentGroup&&group!==rootGroup){array_remove(logItems,group);group.remove(true,true);}}","logEntriesAndSeparators=array_removeFromStart(logEntriesAndSeparators,numberToDelete);return true;}","return false;}",'function group(name,startExpanded){if(loggingEnabled){initiallyExpanded=(typeof startExpanded==="undefined")?true:Boolean(startExpanded);var newGroup=new Group(name,false,initiallyExpanded);currentGroup.addChild(newGroup);currentGroup=newGroup;logItems.push(newGroup);if(loaded){if(logQueuedEventsTimer!==null){clearTimeout(logQueuedEventsTimer);}',"logQueuedEventsTimer=setTimeout(renderQueuedLogItems,renderDelay);unrenderedLogItemsExist=true;}}}","function groupEnd(){currentGroup=(currentGroup===rootGroup)?rootGroup:currentGroup.group;}","function mainPageReloaded(){currentGroup=rootGroup;var separator=new Separator();logEntriesAndSeparators.push(separator);logItems.push(separator);currentGroup.addChild(separator);}","function closeWindow(){if(appender&&mainWindowExists()){appender.close(true);}else{window.close();}}","function hide(){if(appender&&mainWindowExists()){appender.hide();}}",'var mainWindow=window;var windowId="log4javascriptConsoleWindow_"+new Date().getTime()+"_"+(""+Math.random()).substr(2);function setMainWindow(win){mainWindow=win;mainWindow[windowId]=window;if(opener&&closeIfOpenerCloses){pollOpener();}}',"function pollOpener(){if(closeIfOpenerCloses){if(mainWindowExists()){setTimeout(pollOpener,500);}else{closeWindow();}}}","function mainWindowExists(){try{return(mainWindow&&!mainWindow.closed&&mainWindow[windowId]==window);}catch(ex){}","return false;}",'var logLevels=["TRACE","DEBUG","INFO","WARN","ERROR","FATAL"];function getCheckBox(logLevel){return $("switch_"+logLevel);}','function getIeWrappedLogContainer(){return $("log_wrapped");}','function getIeUnwrappedLogContainer(){return $("log_unwrapped");}',"function applyFilters(){for(var i=0;i<logLevels.length;i++){if(getCheckBox(logLevels[i]).checked){addClass(logMainContainer,logLevels[i]);}else{removeClass(logMainContainer,logLevels[i]);}}","updateSearchFromFilters();}",'function toggleAllLevels(){var turnOn=$("switch_ALL").checked;for(var i=0;i<logLevels.length;i++){getCheckBox(logLevels[i]).checked=turnOn;if(turnOn){addClass(logMainContainer,logLevels[i]);}else{removeClass(logMainContainer,logLevels[i]);}}}','function checkAllLevels(){for(var i=0;i<logLevels.length;i++){if(!getCheckBox(logLevels[i]).checked){getCheckBox("ALL").checked=false;return;}}','getCheckBox("ALL").checked=true;}',"function clearLog(){rootGroup.clear();currentGroup=rootGroup;logEntries=[];logItems=[];logEntriesAndSeparators=[];doSearch();}",'function toggleWrap(){var enable=$("wrap").checked;if(enable){addClass(logMainContainer,"wrap");}else{removeClass(logMainContainer,"wrap");}',"refreshCurrentMatch();}","var searchTimer=null;function scheduleSearch(){try{clearTimeout(searchTimer);}catch(ex){}","searchTimer=setTimeout(doSearch,500);}","function Search(searchTerm,isRegex,searchRegex,isCaseSensitive){this.searchTerm=searchTerm;this.isRegex=isRegex;this.searchRegex=searchRegex;this.isCaseSensitive=isCaseSensitive;this.matches=[];}","Search.prototype={hasMatches:function(){return this.matches.length>0;},hasVisibleMatches:function(){if(this.hasMatches()){for(var i=0;i<this.matches.length;i++){if(this.matches[i].isVisible()){return true;}}}","return false;},match:function(logEntry){var entryText=String(logEntry.formattedMessage);var matchesSearch=false;if(this.isRegex){matchesSearch=this.searchRegex.test(entryText);}else if(this.isCaseSensitive){matchesSearch=(entryText.indexOf(this.searchTerm)>-1);}else{matchesSearch=(entryText.toLowerCase().indexOf(this.searchTerm.toLowerCase())>-1);}","return matchesSearch;},getNextVisibleMatchIndex:function(){for(var i=currentMatchIndex+1;i<this.matches.length;i++){if(this.matches[i].isVisible()){return i;}}","for(i=0;i<=currentMatchIndex;i++){if(this.matches[i].isVisible()){return i;}}","return-1;},getPreviousVisibleMatchIndex:function(){for(var i=currentMatchIndex-1;i>=0;i--){if(this.matches[i].isVisible()){return i;}}","for(var i=this.matches.length-1;i>=currentMatchIndex;i--){if(this.matches[i].isVisible()){return i;}}",'return-1;},applyTo:function(logEntry){var doesMatch=this.match(logEntry);if(doesMatch){logEntry.group.expand();logEntry.setSearchMatch(true);var logEntryContent;var wrappedLogEntryContent;var searchTermReplacementStartTag="<span class=\\"searchterm\\">";var searchTermReplacementEndTag="<"+"/span>";var preTagName=isIe?"pre":"span";var preStartTag="<"+preTagName+" class=\\"pre\\">";var preEndTag="<"+"/"+preTagName+">";var startIndex=0;var searchIndex,matchedText,textBeforeMatch;if(this.isRegex){var flags=this.isCaseSensitive?"g":"gi";var capturingRegex=new RegExp("("+this.searchRegex.source+")",flags);var rnd=(""+Math.random()).substr(2);var startToken="%%s"+rnd+"%%";var endToken="%%e"+rnd+"%%";logEntryContent=logEntry.formattedMessage.replace(capturingRegex,startToken+"$1"+endToken);logEntryContent=escapeHtml(logEntryContent);var result;var searchString=logEntryContent;logEntryContent="";wrappedLogEntryContent="";while((searchIndex=searchString.indexOf(startToken,startIndex))>-1){var endTokenIndex=searchString.indexOf(endToken,searchIndex);matchedText=searchString.substring(searchIndex+startToken.length,endTokenIndex);textBeforeMatch=searchString.substring(startIndex,searchIndex);logEntryContent+=preStartTag+textBeforeMatch+preEndTag;logEntryContent+=searchTermReplacementStartTag+preStartTag+matchedText+',"preEndTag+searchTermReplacementEndTag;if(isIe){wrappedLogEntryContent+=textBeforeMatch+searchTermReplacementStartTag+","matchedText+searchTermReplacementEndTag;}","startIndex=endTokenIndex+endToken.length;}",'logEntryContent+=preStartTag+searchString.substr(startIndex)+preEndTag;if(isIe){wrappedLogEntryContent+=searchString.substr(startIndex);}}else{logEntryContent="";wrappedLogEntryContent="";var searchTermReplacementLength=searchTermReplacementStartTag.length+',"this.searchTerm.length+searchTermReplacementEndTag.length;var searchTermLength=this.searchTerm.length;var searchTermLowerCase=this.searchTerm.toLowerCase();var logTextLowerCase=logEntry.formattedMessage.toLowerCase();while((searchIndex=logTextLowerCase.indexOf(searchTermLowerCase,startIndex))>-1){matchedText=escapeHtml(logEntry.formattedMessage.substr(searchIndex,this.searchTerm.length));textBeforeMatch=escapeHtml(logEntry.formattedMessage.substring(startIndex,searchIndex));var searchTermReplacement=searchTermReplacementStartTag+","preStartTag+matchedText+preEndTag+searchTermReplacementEndTag;logEntryContent+=preStartTag+textBeforeMatch+preEndTag+searchTermReplacement;if(isIe){wrappedLogEntryContent+=textBeforeMatch+searchTermReplacementStartTag+","matchedText+searchTermReplacementEndTag;}","startIndex=searchIndex+searchTermLength;}","var textAfterLastMatch=escapeHtml(logEntry.formattedMessage.substr(startIndex));logEntryContent+=preStartTag+textAfterLastMatch+preEndTag;if(isIe){wrappedLogEntryContent+=textAfterLastMatch;}}","logEntry.setContent(logEntryContent,wrappedLogEntryContent);var logEntryMatches=logEntry.getSearchMatches();this.matches=this.matches.concat(logEntryMatches);}else{logEntry.setSearchMatch(false);logEntry.setContent(logEntry.formattedMessage,logEntry.formattedMessage);}","return doesMatch;},removeMatches:function(logEntries){var matchesToRemoveCount=0;var currentMatchRemoved=false;var matchesToRemove=[];var i,iLen,j,jLen;for(i=0,iLen=this.matches.length;i<iLen;i++){for(j=0,jLen=logEntries.length;j<jLen;j++){if(this.matches[i].belongsTo(logEntries[j])){matchesToRemove.push(this.matches[i]);if(i===currentMatchIndex){currentMatchRemoved=true;}}}}","var newMatch=currentMatchRemoved?null:this.matches[currentMatchIndex];if(currentMatchRemoved){for(i=currentMatchIndex,iLen=this.matches.length;i<iLen;i++){if(this.matches[i].isVisible()&&!array_contains(matchesToRemove,this.matches[i])){newMatch=this.matches[i];break;}}}","for(i=0,iLen=matchesToRemove.length;i<iLen;i++){array_remove(this.matches,matchesToRemove[i]);matchesToRemove[i].remove();}","if(this.hasVisibleMatches()){if(newMatch===null){setCurrentMatchIndex(0);}else{var newMatchIndex=0;for(i=0,iLen=this.matches.length;i<iLen;i++){if(newMatch===this.matches[i]){newMatchIndex=i;break;}}","setCurrentMatchIndex(newMatchIndex);}}else{currentMatchIndex=null;displayNoMatches();}}};function getPageOffsetTop(el,container){var currentEl=el;var y=0;while(currentEl&&currentEl!=container){y+=currentEl.offsetTop;currentEl=currentEl.offsetParent;}","return y;}",'function scrollIntoView(el){var logContainer=logMainContainer;if(!$("wrap").checked){var logContainerLeft=logContainer.scrollLeft;var logContainerRight=logContainerLeft+logContainer.offsetWidth;var elLeft=el.offsetLeft;var elRight=elLeft+el.offsetWidth;if(elLeft<logContainerLeft||elRight>logContainerRight){logContainer.scrollLeft=elLeft-(logContainer.offsetWidth-el.offsetWidth)/2;}}',"var logContainerTop=logContainer.scrollTop;var logContainerBottom=logContainerTop+logContainer.offsetHeight;var elTop=getPageOffsetTop(el)-getToolBarsHeight();var elBottom=elTop+el.offsetHeight;if(elTop<logContainerTop||elBottom>logContainerBottom){logContainer.scrollTop=elTop-(logContainer.offsetHeight-el.offsetHeight)/2;}}","function Match(logEntryLevel,spanInMainDiv,spanInUnwrappedPre,spanInWrappedDiv){this.logEntryLevel=logEntryLevel;this.spanInMainDiv=spanInMainDiv;if(isIe){this.spanInUnwrappedPre=spanInUnwrappedPre;this.spanInWrappedDiv=spanInWrappedDiv;}","this.mainSpan=isIe?spanInUnwrappedPre:spanInMainDiv;}",'Match.prototype={equals:function(match){return this.mainSpan===match.mainSpan;},setCurrent:function(){if(isIe){addClass(this.spanInUnwrappedPre,"currentmatch");addClass(this.spanInWrappedDiv,"currentmatch");var elementToScroll=$("wrap").checked?this.spanInWrappedDiv:this.spanInUnwrappedPre;scrollIntoView(elementToScroll);}else{addClass(this.spanInMainDiv,"currentmatch");scrollIntoView(this.spanInMainDiv);}},belongsTo:function(logEntry){if(isIe){return isDescendant(this.spanInUnwrappedPre,logEntry.unwrappedPre);}else{return isDescendant(this.spanInMainDiv,logEntry.mainDiv);}},setNotCurrent:function(){if(isIe){removeClass(this.spanInUnwrappedPre,"currentmatch");removeClass(this.spanInWrappedDiv,"currentmatch");}else{removeClass(this.spanInMainDiv,"currentmatch");}},isOrphan:function(){return isOrphan(this.mainSpan);},isVisible:function(){return getCheckBox(this.logEntryLevel).checked;},remove:function(){if(isIe){this.spanInUnwrappedPre=null;this.spanInWrappedDiv=null;}else{this.spanInMainDiv=null;}}};var currentSearch=null;var currentMatchIndex=null;function doSearch(){var searchBox=$("searchBox");var searchTerm=searchBox.value;var isRegex=$("searchRegex").checked;var isCaseSensitive=$("searchCaseSensitive").checked;var i;if(searchTerm===""){$("searchReset").disabled=true;$("searchNav").style.display="none";removeClass(document.body,"searching");removeClass(searchBox,"hasmatches");removeClass(searchBox,"nomatches");for(i=0;i<logEntries.length;i++){logEntries[i].clearSearch();logEntries[i].setContent(logEntries[i].formattedMessage,logEntries[i].formattedMessage);}','currentSearch=null;setLogContainerHeight();}else{$("searchReset").disabled=false;$("searchNav").style.display="block";var searchRegex;var regexValid;if(isRegex){try{searchRegex=isCaseSensitive?new RegExp(searchTerm,"g"):new RegExp(searchTerm,"gi");regexValid=true;replaceClass(searchBox,"validregex","invalidregex");searchBox.title="Valid regex";}catch(ex){regexValid=false;replaceClass(searchBox,"invalidregex","validregex");searchBox.title="Invalid regex: "+(ex.message?ex.message:(ex.description?ex.description:"unknown error"));return;}}else{searchBox.title="";removeClass(searchBox,"validregex");removeClass(searchBox,"invalidregex");}','addClass(document.body,"searching");currentSearch=new Search(searchTerm,isRegex,searchRegex,isCaseSensitive);for(i=0;i<logEntries.length;i++){currentSearch.applyTo(logEntries[i]);}',"setLogContainerHeight();if(currentSearch.hasVisibleMatches()){setCurrentMatchIndex(0);displayMatches();}else{displayNoMatches();}}}","function updateSearchFromFilters(){if(currentSearch){if(currentSearch.hasMatches()){if(currentMatchIndex===null){currentMatchIndex=0;}","var currentMatch=currentSearch.matches[currentMatchIndex];if(currentMatch.isVisible()){displayMatches();setCurrentMatchIndex(currentMatchIndex);}else{currentMatch.setNotCurrent();var nextVisibleMatchIndex=currentSearch.getNextVisibleMatchIndex();if(nextVisibleMatchIndex>-1){setCurrentMatchIndex(nextVisibleMatchIndex);displayMatches();}else{displayNoMatches();}}}else{displayNoMatches();}}}","function refreshCurrentMatch(){if(currentSearch&&currentSearch.hasVisibleMatches()){setCurrentMatchIndex(currentMatchIndex);}}",'function displayMatches(){replaceClass($("searchBox"),"hasmatches","nomatches");$("searchBox").title=""+currentSearch.matches.length+" matches found";$("searchNav").style.display="block";setLogContainerHeight();}','function displayNoMatches(){replaceClass($("searchBox"),"nomatches","hasmatches");$("searchBox").title="No matches found";$("searchNav").style.display="none";setLogContainerHeight();}','function toggleSearchEnabled(enable){enable=(typeof enable=="undefined")?!$("searchDisable").checked:enable;$("searchBox").disabled=!enable;$("searchReset").disabled=!enable;$("searchRegex").disabled=!enable;$("searchNext").disabled=!enable;$("searchPrevious").disabled=!enable;$("searchCaseSensitive").disabled=!enable;$("searchNav").style.display=(enable&&($("searchBox").value!=="")&&currentSearch&&currentSearch.hasVisibleMatches())?"block":"none";if(enable){removeClass($("search"),"greyedout");addClass(document.body,"searching");if($("searchHighlight").checked){addClass(logMainContainer,"searchhighlight");}else{removeClass(logMainContainer,"searchhighlight");}','if($("searchFilter").checked){addClass(logMainContainer,"searchfilter");}else{removeClass(logMainContainer,"searchfilter");}','$("searchDisable").checked=!enable;}else{addClass($("search"),"greyedout");removeClass(document.body,"searching");removeClass(logMainContainer,"searchhighlight");removeClass(logMainContainer,"searchfilter");}',"setLogContainerHeight();}",'function toggleSearchFilter(){var enable=$("searchFilter").checked;if(enable){addClass(logMainContainer,"searchfilter");}else{removeClass(logMainContainer,"searchfilter");}',"refreshCurrentMatch();}",'function toggleSearchHighlight(){var enable=$("searchHighlight").checked;if(enable){addClass(logMainContainer,"searchhighlight");}else{removeClass(logMainContainer,"searchhighlight");}}','function clearSearch(){$("searchBox").value="";doSearch();}','function searchNext(){if(currentSearch!==null&&currentMatchIndex!==null){currentSearch.matches[currentMatchIndex].setNotCurrent();var nextMatchIndex=currentSearch.getNextVisibleMatchIndex();if(nextMatchIndex>currentMatchIndex||confirm("Reached the end of the page. Start from the top?")){setCurrentMatchIndex(nextMatchIndex);}}}','function searchPrevious(){if(currentSearch!==null&&currentMatchIndex!==null){currentSearch.matches[currentMatchIndex].setNotCurrent();var previousMatchIndex=currentSearch.getPreviousVisibleMatchIndex();if(previousMatchIndex<currentMatchIndex||confirm("Reached the start of the page. Continue from the bottom?")){setCurrentMatchIndex(previousMatchIndex);}}}',"function setCurrentMatchIndex(index){currentMatchIndex=index;currentSearch.matches[currentMatchIndex].setCurrent();}",'function addClass(el,cssClass){if(!hasClass(el,cssClass)){if(el.className){el.className+=" "+cssClass;}else{el.className=cssClass;}}}','function hasClass(el,cssClass){if(el.className){var classNames=el.className.split(" ");return array_contains(classNames,cssClass);}',"return false;}",'function removeClass(el,cssClass){if(hasClass(el,cssClass)){var existingClasses=el.className.split(" ");var newClasses=[];for(var i=0,len=existingClasses.length;i<len;i++){if(existingClasses[i]!=cssClass){newClasses[newClasses.length]=existingClasses[i];}}','el.className=newClasses.join(" ");}}',"function replaceClass(el,newCssClass,oldCssClass){removeClass(el,oldCssClass);addClass(el,newCssClass);}","function getElementsByClass(el,cssClass,tagName){var elements=el.getElementsByTagName(tagName);var matches=[];for(var i=0,len=elements.length;i<len;i++){if(hasClass(elements[i],cssClass)){matches.push(elements[i]);}}","return matches;}","function $(id){return document.getElementById(id);}","function isDescendant(node,ancestorNode){while(node!=null){if(node===ancestorNode){return true;}","node=node.parentNode;}","return false;}","function isOrphan(node){var currentNode=node;while(currentNode){if(currentNode==document.body){return false;}","currentNode=currentNode.parentNode;}","return true;}",'function escapeHtml(str){return str.replace(/&/g,"&amp;").replace(/[<]/g,"&lt;").replace(/>/g,"&gt;");}',"function getWindowWidth(){if(window.innerWidth){return window.innerWidth;}else if(document.documentElement&&document.documentElement.clientWidth){return document.documentElement.clientWidth;}else if(document.body){return document.body.clientWidth;}","return 0;}","function getWindowHeight(){if(window.innerHeight){return window.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight;}else if(document.body){return document.body.clientHeight;}","return 0;}",'function getToolBarsHeight(){return $("switches").offsetHeight;}','function getChromeHeight(){var height=getToolBarsHeight();if(showCommandLine){height+=$("commandLine").offsetHeight;}',"return height;}",'function setLogContainerHeight(){if(logMainContainer){var windowHeight=getWindowHeight();$("body").style.height=getWindowHeight()+"px";logMainContainer.style.height=""+','Math.max(0,windowHeight-getChromeHeight())+"px";}}','function setCommandInputWidth(){if(showCommandLine){$("command").style.width=""+Math.max(0,$("commandLineContainer").offsetWidth-','($("evaluateButton").offsetWidth+13))+"px";}}',"window.onresize=function(){setCommandInputWidth();setLogContainerHeight();};if(!Array.prototype.push){Array.prototype.push=function(){for(var i=0,len=arguments.length;i<len;i++){this[this.length]=arguments[i];}","return this.length;};}","if(!Array.prototype.pop){Array.prototype.pop=function(){if(this.length>0){var val=this[this.length-1];this.length=this.length-1;return val;}};}","if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length>0){var firstItem=this[0];for(var i=0,len=this.length-1;i<len;i++){this[i]=this[i+1];}","this.length=this.length-1;return firstItem;}};}","if(!Array.prototype.splice){Array.prototype.splice=function(startIndex,deleteCount){var itemsAfterDeleted=this.slice(startIndex+deleteCount);var itemsDeleted=this.slice(startIndex,startIndex+deleteCount);this.length=startIndex;var argumentsArray=[];for(var i=0,len=arguments.length;i<len;i++){argumentsArray[i]=arguments[i];}","var itemsToAppend=(argumentsArray.length>2)?itemsAfterDeleted=argumentsArray.slice(2).concat(itemsAfterDeleted):itemsAfterDeleted;for(i=0,len=itemsToAppend.length;i<len;i++){this.push(itemsToAppend[i]);}","return itemsDeleted;};}","function array_remove(arr,val){var index=-1;for(var i=0,len=arr.length;i<len;i++){if(arr[i]===val){index=i;break;}}","if(index>=0){arr.splice(index,1);return index;}else{return false;}}","function array_removeFromStart(array,numberToRemove){if(Array.prototype.splice){array.splice(0,numberToRemove);}else{for(var i=numberToRemove,len=array.length;i<len;i++){array[i-numberToRemove]=array[i];}","array.length=array.length-numberToRemove;}","return array;}","function array_contains(arr,val){for(var i=0,len=arr.length;i<len;i++){if(arr[i]==val){return true;}}","return false;}","function getErrorMessage(ex){if(ex.message){return ex.message;}else if(ex.description){return ex.description;}",'return""+ex;}',"function moveCaretToEnd(input){if(input.setSelectionRange){input.focus();var length=input.value.length;input.setSelectionRange(length,length);}else if(input.createTextRange){var range=input.createTextRange();range.collapse(false);range.select();}","input.focus();}",'function stopPropagation(evt){if(evt.stopPropagation){evt.stopPropagation();}else if(typeof evt.cancelBubble!="undefined"){evt.cancelBubble=true;}}',"function getEvent(evt){return evt?evt:event;}","function getTarget(evt){return evt.target?evt.target:evt.srcElement;}",'function getRelatedTarget(evt){if(evt.relatedTarget){return evt.relatedTarget;}else if(evt.srcElement){switch(evt.type){case"mouseover":return evt.fromElement;case"mouseout":return evt.toElement;default:return evt.srcElement;}}}',"function cancelKeyEvent(evt){evt.returnValue=false;stopPropagation(evt);}",'function evalCommandLine(){var expr=$("command").value;evalCommand(expr);$("command").value="";}',"function evalLastCommand(){if(lastCommand!=null){evalCommand(lastCommand);}}",'var lastCommand=null;var commandHistory=[];var currentCommandIndex=0;function evalCommand(expr){if(appender){appender.evalCommandAndAppend(expr);}else{var prefix=">>> "+expr+"\\r\\n";try{log("INFO",prefix+eval(expr));}catch(ex){log("ERROR",prefix+"Error: "+getErrorMessage(ex));}}',"if(expr!=commandHistory[commandHistory.length-1]){commandHistory.push(expr);if(appender){appender.storeCommandHistory(commandHistory);}}","currentCommandIndex=(expr==commandHistory[currentCommandIndex])?currentCommandIndex+1:commandHistory.length;lastCommand=expr;}","//]]>","<\/script>",'<style type="text/css">',"body{background-color:white;color:black;padding:0;margin:0;font-family:tahoma,verdana,arial,helvetica,sans-serif;overflow:hidden}div#switchesContainer input{margin-bottom:0}div.toolbar{border-top:solid #ffffff 1px;border-bottom:solid #aca899 1px;background-color:#f1efe7;padding:3px 5px;font-size:68.75%}div.toolbar,div#search input{font-family:tahoma,verdana,arial,helvetica,sans-serif}div.toolbar input.button{padding:0 5px;font-size:100%}div.toolbar input.hidden{display:none}div#switches input#clearButton{margin-left:20px}div#levels label{font-weight:bold}div#levels label,div#options label{margin-right:5px}div#levels label#wrapLabel{font-weight:normal}div#search label{margin-right:10px}div#search label.searchboxlabel{margin-right:0}div#search input{font-size:100%}div#search input.validregex{color:green}div#search input.invalidregex{color:red}div#search input.nomatches{color:white;background-color:#ff6666}div#search input.nomatches{color:white;background-color:#ff6666}div#searchNav{display:none}div#commandLine{display:none}div#commandLine input#command{font-size:100%;font-family:Courier New,Courier}div#commandLine input#evaluateButton{}*.greyedout{color:gray !important;border-color:gray !important}*.greyedout *.alwaysenabled{color:black}*.unselectable{-khtml-user-select:none;-moz-user-select:none;user-select:none}div#log{font-family:Courier New,Courier;font-size:75%;width:100%;overflow:auto;clear:both;position:relative}div.group{border-color:#cccccc;border-style:solid;border-width:1px 0 1px 1px;overflow:visible}div.oldIe div.group,div.oldIe div.group *,div.oldIe *.logentry{height:1%}div.group div.groupheading span.expander{border:solid black 1px;font-family:Courier New,Courier;font-size:0.833em;background-color:#eeeeee;position:relative;top:-1px;color:black;padding:0 2px;cursor:pointer;cursor:hand;height:1%}div.group div.groupcontent{margin-left:10px;padding-bottom:2px;overflow:visible}div.group div.expanded{display:block}div.group div.collapsed{display:none}*.logentry{overflow:visible;display:none;white-space:pre}span.pre{white-space:pre}pre.unwrapped{display:inline !important}pre.unwrapped pre.pre,div.wrapped pre.pre{display:inline}div.wrapped pre.pre{white-space:normal}div.wrapped{display:none}body.searching *.logentry span.currentmatch{color:white !important;background-color:green !important}body.searching div.searchhighlight *.logentry span.searchterm{color:black;background-color:yellow}div.wrap *.logentry{white-space:normal !important;border-width:0 0 1px 0;border-color:#dddddd;border-style:dotted}div.wrap #log_wrapped,#log_unwrapped{display:block}div.wrap #log_unwrapped,#log_wrapped{display:none}div.wrap *.logentry span.pre{overflow:visible;white-space:normal}div.wrap *.logentry pre.unwrapped{display:none}div.wrap *.logentry span.wrapped{display:inline}div.searchfilter *.searchnonmatch{display:none !important}div#log *.TRACE,label#label_TRACE{color:#666666}div#log *.DEBUG,label#label_DEBUG{color:green}div#log *.INFO,label#label_INFO{color:#000099}div#log *.WARN,label#label_WARN{color:#999900}div#log *.ERROR,label#label_ERROR{color:red}div#log *.FATAL,label#label_FATAL{color:#660066}div.TRACE#log *.TRACE,div.DEBUG#log *.DEBUG,div.INFO#log *.INFO,div.WARN#log *.WARN,div.ERROR#log *.ERROR,div.FATAL#log *.FATAL{display:block}div#log div.separator{background-color:#cccccc;margin:5px 0;line-height:1px}","</style>","</head>",'<body id="body">','<div id="switchesContainer">','<div id="switches">','<div id="levels" class="toolbar">',"Filters:",'<input type="checkbox" id="switch_TRACE" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide trace messages" /><label for="switch_TRACE" id="label_TRACE">trace</label>','<input type="checkbox" id="switch_DEBUG" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide debug messages" /><label for="switch_DEBUG" id="label_DEBUG">debug</label>','<input type="checkbox" id="switch_INFO" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide info messages" /><label for="switch_INFO" id="label_INFO">info</label>','<input type="checkbox" id="switch_WARN" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide warn messages" /><label for="switch_WARN" id="label_WARN">warn</label>','<input type="checkbox" id="switch_ERROR" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide error messages" /><label for="switch_ERROR" id="label_ERROR">error</label>','<input type="checkbox" id="switch_FATAL" onclick="applyFilters(); checkAllLevels()" checked="checked" title="Show/hide fatal messages" /><label for="switch_FATAL" id="label_FATAL">fatal</label>','<input type="checkbox" id="switch_ALL" onclick="toggleAllLevels(); applyFilters()" checked="checked" title="Show/hide all messages" /><label for="switch_ALL" id="label_ALL">all</label>',"</div>",'<div id="search" class="toolbar">','<label for="searchBox" class="searchboxlabel">Search:</label> <input type="text" id="searchBox" onclick="toggleSearchEnabled(true)" onkeyup="scheduleSearch()" size="20" />','<input type="button" id="searchReset" disabled="disabled" value="Reset" onclick="clearSearch()" class="button" title="Reset the search" />','<input type="checkbox" id="searchRegex" onclick="doSearch()" title="If checked, search is treated as a regular expression" /><label for="searchRegex">Regex</label>','<input type="checkbox" id="searchCaseSensitive" onclick="doSearch()" title="If checked, search is case sensitive" /><label for="searchCaseSensitive">Match case</label>','<input type="checkbox" id="searchDisable" onclick="toggleSearchEnabled()" title="Enable/disable search" /><label for="searchDisable" class="alwaysenabled">Disable</label>','<div id="searchNav">','<input type="button" id="searchNext" disabled="disabled" value="Next" onclick="searchNext()" class="button" title="Go to the next matching log entry" />','<input type="button" id="searchPrevious" disabled="disabled" value="Previous" onclick="searchPrevious()" class="button" title="Go to the previous matching log entry" />','<input type="checkbox" id="searchFilter" onclick="toggleSearchFilter()" title="If checked, non-matching log entries are filtered out" /><label for="searchFilter">Filter</label>','<input type="checkbox" id="searchHighlight" onclick="toggleSearchHighlight()" title="Highlight matched search terms" /><label for="searchHighlight" class="alwaysenabled">Highlight all</label>',"</div>","</div>",'<div id="options" class="toolbar">',"Options:",'<input type="checkbox" id="enableLogging" onclick="toggleLoggingEnabled()" checked="checked" title="Enable/disable logging" /><label for="enableLogging" id="enableLoggingLabel">Log</label>','<input type="checkbox" id="wrap" onclick="toggleWrap()" title="Enable / disable word wrap" /><label for="wrap" id="wrapLabel">Wrap</label>','<input type="checkbox" id="newestAtTop" onclick="toggleNewestAtTop()" title="If checked, causes newest messages to appear at the top" /><label for="newestAtTop" id="newestAtTopLabel">Newest at the top</label>','<input type="checkbox" id="scrollToLatest" onclick="toggleScrollToLatest()" checked="checked" title="If checked, window automatically scrolls to a new message when it is added" /><label for="scrollToLatest" id="scrollToLatestLabel">Scroll to latest</label>','<input type="button" id="clearButton" value="Clear" onclick="clearLog()" class="button" title="Clear all log messages" />','<input type="button" id="hideButton" value="Hide" onclick="hide()" class="hidden button" title="Hide the console" />','<input type="button" id="closeButton" value="Close" onclick="closeWindow()" class="hidden button" title="Close the window" />',"</div>","</div>","</div>",'<div id="log" class="TRACE DEBUG INFO WARN ERROR FATAL"></div>','<div id="commandLine" class="toolbar">','<div id="commandLineContainer">','<input type="text" id="command" title="Enter a JavaScript command here and hit return or press \'Evaluate\'" />','<input type="button" id="evaluateButton" value="Evaluate" class="button" title="Evaluate the command" onclick="evalCommandLine()" />',"</div>","</div>","</body>","</html>",""]};var t=[];ConsoleAppender=function(){};var n=1;ConsoleAppender.prototype=new Appender;ConsoleAppender.prototype.create=function(r,i,a,o,s,l,c,u){var f=this;var p=false;var d=false;var h=false;var g=false;var m=[];var v=true;var y=n++;o=extractBooleanFromParam(o,this.defaults.initiallyMinimized);a=extractBooleanFromParam(a,this.defaults.lazyInit);s=extractBooleanFromParam(s,this.defaults.useDocumentWrite);var b=this.defaults.newestMessageAtTop;var w=this.defaults.scrollToLatestMessage;l=l?l:this.defaults.width;c=c?c:this.defaults.height;var C=this.defaults.maxMessages;var E=this.defaults.showCommandLine;var x=this.defaults.commandLineObjectExpansionDepth;var L=this.defaults.showHideButton;var S=this.defaults.showCloseButton;this.setLayout(this.defaults.layout);var A,T,I,M,k;var O=r?"InPageAppender":"PopUpAppender";var N=function(e){if(d){handleError(O+": configuration option '"+e+"' may not be set after the appender has been initialized");return false}return true};var _=function(){return h&&v&&!g};this.isNewestMessageAtTop=function(){return b};this.setNewestMessageAtTop=function(e){b=bool(e);if(_()){M().setNewestAtTop(b)}};this.isScrollToLatestMessage=function(){return w};this.setScrollToLatestMessage=function(e){w=bool(e);if(_()){M().setScrollToLatest(w)}};this.getWidth=function(){return l};this.setWidth=function(e){if(N("width")){l=extractStringFromParam(e,l)}};this.getHeight=function(){return c};this.setHeight=function(e){if(N("height")){c=extractStringFromParam(e,c)}};this.getMaxMessages=function(){return C};this.setMaxMessages=function(e){C=extractIntFromParam(e,C);if(_()){M().setMaxMessages(C)}};this.isShowCommandLine=function(){return E};this.setShowCommandLine=function(e){E=bool(e);if(_()){M().setShowCommandLine(E)}};this.isShowHideButton=function(){return L};this.setShowHideButton=function(e){L=bool(e);if(_()){M().setShowHideButton(L)}};this.isShowCloseButton=function(){return S};this.setShowCloseButton=function(e){S=bool(e);if(_()){M().setShowCloseButton(S)}};this.getCommandLineObjectExpansionDepth=function(){return x};this.setCommandLineObjectExpansionDepth=function(e){x=extractIntFromParam(e,x)};var D=o;this.isInitiallyMinimized=function(){return o};this.setInitiallyMinimized=function(e){if(N("initiallyMinimized")){o=bool(e);D=o}};this.isUseDocumentWrite=function(){return s};this.setUseDocumentWrite=function(e){if(N("useDocumentWrite")){s=bool(e)}};function R(e,t){this.loggingEvent=e;this.levelName=e.level.name;this.formattedMessage=t}R.prototype.append=function(){M().log(this.levelName,this.formattedMessage)};function P(e,t){this.name=e;this.initiallyExpanded=t}P.prototype.append=function(){M().group(this.name,this.initiallyExpanded)};function F(){}F.prototype.append=function(){M().groupEnd()};var j=function(){I();if(!p){A()}else if(g&&te){T()}if(I()){B()}};this.append=function(e){if(v){var t=f.getLayout().formatWithException(e);m.push(new R(e,t));j()}};this.group=function(e,t){if(v){m.push(new P(e,t));j()}};this.groupEnd=function(){if(v){m.push(new F);j()}};var B=function(){while(m.length>0){m.shift().append()}if(u){M().focus()}};this.setAddedToLogger=function(e){this.loggers.push(e);if(enabled&&!a){A()}};this.clear=function(){if(_()){M().clearLog()}m.length=0};this.focus=function(){if(_()){M().focus()}};this.focusCommandLine=function(){if(_()){M().focusCommandLine()}};this.focusSearch=function(){if(_()){M().focusSearch()}};var $=window;this.getCommandWindow=function(){return $};this.setCommandWindow=function(e){$=e};this.executeLastCommand=function(){if(_()){M().evalLastCommand()}};var U=new PatternLayout("%m");this.getCommandLayout=function(){return U};this.setCommandLayout=function(e){U=e};this.evalCommandAndAppend=function(e){var t={appendResult:true,isError:false};var n="";try{var r,i;if(!$.eval&&$.execScript){$.execScript("null")}var a={};for(i=0,len=H.length;i<len;i++){a[H[i][0]]=H[i][1]}var o=[];var s=function(e){o.push([e,$[e]])};s("appender");$.appender=f;s("commandReturnValue");$.commandReturnValue=t;s("commandLineFunctionsHash");$.commandLineFunctionsHash=a;var l=function(e){s(e);$[e]=function(){return this.commandLineFunctionsHash[e](f,arguments,t)}};for(i=0,len=H.length;i<len;i++){l(H[i][0])}if($===window&&$.execScript){s("evalExpr");s("result");window.evalExpr=e;$.execScript("window.result=eval(window.evalExpr);");r=window.result}else{r=$.eval(e)}n=isUndefined(r)?r:formatObjectExpansion(r,x);for(i=0,len=o.length;i<len;i++){$[o[i][0]]=o[i][1]}}catch(e){n="Error evaluating command: "+getExceptionStringRep(e);t.isError=true}if(t.appendResult){var c=">>> "+e;if(!isUndefined(n)){c+=newLine+n}var u=t.isError?Level.ERROR:Level.INFO;var p=new LoggingEvent(null,new Date,u,[c],null);var d=this.getLayout();this.setLayout(U);this.append(p);this.setLayout(d)}};var H=t.concat([]);this.addCommandLineFunction=function(e,t){H.push([e,t])};var W="log4javascriptCommandHistory";this.storeCommandHistory=function(e){setCookie(W,e.join(","))};var G=function(t){var n=e();t.open();for(var r=0,i=n.length;r<i;r++){t.writeln(n[r])}t.close()};this.setEventTypes(["load","unload"]);var q=function(){var e=M();e.setAppender(f);e.setNewestAtTop(b);e.setScrollToLatest(w);e.setMaxMessages(C);e.setShowCommandLine(E);e.setShowHideButton(L);e.setShowCloseButton(S);e.setMainWindow(window);var t=getCookie(W);if(t){e.commandHistory=t.split(",");e.currentCommandIndex=e.commandHistory.length}f.dispatchEvent("load",{win:e})};this.unload=function(){logLog.debug("unload "+this+", caller: "+this.unload.caller);if(!g){logLog.debug("really doing unload "+this);g=true;h=false;d=false;f.dispatchEvent("unload",{})}};var V=function(e,t,n,r){function i(){try{if(g){clearInterval(a)}if(e(M())){clearInterval(a);n()}}catch(e){clearInterval(a);v=false;handleError(r,e)}}var a=setInterval(i,t)};var K=function(){var e=document.domain!=location.hostname;return s?"":getBaseUrl()+"console.html"+(e?"?log4javascript_domain="+escape(document.domain):"")};if(r){var Y=null;var z=[];this.addCssProperty=function(e,t){if(N("cssProperties")){z.push([e,t])}};var X=false;var J;var Q=uniqueId+"_InPageAppender_"+y;this.hide=function(){if(p&&d){if(_()){M().$("command").blur()}J.style.display="none";D=true}};this.show=function(){if(p){if(d){J.style.display="block";this.setShowCommandLine(E);D=false}else if(!X){T(true)}}};this.isVisible=function(){return!D&&!g};this.close=function(e){if(!g&&(!e||confirm("This will permanently remove the console from the page. No more messages will be logged. Do you wish to continue?"))){J.parentNode.removeChild(J);this.unload()}};k=function(){var e="InPageAppender.open: unable to create console iframe";function t(){try{if(!o){f.show()}q();h=true;B()}catch(t){v=false;handleError(e,t)}}function n(){try{var n=function(e){return isLoaded(e)};if(s){G(M().document)}if(n(M())){t()}else{V(n,100,t,e)}}catch(t){v=false;handleError(e,t)}}D=false;J=Y.appendChild(document.createElement("div"));J.style.width=l;J.style.height=c;J.style.border="solid gray 1px";for(var r=0,i=z.length;r<i;r++){J.style[z[r][0]]=z[r][1]}var a=s?"":" src='"+K()+"'";J.innerHTML="<iframe id='"+Q+"' name='"+Q+"' width='100%' height='100%' frameborder='0'"+a+" scrolling='no'></iframe>";g=false;var u=function(e){try{return bool(e)&&bool(e.document)}catch(e){return false}};if(u(M())){n()}else{V(u,100,n,e)}d=true};T=function(e){if(e||!o){var t=function(){if(!i){Y=document.createElement("div");Y.style.position="fixed";Y.style.left="0";Y.style.right="0";Y.style.bottom="0";document.body.appendChild(Y);f.addCssProperty("borderWidth","1px 0 0 0");f.addCssProperty("zIndex",1e6);k()}else{try{var e=document.getElementById(i);if(e.nodeType==1){Y=e}k()}catch(e){handleError("InPageAppender.init: invalid container element '"+i+"' supplied",e)}}};if(pageLoaded&&i&&i.appendChild){Y=i;k()}else if(pageLoaded){t()}else{log4javascript.addEventListener("load",t)}X=true}};A=function(){T();p=true};M=function(){var e=window.frames[Q];if(e){return e}};I=function(){if(v&&!g){if(d&&!h&&M()&&isLoaded(M())){h=true}return h}return false}}else{var Z=f.defaults.useOldPopUp;var ee=f.defaults.complainAboutPopUpBlocking;var te=this.defaults.reopenWhenClosed;this.isUseOldPopUp=function(){return Z};this.setUseOldPopUp=function(e){if(N("useOldPopUp")){Z=bool(e)}};this.isComplainAboutPopUpBlocking=function(){return ee};this.setComplainAboutPopUpBlocking=function(e){if(N("complainAboutPopUpBlocking")){ee=bool(e)}};this.isFocusPopUp=function(){return u};this.setFocusPopUp=function(e){u=bool(e)};this.isReopenWhenClosed=function(){return te};this.setReopenWhenClosed=function(e){te=bool(e)};this.close=function(){logLog.debug("close "+this);try{ne.close();this.unload()}catch(e){}};this.hide=function(){logLog.debug("hide "+this);if(_()){this.close()}};this.show=function(){logLog.debug("show "+this);if(!d){k()}};this.isVisible=function(){return I()};var ne;k=function(){var e="width="+l+",height="+c+",status,resizable";var t="";try{var n=window.frameElement;if(n){t="_"+n.tagName+"_"+(n.name||n.id||"")}}catch(e){t="_inaccessibleParentFrame"}var r="PopUp_"+location.host.replace(/[^a-z0-9]/gi,"_")+"_"+y+t;if(!Z||!s){r=r+"_"+uniqueId}var i=function(e){if(g){return true}else{try{return bool(e)&&e.closed}catch(e){}}return false};var a=function(){if(!g){f.unload()}};function o(){M().setCloseIfOpenerCloses(!Z||!s);q();h=true;B();V(i,500,a,"PopUpAppender.checkPopUpClosed: error checking pop-up window")}try{ne=window.open(K(),r,e);g=false;d=true;if(ne&&ne.document){if(s&&Z&&isLoaded(ne)){ne.mainPageReloaded();o()}else{if(s){G(ne.document)}var u=function(e){return bool(e)&&isLoaded(e)};if(isLoaded(ne)){o()}else{V(u,100,o,"PopUpAppender.init: unable to create console window")}}}else{v=false;logLog.warn("PopUpAppender.init: pop-ups blocked, please unblock to use PopUpAppender");if(ee){handleError("log4javascript: pop-up windows appear to be blocked. Please unblock them to use pop-up logging.")}}}catch(e){handleError("PopUpAppender.init: error creating pop-up",e)}};T=function(){if(!o){k()}};A=function(){T();p=true};M=function(){return ne};I=function(){if(v&&!isUndefined(ne)&&!g){if(ne.closed||h&&isUndefined(ne.closed)){f.unload();logLog.debug("PopUpAppender: pop-up closed");return false}if(!h&&isLoaded(ne)){h=true}}return v&&h&&!g}}this.getConsoleWindow=M};ConsoleAppender.addGlobalCommandLineFunction=function(e,n){t.push([e,n])};function r(e,t,n,r,i){this.create(false,null,e,t,n,r,i,this.defaults.focusPopUp)}r.prototype=new ConsoleAppender;r.prototype.defaults={layout:new PatternLayout("%d{HH:mm:ss} %-5p - %m{1}%n"),initiallyMinimized:false,focusPopUp:false,lazyInit:true,useOldPopUp:true,complainAboutPopUpBlocking:true,newestMessageAtTop:false,scrollToLatestMessage:true,width:"600",height:"400",reopenWhenClosed:false,maxMessages:null,showCommandLine:true,commandLineObjectExpansionDepth:1,showHideButton:false,showCloseButton:true,useDocumentWrite:true};r.prototype.toString=function(){return"PopUpAppender"};log4javascript.PopUpAppender=r;function i(e,t,n,r,i,a){this.create(true,e,t,n,r,i,a,false)}i.prototype=new ConsoleAppender;i.prototype.defaults={layout:new PatternLayout("%d{HH:mm:ss} %-5p - %m{1}%n"),initiallyMinimized:false,lazyInit:true,newestMessageAtTop:false,scrollToLatestMessage:true,width:"100%",height:"220px",maxMessages:null,showCommandLine:true,commandLineObjectExpansionDepth:1,showHideButton:false,showCloseButton:false,showLogEntryDeleteButtons:true,useDocumentWrite:true};i.prototype.toString=function(){return"InPageAppender"};log4javascript.InPageAppender=i;log4javascript.InlineAppender=i})();function padWithSpaces(e,t){if(e.length<t){var n=[];var r=Math.max(0,t-e.length);for(var i=0;i<r;i++){n[i]=" "}e+=n.join("")}return e}(function(){function e(e){var t=0;for(var n in e){t=Math.max(toStr(n).length,t)}var r=[];for(n in e){var i=" "+padWithSpaces(toStr(n),t+2);var a;try{a=splitIntoLines(toStr(e[n])).join(padWithSpaces(newLine,t+6))}catch(e){a="[Error obtaining property. Details: "+getExceptionMessage(e)+"]"}r.push(i+a)}return r.join(newLine)}var t={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};var n=["script","pre"];var r=["br","img","hr","param","link","area","input","col","base","meta"];var i=" ";function a(e,o,s,l,c){o=typeof o=="undefined"?true:!!o;if(typeof s!="string"){s=""}l=!!l;c=!!c;var u;function f(e){return e.nodeType==t.TEXT_NODE&&/^[ \t\r\n]*$/.test(e.nodeValue)}function p(e){return e.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function d(e){var t=e.style.cssText.split(";");var n="";for(var r=0,i=t.length;r<i;r++){var a=t[r].split(":");var o=[];if(!/^\s*$/.test(a[0])){o.push(trim(a[0]).toLowerCase()+":"+trim(a[1]))}n=o.join(";")}return n}function h(e){if(e.prefix){return e.prefix}else if(e.outerHTML){var t=new RegExp("<([^:]+):"+e.tagName+"[^>]*>","i");if(t.test(e.outerHTML)){return RegExp.$1.toLowerCase()}}return""}var g="<";var m=">";var v,y;if(o&&e.nodeType!=t.DOCUMENT_FRAGMENT_NODE){switch(e.nodeType){case t.ELEMENT_NODE:var b=e.tagName.toLowerCase();u=l?newLine+s:"";u+=g;var w=h(e);var C=!!w;if(C){u+=w+":"}u+=b;for(v=0,y=e.attributes.length;v<y;v++){var E=e.attributes[v];if(!E.specified||E.nodeValue===null||E.nodeName.toLowerCase()==="style"||typeof E.nodeValue!=="string"||E.nodeName.indexOf("_moz")===0){continue}u+=" "+E.nodeName.toLowerCase()+'="';u+=p(E.nodeValue);u+='"'}if(e.style.cssText){var x=d(e);if(x!==""){u+=' style="'+d(e)+'"'}}if(array_contains(r,b)||C&&!e.hasChildNodes()){u+="/"+m}else{u+=m;var L=!(e.childNodes.length===1&&e.childNodes[0].nodeType===t.TEXT_NODE);var S=array_contains(n,b);for(v=0,y=e.childNodes.length;v<y;v++){u+=a(e.childNodes[v],true,s+i,L,S)}var A=g+"/"+b+m;u+=L?newLine+s+A:A}return u;case t.TEXT_NODE:if(f(e)){u=""}else{if(c){u=e.nodeValue}else{var T=splitIntoLines(trim(e.nodeValue));var I=[];for(v=0,y=T.length;v<y;v++){I[v]=trim(T[v])}u=I.join(newLine+s)}if(l){u=newLine+s+u}}return u;case t.CDATA_SECTION_NODE:return"<![CDA"+"TA["+e.nodeValue+"]"+"]>"+newLine;case t.DOCUMENT_NODE:u="";for(v=0,y=e.childNodes.length;v<y;v++){u+=a(e.childNodes[v],true,s)}return u;default:return""}}else{u="";for(v=0,y=e.childNodes.length;v<y;v++){u+=a(e.childNodes[v],true,s+i)}return u}}function o(){ConsoleAppender.addGlobalCommandLineFunction("$",(function(e,t,n){return document.getElementById(t[0])}));ConsoleAppender.addGlobalCommandLineFunction("dir",(function(t,n,r){var i=[];for(var a=0,o=n.length;a<o;a++){i[a]=e(n[a])}return i.join(newLine+newLine)}));ConsoleAppender.addGlobalCommandLineFunction("dirxml",(function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){r[i]=a(t[i])}return r.join(newLine+newLine)}));ConsoleAppender.addGlobalCommandLineFunction("cd",(function(e,t,n){var r,i;if(t.length===0||t[0]===""){r=window;i="Command line set to run in main window"}else{if(t[0].window==t[0]){r=t[0];i="Command line set to run in frame '"+t[0].name+"'"}else{r=window.frames[t[0]];if(r){i="Command line set to run in frame '"+t[0]+"'"}else{n.isError=true;i="Frame '"+t[0]+"' does not exist";r=e.getCommandWindow()}}}e.setCommandWindow(r);return i}));ConsoleAppender.addGlobalCommandLineFunction("clear",(function(e,t,n){n.appendResult=false;e.clear()}));ConsoleAppender.addGlobalCommandLineFunction("keys",(function(e,t,n){var r=[];for(var i in t[0]){r.push(i)}return r}));ConsoleAppender.addGlobalCommandLineFunction("values",(function(e,t,n){var r=[];for(var i in t[0]){try{r.push(t[0][i])}catch(e){logLog.warn("values(): Unable to obtain value for key "+i+". Details: "+getExceptionMessage(e))}}return r}));ConsoleAppender.addGlobalCommandLineFunction("expansionDepth",(function(e,t,n){var r=parseInt(t[0],10);if(isNaN(r)||r<0){n.isError=true;return""+t[0]+" is not a valid expansion depth"}else{e.setCommandLineObjectExpansionDepth(r);return"Object expansion depth set to "+r}}))}function s(){o()}s()})();function createDefaultLogger(){var e=log4javascript.getLogger(defaultLoggerName);var t=new log4javascript.PopUpAppender;e.addAppender(t);return e}log4javascript.setDocumentReady=function(){pageLoaded=true;log4javascript.dispatchEvent("load",{})};if(window.addEventListener){window.addEventListener("load",log4javascript.setDocumentReady,false)}else if(window.attachEvent){window.attachEvent("onload",log4javascript.setDocumentReady)}else{var oldOnload=window.onload;if(typeof window.onload!="function"){window.onload=log4javascript.setDocumentReady}else{window.onload=function(e){if(oldOnload){oldOnload(e)}log4javascript.setDocumentReady()}}}return log4javascript}),this)},function(e,t,n){
9
10
  /**
10
11
  * lite-url - Small, JS lib that uses regex for parsing a URL into it's component parts.
11
12
  * @version v1.0.5
@@ -18,7 +19,7 @@
18
19
  * Copyright 2014-2020 Benjamin Tan
19
20
  * Copyright 2011-2013 John-David Dalton
20
21
  * Available under MIT license
21
- */(function(){"use strict";var a={function:true,object:true};var o=a[typeof window]&&window||this;var s=o;var l=a[typeof t]&&t;var c=a[typeof e]&&e&&!e.nodeType&&e;var u=l&&c&&typeof r=="object"&&r;if(u&&(u.global===u||u.window===u||u.self===u)){o=u}var f=Math.pow(2,53)-1;var p=/\bOpera/;var d=this;var h=Object.prototype;var g=h.hasOwnProperty;var m=h.toString;function v(e){e=String(e);return e.charAt(0).toUpperCase()+e.slice(1)}function y(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};if(t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])){e="Windows "+r}e=String(e);if(t&&n){e=e.replace(RegExp(t,"i"),n)}e=w(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]);return e}function b(e,t){var n=-1,r=e?e.length:0;if(typeof r=="number"&&r>-1&&r<=f){while(++n<r){t(e[n],n,e)}}else{C(e,t)}}function w(e){e=A(e);return/^(?:webOS|i(?:OS|P))/.test(e)?e:v(e)}function C(e,t){for(var n in e){if(g.call(e,n)){t(e[n],n,e)}}}function E(e){return e==null?v(e):m.call(e).slice(8,-1)}function x(e,t){var n=e!=null?typeof e[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(n)&&(n=="object"?!!e[t]:true)}function L(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function S(e,t){var n=null;b(e,(function(r,i){n=t(n,r,i,e)}));return n}function A(e){return String(e).replace(/^ +| +$/g,"")}function T(e){var t=o;var n=e&&typeof e=="object"&&E(e)!="String";if(n){t=e;e=null}var r=t.navigator||{};var i=r.userAgent||"";e||(e=i);var a=n||d==s;var l=n?!!r.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(m.toString());var c="Object",u=n?c:"ScriptBridgingProxyObject",f=n?c:"Environment",h=n&&t.java?"JavaPackage":E(t.java),g=n?c:"RuntimeObject";var v=/\bJava/.test(h)&&t.java;var b=v&&E(t.environment)==f;var I=v?"a":"α";var M=v?"b":"β";var k=t.document||{};var O=t.operamini||t.opera;var N=p.test(N=n&&O?O["[[Class]]"]:E(O))?N:O=null;var _;var D=e;var R=[];var P=null;var F=e==i;var j=F&&O&&typeof O.version=="function"&&O.version();var B;var $=q([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]);var U=K(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]);var H=z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]);var W=V({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}});var G=Y(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function q(t){return S(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||L(n))+"\\b","i").exec(e)&&(n.label||n)}))}function V(t){return S(t,(function(t,n,r){return t||(n[H]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(H)]||RegExp("\\b"+L(r)+"(?:\\b|\\w*\\d)","i").exec(e))&&r}))}function K(t){return S(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||L(n))+"\\b","i").exec(e)&&(n.label||n)}))}function Y(t){return S(t,(function(t,n){var r=n.pattern||L(n);if(!t&&(t=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))){t=y(t,r,n.label||n)}return t}))}function z(t){return S(t,(function(t,n){var r=n.pattern||L(n);if(!t&&(t=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))){if((t=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])){t[0]+=" "+t[1]}n=n.label||n;t=w(t[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))}return t}))}function X(t){return S(t,(function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null}))}function J(){return this.description||""}$&&($=[$]);if(/\bAndroid\b/.test(G)&&!H&&(_=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))){H=A(_[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null}if(W&&!H){H=z([W])}else if(W&&H){H=H.replace(RegExp("^("+L(W)+")[-_.\\s]","i"),W+" ").replace(RegExp("^("+L(W)+")[-_.]?(\\w)","i"),W+" $2")}if(_=/\bGoogle TV\b/.exec(H)){H=_[0]}if(/\bSimulator\b/i.test(e)){H=(H?H+" ":"")+"Simulator"}if(U=="Opera Mini"&&/\bOPiOS\b/.test(e)){R.push("running in Turbo/Uncompressed mode")}if(U=="IE"&&/\blike iPhone OS\b/.test(e)){_=T(e.replace(/like iPhone OS/,""));W=_.manufacturer;H=_.product}else if(/^iP/.test(H)){U||(U="Safari");G="iOS"+((_=/ OS ([\d_]+)/i.exec(e))?" "+_[1].replace(/_/g,"."):"")}else if(U=="Konqueror"&&/^Linux\b/i.test(G)){G="Kubuntu"}else if(W&&W!="Google"&&(/Chrome/.test(U)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(H))||/\bAndroid\b/.test(G)&&/^Chrome/.test(U)&&/\bVersion\//i.test(e)){U="Android Browser";G=/\bAndroid\b/.test(G)?G:"Android"}else if(U=="Silk"){if(!/\bMobi/i.test(e)){G="Android";R.unshift("desktop mode")}if(/Accelerated *= *true/i.test(e)){R.unshift("accelerated")}}else if(U=="UC Browser"&&/\bUCWEB\b/.test(e)){R.push("speed mode")}else if(U=="PaleMoon"&&(_=/\bFirefox\/([\d.]+)\b/.exec(e))){R.push("identifying as Firefox "+_[1])}else if(U=="Firefox"&&(_=/\b(Mobile|Tablet|TV)\b/i.exec(e))){G||(G="Firefox OS");H||(H=_[1])}else if(!U||(_=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(U))){if(U&&!H&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(_+"/")+8))){U=null}if((_=H||W||G)&&(H||W||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(G))){U=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(G)?G:_)+" Browser"}}else if(U=="Electron"&&(_=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])){R.push("Chromium "+_)}if(!j){j=X(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",L(U),"(?:Firefox|Minefield|NetFront)"])}if(_=$=="iCab"&&parseFloat(j)>3&&"WebKit"||/\bOpera\b/.test(U)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test($)&&"WebKit"||!$&&/\bMSIE\b/i.test(e)&&(G=="Mac OS"?"Tasman":"Trident")||$=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(U)&&"NetFront"){$=[_]}if(U=="IE"&&(_=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])){U+=" Mobile";G="Windows Phone "+(/\+$/.test(_)?_:_+".x");R.unshift("desktop mode")}else if(/\bWPDesktop\b/i.test(e)){U="IE Mobile";G="Windows Phone 8.x";R.unshift("desktop mode");j||(j=(/\brv:([\d.]+)/.exec(e)||0)[1])}else if(U!="IE"&&$=="Trident"&&(_=/\brv:([\d.]+)/.exec(e))){if(U){R.push("identifying as "+U+(j?" "+j:""))}U="IE";j=_[1]}if(F){if(x(t,"global")){if(v){_=v.lang.System;D=_.getProperty("os.arch");G=G||_.getProperty("os.name")+" "+_.getProperty("os.version")}if(b){try{j=t.require("ringo/engine").version.join(".");U="RingoJS"}catch(e){if((_=t.system)&&_.global.system==t.system){U="Narwhal";G||(G=_[0].os||null)}}if(!U){U="Rhino"}}else if(typeof t.process=="object"&&!t.process.browser&&(_=t.process)){if(typeof _.versions=="object"){if(typeof _.versions.electron=="string"){R.push("Node "+_.versions.node);U="Electron";j=_.versions.electron}else if(typeof _.versions.nw=="string"){R.push("Chromium "+j,"Node "+_.versions.node);U="NW.js";j=_.versions.nw}}if(!U){U="Node.js";D=_.arch;G=_.platform;j=/[\d.]+/.exec(_.version);j=j?j[0]:null}}}else if(E(_=t.runtime)==u){U="Adobe AIR";G=_.flash.system.Capabilities.os}else if(E(_=t.phantom)==g){U="PhantomJS";j=(_=_.version||null)&&_.major+"."+_.minor+"."+_.patch}else if(typeof k.documentMode=="number"&&(_=/\bTrident\/(\d+)/i.exec(e))){j=[j,k.documentMode];if((_=+_[1]+4)!=j[1]){R.push("IE "+j[1]+" mode");$&&($[1]="");j[1]=_}j=U=="IE"?String(j[1].toFixed(1)):j[0]}else if(typeof k.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(U)){R.push("masking as "+U+" "+j);U="IE";j="11.0";$=["Trident"];G="Windows"}G=G&&w(G)}if(j&&(_=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(j)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(F&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")){P=/b/i.test(_)?"beta":"alpha";j=j.replace(RegExp(_+"\\+?$"),"")+(P=="beta"?M:I)+(/\d+\+?/.exec(_)||"")}if(U=="Fennec"||U=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(G)){U="Firefox Mobile"}else if(U=="Maxthon"&&j){j=j.replace(/\.[\d.]+/,".x")}else if(/\bXbox\b/i.test(H)){if(H=="Xbox 360"){G=null}if(H=="Xbox 360"&&/\bIEMobile\b/.test(e)){R.unshift("mobile mode")}}else if((/^(?:Chrome|IE|Opera)$/.test(U)||U&&!H&&!/Browser|Mobi/.test(U))&&(G=="Windows CE"||/Mobi/i.test(e))){U+=" Mobile"}else if(U=="IE"&&F){try{if(t.external===null){R.unshift("platform preview")}}catch(e){R.unshift("embedded")}}else if((/\bBlackBerry\b/.test(H)||/\bBB10\b/.test(e))&&(_=(RegExp(H.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||j)){_=[_,/BB10/.test(e)];G=(_[1]?(H=null,W="BlackBerry"):"Device Software")+" "+_[0];j=null}else if(this!=C&&H!="Wii"&&(F&&O||/Opera/.test(U)&&/\b(?:MSIE|Firefox)\b/i.test(e)||U=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(G)||U=="IE"&&(G&&!/^Win/.test(G)&&j>5.5||/\bWindows XP\b/.test(G)&&j>8||j==8&&!/\bTrident\b/.test(e)))&&!p.test(_=T.call(C,e.replace(p,"")+";"))&&_.name){_="ing as "+_.name+((_=_.version)?" "+_:"");if(p.test(U)){if(/\bIE\b/.test(_)&&G=="Mac OS"){G=null}_="identify"+_}else{_="mask"+_;if(N){U=w(N.replace(/([a-z])([A-Z])/g,"$1 $2"))}else{U="Opera"}if(/\bIE\b/.test(_)){G=null}if(!F){j=null}}$=["Presto"];R.push(_)}if(_=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1]){_=[parseFloat(_.replace(/\.(\d)$/,".0$1")),_];if(U=="Safari"&&_[1].slice(-1)=="+"){U="WebKit Nightly";P="alpha";j=_[1].slice(0,-1)}else if(j==_[1]||j==(_[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])){j=null}_[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1];if(_[0]==537.36&&_[2]==537.36&&parseFloat(_[1])>=28&&$=="WebKit"){$=["Blink"]}if(!F||!l&&!_[1]){$&&($[1]="like Safari");_=(_=_[0],_<400?1:_<500?2:_<526?3:_<533?4:_<534?"4+":_<535?5:_<537?6:_<538?7:_<601?8:_<602?9:_<604?10:_<606?11:_<608?12:"12")}else{$&&($[1]="like Chrome");_=_[1]||(_=_[0],_<530?1:_<532?2:_<532.05?3:_<533?4:_<534.03?5:_<534.07?6:_<534.1?7:_<534.13?8:_<534.16?9:_<534.24?10:_<534.3?11:_<535.01?12:_<535.02?"13+":_<535.07?15:_<535.11?16:_<535.19?17:_<536.05?18:_<536.1?19:_<537.01?20:_<537.11?"21+":_<537.13?23:_<537.18?24:_<537.24?25:_<537.36?26:$!="Blink"?"27":"28")}$&&($[1]+=" "+(_+=typeof _=="number"?".x":/[.+]/.test(_)?"":"+"));if(U=="Safari"&&(!j||parseInt(j)>45)){j=_}else if(U=="Chrome"&&/\bHeadlessChrome/i.test(e)){R.unshift("headless")}}if(U=="Opera"&&(_=/\bzbov|zvav$/.exec(G))){U+=" ";R.unshift("desktop mode");if(_=="zvav"){U+="Mini";j=null}else{U+="Mobile"}G=G.replace(RegExp(" *"+_+"$"),"")}else if(U=="Safari"&&/\bChrome\b/.exec($&&$[1])){R.unshift("desktop mode");U="Chrome Mobile";j=null;if(/\bOS X\b/.test(G)){W="Apple";G="iOS 4.3+"}else{G=null}}else if(/\bSRWare Iron\b/.test(U)&&!j){j=X("Chrome")}if(j&&j.indexOf(_=/[\d.]+$/.exec(G))==0&&e.indexOf("/"+_+"-")>-1){G=A(G.replace(_,""))}if(G&&G.indexOf(U)!=-1&&!RegExp(U+" OS").test(G)){G=G.replace(RegExp(" *"+L(U)+" *"),"")}if($&&!/\b(?:Avant|Nook)\b/.test(U)&&(/Browser|Lunascape|Maxthon/.test(U)||U!="Safari"&&/^iOS/.test(G)&&/\bSafari\b/.test($[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(U)&&$[1])){(_=$[$.length-1])&&R.push(_)}if(R.length){R=["("+R.join("; ")+")"]}if(W&&H&&H.indexOf(W)<0){R.push("on "+W)}if(H){R.push((/^on /.test(R[R.length-1])?"":"on ")+H)}if(G){_=/ ([\d.+]+)$/.exec(G);B=_&&G.charAt(G.length-_[0].length-1)=="/";G={architecture:32,family:_&&!B?G.replace(_[0],""):G,version:_?_[1]:null,toString:function(){var e=this.version;return this.family+(e&&!B?" "+e:"")+(this.architecture==64?" 64-bit":"")}}}if((_=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(D))&&!/\bi686\b/i.test(D)){if(G){G.architecture=64;G.family=G.family.replace(RegExp(" *"+_),"")}if(U&&(/\bWOW64\b/i.test(e)||F&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))){R.unshift("32-bit")}}else if(G&&/^OS X/.test(G.family)&&U=="Chrome"&&parseFloat(j)>=39){G.architecture=64}e||(e=null);var Q={};Q.description=e;Q.layout=$&&$[0];Q.manufacturer=W;Q.name=U;Q.prerelease=P;Q.product=H;Q.ua=e;Q.version=U&&j;Q.os=G||{architecture:null,family:null,version:null,toString:function(){return"null"}};Q.parse=T;Q.toString=J;if(Q.version){R.unshift(j)}if(Q.name){R.unshift(U)}if(G&&U&&!(G==String(G).split(" ")[0]&&(G==U.split(" ")[0]||H))){R.push(H?"("+G+")":"on "+G)}if(R.length){Q.description=R.join(" ")}return Q}var I=T();if(true){o.platform=I;!(i=function(){return I}.call(t,n,t,e),i!==undefined&&(e.exports=i))}else{}}).call(this)}).call(this,n(7)(e),n(0))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){e.deprecate=function(){};e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});e.webpackPolyfill=1}return e}},function(e,t,n){"use strict";
22
+ */(function(){"use strict";var a={function:true,object:true};var o=a[typeof window]&&window||this;var s=o;var l=a[typeof t]&&t;var c=a[typeof e]&&e&&!e.nodeType&&e;var u=l&&c&&typeof r=="object"&&r;if(u&&(u.global===u||u.window===u||u.self===u)){o=u}var f=Math.pow(2,53)-1;var p=/\bOpera/;var d=this;var h=Object.prototype;var g=h.hasOwnProperty;var m=h.toString;function v(e){e=String(e);return e.charAt(0).toUpperCase()+e.slice(1)}function y(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};if(t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])){e="Windows "+r}e=String(e);if(t&&n){e=e.replace(RegExp(t,"i"),n)}e=w(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]);return e}function b(e,t){var n=-1,r=e?e.length:0;if(typeof r=="number"&&r>-1&&r<=f){while(++n<r){t(e[n],n,e)}}else{C(e,t)}}function w(e){e=A(e);return/^(?:webOS|i(?:OS|P))/.test(e)?e:v(e)}function C(e,t){for(var n in e){if(g.call(e,n)){t(e[n],n,e)}}}function E(e){return e==null?v(e):m.call(e).slice(8,-1)}function x(e,t){var n=e!=null?typeof e[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(n)&&(n=="object"?!!e[t]:true)}function L(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function S(e,t){var n=null;b(e,(function(r,i){n=t(n,r,i,e)}));return n}function A(e){return String(e).replace(/^ +| +$/g,"")}function T(e){var t=o;var n=e&&typeof e=="object"&&E(e)!="String";if(n){t=e;e=null}var r=t.navigator||{};var i=r.userAgent||"";e||(e=i);var a=n||d==s;var l=n?!!r.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(m.toString());var c="Object",u=n?c:"ScriptBridgingProxyObject",f=n?c:"Environment",h=n&&t.java?"JavaPackage":E(t.java),g=n?c:"RuntimeObject";var v=/\bJava/.test(h)&&t.java;var b=v&&E(t.environment)==f;var I=v?"a":"α";var M=v?"b":"β";var k=t.document||{};var O=t.operamini||t.opera;var N=p.test(N=n&&O?O["[[Class]]"]:E(O))?N:O=null;var _;var D=e;var R=[];var P=null;var F=e==i;var j=F&&O&&typeof O.version=="function"&&O.version();var B;var $=q([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]);var U=K(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]);var H=z([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]);var W=V({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}});var G=Y(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function q(t){return S(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||L(n))+"\\b","i").exec(e)&&(n.label||n)}))}function V(t){return S(t,(function(t,n,r){return t||(n[H]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(H)]||RegExp("\\b"+L(r)+"(?:\\b|\\w*\\d)","i").exec(e))&&r}))}function K(t){return S(t,(function(t,n){return t||RegExp("\\b"+(n.pattern||L(n))+"\\b","i").exec(e)&&(n.label||n)}))}function Y(t){return S(t,(function(t,n){var r=n.pattern||L(n);if(!t&&(t=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))){t=y(t,r,n.label||n)}return t}))}function z(t){return S(t,(function(t,n){var r=n.pattern||L(n);if(!t&&(t=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))){if((t=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])){t[0]+=" "+t[1]}n=n.label||n;t=w(t[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))}return t}))}function X(t){return S(t,(function(t,n){return t||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null}))}function J(){return this.description||""}$&&($=[$]);if(/\bAndroid\b/.test(G)&&!H&&(_=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))){H=A(_[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null}if(W&&!H){H=z([W])}else if(W&&H){H=H.replace(RegExp("^("+L(W)+")[-_.\\s]","i"),W+" ").replace(RegExp("^("+L(W)+")[-_.]?(\\w)","i"),W+" $2")}if(_=/\bGoogle TV\b/.exec(H)){H=_[0]}if(/\bSimulator\b/i.test(e)){H=(H?H+" ":"")+"Simulator"}if(U=="Opera Mini"&&/\bOPiOS\b/.test(e)){R.push("running in Turbo/Uncompressed mode")}if(U=="IE"&&/\blike iPhone OS\b/.test(e)){_=T(e.replace(/like iPhone OS/,""));W=_.manufacturer;H=_.product}else if(/^iP/.test(H)){U||(U="Safari");G="iOS"+((_=/ OS ([\d_]+)/i.exec(e))?" "+_[1].replace(/_/g,"."):"")}else if(U=="Konqueror"&&/^Linux\b/i.test(G)){G="Kubuntu"}else if(W&&W!="Google"&&(/Chrome/.test(U)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(H))||/\bAndroid\b/.test(G)&&/^Chrome/.test(U)&&/\bVersion\//i.test(e)){U="Android Browser";G=/\bAndroid\b/.test(G)?G:"Android"}else if(U=="Silk"){if(!/\bMobi/i.test(e)){G="Android";R.unshift("desktop mode")}if(/Accelerated *= *true/i.test(e)){R.unshift("accelerated")}}else if(U=="UC Browser"&&/\bUCWEB\b/.test(e)){R.push("speed mode")}else if(U=="PaleMoon"&&(_=/\bFirefox\/([\d.]+)\b/.exec(e))){R.push("identifying as Firefox "+_[1])}else if(U=="Firefox"&&(_=/\b(Mobile|Tablet|TV)\b/i.exec(e))){G||(G="Firefox OS");H||(H=_[1])}else if(!U||(_=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(U))){if(U&&!H&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(_+"/")+8))){U=null}if((_=H||W||G)&&(H||W||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(G))){U=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(G)?G:_)+" Browser"}}else if(U=="Electron"&&(_=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])){R.push("Chromium "+_)}if(!j){j=X(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",L(U),"(?:Firefox|Minefield|NetFront)"])}if(_=$=="iCab"&&parseFloat(j)>3&&"WebKit"||/\bOpera\b/.test(U)&&(/\bOPR\b/.test(e)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test($)&&"WebKit"||!$&&/\bMSIE\b/i.test(e)&&(G=="Mac OS"?"Tasman":"Trident")||$=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(U)&&"NetFront"){$=[_]}if(U=="IE"&&(_=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])){U+=" Mobile";G="Windows Phone "+(/\+$/.test(_)?_:_+".x");R.unshift("desktop mode")}else if(/\bWPDesktop\b/i.test(e)){U="IE Mobile";G="Windows Phone 8.x";R.unshift("desktop mode");j||(j=(/\brv:([\d.]+)/.exec(e)||0)[1])}else if(U!="IE"&&$=="Trident"&&(_=/\brv:([\d.]+)/.exec(e))){if(U){R.push("identifying as "+U+(j?" "+j:""))}U="IE";j=_[1]}if(F){if(x(t,"global")){if(v){_=v.lang.System;D=_.getProperty("os.arch");G=G||_.getProperty("os.name")+" "+_.getProperty("os.version")}if(b){try{j=t.require("ringo/engine").version.join(".");U="RingoJS"}catch(e){if((_=t.system)&&_.global.system==t.system){U="Narwhal";G||(G=_[0].os||null)}}if(!U){U="Rhino"}}else if(typeof t.process=="object"&&!t.process.browser&&(_=t.process)){if(typeof _.versions=="object"){if(typeof _.versions.electron=="string"){R.push("Node "+_.versions.node);U="Electron";j=_.versions.electron}else if(typeof _.versions.nw=="string"){R.push("Chromium "+j,"Node "+_.versions.node);U="NW.js";j=_.versions.nw}}if(!U){U="Node.js";D=_.arch;G=_.platform;j=/[\d.]+/.exec(_.version);j=j?j[0]:null}}}else if(E(_=t.runtime)==u){U="Adobe AIR";G=_.flash.system.Capabilities.os}else if(E(_=t.phantom)==g){U="PhantomJS";j=(_=_.version||null)&&_.major+"."+_.minor+"."+_.patch}else if(typeof k.documentMode=="number"&&(_=/\bTrident\/(\d+)/i.exec(e))){j=[j,k.documentMode];if((_=+_[1]+4)!=j[1]){R.push("IE "+j[1]+" mode");$&&($[1]="");j[1]=_}j=U=="IE"?String(j[1].toFixed(1)):j[0]}else if(typeof k.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(U)){R.push("masking as "+U+" "+j);U="IE";j="11.0";$=["Trident"];G="Windows"}G=G&&w(G)}if(j&&(_=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(j)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(F&&r.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")){P=/b/i.test(_)?"beta":"alpha";j=j.replace(RegExp(_+"\\+?$"),"")+(P=="beta"?M:I)+(/\d+\+?/.exec(_)||"")}if(U=="Fennec"||U=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(G)){U="Firefox Mobile"}else if(U=="Maxthon"&&j){j=j.replace(/\.[\d.]+/,".x")}else if(/\bXbox\b/i.test(H)){if(H=="Xbox 360"){G=null}if(H=="Xbox 360"&&/\bIEMobile\b/.test(e)){R.unshift("mobile mode")}}else if((/^(?:Chrome|IE|Opera)$/.test(U)||U&&!H&&!/Browser|Mobi/.test(U))&&(G=="Windows CE"||/Mobi/i.test(e))){U+=" Mobile"}else if(U=="IE"&&F){try{if(t.external===null){R.unshift("platform preview")}}catch(e){R.unshift("embedded")}}else if((/\bBlackBerry\b/.test(H)||/\bBB10\b/.test(e))&&(_=(RegExp(H.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||j)){_=[_,/BB10/.test(e)];G=(_[1]?(H=null,W="BlackBerry"):"Device Software")+" "+_[0];j=null}else if(this!=C&&H!="Wii"&&(F&&O||/Opera/.test(U)&&/\b(?:MSIE|Firefox)\b/i.test(e)||U=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(G)||U=="IE"&&(G&&!/^Win/.test(G)&&j>5.5||/\bWindows XP\b/.test(G)&&j>8||j==8&&!/\bTrident\b/.test(e)))&&!p.test(_=T.call(C,e.replace(p,"")+";"))&&_.name){_="ing as "+_.name+((_=_.version)?" "+_:"");if(p.test(U)){if(/\bIE\b/.test(_)&&G=="Mac OS"){G=null}_="identify"+_}else{_="mask"+_;if(N){U=w(N.replace(/([a-z])([A-Z])/g,"$1 $2"))}else{U="Opera"}if(/\bIE\b/.test(_)){G=null}if(!F){j=null}}$=["Presto"];R.push(_)}if(_=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1]){_=[parseFloat(_.replace(/\.(\d)$/,".0$1")),_];if(U=="Safari"&&_[1].slice(-1)=="+"){U="WebKit Nightly";P="alpha";j=_[1].slice(0,-1)}else if(j==_[1]||j==(_[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])){j=null}_[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1];if(_[0]==537.36&&_[2]==537.36&&parseFloat(_[1])>=28&&$=="WebKit"){$=["Blink"]}if(!F||!l&&!_[1]){$&&($[1]="like Safari");_=(_=_[0],_<400?1:_<500?2:_<526?3:_<533?4:_<534?"4+":_<535?5:_<537?6:_<538?7:_<601?8:_<602?9:_<604?10:_<606?11:_<608?12:"12")}else{$&&($[1]="like Chrome");_=_[1]||(_=_[0],_<530?1:_<532?2:_<532.05?3:_<533?4:_<534.03?5:_<534.07?6:_<534.1?7:_<534.13?8:_<534.16?9:_<534.24?10:_<534.3?11:_<535.01?12:_<535.02?"13+":_<535.07?15:_<535.11?16:_<535.19?17:_<536.05?18:_<536.1?19:_<537.01?20:_<537.11?"21+":_<537.13?23:_<537.18?24:_<537.24?25:_<537.36?26:$!="Blink"?"27":"28")}$&&($[1]+=" "+(_+=typeof _=="number"?".x":/[.+]/.test(_)?"":"+"));if(U=="Safari"&&(!j||parseInt(j)>45)){j=_}else if(U=="Chrome"&&/\bHeadlessChrome/i.test(e)){R.unshift("headless")}}if(U=="Opera"&&(_=/\bzbov|zvav$/.exec(G))){U+=" ";R.unshift("desktop mode");if(_=="zvav"){U+="Mini";j=null}else{U+="Mobile"}G=G.replace(RegExp(" *"+_+"$"),"")}else if(U=="Safari"&&/\bChrome\b/.exec($&&$[1])){R.unshift("desktop mode");U="Chrome Mobile";j=null;if(/\bOS X\b/.test(G)){W="Apple";G="iOS 4.3+"}else{G=null}}else if(/\bSRWare Iron\b/.test(U)&&!j){j=X("Chrome")}if(j&&j.indexOf(_=/[\d.]+$/.exec(G))==0&&e.indexOf("/"+_+"-")>-1){G=A(G.replace(_,""))}if(G&&G.indexOf(U)!=-1&&!RegExp(U+" OS").test(G)){G=G.replace(RegExp(" *"+L(U)+" *"),"")}if($&&!/\b(?:Avant|Nook)\b/.test(U)&&(/Browser|Lunascape|Maxthon/.test(U)||U!="Safari"&&/^iOS/.test(G)&&/\bSafari\b/.test($[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(U)&&$[1])){(_=$[$.length-1])&&R.push(_)}if(R.length){R=["("+R.join("; ")+")"]}if(W&&H&&H.indexOf(W)<0){R.push("on "+W)}if(H){R.push((/^on /.test(R[R.length-1])?"":"on ")+H)}if(G){_=/ ([\d.+]+)$/.exec(G);B=_&&G.charAt(G.length-_[0].length-1)=="/";G={architecture:32,family:_&&!B?G.replace(_[0],""):G,version:_?_[1]:null,toString:function(){var e=this.version;return this.family+(e&&!B?" "+e:"")+(this.architecture==64?" 64-bit":"")}}}if((_=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(D))&&!/\bi686\b/i.test(D)){if(G){G.architecture=64;G.family=G.family.replace(RegExp(" *"+_),"")}if(U&&(/\bWOW64\b/i.test(e)||F&&/\w(?:86|32)$/.test(r.cpuClass||r.platform)&&!/\bWin64; x64\b/i.test(e))){R.unshift("32-bit")}}else if(G&&/^OS X/.test(G.family)&&U=="Chrome"&&parseFloat(j)>=39){G.architecture=64}e||(e=null);var Q={};Q.description=e;Q.layout=$&&$[0];Q.manufacturer=W;Q.name=U;Q.prerelease=P;Q.product=H;Q.ua=e;Q.version=U&&j;Q.os=G||{architecture:null,family:null,version:null,toString:function(){return"null"}};Q.parse=T;Q.toString=J;if(Q.version){R.unshift(j)}if(Q.name){R.unshift(U)}if(G&&U&&!(G==String(G).split(" ")[0]&&(G==U.split(" ")[0]||H))){R.push(H?"("+G+")":"on "+G)}if(R.length){Q.description=R.join(" ")}return Q}var I=T();if(true){o.platform=I;!(i=function(){return I}.call(t,n,t,e),i!==undefined&&(e.exports=i))}else{}}).call(this)}).call(this,n(8)(e),n(0))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){e.deprecate=function(){};e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});e.webpackPolyfill=1}return e}},function(e,t,n){"use strict";
22
23
  /*!
23
24
  * J1 Adapter
24
25
  * Copyright (C) 2021 Juergen Adams
@@ -34,14 +35,13 @@
34
35
  * Copyright (C) 2021 Juergen Adams
35
36
  * Licensed under MIT License.
36
37
  */
37
- e.exports=function e(t){return{init:function e(t){var n=t;var r=log4javascript.getLogger("j1.core.asciidoctor");var i={dummyOption:false};var t=$.extend(i,n);logText="J1 Asciidoctor is being initialized";r.info(logText);this.callouts()},callouts:function e(t){var n="";if($(".colist > table > colgroup").length==0){n+="\x3c!-- [INFO ] [j1.core.asciidoctor ] [ place a colgroup dynamically ] --\x3e"+"\n";n+='<colgroup> <col style="width: 5%;"> <col style="width: 95%;"> </colgroup>';$(".colist > table").prepend(n)}},conums:function e(t){var n=setInterval((function(){if(j1.getState()=="finished"){if($(".colist > table > colgroup").length==0){var e="";e+='<colgroup> <col style="width: 5%;"> <col style="width: 95%;"> </colgroup>';$(".colist > table").prepend(e);clearInterval(n)}}}))}}}(jQuery)},function(e,t,n){"use strict";e.exports=function e(t){var n=$.extend({foo:"foo_option",bar:"bar_option"},t);function r(e){return e.slice(0,e.lastIndexOf("#"))}function i(){return"scrollBehavior"in document.documentElement.style}return{scroll:function e(t,n){var r;var i;r=log4javascript.getLogger("j1.core.scrollSmooth");i="run module scrollSmooth";r.info(i);var a=n.duration;var o=n.offset;this.scrollTo(t,{duration:a,offset:o,callback:null});i="scrollSmooth finished";r.info(i)},scrollTo:function e(t,n){var r=window.pageYOffset;var i={duration:n.duration,offset:n.offset||0,callback:n.callback,easing:n.easing||p};var a=document.querySelector('[id="'+decodeURI(t).split("#").join("")+'"]');var o=typeof t==="string"?i.offset+(t?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):t;var s=typeof i.duration==="function"?i.duration(o):i.duration;var l;var c;requestAnimationFrame((function(e){l=e;u(e)}));function u(e){c=e-l;window.scrollTo(0,i.easing(c,r,o,s));if(c<s){requestAnimationFrame(u)}else{f()}}function f(){window.scrollTo(0,r+o);$(window).scrollTop($(window).scrollTop()+1);$(window).scrollTop($(window).scrollTop()-1);if(typeof i.callback==="function"){i.callback()}}function p(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}}}(jQuery)},function(e,t,n){e.exports=n(15)},function(e,t,n){const r=n(1);const{validateText:i,validateSourceLanguage:a,validateTargetLanguage:o,validateSourceTargetLanguage:s,validateBeginning:l}=n(16);const{splitSentences:c,getTranslation:u,getAlternatives:f}=n(17);const{EOL:p}=n(23);function d(e){return g(e,"EN").then((({resolvedSourceLanguage:e})=>({languageCode:e,languageName:e.split(",").map((e=>r[e])).join(",")})))}function h(e){return Promise.all(e).then((e=>{const t=e.filter((e=>e)).join("\n");return t.length?Promise.reject(new Error(`Input parameter validation failed with error(s): ${t}`)):Promise.resolve("")}))}function g(e,t,n="auto"){return h([i(e),a(n),o(t),s(n,t)]).then((t=>c(e.split(p),n))).then(b).then((([e,n])=>Promise.all(e.map((e=>e.length===0?[]:u(e,t,n||"auto").then(y)))).then((e=>({targetLanguage:t,resolvedSourceLanguage:e.map((e=>e[1])).reduce(((e,t)=>[...e,e.indexOf(t)<0&&t]),[]).filter((e=>e)).join(","),translation:e.map((([e])=>e||"")).join(p)})))))}function m(e,t,n="auto",r){return h([i(e),a(n),o(t),s(n,t)]).then((i=>u([e],t,n,r))).then((({result:{source_lang:e,translations:[{beams:n}]}})=>({targetLanguage:t,resolvedSourceLanguage:e,translation:n[0].postprocessed_sentence,translationAlternatives:n.map((({postprocessed_sentence:e})=>e))})))}function v(e,t,n,r){return h([i(e),a(n),o(t),s(n,t),l(r)]).then((i=>f(e,t,n,r))).then((e=>({targetLanguage:e.result.target_lang,resolvedSourceLanguage:e.result.source_lang,alternatives:e.result.translations[0].beams.map((e=>e.postprocessed_sentence))})))}function y(e){try{const{result:{target_lang:t,source_lang:n,translations:r}}=e;const i=r.map((({beams:[{postprocessed_sentence:e}]})=>e));return[i.join(" "),n]}catch(t){throw new Error(`Unexpected error when parsing deepl translation response: ${JSON.stringify(e)}`)}}function b(e){try{const{result:{splitted_texts:t,lang_is_confident:n,lang:r}}=e;return[t,n&&r]}catch(t){throw new Error(`Unexpected error when parsing deepl split sentence response: ${JSON.stringify(e)}`)}}e.exports={translate:g,translateWithAlternatives:m,detectLanguage:d,wordAlternatives:v}},function(e,t,n){const r=n(1);e.exports={validateText:e=>Promise.resolve((typeof e!=="string"||e.trim().length===0)&&"Must provide valid text for translation"),validateTargetLanguage:e=>Promise.resolve(!r[e]&&`Invalid target language code ${e}`),validateSourceLanguage:e=>Promise.resolve(e!=="auto"&&!r[e]&&`Invalid source language code ${e}`),validateSourceTargetLanguage:(e,t)=>Promise.resolve(t===e&&`Target and source language codes identical`),validateBeginning:e=>Promise.resolve(!e&&`Must provide valid text for beginning translation override`)}},function(e,t,n){(function(t){const r=n(22);const i="www2.deepl.com";const a="/jsonrpc";function o(e,t,n,r){return{jsonrpc:"2.0",method:"LMT_handle_jobs",params:{jobs:e.map((e=>({kind:"default",raw_en_sentence:e,de_sentence_beginning:r}))),lang:{user_preferred_langs:["EN"],source_lang_user_selected:n,target_lang:t},priority:-1},id:1}}function s(e,t,n,r){return{jsonrpc:"2.0",method:"LMT_handle_jobs",params:{jobs:[{de_sentence_beginning:r,kind:"alternatives_at_position",raw_en_sentence:e}],lang:{source_lang_computed:n,target_lang:t},priority:1},id:1}}function l(e,t){return{jsonrpc:"2.0",method:"LMT_split_into_sentences",params:{texts:e,lang:{lang_user_selected:t,user_preferred_langs:["EN"]}},id:1}}function c(e){return{hostname:i,port:443,protocol:"https:",path:a,method:"POST",headers:{"Content-Type":"application/json","Content-Length":t.byteLength(JSON.stringify(e)),"Cache-Control":"no-cache"}}}e.exports={getTranslation:(e,t,n,i)=>{const a=o(e,t,n,i);const s=c(a);return r(s,a)},splitSentences:(e,t)=>{const n=l(e,t);const i=c(n);return r(i,n)},getAlternatives:(e,t,n,i)=>{const a=s(e,t,n,i);const o=c(a);return r(o,a)}}}).call(this,n(18).Buffer)},function(e,t,n){"use strict";(function(e){
38
+ e.exports=function e(t){return{init:function e(t){var n=t;var r=log4javascript.getLogger("j1.core.asciidoctor");var i={dummyOption:false};var t=$.extend(i,n);logText="J1 Asciidoctor is being initialized";r.info(logText);this.callouts()},callouts:function e(t){var n="";if($(".colist > table > colgroup").length==0){n+="\x3c!-- [INFO ] [j1.core.asciidoctor ] [ place a colgroup dynamically ] --\x3e"+"\n";n+='<colgroup> <col style="width: 5%;"> <col style="width: 95%;"> </colgroup>';$(".colist > table").prepend(n)}},conums:function e(t){var n=setInterval((function(){if(j1.getState()=="finished"){if($(".colist > table > colgroup").length==0){var e="";e+='<colgroup> <col style="width: 5%;"> <col style="width: 95%;"> </colgroup>';$(".colist > table").prepend(e);clearInterval(n)}}}))}}}(jQuery)},function(e,t,n){"use strict";e.exports=function e(t){var n=$.extend({foo:"foo_option",bar:"bar_option"},t);function r(e){return e.slice(0,e.lastIndexOf("#"))}function i(){return"scrollBehavior"in document.documentElement.style}return{scroll:function e(t,n){var r;var i;r=log4javascript.getLogger("j1.core.scrollSmooth");i="run module scrollSmooth";r.info(i);var a=n.duration;var o=n.offset;this.scrollTo(t,{duration:a,offset:o,callback:null});i="scrollSmooth finished";r.info(i)},scrollTo:function e(t,n){var r=window.pageYOffset;var i={duration:n.duration,offset:n.offset||0,callback:n.callback,easing:n.easing||p};var a=document.querySelector('[id="'+decodeURI(t).split("#").join("")+'"]');var o=typeof t==="string"?i.offset+(t?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):t;var s=typeof i.duration==="function"?i.duration(o):i.duration;var l;var c;requestAnimationFrame((function(e){l=e;u(e)}));function u(e){c=e-l;window.scrollTo(0,i.easing(c,r,o,s));if(c<s){requestAnimationFrame(u)}else{f()}}function f(){window.scrollTo(0,r+o);$(window).scrollTop($(window).scrollTop()+1);$(window).scrollTop($(window).scrollTop()-1);if(typeof i.callback==="function"){i.callback()}}function p(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}}}(jQuery)},function(e,t,n){e.exports=n(16)},function(e,t,n){const r=n(1);const{validateText:i,validateSourceLanguage:a,validateTargetLanguage:o,validateSourceTargetLanguage:s,validateBeginning:l}=n(17);const{splitSentences:c,getTranslation:u,getAlternatives:f}=n(18);const{EOL:p}=n(24);function d(e){return g(e,"EN").then((({resolvedSourceLanguage:e})=>({languageCode:e,languageName:e.split(",").map((e=>r[e])).join(",")})))}function h(e){return Promise.all(e).then((e=>{const t=e.filter((e=>e)).join("\n");return t.length?Promise.reject(new Error(`Input parameter validation failed with error(s): ${t}`)):Promise.resolve("")}))}function g(e,t,n="auto"){return h([i(e),a(n),o(t),s(n,t)]).then((t=>c(e.split(p),n))).then(b).then((([e,n])=>Promise.all(e.map((e=>e.length===0?[]:u(e,t,n||"auto").then(y)))).then((e=>({targetLanguage:t,resolvedSourceLanguage:e.map((e=>e[1])).reduce(((e,t)=>[...e,e.indexOf(t)<0&&t]),[]).filter((e=>e)).join(","),translation:e.map((([e])=>e||"")).join(p)})))))}function m(e,t,n="auto",r){return h([i(e),a(n),o(t),s(n,t)]).then((i=>u([e],t,n,r))).then((({result:{source_lang:e,translations:[{beams:n}]}})=>({targetLanguage:t,resolvedSourceLanguage:e,translation:n[0].postprocessed_sentence,translationAlternatives:n.map((({postprocessed_sentence:e})=>e))})))}function v(e,t,n,r){return h([i(e),a(n),o(t),s(n,t),l(r)]).then((i=>f(e,t,n,r))).then((e=>({targetLanguage:e.result.target_lang,resolvedSourceLanguage:e.result.source_lang,alternatives:e.result.translations[0].beams.map((e=>e.postprocessed_sentence))})))}function y(e){try{const{result:{target_lang:t,source_lang:n,translations:r}}=e;const i=r.map((({beams:[{postprocessed_sentence:e}]})=>e));return[i.join(" "),n]}catch(t){throw new Error(`Unexpected error when parsing deepl translation response: ${JSON.stringify(e)}`)}}function b(e){try{const{result:{splitted_texts:t,lang_is_confident:n,lang:r}}=e;return[t,n&&r]}catch(t){throw new Error(`Unexpected error when parsing deepl split sentence response: ${JSON.stringify(e)}`)}}e.exports={translate:g,translateWithAlternatives:m,detectLanguage:d,wordAlternatives:v}},function(e,t,n){const r=n(1);e.exports={validateText:e=>Promise.resolve((typeof e!=="string"||e.trim().length===0)&&"Must provide valid text for translation"),validateTargetLanguage:e=>Promise.resolve(!r[e]&&`Invalid target language code ${e}`),validateSourceLanguage:e=>Promise.resolve(e!=="auto"&&!r[e]&&`Invalid source language code ${e}`),validateSourceTargetLanguage:(e,t)=>Promise.resolve(t===e&&`Target and source language codes identical`),validateBeginning:e=>Promise.resolve(!e&&`Must provide valid text for beginning translation override`)}},function(e,t,n){(function(t){const r=n(23);const i="www2.deepl.com";const a="/jsonrpc";function o(e,t,n,r){return{jsonrpc:"2.0",method:"LMT_handle_jobs",params:{jobs:e.map((e=>({kind:"default",raw_en_sentence:e,de_sentence_beginning:r}))),lang:{user_preferred_langs:["EN"],source_lang_user_selected:n,target_lang:t},priority:-1},id:1}}function s(e,t,n,r){return{jsonrpc:"2.0",method:"LMT_handle_jobs",params:{jobs:[{de_sentence_beginning:r,kind:"alternatives_at_position",raw_en_sentence:e}],lang:{source_lang_computed:n,target_lang:t},priority:1},id:1}}function l(e,t){return{jsonrpc:"2.0",method:"LMT_split_into_sentences",params:{texts:e,lang:{lang_user_selected:t,user_preferred_langs:["EN"]}},id:1}}function c(e){return{hostname:i,port:443,protocol:"https:",path:a,method:"POST",headers:{"Content-Type":"application/json","Content-Length":t.byteLength(JSON.stringify(e)),"Cache-Control":"no-cache"}}}e.exports={getTranslation:(e,t,n,i)=>{const a=o(e,t,n,i);const s=c(a);return r(s,a)},splitSentences:(e,t)=>{const n=l(e,t);const i=c(n);return r(i,n)},getAlternatives:(e,t,n,i)=>{const a=s(e,t,n,i);const o=c(a);return r(o,a)}}}).call(this,n(19).Buffer)},function(e,t,n){"use strict";(function(e){
38
39
  /*!
39
40
  * The buffer module from node.js, for the browser.
40
41
  *
41
42
  * @author Feross Aboukhadijeh <http://feross.org>
42
43
  * @license MIT
43
44
  */
44
- var r=n(19);var i=n(20);var a=n(21);t.Buffer=c;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;c.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:o();t.kMaxLength=s();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(e){return false}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t){throw new RangeError("Invalid typed array length")}if(c.TYPED_ARRAY_SUPPORT){e=new Uint8Array(t);e.__proto__=c.prototype}else{if(e===null){e=new c(t)}e.length=t}return e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c)){return new c(e,t,n)}if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return d(this,e)}return u(this,e,t,n)}c.poolSize=8192;c._augment=function(e){e.__proto__=c.prototype;return e};function u(e,t,n,r){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,n,r)}if(typeof t==="string"){return h(e,t,n)}return v(e,t)}c.from=function(e,t,n){return u(null,e,t,n)};if(c.TYPED_ARRAY_SUPPORT){c.prototype.__proto__=Uint8Array.prototype;c.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&c[Symbol.species]===c){Object.defineProperty(c,Symbol.species,{value:null,configurable:true})}}function f(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function p(e,t,n,r){f(t);if(t<=0){return l(e,t)}if(n!==undefined){return typeof r==="string"?l(e,t).fill(n,r):l(e,t).fill(n)}return l(e,t)}c.alloc=function(e,t,n){return p(null,e,t,n)};function d(e,t){f(t);e=l(e,t<0?0:y(t)|0);if(!c.TYPED_ARRAY_SUPPORT){for(var n=0;n<t;++n){e[n]=0}}return e}c.allocUnsafe=function(e){return d(null,e)};c.allocUnsafeSlow=function(e){return d(null,e)};function h(e,t,n){if(typeof n!=="string"||n===""){n="utf8"}if(!c.isEncoding(n)){throw new TypeError('"encoding" must be a valid string encoding')}var r=w(t,n)|0;e=l(e,r);var i=e.write(t,n);if(i!==r){e=e.slice(0,i)}return e}function g(e,t){var n=t.length<0?0:y(t.length)|0;e=l(e,n);for(var r=0;r<n;r+=1){e[r]=t[r]&255}return e}function m(e,t,n,r){t.byteLength;if(n<0||t.byteLength<n){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<n+(r||0)){throw new RangeError("'length' is out of bounds")}if(n===undefined&&r===undefined){t=new Uint8Array(t)}else if(r===undefined){t=new Uint8Array(t,n)}else{t=new Uint8Array(t,n,r)}if(c.TYPED_ARRAY_SUPPORT){e=t;e.__proto__=c.prototype}else{e=g(e,t)}return e}function v(e,t){if(c.isBuffer(t)){var n=y(t.length)|0;e=l(e,n);if(e.length===0){return e}t.copy(e,0,0,n);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return l(e,0)}return g(e,t)}if(t.type==="Buffer"&&a(t.data)){return g(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=s()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+s().toString(16)+" bytes")}return e|0}function b(e){if(+e!=e){e=0}return c.alloc(+e)}c.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};c.compare=function e(t,n){if(!c.isBuffer(t)||!c.isBuffer(n)){throw new TypeError("Arguments must be Buffers")}if(t===n)return 0;var r=t.length;var i=n.length;for(var a=0,o=Math.min(r,i);a<o;++a){if(t[a]!==n[a]){r=t[a];i=n[a];break}}if(r<i)return-1;if(i<r)return 1;return 0};c.isEncoding=function e(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};c.concat=function e(t,n){if(!a(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return c.alloc(0)}var r;if(n===undefined){n=0;for(r=0;r<t.length;++r){n+=t[r].length}}var i=c.allocUnsafe(n);var o=0;for(r=0;r<t.length;++r){var s=t[r];if(!c.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(i,o);o+=s.length}return i};function w(e,t){if(c.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var n=e.length;if(n===0)return 0;var r=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase();r=true}}}c.byteLength=w;function C(e,t,n){var r=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(n===undefined||n>this.length){n=this.length}if(n<=0){return""}n>>>=0;t>>>=0;if(n<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();r=true}}}c.prototype._isBuffer=true;function E(e,t,n){var r=e[t];e[t]=e[n];e[n]=r}c.prototype.swap16=function e(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var n=0;n<t;n+=2){E(this,n,n+1)}return this};c.prototype.swap32=function e(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var n=0;n<t;n+=4){E(this,n,n+3);E(this,n+1,n+2)}return this};c.prototype.swap64=function e(){var t=this.length;if(t%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var n=0;n<t;n+=8){E(this,n,n+7);E(this,n+1,n+6);E(this,n+2,n+5);E(this,n+3,n+4)}return this};c.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return N(this,0,t);return C.apply(this,arguments)};c.prototype.equals=function e(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return c.compare(this,t)===0};c.prototype.inspect=function e(){var n="";var r=t.INSPECT_MAX_BYTES;if(this.length>0){n=this.toString("hex",0,r).match(/.{2}/g).join(" ");if(this.length>r)n+=" ... "}return"<Buffer "+n+">"};c.prototype.compare=function e(t,n,r,i,a){if(!c.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(n===undefined){n=0}if(r===undefined){r=t?t.length:0}if(i===undefined){i=0}if(a===undefined){a=this.length}if(n<0||r>t.length||i<0||a>this.length){throw new RangeError("out of range index")}if(i>=a&&n>=r){return 0}if(i>=a){return-1}if(n>=r){return 1}n>>>=0;r>>>=0;i>>>=0;a>>>=0;if(this===t)return 0;var o=a-i;var s=r-n;var l=Math.min(o,s);var u=this.slice(i,a);var f=t.slice(n,r);for(var p=0;p<l;++p){if(u[p]!==f[p]){o=u[p];s=f[p];break}}if(o<s)return-1;if(s<o)return 1;return 0};function x(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==="string"){r=n;n=0}else if(n>2147483647){n=2147483647}else if(n<-2147483648){n=-2147483648}n=+n;if(isNaN(n)){n=i?0:e.length-1}if(n<0)n=e.length+n;if(n>=e.length){if(i)return-1;else n=e.length-1}else if(n<0){if(i)n=0;else return-1}if(typeof t==="string"){t=c.from(t,r)}if(c.isBuffer(t)){if(t.length===0){return-1}return L(e,t,n,r,i)}else if(typeof t==="number"){t=t&255;if(c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(i){return Uint8Array.prototype.indexOf.call(e,t,n)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,n)}}return L(e,[t],n,r,i)}throw new TypeError("val must be string, number or Buffer")}function L(e,t,n,r,i){var a=1;var o=e.length;var s=t.length;if(r!==undefined){r=String(r).toLowerCase();if(r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le"){if(e.length<2||t.length<2){return-1}a=2;o/=2;s/=2;n/=2}}function l(e,t){if(a===1){return e[t]}else{return e.readUInt16BE(t*a)}}var c;if(i){var u=-1;for(c=n;c<o;c++){if(l(e,c)===l(t,u===-1?0:c-u)){if(u===-1)u=c;if(c-u+1===s)return u*a}else{if(u!==-1)c-=c-u;u=-1}}}else{if(n+s>o)n=o-s;for(c=n;c>=0;c--){var f=true;for(var p=0;p<s;p++){if(l(e,c+p)!==l(t,p)){f=false;break}}if(f)return c}}return-1}c.prototype.includes=function e(t,n,r){return this.indexOf(t,n,r)!==-1};c.prototype.indexOf=function e(t,n,r){return x(this,t,n,r,true)};c.prototype.lastIndexOf=function e(t,n,r){return x(this,t,n,r,false)};function S(e,t,n,r){n=Number(n)||0;var i=e.length-n;if(!r){r=i}else{r=Number(r);if(r>i){r=i}}var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");if(r>a/2){r=a/2}for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function A(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function T(e,t,n,r){return ee(J(t),e,n,r)}function I(e,t,n,r){return T(e,t,n,r)}function M(e,t,n,r){return ee(Z(t),e,n,r)}function k(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}c.prototype.write=function e(t,n,r,i){if(n===undefined){i="utf8";r=this.length;n=0}else if(r===undefined&&typeof n==="string"){i=n;r=this.length;n=0}else if(isFinite(n)){n=n|0;if(isFinite(r)){r=r|0;if(i===undefined)i="utf8"}else{i=r;r=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var a=this.length-n;if(r===undefined||r>a)r=a;if(t.length>0&&(r<0||n<0)||n>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!i)i="utf8";var o=false;for(;;){switch(i){case"hex":return S(this,t,n,r);case"utf8":case"utf-8":return A(this,t,n,r);case"ascii":return T(this,t,n,r);case"latin1":case"binary":return I(this,t,n,r);case"base64":return M(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase();o=true}}};c.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,n){if(t===0&&n===e.length){return r.fromByteArray(e)}else{return r.fromByteArray(e.slice(t,n))}}function N(e,t,n){n=Math.min(e.length,n);var r=[];var i=t;while(i<n){var a=e[i];var o=null;var s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var l,c,u,f;switch(s){case 1:if(a<128){o=a}break;case 2:l=e[i+1];if((l&192)===128){f=(a&31)<<6|l&63;if(f>127){o=f}}break;case 3:l=e[i+1];c=e[i+2];if((l&192)===128&&(c&192)===128){f=(a&15)<<12|(l&63)<<6|c&63;if(f>2047&&(f<55296||f>57343)){o=f}}break;case 4:l=e[i+1];c=e[i+2];u=e[i+3];if((l&192)===128&&(c&192)===128&&(u&192)===128){f=(a&15)<<18|(l&63)<<12|(c&63)<<6|u&63;if(f>65535&&f<1114112){o=f}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;r.push(o>>>10&1023|55296);o=56320|o&1023}r.push(o);i+=s}return D(r)}var _=4096;function D(e){var t=e.length;if(t<=_){return String.fromCharCode.apply(String,e)}var n="";var r=0;while(r<t){n+=String.fromCharCode.apply(String,e.slice(r,r+=_))}return n}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i){r+=String.fromCharCode(e[i]&127)}return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i){r+=String.fromCharCode(e[i])}return r}function F(e,t,n){var r=e.length;if(!t||t<0)t=0;if(!n||n<0||n>r)n=r;var i="";for(var a=t;a<n;++a){i+=z(e[a])}return i}function j(e,t,n){var r=e.slice(t,n);var i="";for(var a=0;a<r.length;a+=2){i+=String.fromCharCode(r[a]+r[a+1]*256)}return i}c.prototype.slice=function e(t,n){var r=this.length;t=~~t;n=n===undefined?r:~~n;if(t<0){t+=r;if(t<0)t=0}else if(t>r){t=r}if(n<0){n+=r;if(n<0)n=0}else if(n>r){n=r}if(n<t)n=t;var i;if(c.TYPED_ARRAY_SUPPORT){i=this.subarray(t,n);i.__proto__=c.prototype}else{var a=n-t;i=new c(a,undefined);for(var o=0;o<a;++o){i[o]=this[o+t]}}return i};function B(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function e(t,n,r){t=t|0;n=n|0;if(!r)B(t,n,this.length);var i=this[t];var a=1;var o=0;while(++o<n&&(a*=256)){i+=this[t+o]*a}return i};c.prototype.readUIntBE=function e(t,n,r){t=t|0;n=n|0;if(!r){B(t,n,this.length)}var i=this[t+--n];var a=1;while(n>0&&(a*=256)){i+=this[t+--n]*a}return i};c.prototype.readUInt8=function e(t,n){if(!n)B(t,1,this.length);return this[t]};c.prototype.readUInt16LE=function e(t,n){if(!n)B(t,2,this.length);return this[t]|this[t+1]<<8};c.prototype.readUInt16BE=function e(t,n){if(!n)B(t,2,this.length);return this[t]<<8|this[t+1]};c.prototype.readUInt32LE=function e(t,n){if(!n)B(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};c.prototype.readUInt32BE=function e(t,n){if(!n)B(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};c.prototype.readIntLE=function e(t,n,r){t=t|0;n=n|0;if(!r)B(t,n,this.length);var i=this[t];var a=1;var o=0;while(++o<n&&(a*=256)){i+=this[t+o]*a}a*=128;if(i>=a)i-=Math.pow(2,8*n);return i};c.prototype.readIntBE=function e(t,n,r){t=t|0;n=n|0;if(!r)B(t,n,this.length);var i=n;var a=1;var o=this[t+--i];while(i>0&&(a*=256)){o+=this[t+--i]*a}a*=128;if(o>=a)o-=Math.pow(2,8*n);return o};c.prototype.readInt8=function e(t,n){if(!n)B(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};c.prototype.readInt16LE=function e(t,n){if(!n)B(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};c.prototype.readInt16BE=function e(t,n){if(!n)B(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};c.prototype.readInt32LE=function e(t,n){if(!n)B(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};c.prototype.readInt32BE=function e(t,n){if(!n)B(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};c.prototype.readFloatLE=function e(t,n){if(!n)B(t,4,this.length);return i.read(this,t,true,23,4)};c.prototype.readFloatBE=function e(t,n){if(!n)B(t,4,this.length);return i.read(this,t,false,23,4)};c.prototype.readDoubleLE=function e(t,n){if(!n)B(t,8,this.length);return i.read(this,t,true,52,8)};c.prototype.readDoubleBE=function e(t,n){if(!n)B(t,8,this.length);return i.read(this,t,false,52,8)};function $(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function e(t,n,r,i){t=+t;n=n|0;r=r|0;if(!i){var a=Math.pow(2,8*r)-1;$(this,t,n,r,a,0)}var o=1;var s=0;this[n]=t&255;while(++s<r&&(o*=256)){this[n+s]=t/o&255}return n+r};c.prototype.writeUIntBE=function e(t,n,r,i){t=+t;n=n|0;r=r|0;if(!i){var a=Math.pow(2,8*r)-1;$(this,t,n,r,a,0)}var o=r-1;var s=1;this[n+o]=t&255;while(--o>=0&&(s*=256)){this[n+o]=t/s&255}return n+r};c.prototype.writeUInt8=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,1,255,0);if(!c.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[n]=t&255;return n+1};function U(e,t,n,r){if(t<0)t=65535+t+1;for(var i=0,a=Math.min(e.length-n,2);i<a;++i){e[n+i]=(t&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}}c.prototype.writeUInt16LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,65535,0);if(c.TYPED_ARRAY_SUPPORT){this[n]=t&255;this[n+1]=t>>>8}else{U(this,t,n,true)}return n+2};c.prototype.writeUInt16BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,65535,0);if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>8;this[n+1]=t&255}else{U(this,t,n,false)}return n+2};function H(e,t,n,r){if(t<0)t=4294967295+t+1;for(var i=0,a=Math.min(e.length-n,4);i<a;++i){e[n+i]=t>>>(r?i:3-i)*8&255}}c.prototype.writeUInt32LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,4294967295,0);if(c.TYPED_ARRAY_SUPPORT){this[n+3]=t>>>24;this[n+2]=t>>>16;this[n+1]=t>>>8;this[n]=t&255}else{H(this,t,n,true)}return n+4};c.prototype.writeUInt32BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,4294967295,0);if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>24;this[n+1]=t>>>16;this[n+2]=t>>>8;this[n+3]=t&255}else{H(this,t,n,false)}return n+4};c.prototype.writeIntLE=function e(t,n,r,i){t=+t;n=n|0;if(!i){var a=Math.pow(2,8*r-1);$(this,t,n,r,a-1,-a)}var o=0;var s=1;var l=0;this[n]=t&255;while(++o<r&&(s*=256)){if(t<0&&l===0&&this[n+o-1]!==0){l=1}this[n+o]=(t/s>>0)-l&255}return n+r};c.prototype.writeIntBE=function e(t,n,r,i){t=+t;n=n|0;if(!i){var a=Math.pow(2,8*r-1);$(this,t,n,r,a-1,-a)}var o=r-1;var s=1;var l=0;this[n+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&l===0&&this[n+o+1]!==0){l=1}this[n+o]=(t/s>>0)-l&255}return n+r};c.prototype.writeInt8=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,1,127,-128);if(!c.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[n]=t&255;return n+1};c.prototype.writeInt16LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,32767,-32768);if(c.TYPED_ARRAY_SUPPORT){this[n]=t&255;this[n+1]=t>>>8}else{U(this,t,n,true)}return n+2};c.prototype.writeInt16BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,32767,-32768);if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>8;this[n+1]=t&255}else{U(this,t,n,false)}return n+2};c.prototype.writeInt32LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,2147483647,-2147483648);if(c.TYPED_ARRAY_SUPPORT){this[n]=t&255;this[n+1]=t>>>8;this[n+2]=t>>>16;this[n+3]=t>>>24}else{H(this,t,n,true)}return n+4};c.prototype.writeInt32BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>24;this[n+1]=t>>>16;this[n+2]=t>>>8;this[n+3]=t&255}else{H(this,t,n,false)}return n+4};function W(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(e,t,n,r,a){if(!a){W(e,t,n,4,34028234663852886e22,-34028234663852886e22)}i.write(e,t,n,r,23,4);return n+4}c.prototype.writeFloatLE=function e(t,n,r){return G(this,t,n,true,r)};c.prototype.writeFloatBE=function e(t,n,r){return G(this,t,n,false,r)};function q(e,t,n,r,a){if(!a){W(e,t,n,8,17976931348623157e292,-17976931348623157e292)}i.write(e,t,n,r,52,8);return n+8}c.prototype.writeDoubleLE=function e(t,n,r){return q(this,t,n,true,r)};c.prototype.writeDoubleBE=function e(t,n,r){return q(this,t,n,false,r)};c.prototype.copy=function e(t,n,r,i){if(!r)r=0;if(!i&&i!==0)i=this.length;if(n>=t.length)n=t.length;if(!n)n=0;if(i>0&&i<r)i=r;if(i===r)return 0;if(t.length===0||this.length===0)return 0;if(n<0){throw new RangeError("targetStart out of bounds")}if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");if(i>this.length)i=this.length;if(t.length-n<i-r){i=t.length-n+r}var a=i-r;var o;if(this===t&&r<n&&n<i){for(o=a-1;o>=0;--o){t[o+n]=this[o+r]}}else if(a<1e3||!c.TYPED_ARRAY_SUPPORT){for(o=0;o<a;++o){t[o+n]=this[o+r]}}else{Uint8Array.prototype.set.call(t,this.subarray(r,r+a),n)}return a};c.prototype.fill=function e(t,n,r,i){if(typeof t==="string"){if(typeof n==="string"){i=n;n=0;r=this.length}else if(typeof r==="string"){i=r;r=this.length}if(t.length===1){var a=t.charCodeAt(0);if(a<256){t=a}}if(i!==undefined&&typeof i!=="string"){throw new TypeError("encoding must be a string")}if(typeof i==="string"&&!c.isEncoding(i)){throw new TypeError("Unknown encoding: "+i)}}else if(typeof t==="number"){t=t&255}if(n<0||this.length<n||this.length<r){throw new RangeError("Out of range index")}if(r<=n){return this}n=n>>>0;r=r===undefined?this.length:r>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=n;o<r;++o){this[o]=t}}else{var s=c.isBuffer(t)?t:X(new c(t,i).toString());var l=s.length;for(o=0;o<r-n;++o){this[o+n]=s[o%l]}}return this};var V=/[^+\/0-9A-Za-z-_]/g;function K(e){e=Y(e).replace(V,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function Y(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function z(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function X(e,t){t=t||Infinity;var n;var r=e.length;var i=null;var a=[];for(var o=0;o<r;++o){n=e.charCodeAt(o);if(n>55295&&n<57344){if(!i){if(n>56319){if((t-=3)>-1)a.push(239,191,189);continue}else if(o+1===r){if((t-=3)>-1)a.push(239,191,189);continue}i=n;continue}if(n<56320){if((t-=3)>-1)a.push(239,191,189);i=n;continue}n=(i-55296<<10|n-56320)+65536}else if(i){if((t-=3)>-1)a.push(239,191,189)}i=null;if(n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else{throw new Error("Invalid code point")}}return a}function J(e){var t=[];for(var n=0;n<e.length;++n){t.push(e.charCodeAt(n)&255)}return t}function Q(e,t){var n,r,i;var a=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o);r=n>>8;i=n%256;a.push(i);a.push(r)}return a}function Z(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n(0))},function(e,t,n){"use strict";t.byteLength=u;t.toByteArray=p;t.fromByteArray=g;var r=[];var i=[];var a=typeof Uint8Array!=="undefined"?Uint8Array:Array;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var s=0,l=o.length;s<l;++s){r[s]=o[s];i[o.charCodeAt(s)]=s}i["-".charCodeAt(0)]=62;i["_".charCodeAt(0)]=63;function c(e){var t=e.length;if(t%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var n=e.indexOf("=");if(n===-1)n=t;var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e);var n=t[0];var r=t[1];return(n+r)*3/4-r}function f(e,t,n){return(t+n)*3/4-n}function p(e){var t;var n=c(e);var r=n[0];var o=n[1];var s=new a(f(e,r,o));var l=0;var u=o>0?r-4:r;var p;for(p=0;p<u;p+=4){t=i[e.charCodeAt(p)]<<18|i[e.charCodeAt(p+1)]<<12|i[e.charCodeAt(p+2)]<<6|i[e.charCodeAt(p+3)];s[l++]=t>>16&255;s[l++]=t>>8&255;s[l++]=t&255}if(o===2){t=i[e.charCodeAt(p)]<<2|i[e.charCodeAt(p+1)]>>4;s[l++]=t&255}if(o===1){t=i[e.charCodeAt(p)]<<10|i[e.charCodeAt(p+1)]<<4|i[e.charCodeAt(p+2)]>>2;s[l++]=t>>8&255;s[l++]=t&255}return s}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function h(e,t,n){var r;var i=[];for(var a=t;a<n;a+=3){r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255);i.push(d(r))}return i.join("")}function g(e){var t;var n=e.length;var i=n%3;var a=[];var o=16383;for(var s=0,l=n-i;s<l;s+=o){a.push(h(e,s,s+o>l?l:s+o))}if(i===1){t=e[n-1];a.push(r[t>>2]+r[t<<4&63]+"==")}else if(i===2){t=(e[n-2]<<8)+e[n-1];a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")}return a.join("")}},function(e,t){
45
+ var r=n(20);var i=n(21);var a=n(22);t.Buffer=c;t.SlowBuffer=b;t.INSPECT_MAX_BYTES=50;c.TYPED_ARRAY_SUPPORT=e.TYPED_ARRAY_SUPPORT!==undefined?e.TYPED_ARRAY_SUPPORT:o();t.kMaxLength=s();function o(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42&&typeof e.subarray==="function"&&e.subarray(1,1).byteLength===0}catch(e){return false}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t){throw new RangeError("Invalid typed array length")}if(c.TYPED_ARRAY_SUPPORT){e=new Uint8Array(t);e.__proto__=c.prototype}else{if(e===null){e=new c(t)}e.length=t}return e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c)){return new c(e,t,n)}if(typeof e==="number"){if(typeof t==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return d(this,e)}return u(this,e,t,n)}c.poolSize=8192;c._augment=function(e){e.__proto__=c.prototype;return e};function u(e,t,n,r){if(typeof t==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&t instanceof ArrayBuffer){return m(e,t,n,r)}if(typeof t==="string"){return h(e,t,n)}return v(e,t)}c.from=function(e,t,n){return u(null,e,t,n)};if(c.TYPED_ARRAY_SUPPORT){c.prototype.__proto__=Uint8Array.prototype;c.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&c[Symbol.species]===c){Object.defineProperty(c,Symbol.species,{value:null,configurable:true})}}function f(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function p(e,t,n,r){f(t);if(t<=0){return l(e,t)}if(n!==undefined){return typeof r==="string"?l(e,t).fill(n,r):l(e,t).fill(n)}return l(e,t)}c.alloc=function(e,t,n){return p(null,e,t,n)};function d(e,t){f(t);e=l(e,t<0?0:y(t)|0);if(!c.TYPED_ARRAY_SUPPORT){for(var n=0;n<t;++n){e[n]=0}}return e}c.allocUnsafe=function(e){return d(null,e)};c.allocUnsafeSlow=function(e){return d(null,e)};function h(e,t,n){if(typeof n!=="string"||n===""){n="utf8"}if(!c.isEncoding(n)){throw new TypeError('"encoding" must be a valid string encoding')}var r=w(t,n)|0;e=l(e,r);var i=e.write(t,n);if(i!==r){e=e.slice(0,i)}return e}function g(e,t){var n=t.length<0?0:y(t.length)|0;e=l(e,n);for(var r=0;r<n;r+=1){e[r]=t[r]&255}return e}function m(e,t,n,r){t.byteLength;if(n<0||t.byteLength<n){throw new RangeError("'offset' is out of bounds")}if(t.byteLength<n+(r||0)){throw new RangeError("'length' is out of bounds")}if(n===undefined&&r===undefined){t=new Uint8Array(t)}else if(r===undefined){t=new Uint8Array(t,n)}else{t=new Uint8Array(t,n,r)}if(c.TYPED_ARRAY_SUPPORT){e=t;e.__proto__=c.prototype}else{e=g(e,t)}return e}function v(e,t){if(c.isBuffer(t)){var n=y(t.length)|0;e=l(e,n);if(e.length===0){return e}t.copy(e,0,0,n);return e}if(t){if(typeof ArrayBuffer!=="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t){if(typeof t.length!=="number"||te(t.length)){return l(e,0)}return g(e,t)}if(t.type==="Buffer"&&a(t.data)){return g(e,t.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function y(e){if(e>=s()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+s().toString(16)+" bytes")}return e|0}function b(e){if(+e!=e){e=0}return c.alloc(+e)}c.isBuffer=function e(t){return!!(t!=null&&t._isBuffer)};c.compare=function e(t,n){if(!c.isBuffer(t)||!c.isBuffer(n)){throw new TypeError("Arguments must be Buffers")}if(t===n)return 0;var r=t.length;var i=n.length;for(var a=0,o=Math.min(r,i);a<o;++a){if(t[a]!==n[a]){r=t[a];i=n[a];break}}if(r<i)return-1;if(i<r)return 1;return 0};c.isEncoding=function e(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};c.concat=function e(t,n){if(!a(t)){throw new TypeError('"list" argument must be an Array of Buffers')}if(t.length===0){return c.alloc(0)}var r;if(n===undefined){n=0;for(r=0;r<t.length;++r){n+=t[r].length}}var i=c.allocUnsafe(n);var o=0;for(r=0;r<t.length;++r){var s=t[r];if(!c.isBuffer(s)){throw new TypeError('"list" argument must be an Array of Buffers')}s.copy(i,o);o+=s.length}return i};function w(e,t){if(c.isBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var n=e.length;if(n===0)return 0;var r=false;for(;;){switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case undefined:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return Z(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase();r=true}}}c.byteLength=w;function C(e,t,n){var r=false;if(t===undefined||t<0){t=0}if(t>this.length){return""}if(n===undefined||n>this.length){n=this.length}if(n<=0){return""}n>>>=0;t>>>=0;if(n<=t){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();r=true}}}c.prototype._isBuffer=true;function E(e,t,n){var r=e[t];e[t]=e[n];e[n]=r}c.prototype.swap16=function e(){var t=this.length;if(t%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var n=0;n<t;n+=2){E(this,n,n+1)}return this};c.prototype.swap32=function e(){var t=this.length;if(t%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var n=0;n<t;n+=4){E(this,n,n+3);E(this,n+1,n+2)}return this};c.prototype.swap64=function e(){var t=this.length;if(t%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var n=0;n<t;n+=8){E(this,n,n+7);E(this,n+1,n+6);E(this,n+2,n+5);E(this,n+3,n+4)}return this};c.prototype.toString=function e(){var t=this.length|0;if(t===0)return"";if(arguments.length===0)return N(this,0,t);return C.apply(this,arguments)};c.prototype.equals=function e(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(this===t)return true;return c.compare(this,t)===0};c.prototype.inspect=function e(){var n="";var r=t.INSPECT_MAX_BYTES;if(this.length>0){n=this.toString("hex",0,r).match(/.{2}/g).join(" ");if(this.length>r)n+=" ... "}return"<Buffer "+n+">"};c.prototype.compare=function e(t,n,r,i,a){if(!c.isBuffer(t)){throw new TypeError("Argument must be a Buffer")}if(n===undefined){n=0}if(r===undefined){r=t?t.length:0}if(i===undefined){i=0}if(a===undefined){a=this.length}if(n<0||r>t.length||i<0||a>this.length){throw new RangeError("out of range index")}if(i>=a&&n>=r){return 0}if(i>=a){return-1}if(n>=r){return 1}n>>>=0;r>>>=0;i>>>=0;a>>>=0;if(this===t)return 0;var o=a-i;var s=r-n;var l=Math.min(o,s);var u=this.slice(i,a);var f=t.slice(n,r);for(var p=0;p<l;++p){if(u[p]!==f[p]){o=u[p];s=f[p];break}}if(o<s)return-1;if(s<o)return 1;return 0};function x(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==="string"){r=n;n=0}else if(n>2147483647){n=2147483647}else if(n<-2147483648){n=-2147483648}n=+n;if(isNaN(n)){n=i?0:e.length-1}if(n<0)n=e.length+n;if(n>=e.length){if(i)return-1;else n=e.length-1}else if(n<0){if(i)n=0;else return-1}if(typeof t==="string"){t=c.from(t,r)}if(c.isBuffer(t)){if(t.length===0){return-1}return L(e,t,n,r,i)}else if(typeof t==="number"){t=t&255;if(c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(i){return Uint8Array.prototype.indexOf.call(e,t,n)}else{return Uint8Array.prototype.lastIndexOf.call(e,t,n)}}return L(e,[t],n,r,i)}throw new TypeError("val must be string, number or Buffer")}function L(e,t,n,r,i){var a=1;var o=e.length;var s=t.length;if(r!==undefined){r=String(r).toLowerCase();if(r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le"){if(e.length<2||t.length<2){return-1}a=2;o/=2;s/=2;n/=2}}function l(e,t){if(a===1){return e[t]}else{return e.readUInt16BE(t*a)}}var c;if(i){var u=-1;for(c=n;c<o;c++){if(l(e,c)===l(t,u===-1?0:c-u)){if(u===-1)u=c;if(c-u+1===s)return u*a}else{if(u!==-1)c-=c-u;u=-1}}}else{if(n+s>o)n=o-s;for(c=n;c>=0;c--){var f=true;for(var p=0;p<s;p++){if(l(e,c+p)!==l(t,p)){f=false;break}}if(f)return c}}return-1}c.prototype.includes=function e(t,n,r){return this.indexOf(t,n,r)!==-1};c.prototype.indexOf=function e(t,n,r){return x(this,t,n,r,true)};c.prototype.lastIndexOf=function e(t,n,r){return x(this,t,n,r,false)};function S(e,t,n,r){n=Number(n)||0;var i=e.length-n;if(!r){r=i}else{r=Number(r);if(r>i){r=i}}var a=t.length;if(a%2!==0)throw new TypeError("Invalid hex string");if(r>a/2){r=a/2}for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function A(e,t,n,r){return ee(X(t,e.length-n),e,n,r)}function T(e,t,n,r){return ee(J(t),e,n,r)}function I(e,t,n,r){return T(e,t,n,r)}function M(e,t,n,r){return ee(Z(t),e,n,r)}function k(e,t,n,r){return ee(Q(t,e.length-n),e,n,r)}c.prototype.write=function e(t,n,r,i){if(n===undefined){i="utf8";r=this.length;n=0}else if(r===undefined&&typeof n==="string"){i=n;r=this.length;n=0}else if(isFinite(n)){n=n|0;if(isFinite(r)){r=r|0;if(i===undefined)i="utf8"}else{i=r;r=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var a=this.length-n;if(r===undefined||r>a)r=a;if(t.length>0&&(r<0||n<0)||n>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!i)i="utf8";var o=false;for(;;){switch(i){case"hex":return S(this,t,n,r);case"utf8":case"utf-8":return A(this,t,n,r);case"ascii":return T(this,t,n,r);case"latin1":case"binary":return I(this,t,n,r);case"base64":return M(this,t,n,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,n,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase();o=true}}};c.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,n){if(t===0&&n===e.length){return r.fromByteArray(e)}else{return r.fromByteArray(e.slice(t,n))}}function N(e,t,n){n=Math.min(e.length,n);var r=[];var i=t;while(i<n){var a=e[i];var o=null;var s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var l,c,u,f;switch(s){case 1:if(a<128){o=a}break;case 2:l=e[i+1];if((l&192)===128){f=(a&31)<<6|l&63;if(f>127){o=f}}break;case 3:l=e[i+1];c=e[i+2];if((l&192)===128&&(c&192)===128){f=(a&15)<<12|(l&63)<<6|c&63;if(f>2047&&(f<55296||f>57343)){o=f}}break;case 4:l=e[i+1];c=e[i+2];u=e[i+3];if((l&192)===128&&(c&192)===128&&(u&192)===128){f=(a&15)<<18|(l&63)<<12|(c&63)<<6|u&63;if(f>65535&&f<1114112){o=f}}}}if(o===null){o=65533;s=1}else if(o>65535){o-=65536;r.push(o>>>10&1023|55296);o=56320|o&1023}r.push(o);i+=s}return D(r)}var _=4096;function D(e){var t=e.length;if(t<=_){return String.fromCharCode.apply(String,e)}var n="";var r=0;while(r<t){n+=String.fromCharCode.apply(String,e.slice(r,r+=_))}return n}function R(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i){r+=String.fromCharCode(e[i]&127)}return r}function P(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i){r+=String.fromCharCode(e[i])}return r}function F(e,t,n){var r=e.length;if(!t||t<0)t=0;if(!n||n<0||n>r)n=r;var i="";for(var a=t;a<n;++a){i+=z(e[a])}return i}function j(e,t,n){var r=e.slice(t,n);var i="";for(var a=0;a<r.length;a+=2){i+=String.fromCharCode(r[a]+r[a+1]*256)}return i}c.prototype.slice=function e(t,n){var r=this.length;t=~~t;n=n===undefined?r:~~n;if(t<0){t+=r;if(t<0)t=0}else if(t>r){t=r}if(n<0){n+=r;if(n<0)n=0}else if(n>r){n=r}if(n<t)n=t;var i;if(c.TYPED_ARRAY_SUPPORT){i=this.subarray(t,n);i.__proto__=c.prototype}else{var a=n-t;i=new c(a,undefined);for(var o=0;o<a;++o){i[o]=this[o+t]}}return i};function B(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function e(t,n,r){t=t|0;n=n|0;if(!r)B(t,n,this.length);var i=this[t];var a=1;var o=0;while(++o<n&&(a*=256)){i+=this[t+o]*a}return i};c.prototype.readUIntBE=function e(t,n,r){t=t|0;n=n|0;if(!r){B(t,n,this.length)}var i=this[t+--n];var a=1;while(n>0&&(a*=256)){i+=this[t+--n]*a}return i};c.prototype.readUInt8=function e(t,n){if(!n)B(t,1,this.length);return this[t]};c.prototype.readUInt16LE=function e(t,n){if(!n)B(t,2,this.length);return this[t]|this[t+1]<<8};c.prototype.readUInt16BE=function e(t,n){if(!n)B(t,2,this.length);return this[t]<<8|this[t+1]};c.prototype.readUInt32LE=function e(t,n){if(!n)B(t,4,this.length);return(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};c.prototype.readUInt32BE=function e(t,n){if(!n)B(t,4,this.length);return this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};c.prototype.readIntLE=function e(t,n,r){t=t|0;n=n|0;if(!r)B(t,n,this.length);var i=this[t];var a=1;var o=0;while(++o<n&&(a*=256)){i+=this[t+o]*a}a*=128;if(i>=a)i-=Math.pow(2,8*n);return i};c.prototype.readIntBE=function e(t,n,r){t=t|0;n=n|0;if(!r)B(t,n,this.length);var i=n;var a=1;var o=this[t+--i];while(i>0&&(a*=256)){o+=this[t+--i]*a}a*=128;if(o>=a)o-=Math.pow(2,8*n);return o};c.prototype.readInt8=function e(t,n){if(!n)B(t,1,this.length);if(!(this[t]&128))return this[t];return(255-this[t]+1)*-1};c.prototype.readInt16LE=function e(t,n){if(!n)B(t,2,this.length);var r=this[t]|this[t+1]<<8;return r&32768?r|4294901760:r};c.prototype.readInt16BE=function e(t,n){if(!n)B(t,2,this.length);var r=this[t+1]|this[t]<<8;return r&32768?r|4294901760:r};c.prototype.readInt32LE=function e(t,n){if(!n)B(t,4,this.length);return this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};c.prototype.readInt32BE=function e(t,n){if(!n)B(t,4,this.length);return this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};c.prototype.readFloatLE=function e(t,n){if(!n)B(t,4,this.length);return i.read(this,t,true,23,4)};c.prototype.readFloatBE=function e(t,n){if(!n)B(t,4,this.length);return i.read(this,t,false,23,4)};c.prototype.readDoubleLE=function e(t,n){if(!n)B(t,8,this.length);return i.read(this,t,true,52,8)};c.prototype.readDoubleBE=function e(t,n){if(!n)B(t,8,this.length);return i.read(this,t,false,52,8)};function $(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function e(t,n,r,i){t=+t;n=n|0;r=r|0;if(!i){var a=Math.pow(2,8*r)-1;$(this,t,n,r,a,0)}var o=1;var s=0;this[n]=t&255;while(++s<r&&(o*=256)){this[n+s]=t/o&255}return n+r};c.prototype.writeUIntBE=function e(t,n,r,i){t=+t;n=n|0;r=r|0;if(!i){var a=Math.pow(2,8*r)-1;$(this,t,n,r,a,0)}var o=r-1;var s=1;this[n+o]=t&255;while(--o>=0&&(s*=256)){this[n+o]=t/s&255}return n+r};c.prototype.writeUInt8=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,1,255,0);if(!c.TYPED_ARRAY_SUPPORT)t=Math.floor(t);this[n]=t&255;return n+1};function U(e,t,n,r){if(t<0)t=65535+t+1;for(var i=0,a=Math.min(e.length-n,2);i<a;++i){e[n+i]=(t&255<<8*(r?i:1-i))>>>(r?i:1-i)*8}}c.prototype.writeUInt16LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,65535,0);if(c.TYPED_ARRAY_SUPPORT){this[n]=t&255;this[n+1]=t>>>8}else{U(this,t,n,true)}return n+2};c.prototype.writeUInt16BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,65535,0);if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>8;this[n+1]=t&255}else{U(this,t,n,false)}return n+2};function H(e,t,n,r){if(t<0)t=4294967295+t+1;for(var i=0,a=Math.min(e.length-n,4);i<a;++i){e[n+i]=t>>>(r?i:3-i)*8&255}}c.prototype.writeUInt32LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,4294967295,0);if(c.TYPED_ARRAY_SUPPORT){this[n+3]=t>>>24;this[n+2]=t>>>16;this[n+1]=t>>>8;this[n]=t&255}else{H(this,t,n,true)}return n+4};c.prototype.writeUInt32BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,4294967295,0);if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>24;this[n+1]=t>>>16;this[n+2]=t>>>8;this[n+3]=t&255}else{H(this,t,n,false)}return n+4};c.prototype.writeIntLE=function e(t,n,r,i){t=+t;n=n|0;if(!i){var a=Math.pow(2,8*r-1);$(this,t,n,r,a-1,-a)}var o=0;var s=1;var l=0;this[n]=t&255;while(++o<r&&(s*=256)){if(t<0&&l===0&&this[n+o-1]!==0){l=1}this[n+o]=(t/s>>0)-l&255}return n+r};c.prototype.writeIntBE=function e(t,n,r,i){t=+t;n=n|0;if(!i){var a=Math.pow(2,8*r-1);$(this,t,n,r,a-1,-a)}var o=r-1;var s=1;var l=0;this[n+o]=t&255;while(--o>=0&&(s*=256)){if(t<0&&l===0&&this[n+o+1]!==0){l=1}this[n+o]=(t/s>>0)-l&255}return n+r};c.prototype.writeInt8=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,1,127,-128);if(!c.TYPED_ARRAY_SUPPORT)t=Math.floor(t);if(t<0)t=255+t+1;this[n]=t&255;return n+1};c.prototype.writeInt16LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,32767,-32768);if(c.TYPED_ARRAY_SUPPORT){this[n]=t&255;this[n+1]=t>>>8}else{U(this,t,n,true)}return n+2};c.prototype.writeInt16BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,2,32767,-32768);if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>8;this[n+1]=t&255}else{U(this,t,n,false)}return n+2};c.prototype.writeInt32LE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,2147483647,-2147483648);if(c.TYPED_ARRAY_SUPPORT){this[n]=t&255;this[n+1]=t>>>8;this[n+2]=t>>>16;this[n+3]=t>>>24}else{H(this,t,n,true)}return n+4};c.prototype.writeInt32BE=function e(t,n,r){t=+t;n=n|0;if(!r)$(this,t,n,4,2147483647,-2147483648);if(t<0)t=4294967295+t+1;if(c.TYPED_ARRAY_SUPPORT){this[n]=t>>>24;this[n+1]=t>>>16;this[n+2]=t>>>8;this[n+3]=t&255}else{H(this,t,n,false)}return n+4};function W(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(e,t,n,r,a){if(!a){W(e,t,n,4,34028234663852886e22,-34028234663852886e22)}i.write(e,t,n,r,23,4);return n+4}c.prototype.writeFloatLE=function e(t,n,r){return G(this,t,n,true,r)};c.prototype.writeFloatBE=function e(t,n,r){return G(this,t,n,false,r)};function q(e,t,n,r,a){if(!a){W(e,t,n,8,17976931348623157e292,-17976931348623157e292)}i.write(e,t,n,r,52,8);return n+8}c.prototype.writeDoubleLE=function e(t,n,r){return q(this,t,n,true,r)};c.prototype.writeDoubleBE=function e(t,n,r){return q(this,t,n,false,r)};c.prototype.copy=function e(t,n,r,i){if(!r)r=0;if(!i&&i!==0)i=this.length;if(n>=t.length)n=t.length;if(!n)n=0;if(i>0&&i<r)i=r;if(i===r)return 0;if(t.length===0||this.length===0)return 0;if(n<0){throw new RangeError("targetStart out of bounds")}if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");if(i>this.length)i=this.length;if(t.length-n<i-r){i=t.length-n+r}var a=i-r;var o;if(this===t&&r<n&&n<i){for(o=a-1;o>=0;--o){t[o+n]=this[o+r]}}else if(a<1e3||!c.TYPED_ARRAY_SUPPORT){for(o=0;o<a;++o){t[o+n]=this[o+r]}}else{Uint8Array.prototype.set.call(t,this.subarray(r,r+a),n)}return a};c.prototype.fill=function e(t,n,r,i){if(typeof t==="string"){if(typeof n==="string"){i=n;n=0;r=this.length}else if(typeof r==="string"){i=r;r=this.length}if(t.length===1){var a=t.charCodeAt(0);if(a<256){t=a}}if(i!==undefined&&typeof i!=="string"){throw new TypeError("encoding must be a string")}if(typeof i==="string"&&!c.isEncoding(i)){throw new TypeError("Unknown encoding: "+i)}}else if(typeof t==="number"){t=t&255}if(n<0||this.length<n||this.length<r){throw new RangeError("Out of range index")}if(r<=n){return this}n=n>>>0;r=r===undefined?this.length:r>>>0;if(!t)t=0;var o;if(typeof t==="number"){for(o=n;o<r;++o){this[o]=t}}else{var s=c.isBuffer(t)?t:X(new c(t,i).toString());var l=s.length;for(o=0;o<r-n;++o){this[o+n]=s[o%l]}}return this};var V=/[^+\/0-9A-Za-z-_]/g;function K(e){e=Y(e).replace(V,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function Y(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function z(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function X(e,t){t=t||Infinity;var n;var r=e.length;var i=null;var a=[];for(var o=0;o<r;++o){n=e.charCodeAt(o);if(n>55295&&n<57344){if(!i){if(n>56319){if((t-=3)>-1)a.push(239,191,189);continue}else if(o+1===r){if((t-=3)>-1)a.push(239,191,189);continue}i=n;continue}if(n<56320){if((t-=3)>-1)a.push(239,191,189);i=n;continue}n=(i-55296<<10|n-56320)+65536}else if(i){if((t-=3)>-1)a.push(239,191,189)}i=null;if(n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else{throw new Error("Invalid code point")}}return a}function J(e){var t=[];for(var n=0;n<e.length;++n){t.push(e.charCodeAt(n)&255)}return t}function Q(e,t){var n,r,i;var a=[];for(var o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o);r=n>>8;i=n%256;a.push(i);a.push(r)}return a}function Z(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n(0))},function(e,t,n){"use strict";t.byteLength=u;t.toByteArray=p;t.fromByteArray=g;var r=[];var i=[];var a=typeof Uint8Array!=="undefined"?Uint8Array:Array;var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var s=0,l=o.length;s<l;++s){r[s]=o[s];i[o.charCodeAt(s)]=s}i["-".charCodeAt(0)]=62;i["_".charCodeAt(0)]=63;function c(e){var t=e.length;if(t%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var n=e.indexOf("=");if(n===-1)n=t;var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e);var n=t[0];var r=t[1];return(n+r)*3/4-r}function f(e,t,n){return(t+n)*3/4-n}function p(e){var t;var n=c(e);var r=n[0];var o=n[1];var s=new a(f(e,r,o));var l=0;var u=o>0?r-4:r;var p;for(p=0;p<u;p+=4){t=i[e.charCodeAt(p)]<<18|i[e.charCodeAt(p+1)]<<12|i[e.charCodeAt(p+2)]<<6|i[e.charCodeAt(p+3)];s[l++]=t>>16&255;s[l++]=t>>8&255;s[l++]=t&255}if(o===2){t=i[e.charCodeAt(p)]<<2|i[e.charCodeAt(p+1)]>>4;s[l++]=t&255}if(o===1){t=i[e.charCodeAt(p)]<<10|i[e.charCodeAt(p+1)]<<4|i[e.charCodeAt(p+2)]>>2;s[l++]=t>>8&255;s[l++]=t&255}return s}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[e&63]}function h(e,t,n){var r;var i=[];for(var a=t;a<n;a+=3){r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255);i.push(d(r))}return i.join("")}function g(e){var t;var n=e.length;var i=n%3;var a=[];var o=16383;for(var s=0,l=n-i;s<l;s+=o){a.push(h(e,s,s+o>l?l:s+o))}if(i===1){t=e[n-1];a.push(r[t>>2]+r[t<<4&63]+"==")}else if(i===2){t=(e[n-2]<<8)+e[n-1];a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")}return a.join("")}},function(e,t){
45
46
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
46
- t.read=function(e,t,n,r,i){var a,o;var s=i*8-r-1;var l=(1<<s)-1;var c=l>>1;var u=-7;var f=n?i-1:0;var p=n?-1:1;var d=e[t+f];f+=p;a=d&(1<<-u)-1;d>>=-u;u+=s;for(;u>0;a=a*256+e[t+f],f+=p,u-=8){}o=a&(1<<-u)-1;a>>=-u;u+=r;for(;u>0;o=o*256+e[t+f],f+=p,u-=8){}if(a===0){a=1-c}else if(a===l){return o?NaN:(d?-1:1)*Infinity}else{o=o+Math.pow(2,r);a=a-c}return(d?-1:1)*o*Math.pow(2,a-r)};t.write=function(e,t,n,r,i,a){var o,s,l;var c=a*8-i-1;var u=(1<<c)-1;var f=u>>1;var p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var d=r?0:a-1;var h=r?1:-1;var g=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){s=isNaN(t)?1:0;o=u}else{o=Math.floor(Math.log(t)/Math.LN2);if(t*(l=Math.pow(2,-o))<1){o--;l*=2}if(o+f>=1){t+=p/l}else{t+=p*Math.pow(2,1-f)}if(t*l>=2){o++;l/=2}if(o+f>=u){s=0;o=u}else if(o+f>=1){s=(t*l-1)*Math.pow(2,i);o=o+f}else{s=t*Math.pow(2,f-1)*Math.pow(2,i);o=0}}for(;i>=8;e[n+d]=s&255,d+=h,s/=256,i-=8){}o=o<<i|s;c+=i;for(;c>0;e[n+d]=o&255,d+=h,o/=256,c-=8){}e[n+d-h]|=g*128}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return n.call(e)=="[object Array]"}},function(e,t){e.exports=({protocol:e,hostname:t,path:n},r)=>new Promise(((i,a)=>{let o=new XMLHttpRequest;o.open("POST",`${e}//${t}${n}`,true);o.setRequestHeader("Content-Type","application/json;charset=UTF-8");o.setRequestHeader("Access-Control-Allow-Origin","*");o.setRequestHeader("Accept","*/*");o.onreadystatechange=()=>{if(o.readyState==4){o.status==200?i(JSON.parse(o.responseText)):a(o.status)}};o.send(JSON.stringify(r))}))},function(e,t){t.endianness=function(){return"LE"};t.hostname=function(){if(typeof location!=="undefined"){return location.hostname}else return""};t.loadavg=function(){return[]};t.uptime=function(){return 0};t.freemem=function(){return Number.MAX_VALUE};t.totalmem=function(){return Number.MAX_VALUE};t.cpus=function(){return[]};t.type=function(){return"Browser"};t.release=function(){if(typeof navigator!=="undefined"){return navigator.appVersion}return""};t.networkInterfaces=t.getNetworkInterfaces=function(){return{}};t.arch=function(){return"javascript"};t.platform=function(){return"browser"};t.tmpdir=t.tmpDir=function(){return"/tmp"};t.EOL="\n";t.homedir=function(){return"/"}},function(e,t,n){"use strict";n.r(t);n.d(t,"CORE_SCHEMA",(function(){return rr}));n.d(t,"DEFAULT_SCHEMA",(function(){return ir}));n.d(t,"FAILSAFE_SCHEMA",(function(){return tr}));n.d(t,"JSON_SCHEMA",(function(){return nr}));n.d(t,"Schema",(function(){return er}));n.d(t,"Type",(function(){return Zn}));n.d(t,"YAMLException",(function(){return lr}));n.d(t,"dump",(function(){return sr}));n.d(t,"load",(function(){return ar}));n.d(t,"loadAll",(function(){return or}));n.d(t,"safeDump",(function(){return pr}));n.d(t,"safeLoad",(function(){return ur}));n.d(t,"safeLoadAll",(function(){return fr}));n.d(t,"types",(function(){return cr}));
47
- /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function r(e){return typeof e==="undefined"||e===null}function i(e){return typeof e==="object"&&e!==null}function a(e){if(Array.isArray(e))return e;else if(r(e))return[];return[e]}function o(e,t){var n,r,i,a;if(t){a=Object.keys(t);for(n=0,r=a.length;n<r;n+=1){i=a[n];e[i]=t[i]}}return e}function s(e,t){var n="",r;for(r=0;r<t;r+=1){n+=e}return n}function l(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var c=r;var u=i;var f=a;var p=s;var d=l;var h=o;var g={isNothing:c,isObject:u,toArray:f,repeat:p,isNegativeZero:d,extend:h};function m(e,t){var n="",r=e.reason||"(unknown reason)";if(!e.mark)return r;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return r+" "+n}function v(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=m(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}v.prototype=Object.create(Error.prototype);v.prototype.constructor=v;v.prototype.toString=function e(t){return this.name+": "+m(this,t)};var y=v;function b(e,t,n,r,i){var a="";var o="";var s=Math.floor(i/2)-1;if(r-t>s){a=" ... ";t=r-s+a.length}if(n-r>s){o=" ...";n=r+s-o.length}return{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function w(e,t){return g.repeat(" ",t-e.length)+e}function C(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var r=[0];var i=[];var a;var o=-1;while(a=n.exec(e.buffer)){i.push(a.index);r.push(a.index+a[0].length);if(e.position<=a.index&&o<0){o=r.length-2}}if(o<0)o=r.length-1;var s="",l,c;var u=Math.min(e.line+t.linesAfter,i.length).toString().length;var f=t.maxLength-(t.indent+u+3);for(l=1;l<=t.linesBefore;l++){if(o-l<0)break;c=b(e.buffer,r[o-l],i[o-l],e.position-(r[o]-r[o-l]),f);s=g.repeat(" ",t.indent)+w((e.line-l+1).toString(),u)+" | "+c.str+"\n"+s}c=b(e.buffer,r[o],i[o],e.position,f);s+=g.repeat(" ",t.indent)+w((e.line+1).toString(),u)+" | "+c.str+"\n";s+=g.repeat("-",t.indent+u+3+c.pos)+"^"+"\n";for(l=1;l<=t.linesAfter;l++){if(o+l>=i.length)break;c=b(e.buffer,r[o+l],i[o+l],e.position-(r[o]-r[o+l]),f);s+=g.repeat(" ",t.indent)+w((e.line+l+1).toString(),u)+" | "+c.str+"\n"}return s.replace(/\n$/,"")}var E=C;var x=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var L=["scalar","sequence","mapping"];function S(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function A(e,t){t=t||{};Object.keys(t).forEach((function(t){if(x.indexOf(t)===-1){throw new y('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=S(t["styleAliases"]||null);if(L.indexOf(this.kind)===-1){throw new y('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var T=A;function I(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,r){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=r}}));n[t]=e}));return n}function M(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t<n;t+=1){arguments[t].forEach(r)}return e}function k(e){return this.extend(e)}k.prototype.extend=function e(t){var n=[];var r=[];if(t instanceof T){r.push(t)}else if(Array.isArray(t)){r=r.concat(t)}else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit))){if(t.implicit)n=n.concat(t.implicit);if(t.explicit)r=r.concat(t.explicit)}else{throw new y("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}n.forEach((function(e){if(!(e instanceof T)){throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new y("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new y("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));r.forEach((function(e){if(!(e instanceof T)){throw new y("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var i=Object.create(k.prototype);i.implicit=(this.implicit||[]).concat(n);i.explicit=(this.explicit||[]).concat(r);i.compiledImplicit=I(i,"implicit");i.compiledExplicit=I(i,"explicit");i.compiledTypeMap=M(i.compiledImplicit,i.compiledExplicit);return i};var O=k;var N=new T("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}});var _=new T("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}});var D=new T("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}});var R=new O({explicit:[N,_,D]});function P(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function F(){return null}function j(e){return e===null}var B=new T("tag:yaml.org,2002:null",{kind:"scalar",resolve:P,construct:F,predicate:j,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function $(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function U(e){return e==="true"||e==="True"||e==="TRUE"}function H(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var W=new T("tag:yaml.org,2002:bool",{kind:"scalar",resolve:$,construct:U,predicate:H,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function G(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function q(e){return 48<=e&&e<=55}function V(e){return 48<=e&&e<=57}function K(e){if(e===null)return false;var t=e.length,n=0,r=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;r=true}return r&&i!=="_"}if(i==="x"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!G(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}if(i==="o"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!q(e.charCodeAt(n)))return false;r=true}return r&&i!=="_"}}if(i==="_")return false;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!V(e.charCodeAt(n))){return false}r=true}if(!r||i==="_")return false;return true}function Y(e){var t=e,n=1,r;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}r=t[0];if(r==="-"||r==="+"){if(r==="-")n=-1;t=t.slice(1);r=t[0]}if(t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function z(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!g.isNegativeZero(e))}var X=new T("tag:yaml.org,2002:int",{kind:"scalar",resolve:K,construct:Y,predicate:z,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function Q(e){if(e===null)return false;if(!J.test(e)||e[e.length-1]==="_"){return false}return true}function Z(e){var t,n;t=e.replace(/_/g,"").toLowerCase();n=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var ee=/^[-+]?[0-9]+e/;function te(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(g.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return ee.test(n)?n.replace("e",".e"):n}function ne(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||g.isNegativeZero(e))}var re=new T("tag:yaml.org,2002:float",{kind:"scalar",resolve:Q,construct:Z,predicate:ne,represent:te,defaultStyle:"lowercase"});var ie=R.extend({implicit:[B,W,X,re]});var ae=ie;var oe=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var se=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function le(e){if(e===null)return false;if(oe.exec(e)!==null)return true;if(se.exec(e)!==null)return true;return false}function ce(e){var t,n,r,i,a,o,s,l=0,c=null,u,f,p;t=oe.exec(e);if(t===null)t=se.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];r=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(n,r,i))}a=+t[4];o=+t[5];s=+t[6];if(t[7]){l=t[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(t[9]){u=+t[10];f=+(t[11]||0);c=(u*60+f)*6e4;if(t[9]==="-")c=-c}p=new Date(Date.UTC(n,r,i,a,o,s,l));if(c)p.setTime(p.getTime()-c);return p}function ue(e){return e.toISOString()}var fe=new T("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:le,construct:ce,instanceOf:Date,represent:ue});function pe(e){return e==="<<"||e===null}var de=new T("tag:yaml.org,2002:merge",{kind:"scalar",resolve:pe});var he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function ge(e){if(e===null)return false;var t,n,r=0,i=e.length,a=he;for(n=0;n<i;n++){t=a.indexOf(e.charAt(n));if(t>64)continue;if(t<0)return false;r+=6}return r%8===0}function me(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,a=he,o=0,s=[];for(t=0;t<i;t++){if(t%4===0&&t){s.push(o>>16&255);s.push(o>>8&255);s.push(o&255)}o=o<<6|a.indexOf(r.charAt(t))}n=i%4*6;if(n===0){s.push(o>>16&255);s.push(o>>8&255);s.push(o&255)}else if(n===18){s.push(o>>10&255);s.push(o>>2&255)}else if(n===12){s.push(o>>4&255)}return new Uint8Array(s)}function ve(e){var t="",n=0,r,i,a=e.length,o=he;for(r=0;r<a;r++){if(r%3===0&&r){t+=o[n>>18&63];t+=o[n>>12&63];t+=o[n>>6&63];t+=o[n&63]}n=(n<<8)+e[r]}i=a%3;if(i===0){t+=o[n>>18&63];t+=o[n>>12&63];t+=o[n>>6&63];t+=o[n&63]}else if(i===2){t+=o[n>>10&63];t+=o[n>>4&63];t+=o[n<<2&63];t+=o[64]}else if(i===1){t+=o[n>>2&63];t+=o[n<<4&63];t+=o[64];t+=o[64]}return t}function ye(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var be=new T("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ge,construct:me,predicate:ye,represent:ve});var we=Object.prototype.hasOwnProperty;var Ce=Object.prototype.toString;function Ee(e){if(e===null)return true;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){i=s[n];o=false;if(Ce.call(i)!=="[object Object]")return false;for(a in i){if(we.call(i,a)){if(!o)o=true;else return false}}if(!o)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function xe(e){return e!==null?e:[]}var Le=new T("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ee,construct:xe});var Se=Object.prototype.toString;function Ae(e){if(e===null)return true;var t,n,r,i,a,o=e;a=new Array(o.length);for(t=0,n=o.length;t<n;t+=1){r=o[t];if(Se.call(r)!=="[object Object]")return false;i=Object.keys(r);if(i.length!==1)return false;a[t]=[i[0],r[i[0]]]}return true}function Te(e){if(e===null)return[];var t,n,r,i,a,o=e;a=new Array(o.length);for(t=0,n=o.length;t<n;t+=1){r=o[t];i=Object.keys(r);a[t]=[i[0],r[i[0]]]}return a}var Ie=new T("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ae,construct:Te});var Me=Object.prototype.hasOwnProperty;function ke(e){if(e===null)return true;var t,n=e;for(t in n){if(Me.call(n,t)){if(n[t]!==null)return false}}return true}function Oe(e){return e!==null?e:{}}var Ne=new T("tag:yaml.org,2002:set",{kind:"mapping",resolve:ke,construct:Oe});var _e=ae.extend({implicit:[fe,de],explicit:[be,Le,Ie,Ne]});var De=Object.prototype.hasOwnProperty;var Re=1;var Pe=2;var Fe=3;var je=4;var Be=1;var $e=2;var Ue=3;var He=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var We=/[\x85\u2028\u2029]/;var Ge=/[,\[\]\{\}]/;var qe=/^(?:!|!!|![a-z\-]+!)$/i;var Ve=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ke(e){return Object.prototype.toString.call(e)}function Ye(e){return e===10||e===13}function ze(e){return e===9||e===32}function Xe(e){return e===9||e===32||e===10||e===13}function Je(e){return e===44||e===91||e===93||e===123||e===125}function Qe(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function Ze(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function et(e){if(48<=e&&e<=57){return e-48}return-1}function tt(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function nt(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var rt=new Array(256);var it=new Array(256);for(var at=0;at<256;at++){rt[at]=tt(at)?1:0;it[at]=tt(at)}function ot(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||_e;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function st(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=E(n);return new y(t,n)}function lt(e,t){throw st(e,t)}function ct(e,t){if(e.onWarning){e.onWarning.call(null,st(e,t))}}var ut={YAML:function e(t,n,r){var i,a,o;if(t.version!==null){lt(t,"duplication of %YAML directive")}if(r.length!==1){lt(t,"YAML directive accepts exactly one argument")}i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(i===null){lt(t,"ill-formed argument of the YAML directive")}a=parseInt(i[1],10);o=parseInt(i[2],10);if(a!==1){lt(t,"unacceptable YAML version of the document")}t.version=r[0];t.checkLineBreaks=o<2;if(o!==1&&o!==2){ct(t,"unsupported YAML version of the document")}},TAG:function e(t,n,r){var i,a;if(r.length!==2){lt(t,"TAG directive accepts exactly two arguments")}i=r[0];a=r[1];if(!qe.test(i)){lt(t,"ill-formed tag handle (first argument) of the TAG directive")}if(De.call(t.tagMap,i)){lt(t,'there is a previously declared suffix for "'+i+'" tag handle')}if(!Ve.test(a)){lt(t,"ill-formed tag prefix (second argument) of the TAG directive")}try{a=decodeURIComponent(a)}catch(e){lt(t,"tag prefix is malformed: "+a)}t.tagMap[i]=a}};function ft(e,t,n,r){var i,a,o,s;if(t<n){s=e.input.slice(t,n);if(r){for(i=0,a=s.length;i<a;i+=1){o=s.charCodeAt(i);if(!(o===9||32<=o&&o<=1114111)){lt(e,"expected valid JSON character")}}}else if(He.test(s)){lt(e,"the stream contains non-printable characters")}e.result+=s}}function pt(e,t,n,r){var i,a,o,s;if(!g.isObject(n)){lt(e,"cannot merge mappings; the provided source object is unacceptable")}i=Object.keys(n);for(o=0,s=i.length;o<s;o+=1){a=i[o];if(!De.call(t,a)){t[a]=n[a];r[a]=true}}}function dt(e,t,n,r,i,a,o,s,l){var c,u;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(c=0,u=i.length;c<u;c+=1){if(Array.isArray(i[c])){lt(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&Ke(i[c])==="[object Object]"){i[c]="[object Object]"}}}if(typeof i==="object"&&Ke(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(r==="tag:yaml.org,2002:merge"){if(Array.isArray(a)){for(c=0,u=a.length;c<u;c+=1){pt(e,t,a[c],n)}}else{pt(e,t,a,n)}}else{if(!e.json&&!De.call(n,i)&&De.call(t,i)){e.line=o||e.line;e.lineStart=s||e.lineStart;e.position=l||e.position;lt(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:a})}else{t[i]=a}delete n[i]}return t}function ht(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{lt(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function gt(e,t,n){var r=0,i=e.input.charCodeAt(e.position);while(i!==0){while(ze(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(Ye(i)){ht(e);i=e.input.charCodeAt(e.position);r++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(n!==-1&&r!==0&&e.lineIndent<n){ct(e,"deficient indentation")}return r}function mt(e){var t=e.position,n;n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){t+=3;n=e.input.charCodeAt(t);if(n===0||Xe(n)){return true}}return false}function vt(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=g.repeat("\n",t-1)}}function yt(e,t,n){var r,i,a,o,s,l,c,u,f=e.kind,p=e.result,d;d=e.input.charCodeAt(e.position);if(Xe(d)||Je(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96){return false}if(d===63||d===45){i=e.input.charCodeAt(e.position+1);if(Xe(i)||n&&Je(i)){return false}}e.kind="scalar";e.result="";a=o=e.position;s=false;while(d!==0){if(d===58){i=e.input.charCodeAt(e.position+1);if(Xe(i)||n&&Je(i)){break}}else if(d===35){r=e.input.charCodeAt(e.position-1);if(Xe(r)){break}}else if(e.position===e.lineStart&&mt(e)||n&&Je(d)){break}else if(Ye(d)){l=e.line;c=e.lineStart;u=e.lineIndent;gt(e,false,-1);if(e.lineIndent>=t){s=true;d=e.input.charCodeAt(e.position);continue}else{e.position=o;e.line=l;e.lineStart=c;e.lineIndent=u;break}}if(s){ft(e,a,o,false);vt(e,e.line-l);a=o=e.position;s=false}if(!ze(d)){o=e.position+1}d=e.input.charCodeAt(++e.position)}ft(e,a,o,false);if(e.result){return true}e.kind=f;e.result=p;return false}function bt(e,t){var n,r,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;r=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){ft(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){r=e.position;e.position++;i=e.position}else{return true}}else if(Ye(n)){ft(e,r,i,true);vt(e,gt(e,false,t));r=i=e.position}else if(e.position===e.lineStart&&mt(e)){lt(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}lt(e,"unexpected end of the stream within a single quoted scalar")}function wt(e,t){var n,r,i,a,o,s;s=e.input.charCodeAt(e.position);if(s!==34){return false}e.kind="scalar";e.result="";e.position++;n=r=e.position;while((s=e.input.charCodeAt(e.position))!==0){if(s===34){ft(e,n,e.position,true);e.position++;return true}else if(s===92){ft(e,n,e.position,true);s=e.input.charCodeAt(++e.position);if(Ye(s)){gt(e,false,t)}else if(s<256&&rt[s]){e.result+=it[s];e.position++}else if((o=Ze(s))>0){i=o;a=0;for(;i>0;i--){s=e.input.charCodeAt(++e.position);if((o=Qe(s))>=0){a=(a<<4)+o}else{lt(e,"expected hexadecimal character")}}e.result+=nt(a);e.position++}else{lt(e,"unknown escape sequence")}n=r=e.position}else if(Ye(s)){ft(e,n,r,true);vt(e,gt(e,false,t));n=r=e.position}else if(e.position===e.lineStart&&mt(e)){lt(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;r=e.position}}lt(e,"unexpected end of the stream within a double quoted scalar")}function Ct(e,t){var n=true,r,i,a,o=e.tag,s,l=e.anchor,c,u,f,p,d,h=Object.create(null),g,m,v,y;y=e.input.charCodeAt(e.position);if(y===91){u=93;d=false;s=[]}else if(y===123){u=125;d=true;s={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=s}y=e.input.charCodeAt(++e.position);while(y!==0){gt(e,true,t);y=e.input.charCodeAt(e.position);if(y===u){e.position++;e.tag=o;e.anchor=l;e.kind=d?"mapping":"sequence";e.result=s;return true}else if(!n){lt(e,"missed comma between flow collection entries")}else if(y===44){lt(e,"expected the node content, but found ','")}m=g=v=null;f=p=false;if(y===63){c=e.input.charCodeAt(e.position+1);if(Xe(c)){f=p=true;e.position++;gt(e,true,t)}}r=e.line;i=e.lineStart;a=e.position;It(e,t,Re,false,true);m=e.tag;g=e.result;gt(e,true,t);y=e.input.charCodeAt(e.position);if((p||e.line===r)&&y===58){f=true;y=e.input.charCodeAt(++e.position);gt(e,true,t);It(e,t,Re,false,true);v=e.result}if(d){dt(e,s,h,m,g,v,r,i,a)}else if(f){s.push(dt(e,null,h,m,g,v,r,i,a))}else{s.push(g)}gt(e,true,t);y=e.input.charCodeAt(e.position);if(y===44){n=true;y=e.input.charCodeAt(++e.position)}else{n=false}}lt(e,"unexpected end of the stream within a flow collection")}function Et(e,t){var n,r,i=Be,a=false,o=false,s=t,l=0,c=false,u,f;f=e.input.charCodeAt(e.position);if(f===124){r=false}else if(f===62){r=true}else{return false}e.kind="scalar";e.result="";while(f!==0){f=e.input.charCodeAt(++e.position);if(f===43||f===45){if(Be===i){i=f===43?Ue:$e}else{lt(e,"repeat of a chomping mode identifier")}}else if((u=et(f))>=0){if(u===0){lt(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){s=t+u-1;o=true}else{lt(e,"repeat of an indentation width identifier")}}else{break}}if(ze(f)){do{f=e.input.charCodeAt(++e.position)}while(ze(f));if(f===35){do{f=e.input.charCodeAt(++e.position)}while(!Ye(f)&&f!==0)}}while(f!==0){ht(e);e.lineIndent=0;f=e.input.charCodeAt(e.position);while((!o||e.lineIndent<s)&&f===32){e.lineIndent++;f=e.input.charCodeAt(++e.position)}if(!o&&e.lineIndent>s){s=e.lineIndent}if(Ye(f)){l++;continue}if(e.lineIndent<s){if(i===Ue){e.result+=g.repeat("\n",a?1+l:l)}else if(i===Be){if(a){e.result+="\n"}}break}if(r){if(ze(f)){c=true;e.result+=g.repeat("\n",a?1+l:l)}else if(c){c=false;e.result+=g.repeat("\n",l+1)}else if(l===0){if(a){e.result+=" "}}else{e.result+=g.repeat("\n",l)}}else{e.result+=g.repeat("\n",a?1+l:l)}a=true;o=true;l=0;n=e.position;while(!Ye(f)&&f!==0){f=e.input.charCodeAt(++e.position)}ft(e,n,e.position,false)}return true}function xt(e,t){var n,r=e.tag,i=e.anchor,a=[],o,s=false,l;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=a}l=e.input.charCodeAt(e.position);while(l!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;lt(e,"tab characters must not be used in indentation")}if(l!==45){break}o=e.input.charCodeAt(e.position+1);if(!Xe(o)){break}s=true;e.position++;if(gt(e,true,-1)){if(e.lineIndent<=t){a.push(null);l=e.input.charCodeAt(e.position);continue}}n=e.line;It(e,t,Fe,false,true);a.push(e.result);gt(e,true,-1);l=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&l!==0){lt(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(s){e.tag=r;e.anchor=i;e.kind="sequence";e.result=a;return true}return false}function Lt(e,t,n){var r,i,a,o,s,l,c=e.tag,u=e.anchor,f={},p=Object.create(null),d=null,h=null,g=null,m=false,v=false,y;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=f}y=e.input.charCodeAt(e.position);while(y!==0){if(!m&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;lt(e,"tab characters must not be used in indentation")}r=e.input.charCodeAt(e.position+1);a=e.line;if((y===63||y===58)&&Xe(r)){if(y===63){if(m){dt(e,f,p,d,h,null,o,s,l);d=h=g=null}v=true;m=true;i=true}else if(m){m=false;i=true}else{lt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;y=r}else{o=e.line;s=e.lineStart;l=e.position;if(!It(e,n,Pe,false,true)){break}if(e.line===a){y=e.input.charCodeAt(e.position);while(ze(y)){y=e.input.charCodeAt(++e.position)}if(y===58){y=e.input.charCodeAt(++e.position);if(!Xe(y)){lt(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(m){dt(e,f,p,d,h,null,o,s,l);d=h=g=null}v=true;m=false;i=false;d=e.tag;h=e.result}else if(v){lt(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=c;e.anchor=u;return true}}else if(v){lt(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=c;e.anchor=u;return true}}if(e.line===a||e.lineIndent>t){if(m){o=e.line;s=e.lineStart;l=e.position}if(It(e,t,je,true,i)){if(m){h=e.result}else{g=e.result}}if(!m){dt(e,f,p,d,h,g,o,s,l);d=h=g=null}gt(e,true,-1);y=e.input.charCodeAt(e.position)}if((e.line===a||e.lineIndent>t)&&y!==0){lt(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(m){dt(e,f,p,d,h,null,o,s,l)}if(v){e.tag=c;e.anchor=u;e.kind="mapping";e.result=f}return v}function St(e){var t,n=false,r=false,i,a,o;o=e.input.charCodeAt(e.position);if(o!==33)return false;if(e.tag!==null){lt(e,"duplication of a tag property")}o=e.input.charCodeAt(++e.position);if(o===60){n=true;o=e.input.charCodeAt(++e.position)}else if(o===33){r=true;i="!!";o=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(n){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&o!==62);if(e.position<e.length){a=e.input.slice(t,e.position);o=e.input.charCodeAt(++e.position)}else{lt(e,"unexpected end of the stream within a verbatim tag")}}else{while(o!==0&&!Xe(o)){if(o===33){if(!r){i=e.input.slice(t-1,e.position+1);if(!qe.test(i)){lt(e,"named tag handle cannot contain such characters")}r=true;t=e.position+1}else{lt(e,"tag suffix cannot contain exclamation marks")}}o=e.input.charCodeAt(++e.position)}a=e.input.slice(t,e.position);if(Ge.test(a)){lt(e,"tag suffix cannot contain flow indicator characters")}}if(a&&!Ve.test(a)){lt(e,"tag name cannot contain such characters: "+a)}try{a=decodeURIComponent(a)}catch(t){lt(e,"tag name is malformed: "+a)}if(n){e.tag=a}else if(De.call(e.tagMap,i)){e.tag=e.tagMap[i]+a}else if(i==="!"){e.tag="!"+a}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+a}else{lt(e,'undeclared tag handle "'+i+'"')}return true}function At(e){var t,n;n=e.input.charCodeAt(e.position);if(n!==38)return false;if(e.anchor!==null){lt(e,"duplication of an anchor property")}n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!Xe(n)&&!Je(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){lt(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function Tt(e){var t,n,r;r=e.input.charCodeAt(e.position);if(r!==42)return false;r=e.input.charCodeAt(++e.position);t=e.position;while(r!==0&&!Xe(r)&&!Je(r)){r=e.input.charCodeAt(++e.position)}if(e.position===t){lt(e,"name of an alias node must contain at least one character")}n=e.input.slice(t,e.position);if(!De.call(e.anchorMap,n)){lt(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];gt(e,true,-1);return true}function It(e,t,n,r,i){var a,o,s,l=1,c=false,u=false,f,p,d,h,g,m;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;a=o=s=je===n||Fe===n;if(r){if(gt(e,true,-1)){c=true;if(e.lineIndent>t){l=1}else if(e.lineIndent===t){l=0}else if(e.lineIndent<t){l=-1}}}if(l===1){while(St(e)||At(e)){if(gt(e,true,-1)){c=true;s=a;if(e.lineIndent>t){l=1}else if(e.lineIndent===t){l=0}else if(e.lineIndent<t){l=-1}}else{s=false}}}if(s){s=c||i}if(l===1||je===n){if(Re===n||Pe===n){g=t}else{g=t+1}m=e.position-e.lineStart;if(l===1){if(s&&(xt(e,m)||Lt(e,m,g))||Ct(e,g)){u=true}else{if(o&&Et(e,g)||bt(e,g)||wt(e,g)){u=true}else if(Tt(e)){u=true;if(e.tag!==null||e.anchor!==null){lt(e,"alias node should not have any properties")}}else if(yt(e,g,Re===n)){u=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(l===0){u=s&&xt(e,m)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){lt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(f=0,p=e.implicitTypes.length;f<p;f+=1){h=e.implicitTypes[f];if(h.resolve(e.result)){e.result=h.construct(e.result);e.tag=h.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(De.call(e.typeMap[e.kind||"fallback"],e.tag)){h=e.typeMap[e.kind||"fallback"][e.tag]}else{h=null;d=e.typeMap.multi[e.kind||"fallback"];for(f=0,p=d.length;f<p;f+=1){if(e.tag.slice(0,d[f].tag.length)===d[f].tag){h=d[f];break}}}if(!h){lt(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&h.kind!==e.kind){lt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"')}if(!h.resolve(e.result,e.tag)){lt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=h.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||u}function Mt(e){var t=e.position,n,r,i,a=false,o;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((o=e.input.charCodeAt(e.position))!==0){gt(e,true,-1);o=e.input.charCodeAt(e.position);if(e.lineIndent>0||o!==37){break}a=true;o=e.input.charCodeAt(++e.position);n=e.position;while(o!==0&&!Xe(o)){o=e.input.charCodeAt(++e.position)}r=e.input.slice(n,e.position);i=[];if(r.length<1){lt(e,"directive name must not be less than one character in length")}while(o!==0){while(ze(o)){o=e.input.charCodeAt(++e.position)}if(o===35){do{o=e.input.charCodeAt(++e.position)}while(o!==0&&!Ye(o));break}if(Ye(o))break;n=e.position;while(o!==0&&!Xe(o)){o=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(o!==0)ht(e);if(De.call(ut,r)){ut[r](e,r,i)}else{ct(e,'unknown document directive "'+r+'"')}}gt(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;gt(e,true,-1)}else if(a){lt(e,"directives end mark is expected")}It(e,e.lineIndent-1,je,false,true);gt(e,true,-1);if(e.checkLineBreaks&&We.test(e.input.slice(t,e.position))){ct(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&mt(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;gt(e,true,-1)}return}if(e.position<e.length-1){lt(e,"end of the stream or a document separator is expected")}else{return}}function kt(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var n=new ot(e,t);var r=e.indexOf("\0");if(r!==-1){n.position=r;lt(n,"null byte is not allowed in input")}n.input+="\0";while(n.input.charCodeAt(n.position)===32){n.lineIndent+=1;n.position+=1}while(n.position<n.length-1){Mt(n)}return n.documents}function Ot(e,t,n){if(t!==null&&typeof t==="object"&&typeof n==="undefined"){n=t;t=null}var r=kt(e,n);if(typeof t!=="function"){return r}for(var i=0,a=r.length;i<a;i+=1){t(r[i])}}function Nt(e,t){var n=kt(e,t);if(n.length===0){return undefined}else if(n.length===1){return n[0]}throw new y("expected a single document in the stream, but found more")}var _t=Ot;var Dt=Nt;var Rt={loadAll:_t,load:Dt};var Pt=Object.prototype.toString;var Ft=Object.prototype.hasOwnProperty;var jt=65279;var Bt=9;var $t=10;var Ut=13;var Ht=32;var Wt=33;var Gt=34;var qt=35;var Vt=37;var Kt=38;var Yt=39;var zt=42;var Xt=44;var Jt=45;var Qt=58;var Zt=61;var en=62;var tn=63;var nn=64;var rn=91;var an=93;var on=96;var sn=123;var ln=124;var cn=125;var un={};un[0]="\\0";un[7]="\\a";un[8]="\\b";un[9]="\\t";un[10]="\\n";un[11]="\\v";un[12]="\\f";un[13]="\\r";un[27]="\\e";un[34]='\\"';un[92]="\\\\";un[133]="\\N";un[160]="\\_";un[8232]="\\L";un[8233]="\\P";var fn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var pn=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function dn(e,t){var n,r,i,a,o,s,l;if(t===null)return{};n={};r=Object.keys(t);for(i=0,a=r.length;i<a;i+=1){o=r[i];s=String(t[o]);if(o.slice(0,2)==="!!"){o="tag:yaml.org,2002:"+o.slice(2)}l=e.compiledTypeMap["fallback"][o];if(l&&Ft.call(l.styleAliases,s)){s=l.styleAliases[s]}n[o]=s}return n}function hn(e){var t,n,r;t=e.toString(16).toUpperCase();if(e<=255){n="x";r=2}else if(e<=65535){n="u";r=4}else if(e<=4294967295){n="U";r=8}else{throw new y("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+n+g.repeat("0",r-t.length)+t}var gn=1,mn=2;function vn(e){this.schema=e["schema"]||_e;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=g.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=dn(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?mn:gn;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function yn(e,t){var n=g.repeat(" ",t),r=0,i=-1,a="",o,s=e.length;while(r<s){i=e.indexOf("\n",r);if(i===-1){o=e.slice(r);r=s}else{o=e.slice(r,i+1);r=i+1}if(o.length&&o!=="\n")a+=n;a+=o}return a}function bn(e,t){return"\n"+g.repeat(" ",e.indent*t)}function wn(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1){i=e.implicitTypes[n];if(i.resolve(t)){return true}}return false}function Cn(e){return e===Ht||e===Bt}function En(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==jt||65536<=e&&e<=1114111}function xn(e){return En(e)&&e!==jt&&e!==Ut&&e!==$t}function Ln(e,t,n){var r=xn(e);var i=r&&!Cn(e);return(n?r:r&&e!==Xt&&e!==rn&&e!==an&&e!==sn&&e!==cn)&&e!==qt&&!(t===Qt&&!i)||xn(t)&&!Cn(t)&&e===qt||t===Qt&&i}function Sn(e){return En(e)&&e!==jt&&!Cn(e)&&e!==Jt&&e!==tn&&e!==Qt&&e!==Xt&&e!==rn&&e!==an&&e!==sn&&e!==cn&&e!==qt&&e!==Kt&&e!==zt&&e!==Wt&&e!==ln&&e!==Zt&&e!==en&&e!==Yt&&e!==Gt&&e!==Vt&&e!==nn&&e!==on}function An(e){return!Cn(e)&&e!==Qt}function Tn(e,t){var n=e.charCodeAt(t),r;if(n>=55296&&n<=56319&&t+1<e.length){r=e.charCodeAt(t+1);if(r>=56320&&r<=57343){return(n-55296)*1024+r-56320+65536}}return n}function In(e){var t=/^\n* /;return t.test(e)}var Mn=1,kn=2,On=3,Nn=4,_n=5;function Dn(e,t,n,r,i,a,o,s){var l;var c=0;var u=null;var f=false;var p=false;var d=r!==-1;var h=-1;var g=Sn(Tn(e,0))&&An(Tn(e,e.length-1));if(t||o){for(l=0;l<e.length;c>=65536?l+=2:l++){c=Tn(e,l);if(!En(c)){return _n}g=g&&Ln(c,u,s);u=c}}else{for(l=0;l<e.length;c>=65536?l+=2:l++){c=Tn(e,l);if(c===$t){f=true;if(d){p=p||l-h-1>r&&e[h+1]!==" ";h=l}}else if(!En(c)){return _n}g=g&&Ln(c,u,s);u=c}p=p||d&&(l-h-1>r&&e[h+1]!==" ")}if(!f&&!p){if(g&&!o&&!i(e)){return Mn}return a===mn?_n:kn}if(n>9&&In(e)){return _n}if(!o){return p?Nn:On}return a===mn?_n:kn}function Rn(e,t,n,r,i){e.dump=function(){if(t.length===0){return e.quotingType===mn?'""':"''"}if(!e.noCompatMode){if(fn.indexOf(t)!==-1||pn.test(t)){return e.quotingType===mn?'"'+t+'"':"'"+t+"'"}}var a=e.indent*Math.max(1,n);var o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);var s=r||e.flowLevel>-1&&n>=e.flowLevel;function l(t){return wn(e,t)}switch(Dn(t,s,e.indent,o,l,e.quotingType,e.forceQuotes&&!r,i)){case Mn:return t;case kn:return"'"+t.replace(/'/g,"''")+"'";case On:return"|"+Pn(t,e.indent)+Fn(yn(t,a));case Nn:return">"+Pn(t,e.indent)+Fn(yn(jn(t,o),a));case _n:return'"'+$n(t)+'"';default:throw new y("impossible error: invalid scalar style")}}()}function Pn(e,t){var n=In(e)?String(t):"";var r=e[e.length-1]==="\n";var i=r&&(e[e.length-2]==="\n"||e==="\n");var a=i?"+":r?"":"-";return n+a+"\n"}function Fn(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function jn(e,t){var n=/(\n+)([^\n]*)/g;var r=function(){var r=e.indexOf("\n");r=r!==-1?r:e.length;n.lastIndex=r;return Bn(e.slice(0,r),t)}();var i=e[0]==="\n"||e[0]===" ";var a;var o;while(o=n.exec(e)){var s=o[1],l=o[2];a=l[0]===" ";r+=s+(!i&&!a&&l!==""?"\n":"")+Bn(l,t);i=a}return r}function Bn(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var r;var i=0,a,o=0,s=0;var l="";while(r=n.exec(e)){s=r.index;if(s-i>t){a=o>i?o:s;l+="\n"+e.slice(i,a);i=a+1}o=s}l+="\n";if(e.length-i>t&&o>i){l+=e.slice(i,o)+"\n"+e.slice(o+1)}else{l+=e.slice(i)}return l.slice(1)}function $n(e){var t="";var n=0;var r;for(var i=0;i<e.length;n>=65536?i+=2:i++){n=Tn(e,i);r=un[n];if(!r&&En(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=r||hn(n)}}return t}function Un(e,t,n){var r="",i=e.tag,a,o,s;for(a=0,o=n.length;a<o;a+=1){s=n[a];if(e.replacer){s=e.replacer.call(n,String(a),s)}if(Vn(e,t,s,false,false)||typeof s==="undefined"&&Vn(e,t,null,false,false)){if(r!=="")r+=","+(!e.condenseFlow?" ":"");r+=e.dump}}e.tag=i;e.dump="["+r+"]"}function Hn(e,t,n,r){var i="",a=e.tag,o,s,l;for(o=0,s=n.length;o<s;o+=1){l=n[o];if(e.replacer){l=e.replacer.call(n,String(o),l)}if(Vn(e,t+1,l,true,true,false,true)||typeof l==="undefined"&&Vn(e,t+1,null,true,true,false,true)){if(!r||i!==""){i+=bn(e,t)}if(e.dump&&$t===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=a;e.dump=i||"[]"}function Wn(e,t,n){var r="",i=e.tag,a=Object.keys(n),o,s,l,c,u;for(o=0,s=a.length;o<s;o+=1){u="";if(r!=="")u+=", ";if(e.condenseFlow)u+='"';l=a[o];c=n[l];if(e.replacer){c=e.replacer.call(n,l,c)}if(!Vn(e,t,l,false,false)){continue}if(e.dump.length>1024)u+="? ";u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!Vn(e,t,c,false,false)){continue}u+=e.dump;r+=u}e.tag=i;e.dump="{"+r+"}"}function Gn(e,t,n,r){var i="",a=e.tag,o=Object.keys(n),s,l,c,u,f,p;if(e.sortKeys===true){o.sort()}else if(typeof e.sortKeys==="function"){o.sort(e.sortKeys)}else if(e.sortKeys){throw new y("sortKeys must be a boolean or a function")}for(s=0,l=o.length;s<l;s+=1){p="";if(!r||i!==""){p+=bn(e,t)}c=o[s];u=n[c];if(e.replacer){u=e.replacer.call(n,c,u)}if(!Vn(e,t+1,c,true,true,true)){continue}f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(f){if(e.dump&&$t===e.dump.charCodeAt(0)){p+="?"}else{p+="? "}}p+=e.dump;if(f){p+=bn(e,t)}if(!Vn(e,t+1,u,true,f)){continue}if(e.dump&&$t===e.dump.charCodeAt(0)){p+=":"}else{p+=": "}p+=e.dump;i+=p}e.tag=a;e.dump=i||"{}"}function qn(e,t,n){var r,i,a,o,s,l;i=n?e.explicitTypes:e.implicitTypes;for(a=0,o=i.length;a<o;a+=1){s=i[a];if((s.instanceOf||s.predicate)&&(!s.instanceOf||typeof t==="object"&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n){if(s.multi&&s.representName){e.tag=s.representName(t)}else{e.tag=s.tag}}else{e.tag="?"}if(s.represent){l=e.styleMap[s.tag]||s.defaultStyle;if(Pt.call(s.represent)==="[object Function]"){r=s.represent(t,l)}else if(Ft.call(s.represent,l)){r=s.represent[l](t,l)}else{throw new y("!<"+s.tag+'> tag resolver accepts not "'+l+'" style')}e.dump=r}return true}}return false}function Vn(e,t,n,r,i,a,o){e.tag=null;e.dump=n;if(!qn(e,n,false)){qn(e,n,true)}var s=Pt.call(e.dump);var l=r;var c;if(r){r=e.flowLevel<0||e.flowLevel>t}var u=s==="[object Object]"||s==="[object Array]",f,p;if(u){f=e.duplicates.indexOf(n);p=f!==-1}if(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0){i=false}if(p&&e.usedDuplicates[f]){e.dump="*ref_"+f}else{if(u&&p&&!e.usedDuplicates[f]){e.usedDuplicates[f]=true}if(s==="[object Object]"){if(r&&Object.keys(e.dump).length!==0){Gn(e,t,e.dump,i);if(p){e.dump="&ref_"+f+e.dump}}else{Wn(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(s==="[object Array]"){if(r&&e.dump.length!==0){if(e.noArrayIndent&&!o&&t>0){Hn(e,t-1,e.dump,i)}else{Hn(e,t,e.dump,i)}if(p){e.dump="&ref_"+f+e.dump}}else{Un(e,t,e.dump);if(p){e.dump="&ref_"+f+" "+e.dump}}}else if(s==="[object String]"){if(e.tag!=="?"){Rn(e,e.dump,t,a,l)}}else if(s==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new y("unacceptable kind of an object to dump "+s)}if(e.tag!==null&&e.tag!=="?"){c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){c="!"+c}else if(c.slice(0,18)==="tag:yaml.org,2002:"){c="!!"+c.slice(18)}else{c="!<"+c+">"}e.dump=c+" "+e.dump}}return true}function Kn(e,t){var n=[],r=[],i,a;Yn(e,n,r);for(i=0,a=r.length;i<a;i+=1){t.duplicates.push(n[r[i]])}t.usedDuplicates=new Array(a)}function Yn(e,t,n){var r,i,a;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(n.indexOf(i)===-1){n.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,a=e.length;i<a;i+=1){Yn(e[i],t,n)}}else{r=Object.keys(e);for(i=0,a=r.length;i<a;i+=1){Yn(e[r[i]],t,n)}}}}}function zn(e,t){t=t||{};var n=new vn(t);if(!n.noRefs)Kn(e,n);var r=e;if(n.replacer){r=n.replacer.call({"":r},"",r)}if(Vn(n,0,r,true,true))return n.dump+"\n";return""}var Xn=zn;var Jn={dump:Xn};function Qn(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}var Zn=T;var er=O;var tr=R;var nr=ie;var rr=ae;var ir=_e;var ar=Rt.load;var or=Rt.loadAll;var sr=Jn.dump;var lr=y;var cr={binary:be,float:re,map:D,null:B,pairs:Ie,set:Ne,timestamp:fe,bool:W,int:X,merge:de,omap:Le,seq:_,str:N};var ur=Qn("safeLoad","load");var fr=Qn("safeLoadAll","loadAll");var pr=Qn("safeDump","dump");var dr={Type:Zn,Schema:er,FAILSAFE_SCHEMA:tr,JSON_SCHEMA:nr,CORE_SCHEMA:rr,DEFAULT_SCHEMA:ir,load:ar,loadAll:or,dump:sr,YAMLException:lr,types:cr,safeLoad:ur,safeLoadAll:fr,safeDump:pr};t["default"]=dr},function(e,t,n){(function(r){var i,a,o;function s(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){s=function e(t){return typeof t}}else{s=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return s(e)}(function(n,r){if(true){!(a=[],i=r(n),o=typeof i==="function"?i.apply(t,a):i,o!==undefined&&(e.exports=o))}else{}})(typeof r!=="undefined"?r:this.window||this.global,(function(e){"use strict";var t=n(26);var r={};var i={};var a=n(27);var o=n(28);var s=n(29);var l;var c;var u=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window==="undefined"&&!u){return}var f;var p=Object.prototype.hasOwnProperty;function d(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(p.call(n,r)){e[r]=n[r]}}}return e}function h(e,t,n){t||(t=250);var r;var i;return function(){var a=n||this;var o=+new Date;var s=arguments;if(r&&o<r+t){clearTimeout(i);i=setTimeout((function(){r=o;e.apply(a,s)}),t)}else{r=o;e.apply(a,s)}}}i.destroy=function(){if(!r.skipRendering){try{document.querySelector(r.tocSelector).innerHTML=""}catch(e){console.warn("Element not found: "+r.tocSelector)}}if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).removeEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).removeEventListener("resize",this._scrollListener,false);if(l){document.querySelector(r.scrollContainer).removeEventListener("click",this._clickListener,false)}}else{document.removeEventListener("scroll",this._scrollListener,false);document.removeEventListener("resize",this._scrollListener,false);if(l){document.removeEventListener("click",this._clickListener,false)}}};i.init=function(e){if(!u){return}r=d(t,e||{});this.options=r;this.state={};if(r.scrollSmooth){r.duration=r.scrollSmoothDuration;r.offset=r.scrollSmoothOffset;i.scrollSmooth=n(30).initSmoothScrolling(r)}l=a(r);c=o(r);this._buildHtml=l;this._parseContent=c;i.destroy();f=c.selectHeadings(r.contentSelector,r.headingSelector);if(f===null){return}var p=c.nestHeadingsArray(f);var g=p.nest;if(!r.skipRendering){l.render(r.tocSelector,g)}this._scrollListener=h((function(e){l.updateToc(f);!r.disableTocScrollSync&&s(r);var t=e&&e.target&&e.target.scrollingElement&&e.target.scrollingElement.scrollTop===0;if(e&&(e.eventPhase===0||e.currentTarget===null)||t){l.updateToc(f);if(r.scrollEndCallback){r.scrollEndCallback(e)}}}),r.throttleTimeout);this._scrollListener();if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).addEventListener("resize",this._scrollListener,false)}else{document.addEventListener("scroll",this._scrollListener,false);document.addEventListener("resize",this._scrollListener,false)}var m=null;this._clickListener=h((function(e){if(r.scrollSmooth){l.disableTocAnimation(e)}l.updateToc(f);m&&clearTimeout(m);m=setTimeout((function(){l.enableTocAnimation()}),r.scrollSmoothDuration)}),r.throttleTimeout);if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("click",this._clickListener,false)}else{document.addEventListener("click",this._clickListener,false)}return this};i.refresh=function(e){i.destroy();i.init(e||this.options)};e.tocbot=i;return i}))}).call(this,n(0))},function(e,t){e.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:false,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:true,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function e(t){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:false,onClick:function e(t){},orderedList:true,scrollContainer:null,skipRendering:false,headingLabelCallback:false,ignoreHiddenElements:false,headingObjectCallback:null,basePath:"",disableTocScrollSync:false}},function(e,t){e.exports=function(e){var t=[].forEach;var n=[].some;var r=document.body;var i=true;var a=" ";function o(e,t){var n=t.appendChild(l(e));if(e.children.length){var r=c(e.isCollapsed);e.children.forEach((function(e){o(e,r)}));n.appendChild(r)}}function s(e,t){var n=false;var r=c(n);t.forEach((function(e){o(e,r)}));var i=document.querySelector(e);if(i===null){return}if(i.firstChild){i.removeChild(i.firstChild)}if(t.length===0){return i}return i.appendChild(r)}function l(n){var r=document.createElement("li");var i=document.createElement("a");if(e.listItemClass){r.setAttribute("class",e.listItemClass)}if(e.onClick){i.onclick=e.onClick}if(e.includeHtml&&n.childNodes.length){t.call(n.childNodes,(function(e){i.appendChild(e.cloneNode(true))}))}else{i.textContent=n.textContent}i.setAttribute("href",e.basePath+"#"+n.id);i.setAttribute("class",e.linkClass+a+"node-name--"+n.nodeName+a+e.extraLinkClasses);r.appendChild(i);return r}function c(t){var n=e.orderedList?"ol":"ul";var r=document.createElement(n);var i=e.listClass+a+e.extraListClasses;if(t){i+=a+e.collapsibleClass;i+=a+e.isCollapsedClass}r.setAttribute("class",i);return r}function u(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var t;t=document.querySelector(e.scrollContainer).scrollTop}else{t=document.documentElement.scrollTop||r.scrollTop}var n=document.querySelector(e.positionFixedSelector);if(e.fixedSidebarOffset==="auto"){e.fixedSidebarOffset=document.querySelector(e.tocSelector).offsetTop}if(t>e.fixedSidebarOffset){if(n.className.indexOf(e.positionFixedClass)===-1){n.className+=a+e.positionFixedClass}}else{n.className=n.className.split(a+e.positionFixedClass).join("")}}function f(t){var n=0;if(t!==document.querySelector(e.contentSelector&&t!=null)){n=t.offsetTop;if(e.hasInnerContainers){n+=f(t.offsetParent)}}return n}function p(o){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var s;s=document.querySelector(e.scrollContainer).scrollTop}else{s=document.documentElement.scrollTop||r.scrollTop}if(e.positionFixedSelector){u()}var l=o;var c;var p;if(i&&document.querySelector(e.tocSelector)!==null&&l.length>0){n.call(l,(function(t,n){p=f(t);if(p>s+e.headingsOffset+10){c=l[n];return true}else if(n===l.length-1){c=l[l.length-1];return true}}));var h=document.querySelector(e.tocSelector).querySelectorAll("."+e.linkClass);t.call(h,(function(t){t.className=t.className.split(a+e.activeLinkClass).join("")}));var g=document.querySelector(e.tocSelector).querySelectorAll("."+e.listItemClass);t.call(g,(function(t){t.className=t.className.split(a+e.activeListItemClass).join("")}));var m=document.querySelector(e.tocSelector).querySelector("."+e.linkClass+".node-name--"+c.nodeName+'[href="'+e.basePath+"#"+c.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/@])/g,"\\$1")+'"]');if(m.className.indexOf(e.activeLinkClass)===-1){m.className+=a+e.activeLinkClass}var v=m.parentNode;if(v&&v.className.indexOf(e.activeListItemClass)===-1){v.className+=a+e.activeListItemClass}var y=document.querySelector(e.tocSelector).querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(y,(function(t){if(t.className.indexOf(e.isCollapsedClass)===-1){t.className+=a+e.isCollapsedClass}}));if(m.nextSibling&&m.nextSibling.className.indexOf(e.isCollapsedClass)!==-1){m.nextSibling.className=m.nextSibling.className.split(a+e.isCollapsedClass).join("")}d(m.parentNode.parentNode)}}function d(t){if(t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1){t.className=t.className.split(a+e.isCollapsedClass).join("");return d(t.parentNode.parentNode)}return t}function h(t){var n=t.target||t.srcElement;if(typeof n.className!=="string"||n.className.indexOf(e.linkClass)===-1){return}i=false}function g(){i=true}return{enableTocAnimation:g,disableTocAnimation:h,render:s,updateToc:p}}},function(e,t){e.exports=function e(t){var n=[].reduce;function r(e){return e[e.length-1]}function i(e){return+e.nodeName.split("H").join("")}function a(e){if(!(e instanceof window.HTMLElement))return e;if(t.ignoreHiddenElements&&(!e.offsetHeight||!e.offsetParent)){return null}var n={id:e.id,children:[],nodeName:e.nodeName,headingLevel:i(e),textContent:t.headingLabelCallback?String(t.headingLabelCallback(e.textContent)):e.textContent.trim()};if(t.includeHtml){n.childNodes=e.childNodes}if(t.headingObjectCallback){return t.headingObjectCallback(n,e)}return n}function o(e,n){var i=a(e);var o=i.headingLevel;var s=n;var l=r(s);var c=l?l.headingLevel:0;var u=o-c;while(u>0){l=r(s);if(l&&l.children!==undefined){s=l.children}u--}if(o>=t.collapseDepth){i.isCollapsed=true}s.push(i);return s}function s(e,n){var r=n;if(t.ignoreSelector){r=n.split(",").map((function e(n){return n.trim()+":not("+t.ignoreSelector+")"}))}try{return document.querySelector(e).querySelectorAll(r)}catch(t){console.warn("Element not found: "+e);return null}}function l(e){return n.call(e,(function e(t,n){var r=a(n);if(r){o(r,t.nest)}return t}),{nest:[]})}return{nestHeadingsArray:l,selectHeadings:s}}},function(e,t){e.exports=function e(t){var n=document.querySelector(t.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var r=n.querySelector("."+t.activeListItemClass);if(r){n.scrollTop=r.offsetTop}}}},function(e,t){t.initSmoothScrolling=n;function n(e){if(l()){}var t=e.duration;var n=e.offset;var i=location.hash?s(location.href):location.href;a();function a(){document.body.addEventListener("click",i,false);function i(i){if(!o(i.target)||i.target.className.indexOf("no-smooth-scroll")>-1||i.target.href.charAt(i.target.href.length-2)==="#"&&i.target.href.charAt(i.target.href.length-1)==="!"||i.target.className.indexOf(e.linkClass)===-1){return}r(i.target.hash,{duration:t,offset:n,callback:function e(){c(i.target.hash)}})}}function o(e){return e.tagName.toLowerCase()==="a"&&(e.hash.length>0||e.href.charAt(e.href.length-1)==="#")&&(s(e.href)===i||s(e.href)+"#"===i)}function s(e){return e.slice(0,e.lastIndexOf("#"))}function l(){return"scrollBehavior"in document.documentElement.style}function c(e){var t=document.getElementById(e.substring(1));if(t){if(!/^(?:a|select|input|button|textarea)$/i.test(t.tagName)){t.tabIndex=-1}t.focus()}}}function r(e,t){var n=window.pageYOffset;var r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||f};var i=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]');var a=typeof e==="string"?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e;var o=typeof r.duration==="function"?r.duration(a):r.duration;var s;var l;requestAnimationFrame((function(e){s=e;c(e)}));function c(e){l=e-s;window.scrollTo(0,r.easing(l,n,a,o));if(l<o){requestAnimationFrame(c)}else{u()}}function u(){window.scrollTo(0,n+a);if(typeof r.callback==="function"){r.callback()}}function f(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}},function(e,t){function n(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){n=function e(t){return typeof t}}else{n=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return n(e)}(function(e){function t(){var e=document.createElement("p");var t=false;if(e.addEventListener){e.addEventListener("DOMAttrModified",(function(){t=true}),false)}else if(e.attachEvent){e.attachEvent("onDOMAttrModified",(function(){t=true}))}else{return false}e.setAttribute("id","target");return t}function r(t,n){if(t){var r=this.data("attr-old-value");if(n.attributeName.indexOf("style")>=0){if(!r["style"])r["style"]={};var i=n.attributeName.split(".");n.attributeName=i[0];n.oldValue=r["style"][i[1]];n.newValue=i[1]+":"+this.prop("style")[e.camelCase(i[1])];r["style"][i[1]]=n.newValue}else{n.oldValue=r[n.attributeName];n.newValue=this.attr(n.attributeName);r[n.attributeName]=n.newValue}this.data("attr-old-value",r)}}var i=window.MutationObserver||window.WebKitMutationObserver;e.fn.attrchange=function(a,o){if(n(a)=="object"){var s={trackValues:false,callback:e.noop};if(typeof a==="function"){s.callback=a}else{e.extend(s,a)}if(s.trackValues){this.each((function(t,n){var r={};for(var i,t=0,a=n.attributes,o=a.length;t<o;t++){i=a.item(t);r[i.nodeName]=i.value}e(this).data("attr-old-value",r)}))}if(i){var l={subtree:false,attributes:true,attributeOldValue:s.trackValues};var c=new i((function(t){t.forEach((function(t){var n=t.target;if(s.trackValues){t.newValue=e(n).attr(t.attributeName)}if(e(n).data("attrchange-status")==="connected"){s.callback.call(n,t)}}))}));return this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",c).each((function(){c.observe(this,l)}))}else if(t()){return this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",(function(t){if(t.originalEvent){t=t.originalEvent}t.attributeName=t.attrName;t.oldValue=t.prevValue;if(e(this).data("attrchange-status")==="connected"){s.callback.call(this,t)}}))}else if("onpropertychange"in document.body){return this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",(function(t){t.attributeName=window.event.propertyName;r.call(e(this),s.trackValues,t);if(e(this).data("attrchange-status")==="connected"){s.callback.call(this,t)}}))}return this}else if(typeof a=="string"&&e.fn.attrchange.hasOwnProperty("extensions")&&e.fn.attrchange["extensions"].hasOwnProperty(a)){return e.fn.attrchange["extensions"][a].call(this,o)}};e.fn.attrchange.extensions={disconnect:function t(n){if(typeof n!=="undefined"&&n.isPhysicalDisconnect){return this.each((function(){var t=e(this).data("attrchange-method");if(t=="propertychange"||t=="DOMAttrModified"){e(this).off(t)}else if(t=="Mutation Observer"){e(this).data("attrchange-obs").disconnect()}else if(t=="polling"){clearInterval(e(this).data("attrchange-polling-timer"))}})).removeData(["attrchange-method","attrchange-status"])}else{return this.data("attrchange-status","disconnected")}},remove:function t(n){return e.fn.attrchange.extensions["disconnect"].call(this,{isPhysicalDisconnect:true})},getProperties:function t(n){var r=e(this).data("attrchange-method");var i=e(this).data("attrchange-pollInterval");return{method:r,isPolling:r=="polling",pollingInterval:typeof i==="undefined"?0:parseInt(i,10),status:typeof r==="undefined"?"removed":e(this).data("attrchange-status")}},reconnect:function e(t){return this.data("attrchange-status","connected")},polling:function t(n){if(n.hasOwnProperty("isComputedStyle")&&n.isComputedStyle=="true"){return this.each((function(t,r){if(!n.hasOwnProperty("properties")||Object.prototype.toString.call(n.properties)!=="[object Array]"||n.properties.length==0){return false}var i={};for(var t=0;t<n.properties.length;t++){i[n.properties[t]]=e(this).css(n.properties[t])}var r=this;e(this).data("attrchange-polling-timer",setInterval((function(){var t={},a=false;for(var o,s=0;s<n.properties.length;s++){o=e(r).css(n.properties[s]);if(i[n.properties[s]]!==o){a=true;t[n.properties[s]]={oldValue:i[n.properties[s]],newValue:o};i[n.properties[s]]=o}}if(a&&e(r).data("attrchange-status")==="connected"){n.callback.call(r,t)}}),n.pollInterval?n.pollInterval:1e3)).data("attrchange-method","polling").data("attrchange-pollInterval",n.pollInterval).data("attrchange-status","connected")}))}else{return this.each((function(t,r){var i={};for(var a,t=0,o=r.attributes,s=o.length;t<s;t++){a=o.item(t);i[a.nodeName]=a.nodeValue}e(r).data("attrchange-polling-timer",setInterval((function(){var t={},a=false;for(var o,s=0,l=r.attributes,c=l.length;s<c;s++){o=l.item(s);if(i.hasOwnProperty(o.nodeName)&&i[o.nodeName]!=o.nodeValue){t[o.nodeName]={oldValue:i[o.nodeName],newValue:o.nodeValue};a=true}else if(!i.hasOwnProperty(o.nodeName)){t[o.nodeName]={oldValue:"",newValue:o.nodeValue};a=true}i[o.nodeName]=o.nodeValue}if(a&&e(r).data("attrchange-status")==="connected"){n.callback.call(r,t)}}),n.pollInterval?n.pollInterval:1e3)).data("attrchange-method","polling").data("attrchange-pollInterval",n.pollInterval).data("attrchange-status","connected")}))}}}})(jQuery)},function(e,t){var n;var r=document.documentElement.lang;function i(e){window.clearTimeout(n);e.prev().toggleClass("stacked");e.toggle()}function a(){$(".result").each((function(e,t){var n;var a=$(t);var o=a.prev().find(".title");if(r=="en"){n=$('<div class="view-result j1-viewer"><span class="btn-viewer j1-tooltip" data-toggle="tooltip" data-placement="left" title="toggle results" data-original-title="toggle results">View</span></div>')}else if(r=="de"){n=$('<div class="view-result j1-viewer"><span class="btn-viewer j1-tooltip" data-toggle="tooltip" data-placement="left" title="Anzeige umschalten" data-original-title="toggle results">Anzeige</span></div>')}else{n=$('<div class="view-result j1-viewer"><span class="btn-viewer j1-tooltip" data-toggle="tooltip" data-placement="left" title="toggle results" data-original-title="toggle results">View</span></div>')}o.append(n);n.on("click",(function(e){e.preventDefault();i(a)}))}))}$(a)}]);
47
+ t.read=function(e,t,n,r,i){var a,o;var s=i*8-r-1;var l=(1<<s)-1;var c=l>>1;var u=-7;var f=n?i-1:0;var p=n?-1:1;var d=e[t+f];f+=p;a=d&(1<<-u)-1;d>>=-u;u+=s;for(;u>0;a=a*256+e[t+f],f+=p,u-=8){}o=a&(1<<-u)-1;a>>=-u;u+=r;for(;u>0;o=o*256+e[t+f],f+=p,u-=8){}if(a===0){a=1-c}else if(a===l){return o?NaN:(d?-1:1)*Infinity}else{o=o+Math.pow(2,r);a=a-c}return(d?-1:1)*o*Math.pow(2,a-r)};t.write=function(e,t,n,r,i,a){var o,s,l;var c=a*8-i-1;var u=(1<<c)-1;var f=u>>1;var p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var d=r?0:a-1;var h=r?1:-1;var g=t<0||t===0&&1/t<0?1:0;t=Math.abs(t);if(isNaN(t)||t===Infinity){s=isNaN(t)?1:0;o=u}else{o=Math.floor(Math.log(t)/Math.LN2);if(t*(l=Math.pow(2,-o))<1){o--;l*=2}if(o+f>=1){t+=p/l}else{t+=p*Math.pow(2,1-f)}if(t*l>=2){o++;l/=2}if(o+f>=u){s=0;o=u}else if(o+f>=1){s=(t*l-1)*Math.pow(2,i);o=o+f}else{s=t*Math.pow(2,f-1)*Math.pow(2,i);o=0}}for(;i>=8;e[n+d]=s&255,d+=h,s/=256,i-=8){}o=o<<i|s;c+=i;for(;c>0;e[n+d]=o&255,d+=h,o/=256,c-=8){}e[n+d-h]|=g*128}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return n.call(e)=="[object Array]"}},function(e,t){e.exports=({protocol:e,hostname:t,path:n},r)=>new Promise(((i,a)=>{let o=new XMLHttpRequest;o.open("POST",`${e}//${t}${n}`,true);o.setRequestHeader("Content-Type","application/json;charset=UTF-8");o.setRequestHeader("Access-Control-Allow-Origin","*");o.setRequestHeader("Accept","*/*");o.onreadystatechange=()=>{if(o.readyState==4){o.status==200?i(JSON.parse(o.responseText)):a(o.status)}};o.send(JSON.stringify(r))}))},function(e,t){t.endianness=function(){return"LE"};t.hostname=function(){if(typeof location!=="undefined"){return location.hostname}else return""};t.loadavg=function(){return[]};t.uptime=function(){return 0};t.freemem=function(){return Number.MAX_VALUE};t.totalmem=function(){return Number.MAX_VALUE};t.cpus=function(){return[]};t.type=function(){return"Browser"};t.release=function(){if(typeof navigator!=="undefined"){return navigator.appVersion}return""};t.networkInterfaces=t.getNetworkInterfaces=function(){return{}};t.arch=function(){return"javascript"};t.platform=function(){return"browser"};t.tmpdir=t.tmpDir=function(){return"/tmp"};t.EOL="\n";t.homedir=function(){return"/"}},function(e,t,n){(function(r){var i,a,o;function s(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){s=function e(t){return typeof t}}else{s=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return s(e)}(function(n,r){if(true){!(a=[],i=r(n),o=typeof i==="function"?i.apply(t,a):i,o!==undefined&&(e.exports=o))}else{}})(typeof r!=="undefined"?r:this.window||this.global,(function(e){"use strict";var t=n(26);var r={};var i={};var a=n(27);var o=n(28);var s=n(29);var l;var c;var u=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window==="undefined"&&!u){return}var f;var p=Object.prototype.hasOwnProperty;function d(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(p.call(n,r)){e[r]=n[r]}}}return e}function h(e,t,n){t||(t=250);var r;var i;return function(){var a=n||this;var o=+new Date;var s=arguments;if(r&&o<r+t){clearTimeout(i);i=setTimeout((function(){r=o;e.apply(a,s)}),t)}else{r=o;e.apply(a,s)}}}i.destroy=function(){if(!r.skipRendering){try{document.querySelector(r.tocSelector).innerHTML=""}catch(e){console.warn("Element not found: "+r.tocSelector)}}if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).removeEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).removeEventListener("resize",this._scrollListener,false);if(l){document.querySelector(r.scrollContainer).removeEventListener("click",this._clickListener,false)}}else{document.removeEventListener("scroll",this._scrollListener,false);document.removeEventListener("resize",this._scrollListener,false);if(l){document.removeEventListener("click",this._clickListener,false)}}};i.init=function(e){if(!u){return}r=d(t,e||{});this.options=r;this.state={};if(r.scrollSmooth){r.duration=r.scrollSmoothDuration;r.offset=r.scrollSmoothOffset;i.scrollSmooth=n(30).initSmoothScrolling(r)}l=a(r);c=o(r);this._buildHtml=l;this._parseContent=c;i.destroy();f=c.selectHeadings(r.contentSelector,r.headingSelector);if(f===null){return}var p=c.nestHeadingsArray(f);var g=p.nest;if(!r.skipRendering){l.render(r.tocSelector,g)}this._scrollListener=h((function(e){l.updateToc(f);!r.disableTocScrollSync&&s(r);var t=e&&e.target&&e.target.scrollingElement&&e.target.scrollingElement.scrollTop===0;if(e&&(e.eventPhase===0||e.currentTarget===null)||t){l.updateToc(f);if(r.scrollEndCallback){r.scrollEndCallback(e)}}}),r.throttleTimeout);this._scrollListener();if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).addEventListener("resize",this._scrollListener,false)}else{document.addEventListener("scroll",this._scrollListener,false);document.addEventListener("resize",this._scrollListener,false)}var m=null;this._clickListener=h((function(e){if(r.scrollSmooth){l.disableTocAnimation(e)}l.updateToc(f);m&&clearTimeout(m);m=setTimeout((function(){l.enableTocAnimation()}),r.scrollSmoothDuration)}),r.throttleTimeout);if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("click",this._clickListener,false)}else{document.addEventListener("click",this._clickListener,false)}return this};i.refresh=function(e){i.destroy();i.init(e||this.options)};e.tocbot=i;return i}))}).call(this,n(0))},function(e,t){e.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:false,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:true,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function e(t){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:false,onClick:function e(t){},orderedList:true,scrollContainer:null,skipRendering:false,headingLabelCallback:false,ignoreHiddenElements:false,headingObjectCallback:null,basePath:"",disableTocScrollSync:false}},function(e,t){e.exports=function(e){var t=[].forEach;var n=[].some;var r=document.body;var i=true;var a=" ";function o(e,t){var n=t.appendChild(l(e));if(e.children.length){var r=c(e.isCollapsed);e.children.forEach((function(e){o(e,r)}));n.appendChild(r)}}function s(e,t){var n=false;var r=c(n);t.forEach((function(e){o(e,r)}));var i=document.querySelector(e);if(i===null){return}if(i.firstChild){i.removeChild(i.firstChild)}if(t.length===0){return i}return i.appendChild(r)}function l(n){var r=document.createElement("li");var i=document.createElement("a");if(e.listItemClass){r.setAttribute("class",e.listItemClass)}if(e.onClick){i.onclick=e.onClick}if(e.includeHtml&&n.childNodes.length){t.call(n.childNodes,(function(e){i.appendChild(e.cloneNode(true))}))}else{i.textContent=n.textContent}i.setAttribute("href",e.basePath+"#"+n.id);i.setAttribute("class",e.linkClass+a+"node-name--"+n.nodeName+a+e.extraLinkClasses);r.appendChild(i);return r}function c(t){var n=e.orderedList?"ol":"ul";var r=document.createElement(n);var i=e.listClass+a+e.extraListClasses;if(t){i+=a+e.collapsibleClass;i+=a+e.isCollapsedClass}r.setAttribute("class",i);return r}function u(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var t;t=document.querySelector(e.scrollContainer).scrollTop}else{t=document.documentElement.scrollTop||r.scrollTop}var n=document.querySelector(e.positionFixedSelector);if(e.fixedSidebarOffset==="auto"){e.fixedSidebarOffset=document.querySelector(e.tocSelector).offsetTop}if(t>e.fixedSidebarOffset){if(n.className.indexOf(e.positionFixedClass)===-1){n.className+=a+e.positionFixedClass}}else{n.className=n.className.split(a+e.positionFixedClass).join("")}}function f(t){var n=0;if(t!==document.querySelector(e.contentSelector&&t!=null)){n=t.offsetTop;if(e.hasInnerContainers){n+=f(t.offsetParent)}}return n}function p(o){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var s;s=document.querySelector(e.scrollContainer).scrollTop}else{s=document.documentElement.scrollTop||r.scrollTop}if(e.positionFixedSelector){u()}var l=o;var c;var p;if(i&&document.querySelector(e.tocSelector)!==null&&l.length>0){n.call(l,(function(t,n){p=f(t);if(p>s+e.headingsOffset+10){c=l[n];return true}else if(n===l.length-1){c=l[l.length-1];return true}}));var h=document.querySelector(e.tocSelector).querySelectorAll("."+e.linkClass);t.call(h,(function(t){t.className=t.className.split(a+e.activeLinkClass).join("")}));var g=document.querySelector(e.tocSelector).querySelectorAll("."+e.listItemClass);t.call(g,(function(t){t.className=t.className.split(a+e.activeListItemClass).join("")}));var m=document.querySelector(e.tocSelector).querySelector("."+e.linkClass+".node-name--"+c.nodeName+'[href="'+e.basePath+"#"+c.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/@])/g,"\\$1")+'"]');if(m.className.indexOf(e.activeLinkClass)===-1){m.className+=a+e.activeLinkClass}var v=m.parentNode;if(v&&v.className.indexOf(e.activeListItemClass)===-1){v.className+=a+e.activeListItemClass}var y=document.querySelector(e.tocSelector).querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(y,(function(t){if(t.className.indexOf(e.isCollapsedClass)===-1){t.className+=a+e.isCollapsedClass}}));if(m.nextSibling&&m.nextSibling.className.indexOf(e.isCollapsedClass)!==-1){m.nextSibling.className=m.nextSibling.className.split(a+e.isCollapsedClass).join("")}d(m.parentNode.parentNode)}}function d(t){if(t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1){t.className=t.className.split(a+e.isCollapsedClass).join("");return d(t.parentNode.parentNode)}return t}function h(t){var n=t.target||t.srcElement;if(typeof n.className!=="string"||n.className.indexOf(e.linkClass)===-1){return}i=false}function g(){i=true}return{enableTocAnimation:g,disableTocAnimation:h,render:s,updateToc:p}}},function(e,t){e.exports=function e(t){var n=[].reduce;function r(e){return e[e.length-1]}function i(e){return+e.nodeName.split("H").join("")}function a(e){if(!(e instanceof window.HTMLElement))return e;if(t.ignoreHiddenElements&&(!e.offsetHeight||!e.offsetParent)){return null}var n={id:e.id,children:[],nodeName:e.nodeName,headingLevel:i(e),textContent:t.headingLabelCallback?String(t.headingLabelCallback(e.textContent)):e.textContent.trim()};if(t.includeHtml){n.childNodes=e.childNodes}if(t.headingObjectCallback){return t.headingObjectCallback(n,e)}return n}function o(e,n){var i=a(e);var o=i.headingLevel;var s=n;var l=r(s);var c=l?l.headingLevel:0;var u=o-c;while(u>0){l=r(s);if(l&&l.children!==undefined){s=l.children}u--}if(o>=t.collapseDepth){i.isCollapsed=true}s.push(i);return s}function s(e,n){var r=n;if(t.ignoreSelector){r=n.split(",").map((function e(n){return n.trim()+":not("+t.ignoreSelector+")"}))}try{return document.querySelector(e).querySelectorAll(r)}catch(t){console.warn("Element not found: "+e);return null}}function l(e){return n.call(e,(function e(t,n){var r=a(n);if(r){o(r,t.nest)}return t}),{nest:[]})}return{nestHeadingsArray:l,selectHeadings:s}}},function(e,t){e.exports=function e(t){var n=document.querySelector(t.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var r=n.querySelector("."+t.activeListItemClass);if(r){n.scrollTop=r.offsetTop}}}},function(e,t){t.initSmoothScrolling=n;function n(e){if(l()){}var t=e.duration;var n=e.offset;var i=location.hash?s(location.href):location.href;a();function a(){document.body.addEventListener("click",i,false);function i(i){if(!o(i.target)||i.target.className.indexOf("no-smooth-scroll")>-1||i.target.href.charAt(i.target.href.length-2)==="#"&&i.target.href.charAt(i.target.href.length-1)==="!"||i.target.className.indexOf(e.linkClass)===-1){return}r(i.target.hash,{duration:t,offset:n,callback:function e(){c(i.target.hash)}})}}function o(e){return e.tagName.toLowerCase()==="a"&&(e.hash.length>0||e.href.charAt(e.href.length-1)==="#")&&(s(e.href)===i||s(e.href)+"#"===i)}function s(e){return e.slice(0,e.lastIndexOf("#"))}function l(){return"scrollBehavior"in document.documentElement.style}function c(e){var t=document.getElementById(e.substring(1));if(t){if(!/^(?:a|select|input|button|textarea)$/i.test(t.tagName)){t.tabIndex=-1}t.focus()}}}function r(e,t){var n=window.pageYOffset;var r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||f};var i=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]');var a=typeof e==="string"?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e;var o=typeof r.duration==="function"?r.duration(a):r.duration;var s;var l;requestAnimationFrame((function(e){s=e;c(e)}));function c(e){l=e-s;window.scrollTo(0,r.easing(l,n,a,o));if(l<o){requestAnimationFrame(c)}else{u()}}function u(){window.scrollTo(0,n+a);if(typeof r.callback==="function"){r.callback()}}function f(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}},function(e,t){function n(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){n=function e(t){return typeof t}}else{n=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return n(e)}(function(e){function t(){var e=document.createElement("p");var t=false;if(e.addEventListener){e.addEventListener("DOMAttrModified",(function(){t=true}),false)}else if(e.attachEvent){e.attachEvent("onDOMAttrModified",(function(){t=true}))}else{return false}e.setAttribute("id","target");return t}function r(t,n){if(t){var r=this.data("attr-old-value");if(n.attributeName.indexOf("style")>=0){if(!r["style"])r["style"]={};var i=n.attributeName.split(".");n.attributeName=i[0];n.oldValue=r["style"][i[1]];n.newValue=i[1]+":"+this.prop("style")[e.camelCase(i[1])];r["style"][i[1]]=n.newValue}else{n.oldValue=r[n.attributeName];n.newValue=this.attr(n.attributeName);r[n.attributeName]=n.newValue}this.data("attr-old-value",r)}}var i=window.MutationObserver||window.WebKitMutationObserver;e.fn.attrchange=function(a,o){if(n(a)=="object"){var s={trackValues:false,callback:e.noop};if(typeof a==="function"){s.callback=a}else{e.extend(s,a)}if(s.trackValues){this.each((function(t,n){var r={};for(var i,t=0,a=n.attributes,o=a.length;t<o;t++){i=a.item(t);r[i.nodeName]=i.value}e(this).data("attr-old-value",r)}))}if(i){var l={subtree:false,attributes:true,attributeOldValue:s.trackValues};var c=new i((function(t){t.forEach((function(t){var n=t.target;if(s.trackValues){t.newValue=e(n).attr(t.attributeName)}if(e(n).data("attrchange-status")==="connected"){s.callback.call(n,t)}}))}));return this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",c).each((function(){c.observe(this,l)}))}else if(t()){return this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",(function(t){if(t.originalEvent){t=t.originalEvent}t.attributeName=t.attrName;t.oldValue=t.prevValue;if(e(this).data("attrchange-status")==="connected"){s.callback.call(this,t)}}))}else if("onpropertychange"in document.body){return this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",(function(t){t.attributeName=window.event.propertyName;r.call(e(this),s.trackValues,t);if(e(this).data("attrchange-status")==="connected"){s.callback.call(this,t)}}))}return this}else if(typeof a=="string"&&e.fn.attrchange.hasOwnProperty("extensions")&&e.fn.attrchange["extensions"].hasOwnProperty(a)){return e.fn.attrchange["extensions"][a].call(this,o)}};e.fn.attrchange.extensions={disconnect:function t(n){if(typeof n!=="undefined"&&n.isPhysicalDisconnect){return this.each((function(){var t=e(this).data("attrchange-method");if(t=="propertychange"||t=="DOMAttrModified"){e(this).off(t)}else if(t=="Mutation Observer"){e(this).data("attrchange-obs").disconnect()}else if(t=="polling"){clearInterval(e(this).data("attrchange-polling-timer"))}})).removeData(["attrchange-method","attrchange-status"])}else{return this.data("attrchange-status","disconnected")}},remove:function t(n){return e.fn.attrchange.extensions["disconnect"].call(this,{isPhysicalDisconnect:true})},getProperties:function t(n){var r=e(this).data("attrchange-method");var i=e(this).data("attrchange-pollInterval");return{method:r,isPolling:r=="polling",pollingInterval:typeof i==="undefined"?0:parseInt(i,10),status:typeof r==="undefined"?"removed":e(this).data("attrchange-status")}},reconnect:function e(t){return this.data("attrchange-status","connected")},polling:function t(n){if(n.hasOwnProperty("isComputedStyle")&&n.isComputedStyle=="true"){return this.each((function(t,r){if(!n.hasOwnProperty("properties")||Object.prototype.toString.call(n.properties)!=="[object Array]"||n.properties.length==0){return false}var i={};for(var t=0;t<n.properties.length;t++){i[n.properties[t]]=e(this).css(n.properties[t])}var r=this;e(this).data("attrchange-polling-timer",setInterval((function(){var t={},a=false;for(var o,s=0;s<n.properties.length;s++){o=e(r).css(n.properties[s]);if(i[n.properties[s]]!==o){a=true;t[n.properties[s]]={oldValue:i[n.properties[s]],newValue:o};i[n.properties[s]]=o}}if(a&&e(r).data("attrchange-status")==="connected"){n.callback.call(r,t)}}),n.pollInterval?n.pollInterval:1e3)).data("attrchange-method","polling").data("attrchange-pollInterval",n.pollInterval).data("attrchange-status","connected")}))}else{return this.each((function(t,r){var i={};for(var a,t=0,o=r.attributes,s=o.length;t<s;t++){a=o.item(t);i[a.nodeName]=a.nodeValue}e(r).data("attrchange-polling-timer",setInterval((function(){var t={},a=false;for(var o,s=0,l=r.attributes,c=l.length;s<c;s++){o=l.item(s);if(i.hasOwnProperty(o.nodeName)&&i[o.nodeName]!=o.nodeValue){t[o.nodeName]={oldValue:i[o.nodeName],newValue:o.nodeValue};a=true}else if(!i.hasOwnProperty(o.nodeName)){t[o.nodeName]={oldValue:"",newValue:o.nodeValue};a=true}i[o.nodeName]=o.nodeValue}if(a&&e(r).data("attrchange-status")==="connected"){n.callback.call(r,t)}}),n.pollInterval?n.pollInterval:1e3)).data("attrchange-method","polling").data("attrchange-pollInterval",n.pollInterval).data("attrchange-status","connected")}))}}}})(jQuery)},function(e,t){var n;var r=document.documentElement.lang;function i(e){window.clearTimeout(n);e.prev().toggleClass("stacked");e.toggle()}function a(){$(".result").each((function(e,t){var n;var a=$(t);var o=a.prev().find(".title");if(r=="en"){n=$('<div class="view-result j1-viewer"><span class="btn-viewer j1-tooltip" data-toggle="tooltip" data-placement="left" title="toggle results" data-original-title="toggle results">View</span></div>')}else if(r=="de"){n=$('<div class="view-result j1-viewer"><span class="btn-viewer j1-tooltip" data-toggle="tooltip" data-placement="left" title="Anzeige umschalten" data-original-title="toggle results">Anzeige</span></div>')}else{n=$('<div class="view-result j1-viewer"><span class="btn-viewer j1-tooltip" data-toggle="tooltip" data-placement="left" title="toggle results" data-original-title="toggle results">View</span></div>')}o.append(n);n.on("click",(function(e){e.preventDefault();i(a)}))}))}$(a)}]);