UNPKG

smartdown

Version:

A library for translating, rendering and interacting with Smartdown documents. Smartdown is an extension of Markdown that provides richer media support and reactive programming capability.

2 lines 88.5 kB
/*! For license information please see docma-web.js.LICENSE.txt */ !function(e,t){"function"==typeof define&&define.amd&&!0===define.amd.dust?define("dust.core",[],t):"object"==typeof exports?module.exports=t():e.dust=t()}(this,(function(){var dust={version:"2.7.5"},NONE="NONE",ERROR="ERROR",WARN="WARN",INFO="INFO",DEBUG="DEBUG",EMPTY_FUNC=function(){},consoleLog,log,loggingLevels;function getTemplate(e,t){if(e)return"function"==typeof e&&e.template?e.template:dust.isTemplateFn(e)?e:!1!==t?dust.cache[e]:void 0}function load(e,t,n){if(!e)return t.setError(new Error("No template or template name provided to render"));var r=getTemplate(e,dust.config.cache);return r?r(t,Context.wrap(n,r.templateName)):dust.onLoad?t.map((function(t){var r=e;function o(e,o){var i;if(e)return t.setError(e);if(!(i=getTemplate(o,!1)||getTemplate(r,dust.config.cache))){if(!dust.compile)return t.setError(new Error("Dust compiler not available"));i=dust.loadSource(dust.compile(o,r))}i(t,Context.wrap(n,i.templateName)).end()}3===dust.onLoad.length?dust.onLoad(r,n.options,o):dust.onLoad(r,o)})):t.setError(new Error("Template Not Found: "+e))}function Context(e,t,n,r,o){void 0===e||e instanceof Stack||(e=new Stack(e)),this.stack=e,this.global=t,this.options=n,this.blocks=r,this.templateName=o,this._isContext=!0}function getWithResolvedData(e,t,n){return function(r){return e.push(r)._get(t,n)}}function Stack(e,t,n,r){this.tail=t,this.isObject=e&&"object"==typeof e,this.head=e,this.index=n,this.of=r}function Stub(e){this.head=new Chunk(this),this.callback=e,this.out=""}function Stream(){this.head=new Chunk(this)}function Chunk(e,t,n){this.root=e,this.next=t,this.data=[],this.flushable=!1,this.taps=n}for(var f in dust.config={whitespace:!1,amd:!1,cjs:!1,cache:!0},dust._aliases={write:"w",end:"e",map:"m",render:"r",reference:"f",section:"s",exists:"x",notexists:"nx",block:"b",partial:"p",helper:"h"},loggingLevels={DEBUG:0,INFO:1,WARN:2,ERROR:3,NONE:4},"undefined"!=typeof console&&console.log?(consoleLog=console.log,log="function"==typeof consoleLog?function(){consoleLog.apply(console,arguments)}:function(){consoleLog(Array.prototype.slice.apply(arguments).join(" "))}):log=EMPTY_FUNC,dust.log=function(e,t){loggingLevels[t=t||INFO]>=loggingLevels[dust.debugLevel]&&log("[DUST:"+t+"]",e)},dust.debugLevel=NONE,"undefined"!=typeof process&&process.env&&/\bdust\b/.test(process.env.DEBUG)&&(dust.debugLevel=DEBUG),dust.helpers={},dust.cache={},dust.register=function(e,t){e&&(t.templateName=e,!1!==dust.config.cache&&(dust.cache[e]=t))},dust.render=function(e,t,n){var r=new Stub(n).head;try{load(e,r,t).end()}catch(e){r.setError(e)}},dust.stream=function(e,t){var n=new Stream,r=n.head;return dust.nextTick((function(){try{load(e,r,t).end()}catch(e){r.setError(e)}})),n},dust.loadSource=function(source){return eval(source)},Array.isArray?dust.isArray=Array.isArray:dust.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},dust.nextTick=function(e){setTimeout(e,0)},dust.isEmpty=function(e){return!(0===e||(!dust.isArray(e)||e.length)&&e)},dust.isEmptyObject=function(e){var t;if(null===e)return!1;if(void 0===e)return!1;if(e.length>0)return!1;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},dust.isTemplateFn=function(e){return"function"==typeof e&&e.__dustBody},dust.isThenable=function(e){return e&&"object"==typeof e&&"function"==typeof e.then},dust.isStreamable=function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pipe},dust.filter=function(e,t,n,r){var o,i,a,s;if(n)for(o=0,i=n.length;o<i;o++)(a=n[o]).length&&(s=dust.filters[a],"s"===a?t=null:"function"==typeof s?e=s(e,r):dust.log("Invalid filter `"+a+"`",WARN));return t&&(e=dust.filters[t](e,r)),e},dust.filters={h:function(e){return dust.escapeHtml(e)},j:function(e){return dust.escapeJs(e)},u:encodeURI,uc:encodeURIComponent,js:function(e){return dust.escapeJSON(e)},jp:function(e){return JSON?JSON.parse(e):(dust.log("JSON is undefined; could not parse `"+e+"`",WARN),e)}},dust.makeBase=dust.context=function(e,t){return new Context(void 0,e,t)},dust.isContext=function(e){return"object"==typeof e&&!0===e._isContext},Context.wrap=function(e,t){return dust.isContext(e)?e:new Context(e,{},{},null,t)},Context.prototype.get=function(e,t){return"string"==typeof e&&("."===e[0]&&(t=!0,e=e.substr(1)),e=e.split(".")),this._get(t,e)},Context.prototype._get=function(e,t){var n,r,o,i,a,s=this.stack||{},c=1;if(r=t[0],o=t.length,e&&0===o)i=s,s=s.head;else{if(e)s&&(s=s.head?s.head[r]:void 0);else{for(;s&&(!s.isObject||(i=s.head,void 0===(n=s.head[r])));)s=s.tail;s=void 0!==n?n:this.global&&this.global[r]}for(;s&&c<o;){if(dust.isThenable(s))return s.then(getWithResolvedData(this,e,t.slice(c)));i=s,s=s[t[c]],c++}}return"function"==typeof s?(a=function(){try{return s.apply(i,arguments)}catch(e){throw dust.log(e,ERROR),e}},a.__dustBody=!!s.__dustBody,a):(void 0===s&&dust.log("Cannot find reference `{"+t.join(".")+"}` in template `"+this.getTemplateName()+"`",INFO),s)},Context.prototype.getPath=function(e,t){return this._get(e,t)},Context.prototype.push=function(e,t,n){return void 0===e?(dust.log("Not pushing an undefined variable onto the context",INFO),this):this.rebase(new Stack(e,this.stack,t,n))},Context.prototype.pop=function(){var e=this.current();return this.stack=this.stack&&this.stack.tail,e},Context.prototype.rebase=function(e){return new Context(e,this.global,this.options,this.blocks,this.getTemplateName())},Context.prototype.clone=function(){var e=this.rebase();return e.stack=this.stack,e},Context.prototype.current=function(){return this.stack&&this.stack.head},Context.prototype.getBlock=function(e){var t,n,r;if("function"==typeof e&&(e=e(new Chunk,this).data.join("")),!(t=this.blocks))return dust.log("No blocks for context `"+e+"` in template `"+this.getTemplateName()+"`",DEBUG),!1;for(n=t.length;n--;)if(r=t[n][e])return r;return dust.log("Malformed template `"+this.getTemplateName()+"` was missing one or more blocks."),!1},Context.prototype.shiftBlocks=function(e){var t,n=this.blocks;return e?(t=n?n.concat([e]):[e],new Context(this.stack,this.global,this.options,t,this.getTemplateName())):this},Context.prototype.resolve=function(e){var t;return"function"!=typeof e?e:(t=(new Chunk).render(e,this))instanceof Chunk?t.data.join(""):t},Context.prototype.getTemplateName=function(){return this.templateName},Stub.prototype.flush=function(){for(var e=this.head;e;){if(!e.flushable)return e.error?(this.callback(e.error),dust.log("Rendering failed with error `"+e.error+"`",ERROR),void(this.flush=EMPTY_FUNC)):void 0;this.out+=e.data.join(""),e=e.next,this.head=e}this.callback(null,this.out)},Stream.prototype.flush=function(){for(var e=this.head;e;){if(!e.flushable)return e.error?(this.emit("error",e.error),this.emit("end"),dust.log("Streaming failed with error `"+e.error+"`",ERROR),void(this.flush=EMPTY_FUNC)):void 0;this.emit("data",e.data.join("")),e=e.next,this.head=e}this.emit("end")},Stream.prototype.emit=function(e,t){var n,r,o=(this.events||{})[e]||[];if(!o.length)return dust.log("Stream broadcasting, but no listeners for `"+e+"`",DEBUG),!1;for(n=0,r=(o=o.slice(0)).length;n<r;n++)o[n](t);return!0},Stream.prototype.on=function(e,t){var n=this.events=this.events||{},r=n[e]=n[e]||[];return"function"!=typeof t?dust.log("No callback function provided for `"+e+"` event listener",WARN):r.push(t),this},Stream.prototype.pipe=function(e){if("function"!=typeof e.write||"function"!=typeof e.end)return dust.log("Incompatible stream passed to `pipe`",WARN),this;var t=!1;return"function"==typeof e.emit&&e.emit("pipe",this),"function"==typeof e.on&&e.on("error",(function(){t=!0})),this.on("data",(function(n){if(!t)try{e.write(n,"utf8")}catch(e){dust.log(e,ERROR)}})).on("end",(function(){if(!t)try{e.end(),t=!0}catch(e){dust.log(e,ERROR)}}))},Chunk.prototype.write=function(e){var t=this.taps;return t&&(e=t.go(e)),this.data.push(e),this},Chunk.prototype.end=function(e){return e&&this.write(e),this.flushable=!0,this.root.flush(),this},Chunk.prototype.map=function(e){var t=new Chunk(this.root,this.next,this.taps),n=new Chunk(this.root,t,this.taps);this.next=n,this.flushable=!0;try{e(n)}catch(e){dust.log(e,ERROR),n.setError(e)}return t},Chunk.prototype.tap=function(e){var t=this.taps;return this.taps=t?t.push(e):new Tap(e),this},Chunk.prototype.untap=function(){return this.taps=this.taps.tail,this},Chunk.prototype.render=function(e,t){return e(this,t)},Chunk.prototype.reference=function(e,t,n,r){return"function"==typeof e?(e=e.apply(t.current(),[this,t,null,{auto:n,filters:r}]))instanceof Chunk?e:this.reference(e,t,n,r):dust.isThenable(e)?this.await(e,t,null,n,r):dust.isStreamable(e)?this.stream(e,t,null,n,r):dust.isEmpty(e)?this:this.write(dust.filter(e,n,r,t))},Chunk.prototype.section=function(e,t,n,r){var o,i,a,s=n.block,c=n.else,l=this;if("function"==typeof e&&!dust.isTemplateFn(e)){try{e=e.apply(t.current(),[this,t,n,r])}catch(e){return dust.log(e,ERROR),this.setError(e)}if(e instanceof Chunk)return e}if(dust.isEmptyObject(n))return l;if(dust.isEmptyObject(r)||(t=t.push(r)),dust.isArray(e)){if(s){if((i=e.length)>0){for((a=t.stack&&t.stack.head||{}).$len=i,o=0;o<i;o++)a.$idx=o,l=s(l,t.push(e[o],o,i));return a.$idx=void 0,a.$len=void 0,l}if(c)return c(this,t)}}else{if(dust.isThenable(e))return this.await(e,t,n);if(dust.isStreamable(e))return this.stream(e,t,n);if(!0===e){if(s)return s(this,t)}else if(e||0===e){if(s)return s(this,t.push(e))}else if(c)return c(this,t)}return dust.log("Section without corresponding key in template `"+t.getTemplateName()+"`",DEBUG),this},Chunk.prototype.exists=function(e,t,n){var r=n.block,o=n.else;if(dust.isEmpty(e)){if(o)return o(this,t)}else{if(r)return r(this,t);dust.log("No block for exists check in template `"+t.getTemplateName()+"`",DEBUG)}return this},Chunk.prototype.notexists=function(e,t,n){var r=n.block,o=n.else;if(dust.isEmpty(e)){if(r)return r(this,t);dust.log("No block for not-exists check in template `"+t.getTemplateName()+"`",DEBUG)}else if(o)return o(this,t);return this},Chunk.prototype.block=function(e,t,n){var r=e||n.block;return r?r(this,t):this},Chunk.prototype.partial=function(e,t,n,r){var o;return void 0===r&&(r=n,n=t),dust.isEmptyObject(r)||(o=(n=n.clone()).pop(),n=n.push(r).push(o)),dust.isTemplateFn(e)?this.capture(e,t,(function(e,t){n.templateName=e,load(e,t,n).end()})):(n.templateName=e,load(e,this,n))},Chunk.prototype.helper=function(e,t,n,r,o){var i,a=this,s=r.filters;if(void 0===o&&(o="h"),!dust.helpers[e])return dust.log("Helper `"+e+"` does not exist",WARN),a;try{return(i=dust.helpers[e](a,t,n,r))instanceof Chunk?i:("string"==typeof s&&(s=s.split("|")),dust.isEmptyObject(n)?a.reference(i,t,o,s):a.section(i,t,n,r))}catch(t){return dust.log("Error in helper `"+e+"`: "+t.message,ERROR),a.setError(t)}},Chunk.prototype.await=function(e,t,n,r,o){return this.map((function(i){e.then((function(e){(i=n?i.section(e,t,n):i.reference(e,t,r,o)).end()}),(function(e){var r=n&&n.error;r?i.render(r,t.push(e)).end():(dust.log("Unhandled promise rejection in `"+t.getTemplateName()+"`",INFO),i.end())}))}))},Chunk.prototype.stream=function(e,t,n,r,o){var i=n&&n.block,a=n&&n.error;return this.map((function(s){var c=!1;e.on("data",(function(e){c||(i?s=s.map((function(n){n.render(i,t.push(e)).end()})):n||(s=s.reference(e,t,r,o)))})).on("error",(function(e){c||(a?s.render(a,t.push(e)):dust.log("Unhandled stream error in `"+t.getTemplateName()+"`",INFO),c||(c=!0,s.end()))})).on("end",(function(){c||(c=!0,s.end())}))}))},Chunk.prototype.capture=function(e,t,n){return this.map((function(r){var o=new Stub((function(e,t){e?r.setError(e):n(t,r)}));e(o.head,t).end()}))},Chunk.prototype.setError=function(e){return this.error=e,this.root.flush(),this},Chunk.prototype)dust._aliases[f]&&(Chunk.prototype[dust._aliases[f]]=Chunk.prototype[f]);function Tap(e,t){this.head=e,this.tail=t}Tap.prototype.push=function(e){return new Tap(e,this)},Tap.prototype.go=function(e){for(var t=this;t;)e=t.head(e),t=t.tail;return e};var HCHARS=/[&<>"']/,AMP=/&/g,LT=/</g,GT=/>/g,QUOT=/\"/g,SQUOT=/\'/g;dust.escapeHtml=function(e){return"string"==typeof e||e&&"function"==typeof e.toString?("string"!=typeof e&&(e=e.toString()),HCHARS.test(e)?e.replace(AMP,"&amp;").replace(LT,"&lt;").replace(GT,"&gt;").replace(QUOT,"&quot;").replace(SQUOT,"&#39;"):e):e};var BS=/\\/g,FS=/\//g,CR=/\r/g,LS=/\u2028/g,PS=/\u2029/g,NL=/\n/g,LF=/\f/g,SQ=/'/g,DQ=/"/g,TB=/\t/g;return dust.escapeJs=function(e){return"string"==typeof e?e.replace(BS,"\\\\").replace(FS,"\\/").replace(DQ,'\\"').replace(SQ,"\\'").replace(CR,"\\r").replace(LS,"\\u2028").replace(PS,"\\u2029").replace(NL,"\\n").replace(LF,"\\f").replace(TB,"\\t"):e},dust.escapeJSON=function(e){return JSON?JSON.stringify(e).replace(LS,"\\u2028").replace(PS,"\\u2029").replace(LT,"\\u003c"):(dust.log("JSON is undefined; could not escape `"+e+"`",WARN),e)},dust})),"function"==typeof define&&define.amd&&!0===define.amd.dust&&define(["require","dust.core"],(function(e,t){return t.onLoad=function(t,n){e([t],(function(){n()}))},t})),function(e,t){"function"==typeof define&&define.amd&&!0===define.amd.dust?define(["dust.core"],t):"object"==typeof exports?(module.exports=t(require("dustjs-linkedin")),module.exports.registerWith=t):t(e.dust)}(this,(function(e){function t(t,n,r){r=r||"INFO",t=t?"{@"+t+"}: ":"",e.log(t+n,r)}var n={};function r(e){return function(e){return e.stack.tail&&e.stack.tail.head&&void 0!==e.stack.tail.head.__select__}(e)&&e.get("__select__")}function o(e,t){var n,r=e.stack.head,o=e.rebase();e.stack&&e.stack.tail&&(o.stack=e.stack.tail);var i={isPending:!1,isResolved:!1,isDeferredComplete:!1,deferreds:[]};for(n in t)i[n]=t[n];return o.push({__select__:i}).push(r,e.stack.index,e.stack.of)}function i(e){var t,n;if(e.isDeferredPending=!0,e.deferreds.length)for(e.isDeferredComplete=!0,t=0,n=e.deferreds.length;t<n;t++)e.deferreds[t]();e.isDeferredPending=!1}function a(e,t){return"function"==typeof t?t.toString().replace(/(^\s+|\s+$)/gm,"").replace(/\n/gm,"").replace(/,\s*/gm,", ").replace(/\)\{/gm,") {"):t}function s(e,n){return function(o,i,a,s){return function(e,n,o,i,a,s){var l,u,d,p=o.block,f=o.else,h=r(n)||{};if(h.isResolved&&!h.isDeferredPending)return e;if(i.hasOwnProperty("key"))u=i.key;else{if(!h.hasOwnProperty("key"))return t(a,"No key specified","WARN"),e;u=h.key}return d=i.type||h.type,s(u=c(n.resolve(u),d),c(n.resolve(i.value),d))?(h.isPending||(l=!0,h.isPending=!0),p&&(e=e.render(p,n)),l&&(h.isResolved=!0)):f&&(e=e.render(f,n)),e}(o,i,a,s,e,n)}}function c(e,t){switch(t&&(t=t.toLowerCase()),t){case"number":return+e;case"string":return String(e);case"boolean":return e="false"!==e&&e,Boolean(e);case"date":return new Date(e)}return e}var l={tap:function(e,r,o){var i;return n[i="tap"]||(t(i,"Deprecation warning: tap is deprecated and will be removed in a future version of dustjs-helpers","WARN"),t(null,"For help and a deprecation timeline, see https://github.com/linkedin/dustjs-helpers/wiki/Deprecated-Features#"+i.replace(/\W+/g,""),"WARN"),n[i]=!0),o.resolve(e)},sep:function(e,t,n){var r=n.block;return t.stack.index===t.stack.of-1?e:r?r(e,t):e},first:function(e,t,n){return 0===t.stack.index?n.block(e,t):e},last:function(e,t,n){return t.stack.index===t.stack.of-1?n.block(e,t):e},contextDump:function(e,n,r,o){var i,s,c=n.resolve(o.to);return i="full"===n.resolve(o.key)?n.stack:n.stack.head,s=JSON.stringify(i,a,2),"console"===c?t("contextDump",s):(s=s.replace(/</g,"\\u003c"),e=e.write(s)),e},math:function(e,n,a,s){var c,l=s.key,u=s.method,d=s.operand,p=s.round;if(!s.hasOwnProperty("key")||!s.method)return t("math","`key` or `method` was not provided","ERROR"),e;switch(l=parseFloat(n.resolve(l)),d=parseFloat(n.resolve(d)),u){case"mod":0===d&&t("math","Division by 0","ERROR"),c=l%d;break;case"add":c=l+d;break;case"subtract":c=l-d;break;case"multiply":c=l*d;break;case"divide":0===d&&t("math","Division by 0","ERROR"),c=l/d;break;case"ceil":case"floor":case"round":case"abs":c=Math[u](l);break;case"toint":c=parseInt(l,10);break;default:t("math","Method `"+u+"` is not supported","ERROR")}return void 0!==c&&(p&&(c=Math.round(c)),a&&a.block?(n=o(n,{key:c}),e=e.render(a.block,n),i(r(n))):e=e.write(c)),e},select:function(e,n,a,s){var c=a.block,l={};return s.hasOwnProperty("key")&&(l.key=n.resolve(s.key)),s.hasOwnProperty("type")&&(l.type=s.type),c?(n=o(n,l),e=e.render(c,n),i(r(n))):t("select","Missing body block","WARN"),e},eq:s("eq",(function(e,t){return e===t})),ne:s("ne",(function(e,t){return e!==t})),lt:s("lt",(function(e,t){return e<t})),lte:s("lte",(function(e,t){return e<=t})),gt:s("gt",(function(e,t){return e>t})),gte:s("gte",(function(e,t){return e>=t})),any:function(e,n,o,i){var a=r(n);return a?a.isDeferredComplete?t("any","Must not be nested inside {@any} or {@none} block","ERROR"):e=e.map((function(e){a.deferreds.push((function(){a.isResolved&&(e=e.render(o.block,n)),e.end()}))})):t("any","Must be used inside a {@select} block","ERROR"),e},none:function(e,n,o,i){var a=r(n);return a?a.isDeferredComplete?t("none","Must not be nested inside {@any} or {@none} block","ERROR"):e=e.map((function(e){a.deferreds.push((function(){a.isResolved||(e=e.render(o.block,n)),e.end()}))})):t("none","Must be used inside a {@select} block","ERROR"),e},size:function(t,n,r,o){var i,a,s=o.key;if((s=n.resolve(o.key))&&!0!==s)if(e.isArray(s))i=s.length;else if(!isNaN(parseFloat(s))&&isFinite(s))i=s;else if("object"==typeof s)for(a in i=0,s)s.hasOwnProperty(a)&&i++;else i=(s+"").length;else i=0;return t.write(i)}};for(var u in l)e.helpers[u]=l[u];return e})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.page=t()}(this,(function(){"use strict";var e=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},t=function t(n,r,o){return e(r=r||[])?o||(o={}):(o=r,r=[]),n instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return u(e,t)}(n,r):e(n)?function(e,n,r){for(var o=[],i=0;i<e.length;i++)o.push(t(e[i],n,r).source);return u(new RegExp("(?:"+o.join("|")+")",d(r)),n)}(n,r,o):function(e,t,n){for(var r=a(e),o=p(r,n),i=0;i<r.length;i++)"string"!=typeof r[i]&&t.push(r[i]);return u(o,t)}(n,r,o)},n=a,r=s,o=p,i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e){for(var t,n=[],r=0,o=0,a="";null!=(t=i.exec(e));){var s=t[0],c=t[1],u=t.index;if(a+=e.slice(o,u),o=u+s.length,c)a+=c[1];else{a&&(n.push(a),a="");var d=t[2],p=t[3],f=t[4],h=t[5],m=t[6],g=t[7],b="+"===m||"*"===m,y="?"===m||"*"===m,v=d||"/",w=f||h||(g?".*":"[^"+v+"]+?");n.push({name:p||r++,prefix:d||"",delimiter:v,optional:y,repeat:b,pattern:l(w)})}}return o<e.length&&(a+=e.substr(o)),a&&n.push(a),n}function s(t){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^"+t[r].pattern+"$"));return function(r){for(var o="",i=r||{},a=0;a<t.length;a++){var s=t[a];if("string"!=typeof s){var c,l=i[s.name];if(null==l){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to be defined')}if(e(l)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received "'+l+'"');if(0===l.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var u=0;u<l.length;u++){if(c=encodeURIComponent(l[u]),!n[a].test(c))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=(0===u?s.prefix:s.delimiter)+c}}else{if(c=encodeURIComponent(l),!n[a].test(c))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+c+'"');o+=s.prefix+c}}else o+=s}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e.sensitive?"":"i"}function p(e,t){for(var n=(t=t||{}).strict,r=!1!==t.end,o="",i=e[e.length-1],a="string"==typeof i&&/\/$/.test(i),s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)o+=c(l);else{var u=c(l.prefix),p=l.pattern;l.repeat&&(p+="(?:"+u+p+")*"),o+=p=l.optional?u?"(?:"+u+"("+p+"))?":"("+p+")?":u+"("+p+")"}}return n||(o=(a?o.slice(0,-2):o)+"(?:\\/(?=$))?"),o+=r?"$":n&&a?"":"(?=\\/|$)",new RegExp("^"+o,d(t))}t.parse=n,t.compile=function(e){return s(a(e))},t.tokensToFunction=r,t.tokensToRegExp=o;var f,h="undefined"!=typeof document,m="undefined"!=typeof window,g="undefined"!=typeof history,b="undefined"!=typeof process,y=h&&document.ontouchstart?"touchstart":"click",v=m&&!(!window.history.location&&!window.location);function w(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}function _(e,t){if("function"==typeof e)return _.call(this,"*",e);if("function"==typeof t)for(var n=new R(e,null,this),r=1;r<arguments.length;++r)this.callbacks.push(n.middleware(arguments[r]));else"string"==typeof e?this["string"==typeof t?"redirect":"show"](e,t):this.start(e)}function k(e){if(!e.handled){var t=this,n=t._window;(t._hashbang?v&&this._getBase()+n.location.hash.replace("#!",""):v&&n.location.pathname+n.location.search)!==e.canonicalPath&&(t.stop(),e.handled=!1,v&&(n.location.href=e.canonicalPath))}}function E(e,t,n){var r=this.page=n||_,o=r._window,i=r._hashbang,a=r._getBase();"/"===e[0]&&0!==e.indexOf(a)&&(e=a+(i?"#!":"")+e);var s=e.indexOf("?");this.canonicalPath=e;var c=new RegExp("^"+a.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"));if(this.path=e.replace(c,"")||"/",i&&(this.path=this.path.replace("#!","")||"/"),this.title=h&&o.document.title,this.state=t||{},this.state.path=e,this.querystring=~s?r._decodeURLEncodedURIComponent(e.slice(s+1)):"",this.pathname=r._decodeURLEncodedURIComponent(~s?e.slice(0,s):e),this.params={},this.hash="",!i){if(!~this.path.indexOf("#"))return;var l=this.path.split("#");this.path=this.pathname=l[0],this.hash=r._decodeURLEncodedURIComponent(l[1])||"",this.querystring=this.querystring.split("#")[0]}}function R(e,n,r){this.page=r||T;var o=n||{};o.strict=o.strict||r._strict,this.path="*"===e?"(.*)":e,this.method="GET",this.regexp=t(this.path,this.keys=[],o)}w.prototype.configure=function(e){var t=e||{};this._window=t.window||m&&window,this._decodeURLComponents=!1!==t.decodeURLComponents,this._popstate=!1!==t.popstate&&m,this._click=!1!==t.click&&h,this._hashbang=!!t.hashbang;var n=this._window;this._popstate?n.addEventListener("popstate",this._onpopstate,!1):m&&n.removeEventListener("popstate",this._onpopstate,!1),this._click?n.document.addEventListener(y,this.clickHandler,!1):h&&n.document.removeEventListener(y,this.clickHandler,!1),this._hashbang&&m&&!g?n.addEventListener("hashchange",this._onpopstate,!1):m&&n.removeEventListener("hashchange",this._onpopstate,!1)},w.prototype.base=function(e){if(0===arguments.length)return this._base;this._base=e},w.prototype._getBase=function(){var e=this._base;if(e)return e;var t=m&&this._window&&this._window.location;return m&&this._hashbang&&t&&"file:"===t.protocol&&(e=t.pathname),e},w.prototype.strict=function(e){if(0===arguments.length)return this._strict;this._strict=e},w.prototype.start=function(e){var t=e||{};if(this.configure(t),!1!==t.dispatch){var n;if(this._running=!0,v){var r=this._window.location;n=this._hashbang&&~r.hash.indexOf("#!")?r.hash.substr(2)+r.search:this._hashbang?r.search+r.hash:r.pathname+r.search+r.hash}this.replace(n,null,!0,t.dispatch)}},w.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var e=this._window;this._click&&e.document.removeEventListener(y,this.clickHandler,!1),m&&e.removeEventListener("popstate",this._onpopstate,!1),m&&e.removeEventListener("hashchange",this._onpopstate,!1)}},w.prototype.show=function(e,t,n,r){var o=new E(e,t,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,!1!==n&&this.dispatch(o,i),!1!==o.handled&&!1!==r&&o.pushState(),o},w.prototype.back=function(e,t){var n=this;if(this.len>0){var r=this._window;g&&r.history.back(),this.len--}else e?setTimeout((function(){n.show(e,t)})):setTimeout((function(){n.show(n._getBase(),t)}))},w.prototype.redirect=function(e,t){var n=this;"string"==typeof e&&"string"==typeof t&&_.call(this,e,(function(e){setTimeout((function(){n.replace(t)}),0)})),"string"==typeof e&&void 0===t&&setTimeout((function(){n.replace(e)}),0)},w.prototype.replace=function(e,t,n,r){var o=new E(e,t,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,o.init=n,o.save(),!1!==r&&this.dispatch(o,i),o},w.prototype.dispatch=function(e,t){var n=0,r=0,o=this;function i(){var t=o.callbacks[n++];if(e.path===o.current)return t?void t(e,i):k.call(o,e);e.handled=!1}t?function e(){var n=o.exits[r++];if(!n)return i();n(t,e)}():i()},w.prototype.exit=function(e,t){if("function"==typeof e)return this.exit("*",e);for(var n=new R(e,null,this),r=1;r<arguments.length;++r)this.exits.push(n.middleware(arguments[r]))},w.prototype.clickHandler=function(e){if(1===this._which(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented)){var t=e.target,n=e.path||(e.composedPath?e.composedPath():null);if(n)for(var r=0;r<n.length;r++)if(n[r].nodeName&&"A"===n[r].nodeName.toUpperCase()&&n[r].href){t=n[r];break}for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;if(t&&"A"===t.nodeName.toUpperCase()){var o="object"==typeof t.href&&"SVGAnimatedString"===t.href.constructor.name;if(!t.hasAttribute("download")&&"external"!==t.getAttribute("rel")){var i=t.getAttribute("href");if((this._hashbang||!this._samePath(t)||!t.hash&&"#"!==i)&&!(i&&i.indexOf("mailto:")>-1)&&!(o?t.target.baseVal:t.target)&&(o||this.sameOrigin(t.href))){var a=o?t.href.baseVal:t.pathname+t.search+(t.hash||"");a="/"!==a[0]?"/"+a:a,b&&a.match(/^\/[a-zA-Z]:\//)&&(a=a.replace(/^\/[a-zA-Z]:\//,"/"));var s=a,c=this._getBase();0===a.indexOf(c)&&(a=a.substr(c.length)),this._hashbang&&(a=a.replace("#!","")),(!c||s!==a||v&&"file:"===this._window.location.protocol)&&(e.preventDefault(),this.show(s))}}}}},w.prototype._onpopstate=(f=!1,m?(h&&"complete"===document.readyState?f=!0:window.addEventListener("load",(function(){setTimeout((function(){f=!0}),0)})),function(e){if(f){var t=this;if(e.state){var n=e.state.path;t.replace(n,e.state)}else if(v){var r=t._window.location;t.show(r.pathname+r.search+r.hash,void 0,void 0,!1)}}}):function(){}),w.prototype._which=function(e){return null==(e=e||m&&this._window.event).which?e.button:e.which},w.prototype._toURL=function(e){var t=this._window;if("function"==typeof URL&&v)return new URL(e,t.location.toString());if(h){var n=t.document.createElement("a");return n.href=e,n}},w.prototype.sameOrigin=function(e){if(!e||!v)return!1;var t=this._toURL(e),n=this._window.location;return n.protocol===t.protocol&&n.hostname===t.hostname&&n.port===t.port},w.prototype._samePath=function(e){if(!v)return!1;var t=this._window.location;return e.pathname===t.pathname&&e.search===t.search},w.prototype._decodeURLEncodedURIComponent=function(e){return"string"!=typeof e?e:this._decodeURLComponents?decodeURIComponent(e.replace(/\+/g," ")):e},E.prototype.pushState=function(){var e=this.page,t=e._window,n=e._hashbang;e.len++,g&&t.history.pushState(this.state,this.title,n&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},E.prototype.save=function(){var e=this.page;g&&"file:"!==e._window.location.protocol&&e._window.history.replaceState(this.state,this.title,e._hashbang&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},R.prototype.middleware=function(e){var t=this;return function(n,r){if(t.match(n.path,n.params))return e(n,r);r()}},R.prototype.match=function(e,t){var n=this.keys,r=e.indexOf("?"),o=~r?e.slice(0,r):e,i=this.regexp.exec(decodeURIComponent(o));if(!i)return!1;for(var a=1,s=i.length;a<s;++a){var c=n[a-1],l=this.page._decodeURLEncodedURIComponent(i[a]);void 0===l&&hasOwnProperty.call(t,c.name)||(t[c.name]=l)}return!0};var T=function e(){var t=new w;function n(){return _.apply(t,arguments)}return n.callbacks=t.callbacks,n.exits=t.exits,n.base=t.base.bind(t),n.strict=t.strict.bind(t),n.start=t.start.bind(t),n.stop=t.stop.bind(t),n.show=t.show.bind(t),n.back=t.back.bind(t),n.redirect=t.redirect.bind(t),n.replace=t.replace.bind(t),n.dispatch=t.dispatch.bind(t),n.exit=t.exit.bind(t),n.configure=t.configure.bind(t),n.sameOrigin=t.sameOrigin.bind(t),n.clickHandler=t.clickHandler.bind(t),n.create=e,Object.defineProperty(n,"len",{get:function(){return t.len},set:function(e){t.len=e}}),Object.defineProperty(n,"current",{get:function(){return t.current},set:function(e){t.current=e}}),n.Context=E,n.Route=R,n}(),x=T,S=T;return x.default=S,x})),function(e){"use strict";function t(){}var n=t.prototype,r=e.EventEmitter;function o(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function i(e){return function(){return this[e].apply(this,arguments)}}function a(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!=typeof e)&&a(e.listener)}n.getListeners=function(e){var t,n,r=this._getEvents();if(e instanceof RegExp)for(n in t={},r)r.hasOwnProperty(n)&&e.test(n)&&(t[n]=r[n]);else t=r[e]||(r[e]=[]);return t},n.flattenListeners=function(e){var t,n=[];for(t=0;t<e.length;t+=1)n.push(e[t].listener);return n},n.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&((t={})[e]=n),t||n},n.addListener=function(e,t){if(!a(t))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(e),i="object"==typeof t;for(n in r)r.hasOwnProperty(n)&&-1===o(r[n],t)&&r[n].push(i?t:{listener:t,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(e){return this.getListeners(e),this},n.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},n.removeListener=function(e,t){var n,r,i=this.getListenersAsObject(e);for(r in i)i.hasOwnProperty(r)&&-1!==(n=o(i[r],t))&&i[r].splice(n,1);return this},n.off=i("removeListener"),n.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},n.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},n.manipulateListeners=function(e,t,n){var r,o,i=e?this.removeListener:this.addListener,a=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(r=n.length;r--;)i.call(this,t,n[r]);else for(r in t)t.hasOwnProperty(r)&&(o=t[r])&&("function"==typeof o?i.call(this,r,o):a.call(this,r,o));return this},n.removeEvent=function(e){var t,n=typeof e,r=this._getEvents();if("string"===n)delete r[e];else if(e instanceof RegExp)for(t in r)r.hasOwnProperty(t)&&e.test(t)&&delete r[t];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(e,t){var n,r,o,i,a=this.getListenersAsObject(e);for(i in a)if(a.hasOwnProperty(i))for(n=a[i].slice(0),o=0;o<n.length;o++)!0===(r=n[o]).once&&this.removeListener(e,r.listener),r.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,r.listener);return this},n.trigger=i("emitEvent"),n.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},n.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return e.EventEmitter=r,t},"function"==typeof define&&define.amd?define((function(){return t})):"object"==typeof module&&module.exports?module.exports=t:e.EventEmitter=t}(this||{}),function(e){function t(e,t){return e.p("navbar",t,t,{boxed:"true"}).w('<div id="page-content-wrapper"><div class="container container-boxed"><br /><br /><h1>404</h1><hr /><h3>Page Not Found</h3><br />The file or page you have requested is not found. &nbsp;&nbsp;<br />Please make sure page address is entered correctly.<br /><br /><br /></div></div>')}e.register("docma-404",t),t.__dustBody=!0}(dust),function(e){function t(e,t){return e.p("navbar",t,t,{}).w('<div id="wrapper">').x(t.getPath(!1,["template","options","sidebar","enabled"]),t,{block:n},{}).w('<div id="page-content-wrapper"><div class="container"><br />').s(t.get(["documentation"],!1),t,{block:r},{}).w('<br /><span class="docma-info">Documentation built with <b><a target="_blank" rel="noopener noreferrer" href="https://onury.io/docma">Docma</a></b>.</span></div></div></div>')}function n(e,t){return e.w('<div id="sidebar-wrapper">').p("sidebar",t,t,{}).w("</div>")}function r(e,t){return e.p("symbol",t,t,{symbol:t.getPath(!0,[]),template:t.get(["template"],!1)})}e.register("docma-api",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0}(dust),function(e){function t(e,t){return e.p("navbar",t,t,{boxed:"true"}).w('<div id="page-content-wrapper"><div class=\'').h("eq",t,{block:n},{key:t.getPath(!1,["currentRoute","sourceType"]),value:"md"},"h").w('\'><div id="docma-content"></div>').h("eq",t,{block:r},{key:t.getPath(!1,["currentRoute","sourceType"]),value:"md"},"h").w("</div></div>")}function n(e,t){return e.w("container container-boxed")}function r(e,t){return e.w('<br /><hr /><span class="docma-info">Documentation built with <b><a target="_blank" rel="noopener noreferrer" href="https://onury.io/docma">Docma</a></b>.</span>')}e.register("docma-content",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0}(dust),function(e){function t(e,t){return e.x(t.get(["$members"],!1),t,{block:n},{})}function n(e,t){return e.h("eq",t,{else:r,block:i},{key:t.getPath(!1,["template","options","symbols","enums"]),value:"table"},"h")}function r(e,t){return e.w('<div class="space-top-sm space-bottom-xs fw-bold">Enumeration</div><ul class="param-list">').s(t.get(["$members"],!1),t,{block:o},{}).w("</ul>")}function o(e,t){return e.w('<li><div class="param-meta clearfix"><span class="inline-block space-right-sm"><code>').f(t.getPath(!0,[]),t,"h",["$longname","s","$dot_prop"]).w("</code>&nbsp;:&nbsp;<code>").f(t.getPath(!0,[]),t,"h",["s","$type"]).w('</code></span><span class="param-info-box"><span class="param-info value">Value:&nbsp;</span><code>').f(t.getPath(!0,[]),t,"h",["$val"]).w('</code></span></div><div class="param-desc">').f(t.getPath(!0,[]),t,"h",["s","$desc"]).w("</div></li>")}function i(e,t){return e.w('<table class="table table-striped table-bordered"><thead><tr><th>Enumeration</th><th>Type</th><th>Value</th><th>Description</th></tr></thead><tbody>').s(t.get(["$members"],!1),t,{block:a},{}).w("</tbody></table>")}function a(e,t){return e.w("<tr><td><code>").f(t.getPath(!0,[]),t,"h",["$longname","s","$dot_prop"]).w("</code></td><td><code>").f(t.getPath(!0,[]),t,"h",["s","$type"]).w("</code></td><td><code>").f(t.getPath(!0,[]),t,"h",["$val"]).w("</code></td><td>").f(t.getPath(!0,[]),t,"h",["s","$desc"]).w("</td></tr>")}e.register("enums",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0}(dust),function(e){function t(e,t){return e.x(t.getPath(!1,["template","options","navbar","enabled"]),t,{block:n},{})}function n(e,t){return e.w('<nav class="navbar ').x(t.getPath(!1,["template","options","navbar","dark"]),t,{block:r},{}).w('"><div class="navbar-inner ').x(t.get(["boxed"],!1),t,{block:o},{}).w('"><div class="navbar-brand">').x(t.getPath(!1,["template","options","logo","dark"]),t,{block:i},{}).w('<span class="navbar-title"><a href="').f(t.getPath(!1,["template","options","title","href"]),t,"h").w('">').f(t.getPath(!1,["template","options","title","label"]),t,"h").w("</a></span></div>").h("gt",t,{block:c},{key:t.getPath(!1,["template","options","navbar","menu","length"]),value:0},"h").w("</div></nav>").x(t.getPath(!1,["template","options","navbar","fixed"]),t,{block:b},{}).w('<div class="nav-overlay"></div>')}function r(e,t){return e.w("dark")}function o(e,t){return e.w("container container-boxed")}function i(e,t){return e.x(t.getPath(!1,["template","options","navbar","dark"]),t,{else:a,block:s},{})}function a(e,t){return e.w('<img src="').f(t.getPath(!1,["template","options","logo","dark"]),t,"h").w('" alt="logo" class="navbar-logo" />')}function s(e,t){return e.w('<img src="').f(t.getPath(!1,["template","options","logo","light"]),t,"h").w('" alt="logo" class="navbar-logo" />')}function c(e,t){return e.w('<div class="navbar-menu-btn" tabindex="0"><i class="fas fa-lg fa-bars trans-all-ease"></i><i class="fas fa-md fa-times trans-all-ease"></i></div><div class="navbar-menu"><ul class="navbar-list">').s(t.getPath(!1,["template","options","navbar","menu"]),t,{block:l},{}).w("</ul></div>")}function l(e,t){return e.x(t.get(["items"],!1),t,{else:u,block:d},{})}function u(e,t){return e.p("navitem",t,t.rebase(t.getPath(!0,[])),{})}function d(e,t){return e.w('<li class="dropdown"><a href="').x(t.get(["href"],!1),t,{else:p,block:f},{}).w('" role="button" aria-haspopup="true" aria-expanded="false"><i class="nav-icon ').f(t.get(["iconClass"],!1),t,"h").w('" aria-hidden="true"></i>').x(t.get(["label"],!1),t,{block:h},{}).x(t.get(["chevron"],!1),t,{block:m},{}).w("</a><ul>").s(t.get(["items"],!1),t,{block:g},{}).w("</ul></li>")}function p(e,t){return e.w("#")}function f(e,t){return e.f(t.get(["href"],!1),t,"h")}function h(e,t){return e.w('<span class="nav-label">').f(t.get(["label"],!1),t,"h").w("</span>")}function m(e,t){return e.w('<i class="nav-arrow fas fa-sm fa-angle-down"></i>')}function g(e,t){return e.w(" ").p("navitem",t,t.rebase(t.getPath(!0,[])),{}).w(" ")}function b(e,t){return e.w('<div class="nav-spacer"></div>')}e.register("navbar",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,c.__dustBody=!0,l.__dustBody=!0,u.__dustBody=!0,d.__dustBody=!0,p.__dustBody=!0,f.__dustBody=!0,h.__dustBody=!0,m.__dustBody=!0,g.__dustBody=!0,b.__dustBody=!0}(dust),function(e){function t(e,t){return e.x(t.get(["separator"],!1),t,{else:n,block:s},{})}function n(e,t){return e.w('<li><a href="').x(t.get(["href"],!1),t,{else:r,block:o},{}).w('" target="').f(t.get(["target"],!1),t,"h").w('">').x(t.get(["iconClass"],!1),t,{block:i},{}).x(t.get(["label"],!1),t,{block:a},{}).w("</a></li>")}function r(e,t){return e.w("#")}function o(e,t){return e.f(t.get(["href"],!1),t,"h")}function i(e,t){return e.w('<i class="nav-icon ').f(t.get(["iconClass"],!1),t,"h").w('" aria-hidden="true"></i>')}function a(e,t){return e.w('<span class="nav-label">').f(t.get(["label"],!1),t,"h",["s"]).w("</span>")}function s(e,t){return e.w('<li role="separator" class="divider"></li>')}e.register("navitem",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0}(dust),function(e){function t(e,t){return e.x(t.get(["params"],!1),t,{block:n},{})}function n(e,t){return e.h("eq",t,{else:r,block:l},{key:t.getPath(!1,["template","options","symbols","params"]),value:"table"},"h")}function r(e,t){return e.w('<div class="space-top-sm space-bottom-xs fw-bold">Parameters</div><ul class="param-list">').s(t.get(["params"],!1),t,{block:o},{}).w("</ul>")}function o(e,t){return e.w('<li><div class="param-meta clearfix"><span class="inline-block space-right-sm"><code>').x(t.get(["variable"],!1),t,{block:i},{}).f(t.get(["name"],!1),t,"h",["s","$dot_prop"]).w("</code>&nbsp;:&nbsp;<code>").x(t.get(["variable"],!1),t,{block:a},{}).f(t.getPath(!0,[]),t,"h",["s","$type"]).w('</code></span><span class="param-info-box">').x(t.get(["optional"],!1),t,{else:s,block:c},{}).w('</span></div><div class="param-desc">').f(t.getPath(!0,[]),t,"h",["s","$param_desc"]).w("</div></li>")}function i(e,t){return e.w("...")}function a(e,t){return e.w("...")}function s(e,t){return e.w('<span class="param-info required boxed">Required</span>')}function c(e,t){return e.w('<span class="param-info default">Default:&nbsp;</span><code>').f(t.getPath(!0,[]),t,"h",["$def"]).w("</code>")}function l(e,t){return e.w('<table class="table table-striped table-bordered"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead><tbody>').s(t.get(["params"],!1),t,{block:u},{}).w("</tbody></table>")}function u(e,t){return e.w("<tr><td><code>").x(t.get(["variable"],!1),t,{block:d},{}).f(t.get(["name"],!1),t,"h",["s","$dot_prop"]).w("</code></td><td><code>").x(t.get(["variable"],!1),t,{block:p},{}).f(t.getPath(!0,[]),t,"h",["s","$type"]).w("</code></td><td>").x(t.get(["optional"],!1),t,{else:f,block:h},{}).f(t.getPath(!0,[]),t,"h",["s","$param_desc"]).w("</td></tr>")}function d(e,t){return e.w("...")}function p(e,t){return e.w("...")}function f(e,t){return e.w('<span class="param-info required boxed">Required</span>')}function h(e,t){return e.w('<span class="param-info default boxed">Default</span><span class="color-gray">:</span><code>').f(t.getPath(!0,[]),t,"h",["$def"]).w("</code>")}e.register("params",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,c.__dustBody=!0,l.__dustBody=!0,u.__dustBody=!0,d.__dustBody=!0,p.__dustBody=!0,f.__dustBody=!0,h.__dustBody=!0}(dust),function(e){function t(e,t){return e.x(t.get(["properties"],!1),t,{block:n},{})}function n(e,t){return e.h("eq",t,{else:r,block:i},{key:t.getPath(!1,["template","options","symbols","props"]),value:"table"},"h")}function r(e,t){return e.w('<div class="space-top-sm space-bottom-xs fw-bold">Properties</div><ul class="param-list">').s(t.get(["properties"],!1),t,{block:o},{}).w("</ul>")}function o(e,t){return e.w('<li><div class="param-meta clearfix"><span class="inline-block space-right-sm"><code>').f(t.get(["name"],!1),t,"h",["s","$dot_prop"]).w("</code>&nbsp;:&nbsp;<code>").f(t.getPath(!0,[]),t,"h",["s","$type"]).w('</code></span></div><div class="param-desc">').f(t.get(["description"],!1),t,"h",["s","$p"]).w("</div></li>")}function i(e,t){return e.w('<table class="table table-striped table-bordered"><thead><tr><th>Property</th><th>Type</th><th>Description</th></tr></thead><tbody>').s(t.get(["properties"],!1),t,{block:a},{}).w("</tbody></table>")}function a(e,t){return e.w("<tr><td><code>").f(t.get(["name"],!1),t,"h",["s","$dot_prop"]).w("</code></td><td><code>").f(t.getPath(!0,[]),t,"h",["s","$type"]).w("</code></td><td>").f(t.get(["description"],!1),t,"h",["s","$p"]).w("</td></tr>")}e.register("properties",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0}(dust),function(e){function t(e,t){return e.w('<div class="sidebar-header"><div id="sidebar-toggle"><i class="fas fa-lg fa-bars trans-all-ease"></i></div><div class="sidebar-brand">').x(t.getPath(!1,["template","options","logo","light"]),t,{block:n},{}).w('<span class="sidebar-title"><a href="').f(t.getPath(!1,["template","options","title","href"]),t,"h").w('">').f(t.getPath(!1,["template","options","title","label"]),t,"h").w("</a></span></div>").x(t.getPath(!1,["template","options","sidebar","search"]),t,{block:r},{}).x(t.getPath(!1,["template","options","sidebar","toolbar"]),t,{block:o},{}).w('</div><div class="sidebar-nav-container"><ul class="sidebar-nav">').f(t.get(["symbols"],!1),t,"h",["s","$navnodes"]).w("</ul></div>")}function n(e,t){return e.w('<img src="').f(t.getPath(!1,["template","options","logo","light"]),t,"h").w('" alt="logo" class="sidebar-logo" />')}function r(e,t){return e.w('<div class="sidebar-search"><div class="sidebar-search-icon"><i class="fas fa-md fa-search"></i></div><input id="txt-search" type="search" placeholder="Search..." autocorrect="off" autocapitalize="off" spellcheck="false" /><div class="sidebar-search-clean"><i class="fas fa-lg fa-times-circle"></i></div></div>')}function o(e,t){return e.w('<div class="sidebar-toolbar"><div class="toolbar-scope-filters"></div><div class="toolbar-kind-filters"></div><div class="toolbar-buttons"><span class="btn-switch-fold inline-block" title="Fold Symbols">').h("eq",t,{else:i,block:a},{key:t.getPath(!1,["template","options","sidebar","itemsFolded"]),type:"boolean",value:"true"},"h").w('</span><span class="btn-switch-outline inline-block space-left-xs" title="Toggle Outline">').h("eq",t,{else:s,block:c},{key:t.getPath(!1,["template","options","sidebar","outline"]),type:"string",value:"tree"},"h").w("</span></div></div>")}function i(e,t){return e.w('<i class="far fa-lg fa-caret-square-down"></i>')}function a(e,t){return e.w('<i class="far fa-lg fa-caret-square-right"></i>')}function s(e,t){return e.w('<i class="fas fa-lg fa-outdent"></i>')}function c(e,t){return e.w('<i class="fas fa-lg fa-indent"></i>')}e.register("sidebar",t),t.__dustBody=!0,n.__dustBody=!0,r.__dustBody=!0,o.__dustBody=!0,i.__dustBody=!0,a.__dustBody=!0,s.__dustBody=!0,c.__dustBody=!0}(dust),function(e){function t(e,t){return e.nx(t.getPath(!1,["symbol","$hide"]),t,{block:n},{})}function n(e,t){return e.w('<div id="').f(t.get(["symbol"],!1),t,"h",["$id"]).w('" class="symbol-container"><div class="symbol-heading"><div class="symbol"><a href="#').f(t.get(["symbol"],!1),t,"h",["$id"]).w('"><i class="fas fa-link color-gray-light" aria-hidden="true"></i></a><code class="symbol-name">').f(t.get(["symbol"],!1),t,"h",["s","$longname_params"]).w('</code><span class="symbol-sep">').f(t.get(["symbol"],!1),t,"h",["$type_sep"]).w('</span><code class="symbol-type">').f(t.get(["symbol"],!1),t,"h",["s","$type"]).w("</code>").f(t.get(["symbol"],!1),t,"h",["s","$tags"]).w('</div></div><div class="symbol-definition"><div class="symbol-info">').x(t.getPath(!1,["symbol","alias"]),t,{block:r},{}).x(t.getPath(!1,["symbol","augments"]),t,{block:i},{}).x(t.getPath(!1,["symbol","version"]),t,{block:a},{}).x(t.getPath(!1,["symbol","since"]),t,{block:s},{}).x(t.getPath(!1,["symbol","copyright"]),t,{block:c},{}).x(t.getPath(!1,["symbol","author"]),t,{block:l},{}).x(t.getPath(!1,["symbol","license"]),t,{block:u},{}).w("</div>").x(t.getPath(!1,["symbol","defaultvalue"]),t,{block:d},{}).f(t.get(["symbol"],!1),t,"h",["s","$desc"]).x(t.getPath(!1,["symbol","see"]),t,{block:p},{}).h("ne",t,{block:b},{key:t.getPath(!1,["symbol","meta","code","type"]),value:"ClassDeclaration"},"h").x(t.getPath(!1,["symbol","fires"]),t,{block:w},{}).x(t.getPath(!1,["symbol","returns"]),t,{block:k},{}).x(t.getPath(!1,["symbol","generator"]),t,{block:T},{}).x(t.getPath(!1,["symbol","exceptions"]),t,{block:P},{}).x(t.getPath(!1,["symbol","isEnum"]),t,{block:O},{}).x(t.getPath(!1,["symbol","examples"]),t,{block:M},{}).x(t.getPath(!1,["template","options","symbols","meta"]),t,{block:H},{}).w("</div></div><hr />").x(t.getPath(!1,["symbol","$constructor"]),t,{block:j},{}).nx(t.getPath(!1,["symbol","isEnum"]),t,{block:G},{})}function r(e,t){return e.nx(t.get(["$constructor"],!1),t,{block:o},{})}function o(e,t){return e.w('<p><b class="caption">Alias:</b> <code>').f(t.getPath(!1,["symbol","alias"]),t,"h",["s","$dot_prop"]).w("</code></p>")}function i(e,t){return e.w('<p><b class="caption">Extends:</b> ').f(t.get(["symbol"],!1),t,"h",["s","$extends"]).w("</p>")}function a(e,t){return e.w('<p><b class="caption">Version:</b>&nbsp;').f(t.getPath(!1,["symbol","version"]),t,"h",["s"]).w("</p>")}function s(e,t){return e.w('<p><b class="caption">Since:</b>&nbsp;').f(t.getPath(!1,["symbol","since"]),t,"h",["s"]).w("</p>")}function c(e,t){return e.w('<p><b class="caption">Copyright:</b>&nbsp;').f(t.getPath(!1,["symbol","copyright"]),t,"h",["s"]).w("</p>")}function l(e,t){return e.w('<p><b class="caption">Author:</b>&nbsp;').f(t.getPath(!1,["symbol","author"]),t,"h",["s","$author"]).w("</p>")}function u(e,t){return e.w('<p><b class="caption">License:</b>&nbsp;').f(t.getPath(!1,["symbol","license"]),t,"h",["s"]).w("</p>")}function d(e,t){return e.w('<p class="symbol-def-val"><b class="caption"><i>Value:</i></b>&nbsp;<code>').f(t.get(["symbol"],!1),t,"h",["$def"]).w("</code></p>")}function p(e,t){return e.w('<p class="no-margin"><b>See</b>').h("gt",t,{else:f,block:m},{key:t.getPath(!1,["symbol","see","length"]),value:1},"h").w("</p>")}function f(e,t){return e.s(t.getPath(!1,["symbol","see"]),t,{block:h},{})}function h(e,t){return e.w("&nbsp;").f(t.getPath(!0,[]),t,"h",["s","$pl"])}function m(e,t){return e.w("<ul>").s(t.getPath(!1,["symbol","see"]),t,{block:g},{}).w("</ul>")}function g(e,t){return e.w("<li>").f(t.getPath(!0,[]),t,"h",["s","$pl"]).w("</li>")}function b(e,t){return e.p("params",t,t.rebase(t.get(["symbol"],!1)),{template:t.get(["template"],!1)}).w(" ").x(t.getPath(!1,["symbol","isEnum"]),t,{else:y,block:v},{})}function y(e,t){return e.p("properties",t,t.rebase(t.get(["symbol"],!1)),{template:t.get(["template"],!1)}).w(" ")}function v(e,t){return e}function w(e,t){return e.h("gt",t,{block:_},{key:t.getPath(!1,["symbol","fires","length"]),value:"0",type:"number"},"h")}function _(e,t){return e.w('<p><b class="caption">Emits:</b>&nbsp;&nbsp;').f(t.get(["symbol"],!1),t,"h",["s","$emits"]).w("</p>")}function k(e,t){return e.h("gt",t,{else:E,block:R},{key:t.getPath(!1,["symbol","returns","length"]),value:"1",type:"number"},"h")}function E(e,t){return e.w('<p><b class="caption">Returns:</b>&nbsp;&nbsp;').f(t.get(["symbol"],!1),t,"h",["s","$returns"]).w("</p>")}function R(e,t){return e.w('<b class="caption">Returns:</b><p class="pad-left">').f(t.get(["symbol"],!1),t,"h",["s","$returns"]).w("</p>")}function T(e,t){return e.x(t.getPath(!1,["symbol","yields"]),t,{block:x},{})}function x(e,t){return e.h("gt",t,{else:S,block:L},{key:t.getPath(!1,["symbol","yields","length"]),value:"1",type:"number"},"h")}function S(e,t){return e.w('<p><b class="caption">Yields:</b>&nbsp;&nbsp;').f(t.get(["symbol"],!1),t,"h",["s","$yields"]).w("</p>")}function L(e,t){return e.w('<b class="caption">Yields:</b><p class="pad-left">').f(t.get(["symbol"],!1),t,"h",["s","$yields"]).w("</p>")}function P(e,t){return e.h("gt",t,{else:C,block:B},{key:t.getPath(!1,["symbol","exceptions","length"]),value:"1",type:"number"},"h")}function C(e,t){return e.w('<p><b class=